1.Introduction:
In this project I am using a BME280 Breakout board interface with Micro RP2040and 0.91” OLED Display. BME280 breakout board has an I2C communication interface to communicate. With this project, I try to extract the Digital Humidity, pressure, and temperature sensor live data generated by BME280 in a OLED Display module controlled by the master Micro RP2040 board.
Users can process the data as per their needs.
2.Hardware Setup:
As mentioned in the figure, we require 3 major components Micro RP2040, BME280 & 0.91" OLED Breakout board, some jumper wires, and a USB to connect with the PC.
1) Micro RP2040The Micro RP2040 - is a small and compact version of the popular Raspberry Pi Pico.
With 22 multifunction GPIO pins and a Type-C port, the Micro RP2040 has all the functionality of the Raspberry Pi Pico but in a smaller size. With its breadboard-friendly design, you can easily integrate it into your prototyping setup and explore endless possibilities for creating interactive and innovative projects.
For more Technical Details
2) BME280 Breakout BoardThe BME280 sensor is widely used in various applications such as weather monitoring, indoor climate control, altitude tracking, Indoor navigation (change of floor detection, elevator detection), outdoor Navigation, and IoT projects requiring environmental sensing.
For more Technical Details
3)0.91" OLED Breakout Board
- A small electronic module with a 0.91-inch OLED (Organic Light Emitting Diode) display is referred to as the 0.91" OLED Breakout board. Wide viewing angles, intense contrast, and vivid colours are all characteristics of OLED displays.
- Jumper Wires are required for connecting the BME280 sensor board to the micro RP2040 board.
- We have used 4 jumper wires.
Use C type USB to connect the Micro RP2040 board to the PC.
3. Software Setup:
To develop the firmware for the above setup, follow the given steps:
- Connect the Micro RP2040 board to the PC using C-type USB.
- Download and install Thonny IDE from the official site.
- Ensure that you have installed Boot the firmware. If not then follow the procedure attached in the given link:
1) Open the Thonny IDE.
2) After connecting your board ensure that you have selected the Micro Python RP2040 as provided in the given figure.
3) You have successfully set up the environment for the firmware programming.
4) Proceed with the code mentioned in the snippets.
- Steps to setup the library for OLED Breakout:
Copy the library from below Code option below:-
- Steps to setup the library for BME280Breakout:
Copy the library from Code option below:-
- Using the library that has been imported in above steps, I write the main code-named oled_BME280.py
- Save the file and now your code is ready to run. Click on the run Button.
You will get the result of temperature, pressure, and humidity on the console of Thonny and OLED Display.
Comments