{"id":16064691,"url":"https://github.com/eldruin/iaq-core-rs","last_synced_at":"2025-07-20T22:06:29.527Z","repository":{"id":62440450,"uuid":"231417503","full_name":"eldruin/iaq-core-rs","owner":"eldruin","description":"Platform agnostic Rust driver for the iAQ-Core gas sensors for monitoring indoor air quality","archived":false,"fork":false,"pushed_at":"2021-09-06T12:46:43.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-09T13:58:08.653Z","etag":null,"topics":["air","air-quality-sensor","co2","driver","embedded","embedded-hal-driver","gas","i2c","indoor","quality","rust","sensor","voc"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eldruin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-02T16:19:01.000Z","updated_at":"2024-08-16T19:34:16.000Z","dependencies_parsed_at":"2022-11-01T21:49:57.655Z","dependency_job_id":null,"html_url":"https://github.com/eldruin/iaq-core-rs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eldruin/iaq-core-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldruin%2Fiaq-core-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldruin%2Fiaq-core-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldruin%2Fiaq-core-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldruin%2Fiaq-core-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldruin","download_url":"https://codeload.github.com/eldruin/iaq-core-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldruin%2Fiaq-core-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266205371,"owners_count":23892453,"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":["air","air-quality-sensor","co2","driver","embedded","embedded-hal-driver","gas","i2c","indoor","quality","rust","sensor","voc"],"created_at":"2024-10-09T05:09:09.446Z","updated_at":"2025-07-20T22:06:29.509Z","avatar_url":"https://github.com/eldruin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust iAQ-Core Indoor Air Quality Sensor Driver\n\n[![crates.io](https://img.shields.io/crates/v/iaq-core.svg)](https://crates.io/crates/iaq-core)\n[![Docs](https://docs.rs/iaq-core/badge.svg)](https://docs.rs/iaq-core)\n[![Build Status](https://github.com/eldruin/iaq-core-rs/workflows/Build/badge.svg)](https://github.com/eldruin/iaq-core-rs/actions?query=workflow%3ABuild)\n[![Coverage Status](https://coveralls.io/repos/github/eldruin/iaq-core-rs/badge.svg?branch=master)](https://coveralls.io/github/eldruin/iaq-core-rs?branch=master)\n\nThis is a platform agnostic Rust driver for the iAQ-Core indoor air quality sensors\nusing the [`embedded-hal`] traits.\n\nThis driver allows you to:\n- Read all the sensor data at once. See: `data()`.\n- Read the CO2 equivalent prediction value in ppm. See: `co2()`.\n- Read the TVOC equivalent prediction value in ppb. See: `tvoc()`.\n- Read the sensor resistance in Ohm. See: `resistance()`.\n\n\u003c!-- TODO\n[Introductory blog post]()\n--\u003e\n\nThe ams iAQ-core Indoor Air Quality Module is a low-cost, ultracompact\nsolution for detecting poor air quality. It is equipped with an MOS sensor\nelement for the detection of a broad range of reducing gases such as CO\nand VOCs. A change of resistance in the presence of these gases generates\na signal that is translated into parts per million (ppm) CO2 equivalent or\nparts per billion (ppb) TVOC equivalent units.\n\nWhen defined threshold limits are exceeded, the module signals the system\nto initiate activities such as increasing ventilation, releasing fragrance,\nproviding a message to open a window, switching on an air cleaner, etc.\nWhen VOC levels are minimized, the module instructs the system to return\nto standby, thereby saving energy, lowering operating costs and maintaining\na healthy environment.\n\nIn any demand-controlled ventilation/actuation environment where air\nquality is important, including commercial and residential facilities\n(offices, classrooms, kitchens, bathrooms, living and bedrooms etc.)\nthe iAQ-core Indoor Air Quality Module performs accurately and reliably.\nPlus, the module’s small size opens up a wide variety of new applications\nwhere space is at a premium.\n\nDocumentation:\n- [Datasheet](https://ams.com/documents/20143/36005/iAQ-core_DS000334_1-00.pdf)\n- [Factsheet](https://ams.com/documents/20143/36005/iAQ-core_FS000136_1-00.pdf)\n\n## Usage\n\nTo use this driver, import this crate and an `embedded_hal` implementation,\nthen instantiate the device.\n\nPlease find additional examples using hardware in this repository: [driver-examples]\n\n[driver-examples]: https://github.com/eldruin/driver-examples\n\n```rust\nuse iaq_core::IaqCore;\nuse linux_embedded_hal::I2cdev;\nuse nb::block;\n\nfn main() {\n    let dev = I2cdev::new(\"/dev/i2c-1\").unwrap();\n    let mut sensor = IaqCore::new(dev);\n    loop {\n        let data = block!(sensor.data()).unwrap();\n        println!(\"CO2: {} ppm, TVOC: {} ppb\", data.co2, data.tvoc);\n    }\n}\n```\n\n## Support\n\nFor questions, issues, feature requests, and other changes, please file an\n[issue in the github project](https://github.com/eldruin/iaq-core-rs/issues).\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or\n   http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or\n   http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contributing\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\n[`embedded-hal`]: https://github.com/rust-embedded/embedded-hal\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldruin%2Fiaq-core-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldruin%2Fiaq-core-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldruin%2Fiaq-core-rs/lists"}