{"id":13802488,"url":"https://github.com/agners/micropython-sgp40","last_synced_at":"2025-05-09T02:37:31.369Z","repository":{"id":57441516,"uuid":"309170273","full_name":"agners/micropython-sgp40","owner":"agners","description":"MicroPython I2C driver for SGP40 VOC sensor module","archived":false,"fork":false,"pushed_at":"2020-11-01T19:22:09.000Z","size":3,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T11:43:46.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agners.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-01T19:20:37.000Z","updated_at":"2025-02-14T04:22:04.000Z","dependencies_parsed_at":"2022-09-06T02:21:46.858Z","dependency_job_id":null,"html_url":"https://github.com/agners/micropython-sgp40","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agners%2Fmicropython-sgp40","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agners%2Fmicropython-sgp40/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agners%2Fmicropython-sgp40/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agners%2Fmicropython-sgp40/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agners","download_url":"https://codeload.github.com/agners/micropython-sgp40/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253178659,"owners_count":21866583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T00:01:45.585Z","updated_at":"2025-05-09T02:37:31.337Z","avatar_url":"https://github.com/agners.png","language":"Python","readme":"# Sensirion SGP40 VOC Sensor I2C driver for MicroPython\n\nSensirion SGP40 is a digital VOC (volatile organic compound) sensor. This\nis a I2C driver written in Python 3 for MicroPython.\n\n## Getting Started\n\n### Prerequisites\n\n* Sensirion SGP40 Sensor Module\n* MicroPython board with I2C interface\n\n### Wiring\n\nWire the I2C bus to the I2C bus on your MicroPython board. This is an example\nusing the Pyboard D:\n\n| Pyboard       | SGP40         |\n| ------------- |---------------|\n| X15 (3V3)     | VDD           |\n| X14 (GND)     | GND           |\n| X9            | SCL           |\n| X10           | SDA           |\n\n### Usage\n\nThis example reads the measurements in a continous loop:\n\n```\nimport time\nfrom machine import I2C, Pin\nfrom sgp40 import SGP40\n\ni2cbus = I2C(1)\nsgp40 = SGP40(i2c, 0x59)\n\nwhile True:\n    sgp40.measure_raw()\n    time.sleep(1)\n```\n\nThis returns raw data from the sensor. The data is meant to be processed by\nthe Sensirion specific VOC Algorithm, which returns air quality reflected by\nan index.\n\n## Built With\n\n* [MicroPython](http://micropython.org/)\n* [SGP40 Sensor Module](https://www.sensirion.com/en/environmental-sensors/gas-sensors/sgp40/)\n\n## License\n\nThis project is licensed under the MIT License - see the\n[LICENSE](LICENSE) file for details\n\n","funding_links":[],"categories":["Libraries"],"sub_categories":["Sensors"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagners%2Fmicropython-sgp40","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagners%2Fmicropython-sgp40","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagners%2Fmicropython-sgp40/lists"}