adafruit_sgp30
I2C driver for SGP30 Sensirion VoC sensor
Author(s): ladyada
Hardware:
Adafruit SGP30 Air Quality Sensor Breakout - VOC and eCO2 (Product ID: 3709)
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
A driver for the SGP30 gas sensor.
Quickstart: Importing and using the SGP30 temperature sensor
Here is one way of importing the
Adafruit_SGP30
class so you can use it with the namesgp30
. First you will need to import the libraries to use the sensorimport busio import board import adafruit_sgp30Once this is done you can define your
busio.I2C
object and define your sensor objecti2c = busio.I2C(board.SCL, board.SDA, frequency=100000) sgp30 = adafruit_sgp30.Adafruit_SGP30(i2c)Now you have access to the Carbon Dioxide Equivalent baseline using the
baseline_eCO2
attribute and the Total Volatile Organic Compound baseline using thebaseline_TVOC
eCO2 = sgp30.baseline_eCO2 TVOC = sgp30.baseline_TVOC
Ethanol Raw Signal in ticks
H2 Raw Signal in ticks
Total Volatile Organic Compound in parts per billion.
Total Volatile Organic Compound baseline value
Carbon Dioxide Equivalent baseline value
Carbon Dioxide Equivalent in parts per million
Retreive the IAQ algorithm baseline for eCO2 and TVOC
Initialize the IAQ algorithm
Measure the eCO2 and TVOC
Measure H2 and Ethanol (Raw Signals)
Set the previously recorded IAQ algorithm baseline for eCO2 and TVOC
Set the humidity in g/m3 for eCO2 and TVOC compensation algorithm
Set the humidity in g/m3 for eCo2 and TVOC compensation algorithm. The absolute humidity is calculated from the temperature (Celsius) and relative humidity (as a percentage).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4