[go: up one dir, main page]

0% found this document useful (0 votes)
689 views22 pages

LPG Leakage Detector Using Arduino With SMS Alert System

The document describes a LPG leakage detection system using an Arduino, MQ-2 gas sensor, GSM module, and LCD display. The MQ-2 sensor detects LPG levels and sends data to the Arduino. If gas is detected, the Arduino sends an SMS alert via the GSM module and displays the status on the LCD. The system aims to remotely detect gas leaks and trigger alerts to prevent accidents.

Uploaded by

sifat islam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
689 views22 pages

LPG Leakage Detector Using Arduino With SMS Alert System

The document describes a LPG leakage detection system using an Arduino, MQ-2 gas sensor, GSM module, and LCD display. The MQ-2 sensor detects LPG levels and sends data to the Arduino. If gas is detected, the Arduino sends an SMS alert via the GSM module and displays the status on the LCD. The system aims to remotely detect gas leaks and trigger alerts to prevent accidents.

Uploaded by

sifat islam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 22

LPG Leakage

Detector using
LPG leakage detector using Arduino with SMS alert system
Arduino with SMS
Alert System
American International University-Bangladesh
MICROPROCESSOR AND EMBEDDED SYSTEMS
Section: I
Faculty: Sujan Howlader

Group Members:
Name ID
Islam, Md. Raihanul 17-34988-2
Islam, Md. Ifte khairul 17-34832-2
Muntasir, Aswad 17-34695-2
Islam, Din 17-34936-2
Hasan, Tanjimul 17-33430-1
Mahmudul hasan 17-34433-1
Talukder,Alvee 16-31254-1
Anik sarker 16-31472-1
CONTENT

• Objective of the project


• Planning of Components
• Circuit Diagram
• Flow Chart
• Simulation
• Circuit Explanation
• Program Explanation
• Cost Analysis
• Application
• Gantt Chart
• Conclusion
• Reference
OBJECTIVE OF THE PROJECT
 Detect Gas leakage with MQ-2 sensor with Arduino
 Set up an SMS based alert system using GSM Module
 Display stats in an LCD using a 16x2 LCD monitor
PLANNING OF COMPONENTS

MQ-2 –to sense LPG (use Digital Out to detect level status)
Arduino
 To read MQ-2 output and detect Gas Leak (through level comparison)
 To activate outputs upon gas leak –Display Level and SMS alert
 To send AT Commands to GSM Module
 To send Status message commands to LCD Module
GSM Module –for GSM Communication and to send SMS to mobile
numbers
LCD Module –to display status messages
ARDUINO

• Arduino Uno –an electronic prototyping platformOperates on +5 Volts


• 14 Digital I/O Pins (of which 6 are PWM)
• 6 Analog Input Pins
• 32 KB Flash Memory and 1KB EEPROM
• Serial Communication Enabled
MQ-2 SENSOR MODULE

• MQ-2 –is a generic gas sensor used to detect LPG presence


• The module has Digital Out and Analog Out
• Target Gas: Smoke/ Combustible Gas
• Detection Range: 200 ~ 10000ppm(flammable gas)
• Application: domestic gas leakage alarm, portable gas detector
• Can be used detect other gases like Methane and Alcohol as well
• Operated on +5 Volts
The Functionality of Major Components in our
Proposed System.

• Support voice calls


• Support SMS text messaging
• temperature -30 ℃ to + 80 ℃
GSM • Support GPRS data traffic, the maximum data rate, download 85.6Kbps,
upload42.8Kbps;
Module
Working Principle of Our Proposed System

The sensor will Then it sent to Next a signal will


sense the leakage microcontroller in be sent to Message will be Finally Buzzer will
on the basis of the form of peripheral sent to a specific be activated
gas density electronic signal components mobile number
FLOW CHART
CIRCUIT DIAGRAM
SIMULATION
MQ2 gas sensor sense 0 from Logic toggle

When gas sensor = 0 then No Gas Leaking When gas sensor = 1 then Gas Alert! SMS Sent!
Simulation
MQ2 gas sensor sense 0 from Logic toggle
CIRCUIT EXPLANATION

• Interfacing MQ-2 Sensor to Arduino


• Connecting Digital Out of MQ-2 to pin 7
• Interfacing GSM Module to Arduino
• Connect to PWM pins 1 and 0 of Arduino (using Software Serial)
• TX of GSM Module to 1 and Rx of GSM Module to 0
• Interfacing LCD Module to Arduino
o 16x2 LCD Module is used
o Data Lines (D4,D5,D6,D7) connected to 5,4,3,2 pins of Arduino (in order)
o Enable Pin connected to 11 and RS (Register Select) connected to 12
o Contrast –is adjusted by connecting VEE to a 10K Pot and +5V
PROGRAM EXPLANATION -1

• Important Initializations and Setup


o Sensor MQ-2 is assigned to pin 7 using variable ‘sensor’
o sensor’ –configured as Input
o Software Serial communication is used with PWM pins of Arduino
 <SoftwareSerial.h> -header library is made use of!
• Important Variable
o Gas_Leak_Status–variable to identify ‘gas leak’ occurrence status
o gas_value–temporary variable to store gas level fetched from sensor MQ-2
o Gas_alert_val–to store fetched value and to compare with set limit value (during Scanning for Gas
Leak)
o Gas_shut_val–to store fetched value and to compare with set limit value (during checking for Gas Shut
Down Process)
PROGRAM EXPLANATION-2

• Important Inner Subroutines


o ScanGasLevel()
 Scans the gas level from sensor MQ-2 and stores to temporary variable gas
level
o SetAlert()
 Sends 3 SMS to 2 Mobile numbers by calling SendTextMessage() inner
subroutine
 Outputs status message commands to LCD Module
o SendTextMessage()
 Subroutine to send AT Commands to GSM Module for sending SMS
COST ANALYSIS
Component Quantity Price (TAKA)
Arduino Uno R3 1 450
 
MQ-2 Flammable Gas & Smoke Sensor 1 120
 
LCD Display 16X2 with Header 1 175
 
Breadboard 1 100
 
A5 Pro Serial GPRS GSM Module Core Development Board 1 1100
Jumper Wire 50 150
 
Battery 9V 1 35
 
Battery 12V 1 35
 
Battery Cap 2 20
Total: 2185
APPLICATIONS

• Home Security –can be used in homes (especially kitchen area) to prevent accidents
due to gas leak
• Industrial Security –can be used in sensitive areas to prevent any accidents
• Enhancement –can be enhanced to measure specific gas levels to use in industrial
applications
• Automation –can be enhanced to automate electrical cut off process to prevent short
circuit
GANTT CHART
Gantt Chart of OUR PROPOSED SYSTEM
S el ec.15
.. Aug
1

Ckt . . . 18 Aug 3

Lis 22 Aug 4

P CB d e. . . 26 Aug 4

P ur c. . . 30 Aug 4

Man uf ac. . . 31 Aug 1

Asse. . . 5 Sep 5

T es 7 Sep 2

8 Sep 1
CONCLUSION
1. This project can be used in home and hotel utility (kitchen) area for safety purpose
2. Useful in domestic LPG water heater.
3. 3Very useful in LPG/CNG fitted car to avoid measure accident.
4. Prevent measure accident in gas agencies (gas station) where multi cylinder stored.
REFERENCES

• [1] Hand Book of Electronics’, 17th revised edition by GUPTA & KUMAR
• [2] Digital Logic & Computer design 32nd edition by M. Morris Mano
• [3] http://www.atmel.com
• [4] http//www.electroniccircuit.com
• [5] http://www.circuitstoday.com/gsm-based-fire-alarm-system-using-arduino
• [6] https://www.projectsof8051.com/sms-based-lpg-gas-leakage-detection-system-using-gsm/
• [7] http//www.systemsensor.com
• [8] https://components101.com/microcontrollers/arduino-uno
• [9] https://en.wikipedia.org/wiki/ATmega328
• [10] https://www.slideshare.net/SoumyadeepKal/gsm-based-sms-fire-alert-system
• [11] https://create.arduino.cc/projecthub/Aritro/smoke-detection-using-mq-2-gas-sensor-79c54a
• [12] https://www.minikits.com.au/LM2596-PSU-01
Do You Have Any
Questions?

Thank You

You might also like