{
  "id": "solderedelectronics/Soldered-ElectrochemicalGasSensor-MicroPython-Library",
  "name": "Soldered-ElectrochemicalGasSensor-MicroPython-Library",
  "prettyName": "Soldered-ElectrochemicalGasSensor-MicroPython-Library",
  "description": "MicroPython library for Soldered's electrochemical gas sensor breakout.",
  "version": "",
  "author": "solderedelectronics",
  "license": "GPL-3.0",
  "tags": [
    "gas",
    "i2c",
    "qwiic",
    "sensor"
  ],
  "status": "VALID",
  "official": false,
  "source": "https://github.com/solderedelectronics/Soldered-ElectrochemicalGasSensor-MicroPython-Library",
  "updatedAt": "2026-08-18T12:19:43.053Z",
  "page": "https://checkmim.com/packages/solderedelectronics+Soldered-ElectrochemicalGasSensor-MicroPython-Library",
  "createdAt": "2026-08-18T12:19:40.309Z",
  "submittedBy": "SolderedElectronics",
  "install": {
    "mpremote": "mpremote mip install github:solderedelectronics/Soldered-ElectrochemicalGasSensor-MicroPython-Library",
    "mip": "import mip; mip.install(\"github:solderedelectronics/Soldered-ElectrochemicalGasSensor-MicroPython-Library\")"
  },
  "readme": "# Soldered ElectrochemicalGasSensor MicroPython Library\n\n| ![Electrochemical Gas Sensor Breakout](https://docs.soldered.com/assets/images/333329-5262cc862fc22576d5d8ab149fac4b9f.webp) |\n| :--------------------------------------------------------------------------------------------------------------------------------: |\n|                       [Electrochemical Gas Sensor Breakout](https://www.solde.red/333218)                        |\n\nThis library drives Soldered's high-precision electrochemical gas sensor breakout, built around TI's LMP91000 programmable analog front-end (potentiostat) and an ADS1115 16-bit ADC. The breakout accepts swappable SGX electrochemical gas sensor cells and communicates over I2C/Qwiic, with both analog and digital (I2C) output. Two board variants exist: a direct-wired board and an ATtiny-based bridge board (I2C address 0x30-0x37) for daisy-chaining; the driver auto-detects which one is present. Confirmed sensor cell variants:\n\n| Gas | Sensor | SKU |\n| --- | --- | --- |\n| CO | SGX-4CO | 333328 |\n| H₂S | SGX-4H2S-100 | 333331 |\n| NO₂ | SGX-4NO2 | 333326 |\n| NO | SGX-4NO-250 | 333327 |\n\n## How to install\n\n---\n\nAfter [**installing the mpremote package**](https://docs.micropython.org/en/latest/reference/mpremote.html), install the library on your board using the following command:\n\n```sh\n  mpremote mip install github:SolderedElectronics/Soldered-ElectrochemicalGasSensor-MicroPython-Library\n```\nOr, if you're running a Windows OS:\n\n```sh\n  python -m mpremote mip install github:SolderedElectronics/Soldered-ElectrochemicalGasSensor-MicroPython-Library\n```\n\n### Repository Contents\n\n- **ElectrochemicalGasSensor.py** - MicroPython driver class (direct-wired + ATtiny bridge board)\n- **lmp91000.py**, **ads1115.py** - internal helper drivers (analog frontend, ADC) used by ElectrochemicalGasSensor.py\n- **package.json** - mip install manifest\n- **/Examples** - single sensor, two sensors, bridge board, averaged measurement, calibration, and custom-config examples\n\n### Hardware design\n\nYou can find hardware design for this board in the electrochemical gas sensor hardware repository.\n\n### Documentation\n\nAccess library documentation [here](https://docs.soldered.com).\n\n### About Soldered\n\n![Soldered Logo](https://raw.githubusercontent.com/SolderedElectronics/Soldered-Generic-Arduino-Library/dev/extras/Soldered-logo-color.png)\n\nAt Soldered, we design and manufacture a wide selection of electronic products to help you turn your ideas into acts and bring you one step closer to your final project. Our products are intented for makers and crafted in-house by our experienced team in Osijek, Croatia. We believe that sharing is a crucial element for improvement and innovation, and we work hard to stay connected with all our makers regardless of their skill or experience level. Therefore, all our products are open-source. Finally, we always have your back. If you face any problem concerning either your shopping experience or your electronics project, our team will help you deal with it, offering efficient customer service and cost-free technical support anytime. Some of those might be useful for you:\n\n- [Web Store](https://www.soldered.com/shop)\n- [Tutorials & Projects](https://soldered.com/learn)\n- [Documentation](https://docs.soldered.com)\n\n### Open-source license\n\nSoldered invests vast amounts of time into hardware & software for these products, which are all open-source. Please support future development by buying one of our products.\n\nCheck license details in the LICENSE file. Long story short, use these open-source files for any purpose you want to, as long as you apply the same open-source licence to it and disclose the original source. No warranty - all designs in this repository are distributed in the hope that they will be useful, but without any warranty. They are provided \"AS IS\", therefore without warranty of any kind, either expressed or implied. The entire quality and performance of what you do with the contents of this repository are your responsibility. In no event, Soldered (TAVU) will be liable for your damages, losses, including any general, special, incidental or consequential damage arising out of the use or inability to use the contents of this repository.\n\n## Have fun!\n\nAnd thank you from your fellow makers at Soldered Electronics.\n"
}