MicroPython Library
The ElectrochemicalGasSensor module reads this board. It imports two helper
files, ads1115.py and lmp91000.py, so both must be on the board as well.
This board's chlorine cell has the preset SENSOR_CL2, and the board answers
at 0x30 as shipped.
Not installed yet? Follow Quick Start before using the functionality pages.
Functionality
Each page shows one of the module's examples as the module has it and explains every function the example uses.
MicroPython exampleRead chlorineStart the board at 0x30 and print the concentration in ppm every 2.5 s.MicroPython exampleAveraged measurementAverage five readings with one function call.MicroPython exampleZero calibrationSet the zero offset in clean air.MicroPython exampleCustom configurationWrite your own cell configuration and LMP91000 settings.MicroPython exampleSingle sensorRead one sensor and print the concentration in ppb every 2.5 s.MicroPython exampleTwo sensorsCreate two sensor objects on one I2C bus and print both readings in ppb.