All packs

Sensors

Weather station

Temperature, humidity and air pressure on a small screen, with a note of whether the pressure is rising or falling.

  • Medium
  • about 45 min
  • ESP32-S3
  • 6 parts
  • 8 wires
  • 72 lines of code

ESP32 packs are built on real parts: the simulator runs Arduino Uno circuits only.

Idea

Falling pressure often comes before rain. The station compares the pressure now with half an hour ago, which is the oldest method of forecasting there is.

Before you start

For outdoors, put it under cover where rain cannot reach it, with the sensor in moving air and out of direct sun.

What you learn

Two I2C devices on one bus, and finding a trend by comparing with an earlier reading.

How it works

  1. input

    BME280

  2. decides

    ESP32-S3

  3. output

    OLED 0.96 in

Powered with 5 V through the board's USB-C port.

A reference design. The sketch is compiled with the real ESP32 toolchain, and its pins are checked against the wiring table automatically. It has not yet been built and tested on real parts by us, so wire it on the bench and run the checks before you build it into a case. Real modules vary: follow the labels printed on yours, not their position in the picture.