melkati / CO2-Gadget

An advanced CO2 Monitor/Meter firmware for ESP32 with Android and iOS App for real time visualization and charting of air data, data logger, a variety of communication options (BLE, WIFI, MQTT, ESP-Now) and many supported sensors.
https://emariete.com/medidor-co2-gadget/
GNU General Public License v3.0
60 stars 13 forks source link

Add and test CO2 sensors others than SCD30 and SCD4x #43

Closed melkati closed 2 years ago

melkati commented 2 years ago

TODO

freddujour commented 2 years ago

Hi,

I have successfully tested the MHZ19 sensor. Found out how to proceed by modifying CO2_Gadget_Sensors.h Changing line 74 with : sensors.init(sensors.Mhz19);

Keep going, it is a very nice project.

melkati commented 2 years ago

Hi Frédéric.

Thank you very much. :-)

You don't need to modify the source code to select different sensors.

Just:

After each "Enter" give CO2 Gadget some time to try to init the sensor (one-two seconds), you will notice the menu unresponsive during this time. This is something I want to improve before releasing this feature.

image

Done!

I'll merge this feature in master branch as soon as I make some improvements (as the delay in menu) and do some more tests.

You are more than welcome to test this branch as I already tested this feature with Senseair S8 and Cubic CM1106 but not with MH-Z19. Thank you!

melkati commented 2 years ago

Released as v0.5.001

@freddujour