# MH-Z14A, MH-Z19B CO2 ... Module
Arduino implementation for MH-Z CO2 sensors such as **MH-Z14A**, **MH-Z19B** and **MH-Z19C** (as I didn't find all info in one place).
The sensor is available for ~20 bucks at the usual places.
## Implementation
See example.
> PPMuart: 602, PPMpwm: 595, Temperature: 23
### Implementation details
```
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
## Usage
By default the PWM range value is set to 5000 and there is no need to change anything in the class constructor (if the Cppm value is in the expected range 400-1000), otherwise you may want to test it with 2000 range value :
```
#include <MHZ.h>
#define CO2_IN 9
#define MH_Z19_RX 10
#define MH_Z19_TX 11
MHZ co2(MH_Z19_RX, MH_Z19_TX, CO2_IN, MHZ19B); // here the range value is set to 5000 by default (RANGE_5K)
MHZ co2(MH_Z19_RX, MH_Z19_TX, CO2_IN, MHZ19B, RANGE_2K); // here the range value is set to 2000
```
## Resources:
Datasheet (MH-Z19B):
http://www.winsen-sensor.com/d/files/infrared-gas-sensor/mh-z19b-co2-ver1_0.pdf
Datasheet (MH-Z19C):
https://pdf1.alldatasheet.com/datasheet-pdf/view/1303687/WINSEN/MH-Z19C.html
More info about the sensor:
https://revspace.nl/MHZ19
## Further reading:
- http://ihormelnyk.com/Page/mh-z19_co2_meter
(russuian, but google translate does a good job)
- https://geektimes.ru/post/285572/
- https://geektimes.ru/post/278178/
没有合适的资源?快使用搜索试试~ 我知道了~
MH-Z 系列二氧化碳 CO2 传感器的 Arduino 实现(智能红外二氧化碳模块)C++
共9个文件
properties:1个
h:1个
license:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
4星 · 超过85%的资源 4 下载量 163 浏览量
2022-07-13
22:04:30
上传
评论 2
收藏 8KB ZIP 举报
温馨提示
MH-Z CO2 传感器的 Arduino 实现,例如MH-Z14A、MH-Z19B和MH-Z19C(因为我没有在一个地方找到所有信息)。 用法 默认情况下,PWM 范围值设置为 5000,并且无需更改类构造函数中的任何内容(如果 Cppm 值在预期范围 400-1000 内),否则您可能需要使用 2000 范围值对其进行测试: 更多详情、使用方法,请下载后细读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
MH-Z-CO2-Sensors-master.zip (9个子文件)
MH-Z-CO2-Sensors-master
MHZ.cpp 9KB
keywords.txt 845B
LICENSE 1KB
library.properties 557B
examples
MH-Z19B
MH-Z19B.ino 1KB
.gitignore 9B
README.md 1KB
MHZ.h 2KB
.gitattributes 66B
共 9 条
- 1
资源评论
- yimucaiyuan2022-10-24啥玩意了这是 #毫无价值
- 徐徐徐徐徐8982024-01-25资源内容详实,描述详尽,解决了我的问题,受益匪浅,学到了。
- m0_743751692022-10-25发现一个宝藏资源,赶紧冲冲冲!支持大佬~
- m0_637700932022-12-14资源很受用,资源主总结的很全面,内容与描述一致,解决了我当下的问题。
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于opencv的dnn模块实现Yolo-Fastest的目标检测python源码+模型+说明(高分项目).zip
- 使用Python调用微信本地ocr服务.zip
- 【精品推荐】人工智能在医疗中的应用.pptx
- 【精品推荐】电子医疗仪器人机接口-(1).ppt
- 【精品推荐】电子医疗仪器人机接口.ppt
- ubuntu镜像ubuntu镜像01
- 基于paddle搭建神经网络实现5种水果识别分类python源码+数据集(高分毕设).zip
- 【精品推荐】电子商务网店类型介绍.ppt
- 基于paddle搭建神经网络实现水果识别分类python源码+数据集(高分项目).zip
- 三菱plc编程口通信学习笔记.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功