Arduino Library
The Electrochemical Gas Sensor Soldered library reads the board through its
ATtiny404 bridge when you give it an address from 0x30 to 0x37. At any other
address it skips the bridge and talks to the ADS1115 and LMP91000 directly.
Include Electrochemical-Gas-Sensor-SOLDERED.h, create an
ElectrochemicalGasSensor with the SENSOR_CO preset and the board's address
(0x30 by default), call begin(), and read the concentration with getPPM().
Not installed yet? Follow Quick Start before using the functionality pages.
Functionality
Each page starts with one library example and explains every function the
example uses to get that result. Some examples use another cell's preset;
their pages say where to put SENSOR_CO, the preset for this board's cell.
Arduino exampleRead the CO concentrationbridgeBoard.ino: start the board at 0x30 with SENSOR_CO and print ppm every 2.5 seconds.Arduino exampleRead one sensorsingleSensor.ino: one board with SENSOR_CO, a reading in ppm every 2.5 seconds.Arduino exampleAveraged measurementaveragedMeasurement.ino: the average of five readings with getAveragedPPM().Arduino exampleZero calibrationcalibrateSensor.ino: apply a zero offset with setCustomZeroCalibration().Arduino exampleCustom addresscustomAddress.ino: create the sensor at an address other than the default.Arduino exampleCustom sensor configurationcustomConfig.ino: your own sensorType instead of a preset.Arduino exampleTwo sensors on one bustwoSensors.ino: two boards on one I2C bus, one read in ppm and one in ppb.