Skip to main content

Python interface for BME68X sensor and BSEC

Project description

BME68X and BSEC2.0 for Python by pi3g

This Python extension enables you to read measurement data by the BME68X sensor and the BSEC2.0 library from BOSCH

How to install the extension without BSEC

  • run 'pip3 install bme68x'

How to install the extension with BSEC

  • unzip this folder to a location of your choice
  • download the licensed BSEC2.0 library from BOSCH
  • unzip it into the AirQuality folder, next to this README
  • open a new terminal window inside the AirQuality folder
  • execute: sudo python3 setup.py install
  • this will build and install the extension

How to use the extension

  • to import in Python use: 'import bme68x' or 'from bme68x import BME68X'
  • see PythonDocumentation.md for reference
  • to test the installation make sure you connected your BME68X sensor via I2C
  • run the following code in a Python3 interpreter: from bme68x import BME68X BME68X(I2C_ADDR, 0).get_data()
  • I2C_ADDR should be either 0x76 or 0x77

For documentation and examples please refer to our GitHub For feedback, bug reports or functionality requests send an E-mail to nathan@pi3g.com

pi3g pi3g is an official approved Raspberry Pi reseller, and a Coral Machine Learning Platform (from Google) distribution partner. We take care of all your Raspberry Pi and Coral related hardware and software development, sourcing, accessory and consulting needs! Check out our homepage and file your personal software or hardware request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bme68x-1.0.1.tar.gz (23.7 kB view hashes)

Uploaded Source

Built Distribution

bme68x-1.0.1-cp37-cp37m-linux_armv7l.whl (66.5 kB view hashes)

Uploaded CPython 3.7m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page