{"id":20129633,"url":"https://github.com/gaveshalabs/ags10_sensor","last_synced_at":"2025-10-28T01:43:22.122Z","repository":{"id":204542992,"uuid":"712072108","full_name":"gaveshalabs/AGS10_sensor","owner":"gaveshalabs","description":"Micropython library for the AGS10 Volatile Organic Compounds sensor","archived":false,"fork":false,"pushed_at":"2023-10-30T19:56:58.000Z","size":441,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T08:44:20.613Z","etag":null,"topics":["gas-sensors","i2c-sensors","micropython","python","tvoc","tvoc-sensor"],"latest_commit_sha":null,"homepage":"","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/gaveshalabs.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,"governance":null}},"created_at":"2023-10-30T18:27:29.000Z","updated_at":"2024-05-13T14:54:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"55d4df20-c44c-44d8-948c-6139bab716cf","html_url":"https://github.com/gaveshalabs/AGS10_sensor","commit_stats":null,"previous_names":["gaveshalabs/ags10_sensor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaveshalabs%2FAGS10_sensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaveshalabs%2FAGS10_sensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaveshalabs%2FAGS10_sensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaveshalabs%2FAGS10_sensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaveshalabs","download_url":"https://codeload.github.com/gaveshalabs/AGS10_sensor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241573812,"owners_count":19984544,"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":["gas-sensors","i2c-sensors","micropython","python","tvoc","tvoc-sensor"],"created_at":"2024-11-13T20:35:22.628Z","updated_at":"2025-10-28T01:43:17.076Z","avatar_url":"https://github.com/gaveshalabs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AGS10 sensor\nMicropython library for the AGS10 TVOC sensor\n\n## I2C\n\n### Pin layout\n\n|  Pin  |   Name  | Description  |\n|:-----:|:--------|:-------------|\n|   1   |   SCL   | Serial clock |\n|   2   |   SDA   | Serial data  |\n|   3   |   GND   | Ground       |\n|   4   |   VCC   | Power supply |\n\n\u003e ## Warning!\n\u003e\n\u003e - The sensor uses I2C at low speed. It should be LESS than 15kHz. \n\u003e\n\u003e - The datasheet advices against frequent measurements. Specially whne TVOC measurements cannot be performed frequently. Doing so will deteriorate the sensor quickly.\n\u003e\n\u003e - There should be at least 1.5s delay between two successive measurements\n\n## Example\n```py\nfrom ags10 import AGS10\nfrom machine import I2C\nfrom time import sleep_ms\n\n# Init\nsensor = AGS10(I2C(0, freq=10000))\n\n# Enable to perform CRC check for measurements\nsensor.check_crc = True\n\n# Measure TVOC in parts per billion\ntvoc = sensor.total_volatile_organic_compounds_ppb\n\n# wait before the next command to the sensor\nsleep_ms(2000)\n\n# Measure resistance in kohms\nresistance = sensor.resistance_kohm\n\n# Re-calibrate zero point.\n# Set the resistance in kohms in virtual memory.\n# Needs at least 15 min exposure in fresh air before calibration.\nsensor.zero_point_calibrate(resistance)\nsleep_ms(30)\n\n# Reset zero point to factory defaults\nsensor.zero_point_factory_reset()\nsleep_ms(30)\n\n# Update I2C address\nsensor.update_address(126)\n```\n\n## Support\n\nYou can always improve the quality of the libraries by providing issues and Pull Requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaveshalabs%2Fags10_sensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaveshalabs%2Fags10_sensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaveshalabs%2Fags10_sensor/lists"}