Project Report
Project Report
Bachelor of Technology
By
Amritya Nandan Paul (Roll No. 14402813002)
Partha Pratim Das (Roll No. 14402813008)
Gaurav Debnath (Roll No. 14402813004)
Krishnendu Roy (Roll No. 14402813005)
Under the supervision of
Prof. Ashoke Kumar Basu
1
Report Approval
_______________ _______________
Supervisor Head of the Department
Date: ___________
Place: ___________
2
CONTENTS
1. Abstract 4
2. Acknowledgement 5
3. Introduction 6
4. Hardware Implementation
MQ5 Sensor 7
Arduino 8
GSM Module 9
LCD 11
5. Circuit Diagram 13
6. Working Principle 14
7. Dual Tone Multiple Frequency 15
8. Result 20
9. Advantages 21
10. Future Scope 22
11. Conclusion 23
12. Source Code 24
13. References 28
3
ABSTRACT
4
ACKNOWLEDGEMENT
5
INTRODUCTION
6
HARDWARE IMPLEMENTATION
COMPONENTS USED :-
MQ5 Sensor
MQ5 is a semiconductor type gas sensor which detects the gas
leakage. The sensitive material of MQ-5 is tin dioxide (SnO2). It has
very low conductivity in clean air. This Gas sensor not only has
sensitivity to propane and butane but also to other natural gases, low
sensitivity to cigarette smoke and alcohol. The MQ-5 gas sensor is
shown in fig. 1. This sensor can also be used for detection of other
combustible gas such as methane
Fig. 1
7
Resistance value of MQ-5 is difference to various kinds and various
concentration gases. So, when using these components, sensitivity
adjustment is very necessary. We recommend that you calibrate the
detector for 1000ppm H2 or LPG concentration in air and use value of
Load resistance (RL) about 20 KO(10KO to 47KO). When accurately
measuring, the proper alarm point for the gas detector should be
determined after considering the temperature and humidity influence.
ARDUINO
Fig. 2
8
The microcontroller on the board is programmed using the Arduino
programming language and the Arduino development environment. Here
this Arduino gets the sensed information from LPG gas sensor and sends
it to the GPRS shield to alert the user via SMS and Call and as well as
glow the LED and switch on the fan. An Arduino board consists of an
Atmel 8-bit AVR microcontroller with complementary components to
facilitate programming and incorporation into other circuits. An Arduino
microcontroller is also preprogrammed with a boot loader that simplifies
uploading of programs to the on-chip flash memory, compared with other
devices that typically need an external programmer. Arduino boards are
programmed via USB, implemented using USB-to-serial adapter chips
such as the FTDI FT232.
An on-board LED attached to digital pin 13 for fast an easy debugging of
code. 32 KB of flash memory for storing your code. 13 digital pins and 6
analog pins. These pins allow us to connect external hardware to the
Arduino. An ICSP connector for bypassing the USB port and interfacing
the Arduino directly as a serial device. This port is necessary to re-boot
load your chip if it corrupts and last, but not least, a button to reset the
program on the chip.
GSM Module
GSM SIM 900 Quad-band GSM/GPRS engine, works on
frequencies 850MHz, 900MHz, 1800MHz. It is very compact in size
and designed with RS 232 level converter circuitry, which allows
you to directly interface PC Serial port. GSM uses a combination of
Time Division Multiplexing and Frequency Division Multiplexing.
The baud rate can be configurable from 9600-115200 through AT
command. Initially Module is in Auto band mode. This GSM/GPRS
RS232 Module is having internal TCP/IP stack to enable you to
connect with internet via GPRS. Using this module, we will be able
to send & read SMS, Connect to internet via GPRS through simple
AT commands. The suitable operating voltage level is 5V-12V DC.
9
When the gas leakage is detected by the gas sensor, microcontroller
sends a signal to GSM module in which one of the tasks is to send
the text SMS as well as call. GSM module requires one SIM card.
This module is capable to accept any network SIM card.
Fig. 3
This module has a unique identity number like mobile phones have.
These module works on 12V DC supply we can send SMS and also
send a voice message. These SMS or voice messages are saved in
the microcontroller memory. Multiple SMSs can also be sends to
user, police and fire station etc. This GPRS Shield contains low cost
GSM SIM 300 Module [8]. This reconfigurable Quad Band module
supports all GSM operator SIM cards. It shares its applications in
10
Blue….Graphics LCDs are various streams such as SMS based
remote control alerts, Security applications, Sensor monitoring and
GPRS mode remote data logging.
LCD
A liquid crystal display (LCD) is a flat panel display, electronic
visual display, or video display that uses the light modulating
properties of liquid crystals (LCs). LCs do not emit light directly.
They are used in a wide range of applications, including computer
monitors, television, instrument panels, aircraft cockpit displays,
signage, etc. They are common in consumer devices such as video
players, gaming devices, clocks, watches, calculators, and
telephones. LCDs have replaced cathode ray tube (CRT) displays in
most applications. They are available in a wider range of screen
sizes than CRT and plasma displays, and since they do not use
phosphors, they cannot suffer image burn-in. LCDs are, however,
susceptible\to image persistence. LCDs are more energy efficient
and offer safer disposal than CRTs. Its low electrical power
consumption enables it to be used in battery-powered electronic
equipment. It is an electronically modulated optical device made up
of any number of segments filled with liquid crystals and arrayed in
front of a light source (backlight) or reflector to produce images in
color or monochrome. The most flexible ones use an array of small
pixels. The earliest discovery leading to the development of LCD
technology, the discovery of liquid crystals, dates from 1888. By
2008, worldwide sales of televisions with LCD screens had
surpassed the sale of CRT units. LCDs available in two models:
Character LCD and Graphics LCD. The character LCD displays
ASCII values and graphics LCD displays graphics. Character LCDs
are available in various kinds of models.
11
Pin Description:
Pin
Function Name
No
4 Selects command register when low; and data register when high Register Select
5 Low to write to the register; High to read from the register Read/write
6 Sends data to data pins when a high to low pulse is given Enable
7 DB0
8 DB1
9 DB2
10 DB3
8-bit data pins
11 DB4
12 DB5
13 DB6
14 DB7
12
CIRCUIT DIAGRAM
13
WORKING PRINCIPLE
This Gas leakage detection module consists of small LPG gas sensor,
Arduino UNO board, GPRS Shield, Cell phone, LED that fit into a small
place. One portion of the Gas sensor is connected to the power supply. In
the next portion, the central heat coil is connected to the Ground. One of
the remaining two pins is connected to the ARDUINO’s analog pin.
The last pin is connected to the ground via 10KΩ load resistance. In this
way the sensor communicates with the microcontroller. Parallelly, alarm
is connected to a digital pin. GPRS shield is embedded on Arduino
controller board that reads the information (data) from Sensor process it
& sends an SMS & a call to the user via radial link. The GPRS Shield
includes the GSM sim 900 module that reads and sends message through
AT commands. Multiple users can be added to the SIM card. LED
indication visually alerts the hearing impaired people. Alarm provides the
long beep to help the visually impaired people to protect themselves.
Instead of leaving voice alert, long beep has higher frequency range that
travels long distance.
14
DUAL TONE MULTIPLE
FREQUENCY
DTMF is a signaling system for identifying the keys or better say the
number dialed on a pushbutton or DTMF keypad. The early telephone
systems used pulse dialing or loop disconnect signaling. This was
replaced by multi frequency (MF) dialing. DTMF is a multi-frequency
tone dialing system used by the push button keypads in telephone and
mobile sets to convey the number or key dialed by the caller. DTMF has
enabled the long distance signaling of dialed numbers in voice frequency
range over telephone lines. This has eliminated the need of telecom
operator between the caller and the callee and evolved automated dialing
in the telephone switching centers.
15
A DTMF keypad (generator or encoder) generates a sinusoidal tone
which is mixture of the row and column frequencies. The row frequencies
are low group frequencies. The column frequencies belong to high group
frequencies. This prevents misinterpretation of the harmonics. Also the
frequencies for DTMF are so chosen that none have a harmonic
relationship with the others and that mixing the frequencies would not
produce sum or product frequencies that could mimic another valid tone.
The high-group frequencies (the column tones) are slightly louder than
the low-group to compensate for the high-frequency roll off of voice audio
systems.
Most DTMF decoders can process at least 10 tones per second under the
worst of conditions, so DTMF can easily convey 40 (10 x 4) bits or 5 bytes
of data per second which is nowhere near to the performance of a good
communication modem, which can operate nearly 600 times faster
(28,800 bits per second). But DTMF signaling is lot more robust under
noisy line conditions.
16
It should be noted that the numbers and symbols on the keypad do not
always match the binary values of DTMF decoders. Most notably, the ‘0’
on the keypad is represented in DTMF by a decimal value of 10 or binary
value of 1010.
KEYBOARD
DECIMAL VALUE BINARY VALUE
SYMBOL
0 0000 D
1 0001 1
2 0010 2
3 0011 3
4 0100 4
5 0101 5
6 0110 6
7 0111 7
8 1000 8
9 1001 9
10 1010 0
11 1011 *
12 1100 #
13 1101 A
14 1110 B
15 1111 C
17
Applications:
DTMF tones are thus mainly used at the telephone switching centers for
detection of dialed/called number. They are also used by certain radio and
cable TV networks. These networks use DTMF tones to signal a network
station or local cable operator when a local advertisement is to be inserted
or for station identification. In broadcasting, this is known as local
insertion. DTMF tones were also used by terrestrial stations for turning
on and shutting off remote transmitters.
19
RESULT
20
ADVANTAGES
21
FUTURE SCOPE
22
CONCLUSION
In this system we have describe a new approach for gas leakage detection
system at a low concentration. The leakage is detected with the help of
MQ-5 gas sensor. Sensor sends a signal to microcontroller. In the next
step microcontroller sends an active signal to other externally connected
devices . The efficiency and the memory of then Microcontroller can be
increased if ATME28P microcontroller is used in place of PIC multiple
SMS can be sent by changing programming GSM module. To change the
SIM card we have to make changes in program. In future we will add
automatic door opening application, and as well as automatic closing of
cylinder valve whenever the gas leakage is detected.
23
SOURCE CODE:
#include <SoftwareSerial.h>
#include <LiquidCrystal.h>
int sensor=7;
int speaker=8;
int Gas_Leak_Status;
int sms_count=0;
void setup()
pinMode(sensor,INPUT);
pinMode(speaker,OUTPUT);
mySerial.begin(9600);
Serial.begin(9600);
lcd.begin(16,2);
delay(500);
void loop()
24
CheckGas();
CheckShutDown();
void CheckGas()
lcd.setCursor(0,0);
Gas_alert_val=ScanGasLevel();
if(Gas_alert_val==LOW)
}}
int ScanGasLevel()
void SetAlert()
digitalWrite(speaker,HIGH);
25
{
Gas_Leak_Status=1;
lcd.setCursor(0,1);
void CheckShutDown()
if(Gas_Leak_Status==1)
Gas_shut_val=ScanGasLevel();
if(Gas_shut_val==HIGH)
lcd.setCursor(0,1);
digitalWrite(speaker,LOW);
sms_count=0;
Gas_Leak_Status=0;
}}}
void SendTextMessage()
26
{
delay(1000);
delay(1000);
delay(200);
delay(1000);
delay(1000);
delay(200);
delay(1000);
sms_count++;
27
REFERENCES
1) www.circuitstoday.com
4) www.erpublication.org
28