12 releases

0.6.0 May 6, 2021
0.5.1 Apr 5, 2020
0.5.0 Nov 27, 2019
0.4.3 Mar 19, 2019
0.3.1 Jun 6, 2018

#546 in Hardware support

Download history 352/week @ 2023-12-15 51/week @ 2023-12-22 131/week @ 2023-12-29 172/week @ 2024-01-05 50/week @ 2024-01-12 161/week @ 2024-01-19 52/week @ 2024-01-26 21/week @ 2024-02-02 50/week @ 2024-02-09 61/week @ 2024-02-16 128/week @ 2024-02-23 62/week @ 2024-03-01 69/week @ 2024-03-08 34/week @ 2024-03-15 70/week @ 2024-03-22 92/week @ 2024-03-29

272 downloads per month
Used in 3 crates

MIT license

240KB
1K SLoC

BME680 + Rust Actions Status Cargo Deny Status

This repository contains a pure Rust implementation for the BME680 environmental sensor. The library can be used to read the gas, pressure, humidity and temperature sensors via I²C.

The library uses the embedded-hal library to abstract reading and writing via I²C. In the examples you can find a demo how to use the library in Linux using the linux-embedded-hal implementation.

Alternative

drogue-bme680

Example getting started Linux

Determine the I2C device path

pi@raspberrypi:~ $ i2cdetect -y -l
i2c-1    i2c       bcm2835 I2C adapter             I2C adapter

Determine I2C-Address of sensor, 0x76 is the primary address, 0x77 is the secondary address. If in doubt determine the address via the following command:

pi@raspberrypi:~ $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- 76

Example Influx Client

The examples folder contains an example for a simple influx database client inserting collected values. Below you may find examples of Chronograf graphs of an indoor measurement over a period of 30 days.

Temperature Graph Humidity Graph Air pressure Graph Gas resistance Graph

Dependencies