MicroPython Library
Create an ElectrochemicalGasSensor with a sensor configuration and an I2C
object, call begin(), then read with getPPM() or getPPB(). The library
installs three files: ElectrochemicalGasSensor.py, ads1115.py and
lmp91000.py.
The module has no preset for this board's SGX-4OX-ROHS oxygen cell yet, so you write the front end's settings yourself. The custom configuration page shows where.
Not installed yet? Follow Quick Start before using the functionality pages.
Functionality
Each page starts with one verified module example and explains every function the example uses to get that result.
MicroPython exampleRead the sensorStart the board at 0x30 through its ATtiny404 bridge and print a reading every 2.5 seconds.MicroPython exampleRead in PPBStart one sensor and print a reading in PPB every 2.5 seconds.MicroPython exampleAveraged readingAverage five readings taken three seconds apart and print the result in PPB.MicroPython exampleZero-point calibrationAdd a voltage offset to every reading so the sensor reads zero without the target gas.MicroPython exampleCustom configurationWrite your own sensor configuration. The example's values are placeholders; the page says which bias this oxygen cell needs instead.MicroPython exampleTwo sensorsRead two sensors on one I2C bus and print both readings in PPB.