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.
The BME68X sensors by BOSCH Sensortec measure temperature, pressure and humidity.
Most importantly the sensor estimates the air pollution by recording the amount of VOCs (Volatile Organic Compounds).
With use of the (licensed) BSEC library from BOSCH, this allows for measuring the IAQ (Indoor Air Quality).

How to install the extension without BSEC

pip3 install bme68x

How to install the extension with BSEC

  • clone this repo to a desired location on you hard drive
  • 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
sudo python3 setup.py install
  • this will build and install the extension

How to use the extension

  • to import in Python
import bme68x```
or
```python
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

# Replace I2C_ADDR with the I2C address of your sensor
# Either 0x76 (default for BME680) or 0x77 (default for BME688)
BME68X(, 0).get_data()

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 logo
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.
Also visit our shop.

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.3.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

bme68x-1.0.3-cp37-cp37m-linux_armv7l.whl (66.7 kB view details)

Uploaded CPython 3.7m

File details

Details for the file bme68x-1.0.3.tar.gz.

File metadata

  • Download URL: bme68x-1.0.3.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.3

File hashes

Hashes for bme68x-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6ce7e1028fb4736e557817518e5721aa61336ad615fe3c2f14aca27f27e907e3
MD5 6e310bf4fd26783be5d72e377db75fa1
BLAKE2b-256 20bdcd62657b4759f657d7168eb7182814d97ee728cb6bda03715654bd032c81

See more details on using hashes here.

File details

Details for the file bme68x-1.0.3-cp37-cp37m-linux_armv7l.whl.

File metadata

  • Download URL: bme68x-1.0.3-cp37-cp37m-linux_armv7l.whl
  • Upload date:
  • Size: 66.7 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.3

File hashes

Hashes for bme68x-1.0.3-cp37-cp37m-linux_armv7l.whl
Algorithm Hash digest
SHA256 832d46a855e0170b275292f49fce7206ba4488858d47ab1ab9a15016b7de9a98
MD5 e50c8901ea24f97d6072f191e0d8b53b
BLAKE2b-256 589c7cd00e5d51b718e7d1a04fa611b4d509fefdc5018f757b3a353bad2796bc

See more details on using hashes here.

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