Arduino Library
Include Electrochemical-Gas-Sensor-SOLDERED.h from the Electrochemical Gas
Sensor Soldered library, create an ElectrochemicalGasSensor with a sensor
configuration and an address, call begin(), then read with getPPM() or
getPPB(). For an address from 0x30 to 0x37 the library talks to the board's
ATtiny404 bridge.
The library has no preset for this board's SGX-4OX-ROHS oxygen cell yet, so you write the front end's settings yourself. The example page shows where.
Not installed yet? Follow Quick Start before using the functionality pages.
Functionality
Each page starts with one verified library example and explains every function the example uses to get that result.
Arduino exampleRead the sensorStart the board at 0x30 through its ATtiny404 bridge and print a reading every 2.5 seconds.Arduino exampleSingle sensorStart one sensor and print a reading in PPM every 2.5 seconds.Arduino exampleAveraged readingAverage five readings taken three seconds apart and print the result in PPM.Arduino exampleZero-point calibrationAdd a voltage offset to every reading so the sensor reads zero without the target gas.Arduino exampleCustom configurationWrite your own sensorType. The example's values are placeholders; the page says which bias this oxygen cell needs instead.Arduino exampleCustom addressCreate the sensor at an address you choose and print a reading every 2.5 seconds.Arduino exampleTwo sensorsRead two sensors on one I2C bus and print both readings.