Simon Albinsson 5a3bfcfd3d removes unneccesary bind
There is no point in binding rw-function to the right bus-object if we
are already in an object that is bound to a bus.
2018-04-16 12:43:45 +00:00
2018-04-16 12:43:45 +00:00
2018-04-16 12:39:39 +00:00
2018-03-17 22:23:53 +01:00
2018-04-12 15:32:43 +00:00
2018-04-12 21:11:46 +00:00
2018-04-07 22:23:17 +00:00

RPI_SGP30

Program to read eCO_2 and TVOC from the SGP30 sensor. Based on the smbus2 i2c library for ease of use.

It currently lacks support for many features features and is more of a crude demo than a proper library.

Features that are known to be missing (listing in rough order of importance):

  • Proper structuring of the code
  • CRC support
  • reading raw-values

If you have the AdaFruit board with built in level shifters and voltage regulator it is should work if you just plug in SDA to pin 3, SCL to pin 5, VCC to pin 17 and GND to pin 20. You should then be able to find the SGP30 an address 0x58 using i2cdetect -y 1. If you get an error message you probbably need to enable i2c in the kernel using raspi-config and reboot

After 12 hours of run time the base-line data is saved once every hour as per the "device driver integration guide". The data is saved as json to ~/sgp_config_data.txt

Description
Python library for reading eCO2 and TVOC from the Sensirion SGP30
Readme MIT 88 KiB
Languages
Python 100%