{"id":21519993,"url":"https://github.com/electroniccats/pxt-airquality","last_synced_at":"2025-04-09T22:11:34.470Z","repository":{"id":73402457,"uuid":"148377073","full_name":"ElectronicCats/pxt-airQuality","owner":"ElectronicCats","description":"Maker Code Package for the CCS811 Air Quality Sensor","archived":false,"fork":false,"pushed_at":"2020-09-25T16:54:34.000Z","size":486,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T22:11:28.328Z","etag":null,"topics":["airquality","ccs811","eco2","makecode","microsoft"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ElectronicCats.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-11T20:36:46.000Z","updated_at":"2021-04-24T17:44:48.000Z","dependencies_parsed_at":"2023-03-02T05:16:36.535Z","dependency_job_id":null,"html_url":"https://github.com/ElectronicCats/pxt-airQuality","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElectronicCats%2Fpxt-airQuality","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElectronicCats%2Fpxt-airQuality/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElectronicCats%2Fpxt-airQuality/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElectronicCats%2Fpxt-airQuality/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElectronicCats","download_url":"https://codeload.github.com/ElectronicCats/pxt-airQuality/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119294,"owners_count":21050755,"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":["airquality","ccs811","eco2","makecode","microsoft"],"created_at":"2024-11-24T01:00:53.816Z","updated_at":"2025-04-09T22:11:34.463Z","avatar_url":"https://github.com/ElectronicCats.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ElectronicCats"],"categories":[],"sub_categories":[],"readme":"# airQuality\n\nThis package adds functionality to the CCS811 board. Based in the work of [ADataDate](https://github.com/ADataDate/pxt-airQuality)\n\n### Usage \n\n* The CCS811 Air Quality Sensor can be directly mated to the matching pins (I2C) of the SAMD21 system. \n* I2C is set up so the user needs to start the device, then read the data. \n* The CCS811 sensor takes 20 minutes to burn-in or get meaningful data.\n* The TVOCs are presented as number between 0ppb to 1187ppb. \n* The eCO2 (equivalent CO2) is presented as a number between 400ppm to 8192ppm. \n\n\n### Pins Used \n\n*  --  I2C - SCL\n*  --  I2C - SDA \n\n### Air Quality Data\n \nThe CCS811 air quality sensors communicates via I2C. The data returned as a number can be stored in a variable, displayed on the 5x5 LED Matrix or sent serially to OpenLog.\n* ``|Read eCO2|``block reads the equivalent CO2 and can be any number between 400ppm and 8182ppm. \n* ``|Read TVOCs|``block reads the total organic volatile compounds and can be any number between 0ppb to 1187ppb. \n* ``|Device Error|``block is used while troubleshooting otherwise don't use it. It will return a number corresponding to a specific error on the CCS811.\n* ``|Device Status|``block is used while troubleshooting otherwise don't use it. \n* ``|HWID|``block is used to test the most basic read on the I2C line. Use if you are having probelms establishing communication. \n\n### Example Project:\n\nThe following project will read the eCO2 and TVOCs data. \n\n```blocks\nlet eCO2 = 0\nlet TVOCs = 0\nloop.forever(() =\u003e {\n    TVOCs = airQuality.readTvoc()\n    eCO2 = airQuality.readCo2()\n    loop.pause(1000)\n})\n```\n\n![MakerCode](https://github.com/ElectronicCats/pxt-airQuality/raw/master/example_MakeCodeMaker.png)\n![Microbit](https://github.com/ElectronicCats/pxt-airQuality/raw/master/example_Microbit.png)\n## Maintainer\n\u003ca href=\"https://github.com/sponsors/ElectronicCats\"\u003e\n  \u003cimg src=\"https://electroniccats.com/wp-content/uploads/2020/07/Badge_GHS.png\" height=\"104\" /\u003e\n\u003c/a\u003e\n\nElectronic Cats invests time and resources providing this open source design, please support Electronic Cats and open-source hardware by purchasing products from Electronic Cats!\n\n## License\n\nMIT\n\n## Supported targets\n\n* for PXT/maker\n\n```package\nairQuality\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectroniccats%2Fpxt-airquality","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectroniccats%2Fpxt-airquality","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectroniccats%2Fpxt-airquality/lists"}