Iduino ME079 User guide

Page 1
IDUINO for maker’s life
User Manual
For
MQ-5 Smoke Gas Detector Sensor
Module For Arduino (ME079)
www.openplatform.cc
Page 2
IDUINO for maker’s life
Description:
The MQ5 is used in gas leakage detecting equipment in consumer and industry applications,this sensor is suitable for detecting LPG, natural gas, coal gas. Avoid the noise of alcohol, cooking fumes and cigarette smoke. The sensitivity can be adjusted by the potentiometer.
Specification
Specification: Power supply needs: 5V Interface type: Analog High sensitivity to LPG, natural gas, town gas Small sensitivity to alcohol, smoke Fast response Stable and long life
Simple drive circuit
www.openplatform.cc
Page 3
IDUINO for maker’s life
Pin
Description
Vcc
Power supply 5V/DC
Gnd
Ground
D0
Digital output pin
A0
Analog output pin
PinOut
Example
In this example, we use the analog output pin A0 to sense the change of environment gas concentration. And output corresponding voltage between 0~5 V.
Wire connection as below:
Vcc-------------5V
Gnd-------------Gnd
A0--------------A0
********Code Begin*********
void setup() {
Serial.begin(9600);
}
void loop() {
float sensor_volt;
float sensorValue;
sensorValue = analogRead(A0);
sensor_volt = sensorValue/1024*5.0;
Serial.print("sensor_volt = ");
Serial.print(sensor_volt);
Serial.println("V");
delay(1000); }
********Code End*********
www.openplatform.cc
Page 4
IDUINO for maker’s life
www.openplatform.cc
Loading...