LPG Gas Leakage Detector Using Arduino
by hIOTron IoT in Circuits > Arduino
4121 Views, 7 Favorites, 0 Comments
LPG Gas Leakage Detector Using Arduino
Here we have designed Arduino based LPG gas detector alarm that will detect the leakage and creates an alert.
Supplies
Hardware Components
Arduino Uno
LPG gas sensor module
Buzzer
BC 547 Transistor
1k Resistor
LCD 16X2
Connecting Wires
9V battery
Software Components
Arduino IDE
About Project
LPG Gas Sensor Module
This module consists of an MQ3 sensor that actually recognizes LPG gas, a comparator (LM393) for comparing MQ3 output voltage with a reference voltage. When LPG gas is detected it will give high output. A potentiometer is basically used for controlling the sensitivity of gas detecting. Working of the Project: LPG gas sensor module is used to detect LPG Gas.
When LPG gas leakage sensed, it will give a HIGH pulse on its DO pin and Arduino constantly reads its DO pin. When Arduino receives a HIGH pulse from the LPG Gas sensor module it displays the“LPG Gas Leakage Alert” message on 16x2 LCD and stimulates buzzer which beeps again until the gas detector module doesn't recognize the gas in the environment.
When Arduino gets a LOW pulse from the LPG Gas detector module, then LCD will show the“No LPG Gas Leakage” alert message. Arduino manages the complete process of this system like reading LPG Gas sensor module output, sending a message to LCD and stimulating buzzer.
We can set the sensitivity of this sensor module by inbuilt potentiometer located on it.
Internet of Things Course Training will give you a thorough view of such IoT devices.
Run a Program
#include
LiquidCrystal lcd(3, 2, 4, 5, 6, 7);
#define lpg_sensor 18
#define buzzer 13
void setup()
{
pinMode(lpg_sensor, INPUT);
pinMode(buzzer, OUTPUT);
lcd.begin(16, 2);
lcd.print("LPG Gas Detector");
lcd.setCursor(0,1);
lcd.print("Circuit Digest");
delay(2000);
}
void loop()
{
if(digitalRead(lpg_sensor))
{
digitalWrite(buzzer, HIGH);
lcd.clear();
lcd.print("LPG Gas Leakage");
lcd.setCursor(0, 1);
lcd.print(" Alert ");
delay(400);
digitalWrite(buzzer, LOW);
delay(500);
}
else
{
digitalWrite(buzzer, LOW);
lcd.clear();
lcd.print(" No LPG Gas ");
lcd.setCursor(0,1);
lcd.print(" Leakage ");
delay(1000);
}
}