MH-Z-CO2-Sensors/README.md

36 lines
848 B
Markdown
Raw Normal View History

2018-09-04 20:44:22 +00:00
# MH-Z14A, MH-Z19B CO2 ... Module
2018-04-22 09:51:44 +00:00
2018-09-04 20:43:56 +00:00
Arduino implementation for MH-Z CO2 sensors such as **MH-Z14A**, **MH-Z18B** (as I didn't find all info in one place).
2018-04-22 09:51:44 +00:00
The sensor is available for ~20 bucks at the usual places.
2018-09-04 21:45:04 +00:00
## Implementation
See example.
2018-04-22 09:51:44 +00:00
2018-09-04 21:45:04 +00:00
> PPMuart: 602, PPMpwm: 595, Temperature: 23
2018-04-22 09:51:44 +00:00
2018-09-04 21:45:04 +00:00
### Implementation details
2018-04-22 09:51:44 +00:00
2018-04-22 10:11:58 +00:00
```
C ppm = 5000 * (T_high - 2 ms) / (T_high + T_low - 4ms)
```
2018-04-22 09:51:44 +00:00
The implementation is mostly based on https://forum.arduino.cc/index.php?topic=525459.msg3587557#msg3587557
2018-09-04 21:45:04 +00:00
## 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
2018-04-22 09:51:44 +00:00
## Further reading:
- http://ihormelnyk.com/Page/mh-z19_co2_meter
(russuian, but google translate does a good job)
- https://geektimes.ru/post/285572/
2018-09-04 20:43:56 +00:00
- https://geektimes.ru/post/278178/