简介
MQ4 用于消费和工业市场的气体泄漏检测设备,该传感器适用于检测 CH4、天然气、液化天然气,避免接触酒精、烹饪油烟和香烟烟雾。灵敏度可通过电位器调节。
Specification
- 供电规格: 5V DC
- 输出信号: 模拟电压
- 引脚定义: 1-Output 2-VCC 3-GND
- 对 CH4 的高灵敏度:天然气
- 对酒精、烟雾有低敏感性
- 快速响应
- 稳定,寿命长
- 驱动电路简单
- 尺寸: 40x20mm
引脚定义
- Signal Output
- Power
- GND
电位器
电位计用于校准该传感器的读数,如数据手册所述:
SENSITVITY ADJUSTMENT
Resistance value of MQ-4 is difference to various kinds and various concentration gases. So,When using this components, sensitivity adjustment is very necessary. we recommend that you calibrate the detector for 5000ppm of CH4 concentration in air and use value of Load resistance ( RL) about 20KΩ(10KΩ to 47KΩ). When accurately measuring, the proper alarm point for the gas detector should be determined after considering the temperature and humidity influence.
连线示意图
示例代码
///Arduino Sample Code
void setup()
{
Serial.begin(9600); //Set serial baud rate to 9600 bps
}
void loop()
{
int val;
val=analogRead(0);Read Gas value from analog 0
Serial.println(val,DEC);//Print the value to serial port
delay(100);
}