"rp-bme280" is a simple data acquisition program from an ambient sensor Bosch BME280. This works with Raspberry Pi 3+.
- Rust (1.44.1)
Refer to the pages below for the specification of the target sensor BME280.
- Data acquisition: Temperature (in degree Celsius), Humidity (in %), Pressure (in hPa)
- Acquisition data is compensated with the trimming parameters programmed in the devices' NVM during production
"rp-bme280" uses the I2C interface on Raspberry Pi to communicate the sensor.
Turn the I2C feature on in your Raspberry Pi. (The code below is for Raspberry Pi OS)
$ sudo raspi-config nonint do_i2c 0
Connect BME280 communication pins to the default I2C port on your Raspberry Pi.
In this module connections should be as the below.
Just call the rpbme280
executable.
$ /path/to/rpbme280
Then you can see the acquired data as the below.
Temperature: 25.96 C
Humidity: 52.52 %
Pressure: 1011.60 hPa