mirror of
https://github.com/sigmasternchen/MH-Z-CO2-Sensors
synced 2025-03-15 06:38:55 +00:00
No description
![]() The Arduino IDE requires the sketch folder name to match the filename of the primary sketch file. This change causes the example sketch to be accessible via the Arduino IDE's File > Examples > LIBRARYNAME menu after the library is installed. Reference: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#library-examples |
||
---|---|---|
examples/MH-Z19B | ||
.gitattributes | ||
.gitignore | ||
keywords.txt | ||
LICENSE | ||
MHZ.cpp | ||
MHZ.h | ||
README.md |
MH-Z19B CO2 Module
Arduino implementation for the MH-Z19B sensor (as I didn't find all info in one place). The sensor is available for ~20 bucks at the usual places.
Resources:
Datasheet: http://www.winsen-sensor.com/d/files/infrared-gas-sensor/mh-z19b-co2-ver1_0.pdf
More info about the sensor: https://revspace.nl/MHZ19
Implementation
C ppm = 5000 * (T_high - 2 ms) / (T_high + T_low - 4ms)
The implementation is mostly based on https://forum.arduino.cc/index.php?topic=525459.msg3587557#msg3587557
Further reading:
(russuian, but google translate does a good job)