SlideShare a Scribd company logo
2
Most read
3
Most read
14
Most read
GAS LEAKAGE DETECTOR USING
ARDUINO WITH SMS ALERT
GAS LEAKAGE DETECTOR USING ARDUINO AND MQ5 SENSOR – WITH SMS ALERT
(USING GSM MODULE) AND SOUND ALARM - ENGINEERING MAIN PROJECT
OBJECTIVES OF THE PROJECT
• Detect Gas Leakage (like LPG) using MQ5 Sensor and Arduino
• Setup an SMS based Alert Mechanism using GSM Module
• Send 3 SMS (3 alert messages) to 2 specified mobile numbers
• Sound Alarm – produce sound alert on gas leak
• Display status in an LCD using a 16×2 LCD module.
PLANNING OF COMPONENTS
• MQ5 – to sense LPG (use Digital Out to detect level status)
• Arduino
• To read MQ5 output and detect Gas Leak (through level comparison)
• To activate outputs upon gas leak – sound alarm and sms alert
• To send AT Commands to GSM Module
• To send Status message commands to LCD Module
• To Turn ON and OFF Sound Alarm
• GSM Module – for GSM Communication and to send SMS to mobile numbers
• LCD Module – to display status messages
• Speaker – to produce Alarm Sound
ARDUINO
• Arduino Uno – an electronic prototyping platform/board based on Atmega AVR
Microcontroller – Atmega328P (8 bits, 16 Mhz)
• Operates 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
MQ5 SENSOR MODULE
• MQ5 – is a generic gas sensor used to detect LPG presence
• The module has Digital Out and Analog Out
• Detects LPG from 200ppm to 10000ppm
• Operated on +5 Volts
• Can be used detect other gases like Methane and Alcohol as well
GSM MODULE
• SIM 900 GSM Module – is used to send SMS alerts upon gas leak
• Serial Communication is employed
• AT COMMANDS – are used to communicate with GSM Module
CIRCUIT DIAGRAM
CIRCUIT EXPLANATION-1
• Interfacing MQ5 Sensor to Arduino
• Connecting Digital Out of MQ5 to pin 7
• Interfacing GSM Module to Arduino
• Connect to PWM pins 9 and 10 of Arduino (using SoftwareSerial)
• Tx of GSM Module to 9 and Rx of GSM Module to 10
• Interfacing Speaker to Arduino
• 2N2222 is used as driving transistor
• Connect to Pin 8 of Arduino
CIRCUIT EXPLANATION-2
• Interfacing LCD Module to Arduino
• 16x2 LCD Module is used
• Data Lines (DB4,DB5,DB6,DB7) connected to 5,4,3,2 pins of Arduino (in order)
• Enable Pin connected to 11 and RS (Register Select) connected to 12
• Backlit LED is connected to Vcc (+5v) through a 560 ohms current limiting resistor
• Contrast – is adjusted by connecting VEE to a 10K Pot and +5V
PROGRAM EXPLANATION - 1
• Important Initializations and Setup
• Sensor MQ5 is assigned to pin 7 using variable ‘sensor’
• Sound Alarm Speaker is assigned to pin 8 using ‘speaker’
• ‘sensor’ – configured as Input
• ‘speaker’ – configured as output
• Software Serial communication is used with PWM pins of Arduino
• <SoftwareSerial.h> - header library is made use of!
PROGRAM EXPLANATION -2
• Important Variables
• sms_count – variable used to limit number of SMS
• Gas_Leak_Status – variable to identify ‘gas leak’ occurrence status
• gas_value – temporary variable to store gas level fetched from sensor MQ5
• Gas_alert_val – to store fetched value and to compare with set limit value (during
Scanning for Gas Leak)
• Gas_shut_val – to store fetched value and to compare with set limit value (during
checking for Gas Shut Down Process)
PROGRAM EXPLANATION-3
• Important Subroutines
• CheckGas() – has the following functions
• Scans for gas level by calling ScanGasLevel() inner subroutine
• If scanned gas value ‘Gas_alert_val==LOW’ – alert actions are invoked by calling SetAlert() inner subroutine
• Displays status messages on LCD Module – for Scanning Process and Gas Leak Alert
• CheckShutDown() – is to check if gas leak has been eliminated
• Scans for present gas level by calling ScanGasLevel() inner subroutine
• If scanned value stored in variable ‘Gas_shut_val==HIGH’ – gas leak is eliminated
• Immediately stops alarm – with digitalWrite(speaker,LOW)
• Resets the gas leak status variable and sms_count variable – to reactivate Gas Leak Scanning Process and SMS
Alert mechanism
PROGRAM EXPLANATION-4
• Important Inner Subroutines
• ScanGasLevel()
• Scans the gas level from sensor MQ5 and stores to temporary variable gas_level
• SetAlert()
• Activates sound alarm through digitalWrite(speaker,HIGH)
• Sends 3 SMS to 2 Mobile numbers by calling SendTextMessage() inner subroutine
• Outputs status message commands to LCD Module
• SendTextMessage()
• Subroutine to send AT Commands to GSM Module for sending SMS
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
OUTPUT PHOTOGRAPH
• Read Full Project Here- Gas
Leakage Detector using Arduino
CIRCUITSTODAY
• 1000+ Electronic Circuits and
Projects
• www.circuitstoday.com
• To Buy Electronic Kits and Projects
• www.store.circuitstoday.com

More Related Content

What's hot (20)

PPTX
Project presentation on wireless lpg leakage detector
PETER ASIGRI
 
PPTX
Gas and smoke detection system using arduino
Md.Kamrul Islam
 
PPTX
Microcontroller Based LPG Detector Using GSM Module
Manish Patel
 
PPTX
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
Ravi Shankar
 
PPTX
ARDUINO BASED GAS LEAKAGE DETECTING ROBOT
Hari sankar
 
PPTX
Women safety device with gps tracking and alerts
Praween Lakra
 
PPTX
Fire detection system using arduino
UT-028
 
PPTX
Bidirect visitor counter
Electric&elctronics&engineeering
 
PPTX
Home automation ppt
Anshul97842474929
 
PPTX
IOT based air quality and monitoring by using arduino
Gopikrishnateja Goli
 
PPTX
SMART CAR-PARKING SYSTEM USING IOT
Saipandu143
 
PPTX
IoT home automation project
Shohin Aheleroff
 
PPT
automatic streetlight control using ldr ppt
anand kumar maurya
 
PPTX
Introduction to Node MCU
Amarjeetsingh Thakur
 
PPTX
Lpg detector final ppt
Agara Mudhalvan
 
PPTX
Home automation
Rupshanker Mishra
 
PPTX
AUTOMATIC RAILWAY GATE CONTROL SYSTEM
JOLLUSUDARSHANREDDY
 
PPTX
Iot based smart irrigation system
Krishna Vala
 
PPTX
Railway Accident Avoiding System: A Safety Measure
Yantralive Parts Technology Pvt. Ltd
 
Project presentation on wireless lpg leakage detector
PETER ASIGRI
 
Gas and smoke detection system using arduino
Md.Kamrul Islam
 
Microcontroller Based LPG Detector Using GSM Module
Manish Patel
 
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
Ravi Shankar
 
ARDUINO BASED GAS LEAKAGE DETECTING ROBOT
Hari sankar
 
Women safety device with gps tracking and alerts
Praween Lakra
 
Fire detection system using arduino
UT-028
 
Bidirect visitor counter
Electric&elctronics&engineeering
 
Home automation ppt
Anshul97842474929
 
IOT based air quality and monitoring by using arduino
Gopikrishnateja Goli
 
SMART CAR-PARKING SYSTEM USING IOT
Saipandu143
 
IoT home automation project
Shohin Aheleroff
 
automatic streetlight control using ldr ppt
anand kumar maurya
 
Introduction to Node MCU
Amarjeetsingh Thakur
 
Lpg detector final ppt
Agara Mudhalvan
 
Home automation
Rupshanker Mishra
 
AUTOMATIC RAILWAY GATE CONTROL SYSTEM
JOLLUSUDARSHANREDDY
 
Iot based smart irrigation system
Krishna Vala
 
Railway Accident Avoiding System: A Safety Measure
Yantralive Parts Technology Pvt. Ltd
 

Viewers also liked (12)

PDF
Speed checker on highway using 8051
Rkrishna Mishra
 
PDF
Building an Innovation Strategy for your Digital Enterprise
CIO Academy Asia Community
 
PDF
GSM BASED GAS LEAKAGE DETECTION SYSTEM
International Journal of Technical Research & Application
 
PDF
LPG – Liquefied Petroleum Gas & Gas Detection System
Monzer Salahdine
 
PPTX
Plasma antennas
Pritesh Desai
 
PPTX
Motherboard ppt
Vipin Gupta
 
PPSX
06. Motherboard Form Factors (Computer)
Akhila Dakshina
 
PPTX
1.2 motherboard form factor
Gagandeep Singh
 
PPTX
Introduction to Motherboard
Makrand Patil
 
PPTX
Internal parts of a computer and their functions
Emily-scamell
 
PPTX
Motherboard and its components
Jishnu Pradeep
 
PPTX
Arduino based intelligent greenhouse Project
Amit Saini
 
Speed checker on highway using 8051
Rkrishna Mishra
 
Building an Innovation Strategy for your Digital Enterprise
CIO Academy Asia Community
 
GSM BASED GAS LEAKAGE DETECTION SYSTEM
International Journal of Technical Research & Application
 
LPG – Liquefied Petroleum Gas & Gas Detection System
Monzer Salahdine
 
Plasma antennas
Pritesh Desai
 
Motherboard ppt
Vipin Gupta
 
06. Motherboard Form Factors (Computer)
Akhila Dakshina
 
1.2 motherboard form factor
Gagandeep Singh
 
Introduction to Motherboard
Makrand Patil
 
Internal parts of a computer and their functions
Emily-scamell
 
Motherboard and its components
Jishnu Pradeep
 
Arduino based intelligent greenhouse Project
Amit Saini
 
Ad

Similar to Gas Leakage Detector using Arduino with SMS Alert - Engineering Project (20)

PPTX
EMBBEDED PPT.pptx
dfcyg
 
PPTX
476646605-LPG-Leakage-Detector-using-Arduino-with-SMS-Alert.pptx
gmranuj
 
PPTX
Gsm message display
dhanshri_deshmukh
 
PPTX
Light level and gas monitoring system
Stephen Ahiante
 
PDF
P 6168--microcontroller based-lpg_gas_detector_using_gsm_module
Chitrachedu Dada Kalandar
 
PPTX
Presentation1
SHAKTI PRASAD
 
PDF
IOT NodeMCU - IFTTT Templet to send SMS
Elaf A.Saeed
 
PPTX
GAS DETECTION.pptxiueriuq4t4h3hiwkbqi3htiu
jhanurajana1
 
PPTX
GSM Based Vehicle Data Acquisition and Telemetry System
Sangeeth Soman
 
PPTX
Anti theft & Automation using Arduino
( Afroze ) Kabeer Khan
 
PPT
Home automation and securty using wireless networks
Arun Kumar
 
PPTX
425 project presentation on gsm based fire alarm system.pptx
kadaknathkukda69
 
PPT
Sms based notice board with 3 lcd
Ankur Kumar
 
PPT
6600ingles
rlorenzoaraujo
 
PDF
intelligent braking system report
Sumit Kumar
 
PDF
Crmt Open ecu
FabMob
 
PDF
IRJET- Anti-Fuel Theft Checker System
IRJET Journal
 
PPTX
TIVA_Workshop_Session II.pptx Embedded system design using TIVA
ece04abhishek
 
PDF
UVM_TB_20220621_slides-1.pdf
SamHoney6
 
PPTX
GTG SGT700 Control system Introduction.pptx
06nikhil
 
EMBBEDED PPT.pptx
dfcyg
 
476646605-LPG-Leakage-Detector-using-Arduino-with-SMS-Alert.pptx
gmranuj
 
Gsm message display
dhanshri_deshmukh
 
Light level and gas monitoring system
Stephen Ahiante
 
P 6168--microcontroller based-lpg_gas_detector_using_gsm_module
Chitrachedu Dada Kalandar
 
Presentation1
SHAKTI PRASAD
 
IOT NodeMCU - IFTTT Templet to send SMS
Elaf A.Saeed
 
GAS DETECTION.pptxiueriuq4t4h3hiwkbqi3htiu
jhanurajana1
 
GSM Based Vehicle Data Acquisition and Telemetry System
Sangeeth Soman
 
Anti theft & Automation using Arduino
( Afroze ) Kabeer Khan
 
Home automation and securty using wireless networks
Arun Kumar
 
425 project presentation on gsm based fire alarm system.pptx
kadaknathkukda69
 
Sms based notice board with 3 lcd
Ankur Kumar
 
6600ingles
rlorenzoaraujo
 
intelligent braking system report
Sumit Kumar
 
Crmt Open ecu
FabMob
 
IRJET- Anti-Fuel Theft Checker System
IRJET Journal
 
TIVA_Workshop_Session II.pptx Embedded system design using TIVA
ece04abhishek
 
UVM_TB_20220621_slides-1.pdf
SamHoney6
 
GTG SGT700 Control system Introduction.pptx
06nikhil
 
Ad

Recently uploaded (20)

PDF
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
DOC
MRRS Strength and Durability of Concrete
CivilMythili
 
PDF
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
PDF
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
PPTX
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PPTX
Introduction to Design of Machine Elements
PradeepKumarS27
 
PPTX
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
PPTX
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
PDF
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
PPTX
Evaluation and thermal analysis of shell and tube heat exchanger as per requi...
shahveer210504
 
PPTX
Green Building & Energy Conservation ppt
Sagar Sarangi
 
PPTX
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
MRRS Strength and Durability of Concrete
CivilMythili
 
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
Introduction to Design of Machine Elements
PradeepKumarS27
 
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
Introduction to Productivity and Quality
মোঃ ফুরকান উদ্দিন জুয়েল
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
Evaluation and thermal analysis of shell and tube heat exchanger as per requi...
shahveer210504
 
Green Building & Energy Conservation ppt
Sagar Sarangi
 
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
Design Thinking basics for Engineers.pdf
CMR University
 

Gas Leakage Detector using Arduino with SMS Alert - Engineering Project

  • 1. GAS LEAKAGE DETECTOR USING ARDUINO WITH SMS ALERT GAS LEAKAGE DETECTOR USING ARDUINO AND MQ5 SENSOR – WITH SMS ALERT (USING GSM MODULE) AND SOUND ALARM - ENGINEERING MAIN PROJECT
  • 2. OBJECTIVES OF THE PROJECT • Detect Gas Leakage (like LPG) using MQ5 Sensor and Arduino • Setup an SMS based Alert Mechanism using GSM Module • Send 3 SMS (3 alert messages) to 2 specified mobile numbers • Sound Alarm – produce sound alert on gas leak • Display status in an LCD using a 16×2 LCD module.
  • 3. PLANNING OF COMPONENTS • MQ5 – to sense LPG (use Digital Out to detect level status) • Arduino • To read MQ5 output and detect Gas Leak (through level comparison) • To activate outputs upon gas leak – sound alarm and sms alert • To send AT Commands to GSM Module • To send Status message commands to LCD Module • To Turn ON and OFF Sound Alarm • GSM Module – for GSM Communication and to send SMS to mobile numbers • LCD Module – to display status messages • Speaker – to produce Alarm Sound
  • 4. ARDUINO • Arduino Uno – an electronic prototyping platform/board based on Atmega AVR Microcontroller – Atmega328P (8 bits, 16 Mhz) • Operates 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
  • 5. MQ5 SENSOR MODULE • MQ5 – is a generic gas sensor used to detect LPG presence • The module has Digital Out and Analog Out • Detects LPG from 200ppm to 10000ppm • Operated on +5 Volts • Can be used detect other gases like Methane and Alcohol as well
  • 6. GSM MODULE • SIM 900 GSM Module – is used to send SMS alerts upon gas leak • Serial Communication is employed • AT COMMANDS – are used to communicate with GSM Module
  • 8. CIRCUIT EXPLANATION-1 • Interfacing MQ5 Sensor to Arduino • Connecting Digital Out of MQ5 to pin 7 • Interfacing GSM Module to Arduino • Connect to PWM pins 9 and 10 of Arduino (using SoftwareSerial) • Tx of GSM Module to 9 and Rx of GSM Module to 10 • Interfacing Speaker to Arduino • 2N2222 is used as driving transistor • Connect to Pin 8 of Arduino
  • 9. CIRCUIT EXPLANATION-2 • Interfacing LCD Module to Arduino • 16x2 LCD Module is used • Data Lines (DB4,DB5,DB6,DB7) connected to 5,4,3,2 pins of Arduino (in order) • Enable Pin connected to 11 and RS (Register Select) connected to 12 • Backlit LED is connected to Vcc (+5v) through a 560 ohms current limiting resistor • Contrast – is adjusted by connecting VEE to a 10K Pot and +5V
  • 10. PROGRAM EXPLANATION - 1 • Important Initializations and Setup • Sensor MQ5 is assigned to pin 7 using variable ‘sensor’ • Sound Alarm Speaker is assigned to pin 8 using ‘speaker’ • ‘sensor’ – configured as Input • ‘speaker’ – configured as output • Software Serial communication is used with PWM pins of Arduino • <SoftwareSerial.h> - header library is made use of!
  • 11. PROGRAM EXPLANATION -2 • Important Variables • sms_count – variable used to limit number of SMS • Gas_Leak_Status – variable to identify ‘gas leak’ occurrence status • gas_value – temporary variable to store gas level fetched from sensor MQ5 • Gas_alert_val – to store fetched value and to compare with set limit value (during Scanning for Gas Leak) • Gas_shut_val – to store fetched value and to compare with set limit value (during checking for Gas Shut Down Process)
  • 12. PROGRAM EXPLANATION-3 • Important Subroutines • CheckGas() – has the following functions • Scans for gas level by calling ScanGasLevel() inner subroutine • If scanned gas value ‘Gas_alert_val==LOW’ – alert actions are invoked by calling SetAlert() inner subroutine • Displays status messages on LCD Module – for Scanning Process and Gas Leak Alert • CheckShutDown() – is to check if gas leak has been eliminated • Scans for present gas level by calling ScanGasLevel() inner subroutine • If scanned value stored in variable ‘Gas_shut_val==HIGH’ – gas leak is eliminated • Immediately stops alarm – with digitalWrite(speaker,LOW) • Resets the gas leak status variable and sms_count variable – to reactivate Gas Leak Scanning Process and SMS Alert mechanism
  • 13. PROGRAM EXPLANATION-4 • Important Inner Subroutines • ScanGasLevel() • Scans the gas level from sensor MQ5 and stores to temporary variable gas_level • SetAlert() • Activates sound alarm through digitalWrite(speaker,HIGH) • Sends 3 SMS to 2 Mobile numbers by calling SendTextMessage() inner subroutine • Outputs status message commands to LCD Module • SendTextMessage() • Subroutine to send AT Commands to GSM Module for sending SMS
  • 14. 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
  • 15. OUTPUT PHOTOGRAPH • Read Full Project Here- Gas Leakage Detector using Arduino
  • 16. CIRCUITSTODAY • 1000+ Electronic Circuits and Projects • www.circuitstoday.com • To Buy Electronic Kits and Projects • www.store.circuitstoday.com