{
  "id": "mattytrentini/micropython-spa06-003",
  "name": "micropython-spa06-003",
  "prettyName": "micropython-spa06-003",
  "description": "MicroPython I2C driver for the Goertek SPA06-003 pressure and temperature sensor",
  "version": "",
  "author": "mattytrentini",
  "license": "MIT",
  "tags": [],
  "status": "VALID",
  "official": false,
  "source": "https://github.com/mattytrentini/micropython-spa06-003",
  "updatedAt": "2026-11-23T03:45:54.153Z",
  "page": "https://checkmim.com/packages/mattytrentini+micropython-spa06-003",
  "createdAt": "2026-11-23T03:45:52.005Z",
  "submittedBy": "Matt",
  "install": {
    "mpremote": "mpremote mip install github:mattytrentini/micropython-spa06-003",
    "mip": "import mip; mip.install(\"github:mattytrentini/micropython-spa06-003\")"
  },
  "readme": "# SPA06-003 for MicroPython\n\nMIT-licensed I²C driver for the Goertek SPA06-003 pressure and temperature\nsensor, as used in the [M5Stack Unit DoF10](https://docs.m5stack.com/en/unit/Unit_DoF10).\nNo dependencies beyond stock MicroPython.\n\n```sh\nmpremote mip install github:mattytrentini/micropython-spa06-003\n```\n\nOn a network-connected device, use `mip.install(\"github:mattytrentini/micropython-spa06-003\")`.\n\nPass an initialized `machine.I2C` or `machine.SoftI2C` bus. The default address\nis `0x76` (Unit DoF10); use `address=0x77` if the sensor is wired for it.\nPower the unit before creating the driver.\n\n```python\nfrom spa06_003 import SPA06_003\n\nsensor = SPA06_003(i2c)\ntemperature_c, pressure_hpa = sensor.read()\nprint(\"{:.2f} °C, {:.2f} hPa\".format(temperature_c, pressure_hpa))\n```\n\n`read()` waits for a new temperature conversion and then an 8× oversampled\npressure conversion. It applies the sensor's factory calibration, including\nSPA06-003's `c31` and `c40` pressure terms. This is not a driver for SPL06-001\nor DPS310. Initialization and conversion waits are bounded.\n\n[SPA06-003 datasheet](https://m5stack-doc.oss-cn-shenzhen.aliyuncs.com/1289/spa06-003.pdf)\n"
}