Project Description

The BSEC library provides signal processing and sensor fusion for the BME680, a low-power gas, temperature, humidity and pressure sensor. This sensor communicates with the MCU using SPI or I2C to report the measurements, but lacks in-die calculation for air quality index, it just reports the gas sensor resistance.

Bosch provides a closed-source software library called BSEC to process and fusion the BME680 sensor signals. It provides several outputs called "virtual sensors", one of them being the air quality index (IAQ):

BSEC_OUTPUT_RAW_PRESSURE
BSEC_OUTPUT_RAW_TEMPERATURE
BSEC_OUTPUT_RAW_HUMIDITY
BSEC_OUTPUT_RAW_GAS
BSEC_OUTPUT_SENSOR_HEAT_COMPENSATED_TEMPERATURE
BSEC_OUTPUT_SENSOR_HEAT_COMPENSATED_HUMIDITY
BSEC_OUTPUT_IAQ
BSEC_OUTPUT_STABILIZATION_STATUS
BSEC_OUTPUT_RUN_IN_STATUS

The reason for writing python bindings for the BSEC library is to integrate the BME680 air quality measurements to HomeAssistant running in a RaspberryPi.

Goal for this Hackweek

  • Write the Python bindings for the BSEC library
  • HomeAssistant integration

Resources

BME680

BSEC

Sensor API

HomeAssistant

Looking for hackers with the skills:

raspberrypi sensors hardware

This project is part of:

Hack Week 20

Activity

  • over 3 years ago: gabolptr liked this project.
  • over 3 years ago: dmdiss liked this project.
  • over 3 years ago: scabrero added keyword "raspberrypi" to this project.
  • over 3 years ago: scabrero added keyword "sensors" to this project.
  • over 3 years ago: scabrero added keyword "hardware" to this project.
  • over 3 years ago: scabrero originated this project.

  • Comments

    • gabolptr
      over 3 years ago by gabolptr | Reply

      A short comment:

      These two repositories make a link between the BSEC library and some kind of publishing. The library is instantiated via a C program, and the output is caputured/parsed by a python wrapper.

      • https://github.com/rstoermer/bsecbme680python/
      • https://github.com/timothybrown/BSEC-Conduit

      These indicate there is some demand out there :)

    Similar Projects

    This project is one of its kind!