LPG Gas Sensor Module

RhydoLabz’s LPG Gas Sensor Module is designed to detect the presence of a dangerous LPG leak in your Home, car or in a service station, storage tank environment by interfacing with Microcontroller without ADC Channels and programming. In this version of LPG Gas sensor module two pots are included, one for trigger level setting and the other for setting sensitivity of the sensor. It allows to determine when a preset LPG gas level has been reached or exceeded. The module uses MQ-6 sensor to sense LPG leak. The MQ-6 can detect gas concentrations anywhere from 200 to 10000 ppm.

     Interfacing with the sensor module is done through a 4-pin breadboard compatible SIP header and requires One I/O pin from the host microcontroller. The onboard microcontroller provide initial heating interval after power-up and then starts to measure LPG sensor output.If it found the LPG concentration above preset value , it will inform the Host controller by pulling the Output Pin to High and Starts to blink a onboard status LED. The sensor module is mainly intended to provide a means of comparing LPG sources and being able to set an alarm limit when the source becomes excessive.

     The best location to fix Gas Sensor Module is near the Gas Cylinder or near the pipeline in case of piped gas connection. In case of LPG, when Gas leakage occurs , the gas will settle down near the floor because LPG is heavier than the air. So for best results it would be advisable to fit Gas Sensor Module nearly 1m above the floor. 

Features:

  • Uses the MQ-6 LPG Gas Sensor
  • Easy SIP interface
  • Compatible with most microcontrollers
  • Analog Sensor voltage is available at ANG pin.
  • Onboard Status and Power LED
  • Onboard Pot for threshold setting
  • Onboard Pot for Sensitivity setting
  • On board microcontroller
Specifications:
PIN diagram:
Pin details of LPG Gas Sensor Module -V2 is as given below.NOTE: 1. A high on OUT pin indicates  LPG presence. This pin can be  connected to the Digital I/O pin of the  microcontroller.
           2.  ANG pin outputs a voltage (0-5V) corresponding to the level of LPG detected. This pin can be connected   to the ADC     pin of the microcontroller. 

 Layout:
Component details: 
  • There are two potentiometers used in Gas Sensor Module . they are as follows:
    • POT P1: The on-board POT P1 is used to set tolerance voltage for detecting the LPG presence. When LPG is detected, the OUT pin will be high. This will occurs when the output voltage is greater than the tolerance level set, using the POT P1.
    • POT P2: The on-board POT P2 is used to set the sensitivity of the Gas sensor. We recommend you to calibrate the detector for 1000ppm of LPG concentration in air and use value of POT P2 about 20KΩ.
  • There are two leds in Gas Sensor Module . They are:
    • D1: PWR Led. This Green Led indicates the Power input. 
    • D2: STS Led.The red status Led (STS) indicates the various status of LPG Sensor module eg. Power on, initialization & LPG detection. When the sensor is powered up, the STS led will blink twice to indicate the module is functional. There after STS Led will blinks every second till the module is getting ready ( Heating Zone) . After the sensor is initialized, the module will enter in to the ARM mode and ready to detect the gas concentration , during this period the STS led will blink in step of 3 seconds. When LPG is detected, the STS led will blink fast till the level goes below the set threshold.
Procedure For Calibration:
  • Place the gas sensor module in a clean environment. 
  • Before powering up the module , first you need to set the sensitivity. According to the manufacture specification it is recommended to set the sensitivity to approximately 20k(by varying potentiometer P2) . In order to view the value ,place the multimeter probe to the ANG pin and the other end to the GND . 
  • Once the sensitivity adjustment has been done, power up the module with 5v. At the first stage you can observe the STS(STATUS) led blinking twice i.e, in order to indicate the module is functioning. Below shows the STS led waveform.
  • LPG gas sensor module enters into 3 zones 
    • Heating zone 
    • Armed zone 
    • Trigger or sensing zone

1.Heating Zone
     Module enters to heating zone after the power up. It takes around 2.30 minutes for the device to gets heated up. Adjust the potentiometer P1 to around 1V threshold (in order to note down the threshold voltage, check across the 6th pin of IC using multimeter ).Once the module enters the heating zone ,STS led blinks once in a second and wave form is shown below:2.Armed zone
  Module once after the heating zone, enters into the armed zone. This is the stage before the gas sensing zone. If the led blinks once in 4 second, it means there is no presence of gas and also indicates that calibration has been done successfully . After this stage Module enters to the Trigger or sensing Zone and STS led waveform is shown below.

3.Trigger or sensing Zone
Here the module enters to the gas sensing zone. If the module detects the GAS ,ie when the GAS concentration increases STS led will start blinking rapidly and will take around 250 msec ON time and same as OFF time. Fast blinking of LED indicates the presence of gas. When the gas concentration decreases, led will start blinking once in 4 seconds indicates absence of gas and STS led waveform is shown below.
 

                      Analog value > threshold value – STS led blinks faster
                      Analog value < threshold value – STS led blinks slower

How To Test:
1. Interfacing  the LPG Sensor with PIC 16F877A microcontroller  (RA3 as Analog pin of ADC
 Interfacing LPG sensor with PIC16F877A microcontroller, connection diagram shown below. Here ANG pin of sensor module is connected to analog pin3 (RA3) of microcontroller. This pin output a voltage (0-5V) corresponding to the level of LPG detected. It can be connected to the ADC pin of the microcontroller.
 Interfacing  the LPG Sensor with PIC 16F877A microcontroller  (RA3 as Analog pin of ADC)), sample program shown below.

Upload the example code in PIC and connect LPG sensor module with PIC 16F877A . Then open serial monitor, LPG sensor will give values  as shown below.  When LPG sensor module detects gas, the value will change.

2. Gas leakage alarm
     LPG gas is heavier than air, when it leaks from  a  cylinder  the gas will settle down near the floor. This  can  cause fire  or suffocation if not dealt with.The circuit that detects the leakage of LPG gas and alerts the user through buzzer indication is as shown below. 
A high on OUT pin of gas sensor module indicates  LPG presence. A preset in the module is used to set the threshold value of tolerance.The gas sensor module output goes high when the gas level reaches or exceeds certain point.  This will turn on the transistor and activates the buzzer. 

Resources:
How to Buy:
 Click here to buy RhydoLABZ’s LPG Gas Sensor Module -V2 

Support:
Please share your ideas with us, visit our forum for discussion  

Frequently Asked Questions(FAQ):
Q.Is a warm-up time needed before using the gas sensor?
Ans:Yes. The sensor needs some time in order to reach its chemical equilibrium. 

Q.In what range of concentration can gas sensor MQ-6 measure the gas?
Ans:The MQ-6 can detect gas concentrations anywhere from 200 to 10000ppm. 

Q.What is “gas sensitivity”?
Ans:It is (Rs in clean air)/(Rs in gas), where Rs means Sensor Resistance. Since Rs generally decreases in gas, the gas sensitivity is below 1. 

Q.What is “gas response”?
Ans:It is the time for the sensor to respond after the gas reaches the sensor. 

Q.What are the applications of LPG Gas Sensor – MQ-6?
Ans:They are used in gas leakage detecting equipments in family and industry, are suitable for detecting of LPG, iso-butane, propane, LNG, avoid the noise of alcohol and cooking fumes and cigarette smoke.

Leave a Reply