Gas Leakage Detector Using Arduino With Sms Alert 160215122705
Gas Leakage Detector Using Arduino With Sms Alert 160215122705
• 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
• 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
• 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