MicroPython Library
The Soldered ElectrochemicalGasSensor MicroPython Library reads this board
through its ATtiny404 at addresses 0x30 to 0x37, or, at any other address,
talks to the ADS1115 and the LMP91000 directly. It is three files:
ElectrochemicalGasSensor.py, the driver you import, and ads1115.py and
lmp91000.py, helpers it uses. Install it with:
mpremote mip install github:SolderedElectronics/Soldered-ElectrochemicalGasSensor-MicroPython-Library
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.
MicroPython exampleRead the gas concentrationStart the board at 0x30 with a gas preset and print the concentration in PPM every 2.5 seconds.MicroPython exampleRead one sensor in PPBStart one sensor with a gas preset and print the concentration in PPB every 2.5 seconds.MicroPython exampleAverage several readingsPrint the average of several readings with getAveragedPPB().MicroPython exampleCalibrate the zero pointAdd a zero-point offset with setCustomZeroCalibration().MicroPython exampleConfigure your own cellBuild a SensorConfig from your cell's datasheet instead of a preset.MicroPython exampleRead two sensors on one busCreate one sensor object per board on a shared I2C bus and print both readings in PPB.