Bosch BME680 Sensor
I just created a sketch for controlling a BME680 sensor via I2C.
For the ones who are interested in it, the sketch can be downloaded at:
Right now only the gas resistance value is transmitted as the air quality value (IAQ) can only be calculated when you make use of the closed source library from Bosch (which is by the way only available for ARM, X86, ...)
The pressure is, like on the BME280 ,an absolute value. The sketch calculates the sealevel pressure from it.
I am using the breakout board from watterott which can be found here:
Right now you have to download this library in order to be able to compiile the sketch:
This fork replaces the original I2C read and write routines from https://github.com/vicatcu/BME680_Breakout.
I am using a standard Arduino Uno with Radio attached to the standard pins with the mysensors 2.0 lib.
To connect the breakout-board you need 4 wires:
Breakout --> Arduino
GND - GND
VCC - 3.3V
SCL - A5
SDA - A4
The chip supports SPI and I2C. I used SCL and SDA for I2C and left SDO and CS disconnected.
The next steps will be making the air quality values useful by finding an appropriate algorithm... stay tuned.