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

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

  • Comments

    • gabolptr
      2 months 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

    Raspberry Pi and SUSE Manager by e_bischoff

    I have bought a Raspberry Pi 400 and would like...


    Upstream support for RPi4 CM4 and Pi400 by nsaenzjulienne

    [comment]: # (Please use the project descriptio...


    Bird watcher with Raspberry Pi by scuescu

    [comment]: # (Please use the project descriptio...


    Remote alarm system using RaspberryPi pico for box room by scabrero

    [comment]: # (Please use the project descriptio...


    Ambrogio - a privata consierge for you and your pets by rsblendido

    [comment]: # (Please use the project descriptio...


    work on sunxi a64 cpufreq driver (for teres-1, pine64) by mbrugger

    With the teres-1 [1] laptop we have a first arm...


    Remote alarm system using RaspberryPi pico for box room by scabrero

    [comment]: # (Please use the project descriptio...