(SKU:RB-02S016)MQ-3 Gas Sensor(ethanol)
Contents |
overview
- now the environmental awareness of society deeply masses, environmental protection for now most of the pursuit of life taste of the people demand more and more. Therefore, the development of green products has become the major companies in the pursuit of goals. 2013 latest MQ-X series of gas sensor is adapted to the market demand and design, the smoke sensor uses mq-2 gas sensing element and can be very sensitive detection to the air in the smoke, and methane gas. Through the 3P sensor connecting wire can be directly plugged into the Arduino sensor expansion board through the Arduino mega168 programming controller is easy to use, combined with buzzer module and a relay module, smoke alarm, methane leakage alarm, automatic smoke row fan and other products can be produced, the indoor air to reach the ideal sensor of environmental standards.
Technical parameters and performance
- heating voltage: 5 + 0.2V (AC or DC)
- loop voltage: 10V (DC 24V)
- load resistance: 5K (adjustable)
- clean air voltage: less than 1.5V
- sensitivity: 3
- response time: less than 10S
- recovery time: less than 30S
- components: power consumption less than 0.7W
- service life: 5 years
- module size: 20.5mm * 41mm
- weight: 7g
Note: this sensor is equipped with a sensitivity adjustment potentiometer: clockwise adjustment of large, counter clockwise. By adjusting the sensitivity of the smoke sensor, a satisfactory smoke concentration fan can be obtained.
using method
Pin definition
The sensor pin is defined as
- S: output signal
- +: power supply (VCC)
- -: (GND)
Connect Icon
Installation method
Step 1: wiring.
- S port is connected to the I/O port of the controller. +, - received +5V and GND.
Step two: fixed. According to the passage diameter: 3 connecting pieces (screws, bolts, cylinders etc.) are fixed.
Application Routine
- we use the Arduino controller to do a test, the internal Arduino 10 AD sampling circuit, the use is very convenient, the program is also very simple. Need to use hardware equipment as follows:
- controller Arduino * 1
The Arduino sensor # expansion board * 1
- MQ-2 gas sensor module * 1
- general 3P sensor cable * 2
- USB data communication line x 1
As shown in figure, the gas sensor belongs to the analog sensor, using the sensor connecting line to connect the gas sensor to the simulation interface of the Arduino sensor expansion board 0. Because of the large power consumption of the gas sensor, if the long time use, it is recommended that the whole system uses external power supply. Download the sample program to the Arduino controller and monitor it.
Sample code
int Buzzer=8; //定义数字口8为Buzzer(蜂鸣器) void setup() { pinMode(Buzzer,OUTPUT); //定义数字口8为输出模式 Serial.begin(9600); } void loop() { int val; val=analogRead(0); Serial.println(val,DEC); while(val<500) { digitalWrite(Buzzer,HIGH); //蜂鸣器不响 val=analogRead(0); Serial.println(val,DEC); } digitalWrite(Buzzer,LOW); //蜂鸣器响 }
Program effect
Code function is, by simulating the mouth 0 collection gas sensor signal, and then output to a computer via a serial port, we can see the results using a serial port assistant. We set when a serial port on the numerical value is less than 500 buzzer alarm, buzzer alarm when more than 500. According to the internal gas sensor structure, plus electric, need to wait for 1 minute after preheating can be measured, can feel the temperature of the probe has obvious after preheating. Beneath the alcohol test, put the alcohol on the probe, the probe will be detected, we through a serial port assistants observed data (note: we use alcohol tested data are for reference only).
Product recommendation
Buy address:MQ-2 Gas Sensor