This project demonstrates how to read temperature, pressure, and altitude data from a BMP280 sensor and display it on an SH1106 OLED using an Arduino Nano.
- Arduino Nano
- BMP280 Sensor
- SH1106 OLED Display
- Jumper Wires
- Breadboard (optional)
- Adafruit BMP280 Library
- U8glib Library
VCC to 3.3V
GND to GND
SCL to A5 (SCL)
SDA to A4 (SDA)
VCC to 3.3V (or 5V, depending on your module)
GND to GND
SCL to A5 (SCL)
SDA to A4 (SDA)
- Install Libraries:
- Open Arduino IDE.
- Go to Sketch -> Include Library -> Manage Libraries.
- Install Adafruit BMP280 Library and U8glib.
- Connect the BMP280 and SH1106 OLED to the Arduino Nano as per the wiring diagram.
- Upload Code:
- Open the provided code in Arduino IDE.
- Select the correct board and port.
- Upload the code to the Arduino Nano.
Once the code is uploaded, the Arduino Nano will read the sensor data and display the temperature, pressure, and altitude on the SH1106 OLED display.
Feel free to customize it further according to your needs!