mariolukas / Watterott-CO2-Ampel-Plus-Firmware

Firmware for Watterott CO2 Ampel (Plus Version)
GNU General Public License v3.0
15 stars 13 forks source link

Support for variable number of values to mqtt_send_value when using additional external sensors? #48

Open reibuehl opened 2 years ago

reibuehl commented 2 years ago

I am currently working on adding support for additional sensors connected to the Qwiic connector of the CO2 Ampel. The focus will be first to support the Sensirion SGP30 sensor to also allow volatile organic compounds (VOC/TVOC) measurements. As such additional sensors should be optional components, I need a way to send a variable number of values to mqtt_send_value - four for a standard CO2 Ampel and five or more values for a CO2 Ampel with additional external sensors. I am now wondering how to implement this in the best way. Any ideas, recommendations?

allusernamesalreadytaken commented 2 years ago

Sorry for not answering any of your questions but maybe this is somehow helpful:

I was considering something similar and am testing the BMP680. After recording values from the CO2 sensor and the BMP680 for two months I am not sure if the VOC sensor is useful at all (at least for me). (My BMP680 is hooked up to an ESP32 for this).

For me it seems more like a cheaper and less precise indicator to tell some one when to vent.

Have you done some tests already or just starting right now? Would be interested in your results.

Beside the VOC sensor I am also testing the SPS30 (particle sensor) which is in my opinion much more useful.

I attached the last 7 days measurements from both sensors.

Screenshot_20220220_185443 .

reibuehl commented 2 years ago

I have a very simple version of the code with SGP30 support running already but did not yet capture the measurements in a graph yet. We already have a not networked CO2equ and VOC sensor in a different room and I noticed that the TVOC values are quite interesting. The VOC part is interesting for vent warnings in areas where cleaning substances are used, e.g a workshop. Other sensors are of course also interesting and the Sparkfun Qwiic or the compatible Adafruit STEMMA/QT programs contain a number of interesting candidates. I thought about designing a case where the sensor breakout boards could be mounted around the CO2 Ampel board and then to use each of the four LEDs - or at least 2 pairs to show different values.

EDIT: My current changes are in https://github.com/reibuehl/Watterott-CO2-Ampel-Plus-Firmware

allusernamesalreadytaken commented 2 years ago

The VOC part is interesting for vent warnings in areas where cleaning substances are used, e.g a workshop.

Okay that makes totally sens. Thanks.