VisweshBaskaran / CU-ECEN5713-FinalProject-Application-VisweshBaskaran

0 stars 0 forks source link

Integrate BME280 sensor with Raspberry Pi #6

Closed VisweshBaskaran closed 9 months ago

VisweshBaskaran commented 10 months ago

To interface the BME280 sensor to the RPi (with I2C)

DoD: Successfully read temperature, humidity and barometric pressure readings from the sensor

Blockers: None

VisweshBaskaran commented 9 months ago

This sensor integration required I2C, which was added by modifying base-external/config_3.txt to include dtparam=i2c_arm=on After performing Buildroot Build-Time Config.txt Customization.

At start-up, the following modules are required to be installed modprobe i2c-dev modprobe i2c-bcm2835

This code was initially tested with Raspbian OS. And later the required packages were manually added to build root; bme280, RPi.bme280, and smbus2.

Later I was able to replicate the results on the buildroot image.

Image