Site icon Circuit Ideas for You

LPG Gas Leakage Detector Circuit using Arduino

The LPG gas leakage detector is an essential safety tool that may stop incidents and tragedies.

An Arduino microcontroller is used in this project to track the amount of LPG gas in the surrounding air.

People are instantly alerted to the possible risk when the gadget sounds a buzzer and shows a warning on an LCD screen when the gas level surpasses a particular limit.

Code Programming and Explanation:

#include <LiquidCrystal.h>

// Define pins
const int gasSensorPin = A0;
const int buzzerPin = 13;
const int threshold = 300; // Adjust threshold as needed

// Initialize LCD
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // Set up sensor and LCD
  pinMode(gasSensorPin, INPUT);
  pinMode(buzzerPin, OUTPUT);
  lcd.begin(16, 2);
}

void loop() {
  int sensorValue = analogRead(gasSensorPin);

  // Check for gas leak
  if (sensorValue < threshold) {
    lcd.clear();
    lcd.setCursor(0, 0);
    lcd.print("No Gas Leak");
    digitalWrite(buzzerPin, LOW);
  } else {
    lcd.clear();
    lcd.setCursor(0, 0);
    lcd.print("Gas Leak Detected!");
    digitalWrite(buzzerPin, HIGH);
  }

  delay(100);
}

Circuit Working:

Parts List:

ComponentQuantity
Arduino Uno board1
LPG gas sensor module (MQ-2 or similar)1
16×2 LCD display1
Buzzer1
IC 78091
Transistor BC5471
Resistor 1k 1/4 watt1
Potentiometer 10k1

In this article we have used an Arduino board, a gas sensor, a buzzer and a LCD display screen are all part of the setup.

When necessary, the Arduino sounds the buzzer, reads the gas sensor and displays messages on the screen.

One can adjust the sensitivity of the gas sensor.

The MQ-2 type LPG gas sensor module measures variations in resistance to identify the presence of LPG gas.

The resistance of the sensor reduces as the level of gas rises.

The sensors analog voltage output is captured by the Arduino, which then compares it to a threshold value.

A gas leak is indicated if the value is more than the threshold.

The buzzer is then turned on by the Arduino via a transistor, sounding an alert.

To warn the user, the LCD additionally displays a clear warning message.

Until the gas concentration returns to normal, the system keeps an eye on the gas level and gives updates.

How to Build:

To build a LPG Gas Leakage Detector Circuit using Arduino we need to follow the below mentioned steps:

Connection of LCD to Arduino are mentioned below:

Connections for Buzzer, Transistor BC547, and LPG Gas Sensor are mentioned below:

Buzzer and Transistor BC547

LPG Gas Sensor connections are mentioned below:

Note:

Conclusion:

To conclude, one important safety tool that may save lives and save property is the LPG gas leak detection system.

A dependable and efficient gas detection system may be made with an Arduino microcontroller and easily accessible parts.

The gadget must be tested and calibrated on a regular basis to guarantee optimal operation.

References:

Detecting LPG Leakage and Automatic Turn off using Arduino Connected with PIR Sensor

Exit mobile version