0% found this document useful (0 votes)
17 views

Gas leakage controller using Arduino

Uploaded by

rushikande05
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Gas leakage controller using Arduino

Uploaded by

rushikande05
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

G a s Leaka ge Control System:

A n Effi cient Safety


M echan ism U s i n g
Arduino U n o
Welcome to this presentation on a Gas Leakage Control System,
utilizing the power of Arduino Uno. This system aims to
enhance safety by providing real-time detection, automatic
response, and reliable control of gas leaks, creating a safer
environment for everyone.
Introductio
n
G a s Leakage Risks Safety Systems Matter C o m m o n Gases
Gas leaks pose significant Gas detection and control This system targets common
hazards, including fires, systems play a vital role in gases such as Liquefied
explosions, and health issues. minimizing risks and ensuring Petroleum Gas (LPG) and
Prompt detection is crucial. safety in various Methane, which are prevalent
environments. in households and industries.
Objecti ve
1 Prompt Detecti on 2 Trigger A l a r m s and 3 E n s u re Safety Ac ros s
The system prioritizes the Mechanisms Applicati ons
timely detection of gas Upon detection, the system This system is designed
leaks, enabling immediate triggers alarms and to safeguard
action. activates control residential,
mechanisms to mitigate commercial, and
the leak. industrial setups,
ensuring safety for
diverse environments.
System Components and Connecti ons

G a s Sensor ( M Q Series) Servo Motor B u z ze r LED


VCC to 5V, GND to GND, Control pin to D9 Positive pin to D8, Positive to D7 (via
analog output to A0. (PWM), VCC & GND to negative to GND. 330Ω resistor),
power. negative to GND.

Fan Reset P u s h Butt on Relay Module

Via relay; relay control One side to D4 (with (for high-power


signal on D6. pull- up), other to devices). Add a
GND. technical yet visually
appealing layout."
W orking
Principle
The gas sensor constantly monitors gas
1
levels. Increased gas concentration,
indicating a leak,
triggers a response. The sensor signals the Arduino Uno
2
about the detected gas leak.

The Arduino processes this signal,


activating the buzzer, LED,
3
servo motor, and fan.
The servo motor immediately closes the gas
4 valve, halting further gas fl ow.

Simultaneously, the fan disperses the


leaked gas, minimizing its 5
concentration and preventing
buildup. An optional feature allows for IoT
6 integration, enabling notifi cations to
users and/or external systems.
Circuit
D islide
This ag r a am
presents schematic diagram of the system's
circuitry. This visual representation shows the connections
between each component, ensuring a clear understanding of
the system's electrical layout. Refer to this diagram when
implementing the project.
Arduino Code: G a s Le a k
Detector
This code detects gas leaks using an Arduino.

#include <Servo.h> // Servo library

// Pin connections

const int gasSensorPin = A0; // Gas

sensor const int buzzerPin = 8; //

Buzzer

const int servoPin = 9; // Gas valve

servo const int resetButtonPin = 4; //

Reset button const int fanRelayPin = 7;

// Fan relay

const int gasThreshold = 400; // Gas leak

threshold Servo myServo; // Servo object

bool servoMoved = false; // Flag for

valve void setup() {

// Set pin modes

pinMode(gasSensorPin,

INPUT); pinMode(buzzerPin,

OUTPUT);

pinMode(resetButtonPin,

INPUT_PULLUP); pinMode(fanRelayPin,

OUTPUT); myServo.attach(servoPin);

myServo.write(0); // Valve open

digitalWrite(fanRelayPin, HIGH); // Fan

off Serial.begin(9600); // Serial

communication

void loop() {

// Reset button check

if (digitalRead(resetButtonPin) ==

LOW) { resetSystem();

delay(200);

int gasLevel = analogRead(gasSensorPin); / / Read gas

level Serial.println(gasLevel); // Debug (remove in

final code)

// Gas leak check

if (gasLevel > gasThreshold) {

if (!servoMoved) { // Only act once per

leak digitalWrite(buzzerPin, HIGH); //

Sound alarm myServo.write(130); //

Close valve digitalWrite(fanRelayPin,

LOW); / / Turn on fan servoMoved = true;

delay(2000); / / Alarm duration

digitalWrite(buzzerPin, LOW); // Turn off

alarm

delay(100); / / Check again

// Reset function
Flowchart of Operati on
G a s Detected
1 The gas sensor detects a leak and sends a signal to the
Arduino.

Trigger A l a r m s
2 The Arduino activates the buzzer and LED to alert users of the
gas leak.

V alve Closure
3 The servo motor closes the gas valve, preventing further
gas fl ow.

Fa n Acti vati on
4 The fan activates to disperse the leaked gas and minimize its
concentration.
Advantag
es
Early Detection Automated Response Cost-Effective a n d Reliable
The system's prompt Automated response reduces The system utilizes readily
detection capabilities help human risk and ensures available components, making
prevent accidents and ensure immediate and effi cient it cost- eff ective and reliable.
timely action. mitigation.

Scalable Applications
This system can be scaled and adapted for diverse applications in homes, businesses, and
industries.
Application
s

Residential Systems Commercial Industrial G a s Laboratories


Protects homes and Kitchens Ensures Storage Safeguards Provides a safety layer
families from potential safety in commercial industrial gas storage in laboratories by
gas leaks in kitchens, kitchens by areas by detecting detecting leaks of
heating systems, and monitoring gas lines leaks and triggering fl ammable or
appliances. and appliances, alerts for immediate hazardous gases.
preventing accidents. action.
Conclusio
nhis Gas Leakage Control System is a powerful tool for
T
enhancing safety and security. By leveraging the capabilities of
Arduino Uno, it off ers a reliable and cost-eff ective solution for
gas leak prevention in various settings. This system eff ectively
contributes to a safer environment for everyone.

You might also like