Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CO2 sensor support to SMIBHID #275

Open
sjefferson99 opened this issue Mar 3, 2025 · 3 comments · May be fixed by #276
Open

Add CO2 sensor support to SMIBHID #275

sjefferson99 opened this issue Mar 3, 2025 · 3 comments · May be fixed by #276
Assignees
Labels
🔮 enhancement New feature or request 👁 smib-hid SMIBHID related code
Milestone

Comments

@sjefferson99
Copy link
Member

For SMIBHIDs used to drive air filters from space state - add optional CO2 monitor support using Adafruit SCD-30: https://shop.pimoroni.com/products/adafruit-scd-30-ndir-co2-temperature-and-humidity-sensor-stemma-qt-qwiic?variant=32383256035411
Log and record CO2 values every minute and store locally as a rolling window, return from co2 API endpoint.
This can allow a simple web query to ascertain current and recent air quality trend using CO2 as a proxy for other contaminants to understand if the filter is performing relative to occupant count and fresh air sources.

Would allow for support in future enhancements such as:

  • Pushing data to be logged long term on SMIB for access via the mongoDB or slack command
  • Output to a local display to remove need for phone/computer to query API for current reading
  • Ability to set a CO2 alarm threshold with buzzer or speaker, button could be provided for alarm snooze
@sjefferson99 sjefferson99 added 👁 smib-hid SMIBHID related code 🔮 enhancement New feature or request labels Mar 3, 2025
@sjefferson99 sjefferson99 self-assigned this Mar 3, 2025
@sjefferson99 sjefferson99 added this to the SMIB v1.4 milestone Mar 3, 2025
@sjefferson99 sjefferson99 linked a pull request Mar 7, 2025 that will close this issue
@sjefferson99
Copy link
Member Author

In development I have opted to go for API presentation over local storage for the MVP feature. Although an async loop is provided that logs the outputs to the console every 5 seconds as a PoC.
It is also built against the SGP30 as I did not have SCD-30 to hand, however the sensor framework is easily extensible and the SGP-30 driver can be added easily on a future enhancement.

@sjefferson99
Copy link
Member Author

Created #277 for local logging functionality.

@sjefferson99
Copy link
Member Author

Created new issues for each of the ideas above to develop from this feature so this can be closed on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔮 enhancement New feature or request 👁 smib-hid SMIBHID related code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant