Site icon Circuit Ideas for You

LPG Gas Leakage Detector Circuit using Arduino

LPG Gas Leakage Detector Circuit using Arduino is important safety tool which can stop accidents, as this project uses Arduino to check LPG gas in air.

Also, if gas level goes too high then buzzer make sound and LCD show warning, hence, through this circuit people know danger fast.

Arduino Code:

#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);
}

Code Explanation:

Circuit Working:

LPG Gas Leakage Detector Circuit Diagram using Arduino

Parts List:

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

In this project we have used Arduino board, gas sensor MQ-2, buzzer and LCD screen, also Arduino reads gas sensor and shows message on LCD and turns ON the buzzer if needed.

Also, we can change sensor sensitivity, here, MQ-2 sensor checks LPG gas by change in resistance, as more gas means less resistance.

Then the sensor generates an analog voltage and the Arduino reads it, next, it compares the value with a threshold, and if the value exceeds the threshold, the system detects a gas leak.

After that, Arduino turns ON the buzzer using transistor and shows warning on LCD, through this system keeps checking gas level and gives updates until its safe again.

How to Build:

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

We describe the connection of the LCD to the Arduino below.

We have describe the connections for the buzzer, BC547 transistor and LPG gas sensor below.

Buzzer and BC547 Transistor Connection:

LPG Gas Sensor Connections:

Note:

Conclusion:

Overall, the LPG Gas Leakage Detector Circuit using Arduino acts as a life-saving safety device, additionally, we can build a strong system using Arduino and basic components; however, we must test and adjust the system properly.

Exit mobile version