Skip to content

Adafruit library shows different values than BSEC library #29

@Napsty

Description

@Napsty

I did some comparison between using the Adafruit CircuitPython BME680 python module and the compiled BSEC library from Bosch (using https://github.com/alexh-name/bsec_bme680_linux) and the values retrieved from the sensor differ.

$ cat adafruit_example.py 
import board
import busio
import adafruit_bme680
i2c = busio.I2C(board.SCL, board.SDA)
sensor = adafruit_bme680.Adafruit_BME680_I2C(i2c)
print('Temperature: {} degrees C'.format(sensor.temperature))
print('Gas: {} ohms'.format(sensor.gas))
print('Humidity: {}%'.format(sensor.humidity))
print('Pressure: {}hPa'.format(sensor.pressure))

Results:

$ python3 adafruit_example.py 
Temperature: 4.6993359375 degrees C
Gas: 1578360 ohms
Humidity: 57.53554887071429%
Pressure: 947.7445084251684hPa

The binary compiled with BSEC library shows different values:

2020-04-02 10:02:13,[IAQ (0)]: 25.00,[T degC]: -0.29,[H %rH]: 82.23,[P hPa]: 947.72,[G Ohms]: 104297,[S]: 0,[eCO2 ppm]: 500.000000000000000,[bVOCe ppm]: 0.4999999403953552246093750

Temperature: BSEC is right. I know it's currently below 0 outside.
Humidity: BSEC is more rightish, when I compare the Live Weather maps (https://kachelmannwetter.com/de/analyse/superhd/thurgau/luftfeuchtigkeit/20200402-0720z.html). The reading from 40 mins ago says between 70 and 80% humidity where I live.
Pressure: Both values are the same, look correct
Gas: Large difference! 104297 from BSEC and 1578360 from Adafruit

Are the calculations/calibrations in the Adafruit library incorrect? Do you have a partnership with Bosch to take a closer look at this?

Screenshot humidity map for comparison:

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions