Professional Documents
Culture Documents
GAS SENSOR
GAS SENSOR
www.researchdesignlab.com
Page 1
REV1.0
GAS SENSOR
Contents
OVERVIEW ................................................................................................................................... 3
GAS SENSOR ............................................................................................................................ 3
FEATURES ................................................................................................................................ 3
BLOCK DIAGRAM ................................................................................................................... 4
APPLICATIONS ........................................................................................................................ 4
STRUCTURE AND CONFIGURATION OF GAS SENSOR(MQ2) ....................................... 4
CONNECTION DIAGRAM ...................................................................................................... 5
ARDUINO CODE ...................................................................................................................... 6
BOARD DIMENSIONS ............................................................................................................. 7
RELATED PRODUCTS ............................................................................................................ 8
www.researchdesignlab.com
Page 2
REV1.0
GAS SENSOR
OVERVIEW
GAS SENSOR
The liquefied Petroleum Gas (LPG) sensor is suitable for sensing LPG (composed of mostly
propane and butane) concentration in the air. This can be used in Gas Leakage Detection
equipment for detecting the ISO-butane, Propane, LNG combustible Gases. If output goes above
the preset range, indication will be shown as high otherwise it will remain in idle condition.
FEATURES
www.researchdesignlab.com
Page 3
REV1.0
GAS SENSOR
BLOCK DIAGRAM
APPLICATIONS
Used in gas leakage detecting equipments in family and industry.
Suitable for detecting of LPG, iso-butane, propane, LNG.
Avoid the noise of alcohol and cooking fumes and cigarette smoke.
The Gas sensor composed by micro AL2O3 ceramic tube, Tin Dioxide (SnO2) sensitive layer,
measuring electrode and heater are fixed into a crust made by plastic and stainless steel net. The
heater provides necessary work conditions for work of sensitive components. The enveloped
MQ-2 have 6 pin, 4 of them are used to fetch signals, and other 2 are used for providing heating
current.
www.researchdesignlab.com
Page 4
REV1.0
GAS SENSOR
PARAMETER
VALUES
Operating voltage
+5v DC regulated
Gas Detection
Indicated by LED
CONNECTION DIAGRAM
Fig1
www.researchdesignlab.com
Page 5
REV1.0
GAS SENSOR
ARDUINO CODE
#include <LiquidCrystal.h>
LiquidCrystal lcd(6, 7, 2, 3, 4, 5);
/*
*
*
*
*
*
*
*
LCD
LCD
LCD
LCD
LCD
LCD
LCD
6
pin 7
2
3
4
5
}
void loop()
{
gasState = digitalRead(gasPin);
// if it is, the GAS sensor is HIGH
if(gasState == LOW)
{
lcd.setCursor(0,1);
lcd.print("gas detected");
}
else
{
lcd.setCursor(0,1);
lcd.print("no gas detected");
}
}
www.researchdesignlab.com
Page 6
REV1.0
GAS SENSOR
BOARD DIMENSIONS
www.researchdesignlab.com
Page 7
REV1.0
GAS SENSOR
RELATED PRODUCTS
RDL-UNO ATMEGA DEVELOPMENT BOARD
www.researchdesignlab.com
Page 8