Barometer

Github link: https://github.com/bigcrimping/barometer/
Barometer
A reimagining of a classic barometer using a BMP280 pressure sensor
The displays are both Dowty aircraft magnetic indicators which are similar to split-flap displays classically used in train stations
The display can show high/low/normal pressure and up/down arrows + “auto”. The relays are overkill (the power supply is 28v and the displays when active take ~30mA) but I had them to hand.
The classical logic with a barometer is roughly:
- Low pressure means bad weather
- High pressure means good weather
- Constant pressure usually means good weather
- Rising air pressure is good
- Lowering air pressure is bad
Project Code
The code is here: https://github.com/bigcrimping/barometer/tree/main/code/pressure_meter
Fairly basic setup using the driver “BMx280MI” from Gregor Christandl, the code measures the pressure every 10 minutes and adds it to a circular buffer and uses the average to determine if the pressure is rising or falling.
Wiring
The wiring is as below.
PRESSURE_NORMAL is on pin 2 PRESSURE_HIGH is on pin 3 ARROW_UP is on pin 4 ARROW_DOWN is on pin 5 I2C SDA is on D18 and SCL is D19
Mechanical Files
Mech files are here: https://github.com/bigcrimping/barometer/tree/main/mechanical
All mounting holes are M3 brass inserts with M3 x 7mm
Fixing required
6 x M3 brass inserts
6 x M3x7mm cap head bolts