MicroPython Library
The ElectrochemicalGasSensor module reads the board, with lmp91000.py and
ads1115.py as helper files. Create an ElectrochemicalGasSensor with a
preset and a machine.I2C bus, call begin(), and read the concentration
with getPPM() or getPPB(). The module's preset for this board's SGX-4CO
cell is SENSOR_CO.
Not installed yet? Follow Quick Start before using the functionality pages.
Functionality
Each page starts with one module example and explains every function the
example uses to get that result. The examples use SENSOR_O3, the module's
preset for the ozone cell (electrochemical-customConfig.py builds its own
configuration with the same values); each page says where to put the
SENSOR_CO preset or values for this board's cell.
MicroPython exampleRead the CO concentrationelectrochemical-bridgeBoard.py: start the board at 0x30 and print ppm every 2.5 seconds.MicroPython exampleRead one sensor in ppbelectrochemical-singleSensor.py: one board, a reading in ppb every 2.5 seconds.MicroPython exampleAveraged measurementelectrochemical-averagedMeasurement.py: the average of five readings with getAveragedPPB().MicroPython exampleZero calibrationelectrochemical-calibrateSensor.py: apply a zero offset with setCustomZeroCalibration().MicroPython exampleCustom sensor configurationelectrochemical-customConfig.py: your own SensorConfig instead of a preset.MicroPython exampleTwo sensors on one buselectrochemical-twoSensors.py: two boards on one I2C bus, both read in ppb.