Erriez / ErriezMHZ19B

Erriez MH-Z19B and MH-Z19C CO2 sensor library for Arduino
https://github.com/Erriez/ErriezArduinoLibrariesAndSketches
MIT License
27 stars 4 forks source link

How you implement Smart warming up function ? #3

Closed MIKHANYA closed 3 years ago

MIKHANYA commented 3 years ago

How you implement Smart warming up function ?

Erriez commented 3 years ago

It is located here:

https://github.com/Erriez/ErriezMHZ19B/blob/8a163d57d587b53571ba1f2a1083de460a505afd/src/ErriezMHZ19B.cpp#L96

A combination of minimum time after power-on and exit warming-up on a CO2 value change.

MIKHANYA commented 3 years ago

Trying to write it on my own, but there is something with data. And I must reset Processor to get true data, actually don't understand how to avoid it

Erriez commented 3 years ago

Did you run the example https://github.com/Erriez/ErriezMHZ19B/tree/master/examples/ErriezMHZ19BGettingStarted ?

MIKHANYA commented 3 years ago

Yes, I use your example, with uncommented "MHZ19B_SMART_WARMING_UP" it works fine