Skip to content

Environmental data reader on Raspberry Pi powered by BME280

Notifications You must be signed in to change notification settings

mseninc/rp-bme280-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rp-bme280-rust

"rp-bme280" is a simple data acquisition program from an ambient sensor Bosch BME280. This works with Raspberry Pi 3+.

Development environment

  • Rust (1.44.1)

Sensor

Refer to the pages below for the specification of the target sensor BME280.

Features

  • 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

Installation

"rp-bme280" uses the I2C interface on Raspberry Pi to communicate the sensor.

Enabling I2C feature

Turn the I2C feature on in your Raspberry Pi. (The code below is for Raspberry Pi OS)

$ sudo raspi-config nonint do_i2c 0

Connecting BME280 to Raspberry Pi

Connect BME280 communication pins to the default I2C port on your Raspberry Pi.

In this module connections should be as the below.

Downloading rp-bme280

Usage

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

Dependencies

References

License

MIT license

About

Environmental data reader on Raspberry Pi powered by BME280

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages