The BME280 is a popular sensor module that combines temperature, humidity, and barometric pressure measurements in a single package. For a variety of uses, including interior and outdoor navigation, weather forecasting, home automation, and personal health monitoring, it offers precise readings.
Its compact size, low power consumption, and reliable performance make it a popular choice among developers and hobbyists. It is simple to incorporate into your designs and takes up little room because to its tiny form factor and integrated header.
It features headers with pins spaced at 0.1", making it easy to attach to a breadboard for quick and convenient prototyping.
With its 3.3V compatibility and I2C interface, you can easily incorporate it into your projects with popular platforms like ESP32, RPi Pico, Raspberry Pi, Rock Pi, and other 3.3V compatible boards. This flexibility allows you to harness the power of the BME280 Breakout alongside your preferred microcontrollers, enabling precise measurements of barometric pressure, humidity, and temperature.
- Pitch 0.1โ Header Breakout
- BME280 sensor
Step 1: Download Thonny IDE from link as per your OS and install it.
Step 2: Connect Pico with BME280 breakout as shown below.
Interfacing Pins:
Pico Pins | BME280 Breakout | Function |
---|---|---|
3.3V | 3.3V | Power supply for module |
GPIO21 | SCL | Serial Clock pin for I2C interfacing |
GPIO20 | SDA | Serial Data pin for I2C interfacing |
GND | GND | Ground pin |
Step 3: Download code files from examples folder, you will find bme280.py library and BME280_Pico_demo.py
Step 4: Open both files in Thonny IDE, Connect Pico to laptop/PC and select device with suitable com port,
Now Transfer the library file to RPi Pico
With demo code open in Thonny Ide click on green button to run demo code
To run standalone transfer demo code file as main.py inside Pico as shown below
Interfacing Pins:
Raspberry Pi Pins | BME280 Breakout | Function |
---|---|---|
3.3V | 3.3V | Positive supply for module |
GPIO3 | SCL | Serial Clock pin for I2C interfacing |
GPIO2 | SDA | Serial Data pin for I2C interfacing |
GND | GND | Ground pin |
Step 3: Download code files BME280_Pidemo.py from examples.
Step 4: Run file using python IDE or Terminal as shown below
- /Design Data - This directory contains Schematic, Top and Bottom View
- /Mecahnical Data - This directory contains Dimension, 3D and STEP files
- BME280 Datasheet
This is open source product. Kindly check LICENSE.md file for more information.
Please contact [email protected] for technical support.