Professional Documents
Culture Documents
PROJECT REPORT
ON
Pollution detection system with intelligent alerting system
Submitted
In partial fulfillment
For the award of the degree of
Bachelor of Technology
In Department of Electronics & Communication Engineering
Submitted By:
Ritika Arora (0838131030)
Shubhashish Dixit (0838131031)
Humaira Anam (0838131409)
Rishabh Singh (0838131029)
PROJECT REPORT
ON
By
Ritika Arora (0838131030)
Shubhashish Dixit (0838131031)
Humaira Anam (0838131409)
Rishabh Singh (0838131029)
Prof. R.K.Yadav
Mr. Akhilesh Sharma
Mr. Ajay Kumar
Ms. Sonali Gupta
Mr. P.K.Raghav
PROJECT GUIDE
PROJECT INCHARGE
CERTIFICATE
This is to certify that the project entitled Pollution detection system with
intelligent alerting system
has been carried out by RITIKA ARORA, SHUBHASHISH DIXIT, RISHABH
SINGH and HUMAIRA ANAM under my guidance in partial
fulfillment of the degree of Bachelor of Technology in Electronics &
Communication Engineering of Gautam Buddh technical University
Lucknow during the academic year 2011-2012. To the best of my
knowledge and belief this work has not been submitted elsewhere for the
award of any other degree.
Project Incharge
Examiner
Project Guide
ACKNOWLEDGEMENT
PAGE INDEX
S. No.
i
ii
Iii
iv
v
vi
1
CONTENTS
Certificate
Acknowledgement
List of Tables
List of Figures
List of Symbols
Abstract
INTRODUCTION
1.1 General Introduction
1.2 Organization Of Project
1. 3 Project Statement
CIRCUIT STRUCTURE
2.1 GENERAL THEORY
2.2 PRIMARY COMPONENTS
2.2.1 AT89C51 MICRO CONTROLLER
2.2.2 SENSOR BOARD
2.3 LED ARRAY
2.4 DRIVER CIRCUIT
2.5 MQ-6 GAS SENSOR
2.5.1 CHARACTERISTICS
2.5.2 APPLICATIONS
2.5.3 STRUCTURE AND CONFIGURATION
2.5.4 BASIC TEST LOOP
2.5.5 CONDITIONS THAT MUST BE AVOIDED
2.6 RESET CIRCUIT
2.7 ALARM
2.8 RELAY
2.9 EXHAUST FAN
2.10 CRYSTAL OSCILLATOR
2.11 AUTO DIALER
2.12 POWER SUPPLY
2.13 IC 7805
2.13.1 PIN DIAGRAM
2.13.2 PIN DESCRIPTION:
Page no.
I
II
VIII
IX
XI
XII
1
1
3
7
9
9
9
10
10
12
12
12
12
12
13
13
13
15
15
15
16
16
16
17
17
17
18
IC
MONOSTABLE
18
19
19
20
MULTIVIBRATOR 20
OPERATIONS
2.15.3 MONOSTABLE MULTIVIBRATOR DESIGN USING 21
555 TIMER IC
2.16 GENERAL FUNCTIONAL DESCRIPTION
2.17 FULL CIRCUIT STRUCTURE & EXPLANATION
MICROCONTROLLER AT89C51
3.1 AT89C51 MICROCONTROLLER
3.1.1 FEATURES
3.1.2 DESCRIPTION
3.2 ARCHITECTURE OF 8951 FAMILY
3.2.1 PIN DESCRIPTION
3.2.1 VCC
3.2.2 GND
3.2.3 PORT 0
3.2.4 PORT 1
3.2.5 PORT 2
3.2.6 PORT 3
3.2.7 RST
3.2.8 PORT PIN ALTERNATE FUNCTIONS
3.2.9 ALE/PROG
3.2.10 PSEN
3.2.11 EA/VPP
3.2.12 XTAL 1
3.2.13 XTAL 2
3.2.14 OSCILLATOR CHARACTERISTICS
3.2.15 IDLE MODE
3.2.16 STATUS OF EXTERNAL PINS DURING IDLE AND
21
22
25
25
25
25
26
26
27
28
28
28
28
30
30
31
31
32
32
32
32
32
33
34
POWER-DOWN MODES
3.2.17 POWER DOWN MODE
3.2.18 PROGRAMMING THE FLASH
3.2.19 PROGRAM MEMORY LOCK BITS
3.2.20 LOCK BIT PROTECTION MODES
3.3 PROGRAMMING ALGORITHM
3.3.1 DATA POLLING
34
35
36
36
37
37
3.3.2 READY/BUSY
3.3.3 PROGRAM VERIFY
3.3.4 CHIP ERASE
3.3.5 READING THE SIGNATURE BYTES
3.4 PROGRAMMING INTERFACE
3.5 SPECIAL FUNCTION REGISTER (SFR) ADDRESSES
3.6 MCS-51 FAMILY INSTRUCTION SET
COMPUTER AIDED INSTRUCTION
4.1 INTRODUCTION
4.2 CONCEPT OF COMPILER
4.3 CONCEPT OF CROSS COMPILER
4.3.1 WHY DO WE NEED CROSS COMPILER?
4.4 INSTALLING SDCC
4.5 INSTALLING SiLABS IDE
4.5.1 CONFIGURING SiLABS IDE WITH SDCC
4.6 CREATING A PROJECT
4.6.1 COMPILING A PROJECT
4.6.2 EXECUTING THE PROGRAM ON THE
C8051F120
4.6.3 ASCII TERMINAL PROGRAMS
4.6.4 IDE FILE LOCATION REQUIREMENT
4.7 PROGRAMMING HINT
4.8 8051 PROJECT DEVELOPMENT CYCLE
4.9 INSTRUCTION DEFINITION
4.10 SOFTWARE LOGIC OF THE PROJECT
APR9600 RE-RECORDING VOICE IC
5.1 APR 9600
5.1.1
FEATURES
5.2 GENERAL DESCRIPTION
5.3 FUNCTIONAL DESCRIPTION
5.4 MESSAGE MANAGEMENT
5.4.1
MESSAGE
MANAGEMENT
37
37
38
38
38
39
46
72
73
74
74
75
75
76
76
76
77
77
78
78
78
78
79
86
91
91
91
92
92
93
GENERAL 93
DESCRIPTION
5.4.2 RANDOM ACCESS MODE
95
5.4.2.1 FUNCTIONAL DESCRIPTION OF RECORDING IN 95
RANDOM ACCESS MODE
5.4.2.2 FUNCTIONAL DESCRIPTION OF PLAYBACK 96
RANDOM ACCESS MODE
5.4.3 TAPE MODE
96
5.4.3.1 FUNCTION DESCRIPTION OF RECORDING IN 96
MESSAGE 100
MANAGEMENT
5.6 SIGNAL STORAGE
5.7 SAMPLING RATE & VOICE QUALITY
5.8 AUTOMATIC GAIN CONTROL (AGC)
5.9 SAMPLING APPLICATION
5.10 FIGURES OF MODES
5.11 PIN DESCRIPTION
5.12 ELECTRICAL CHARACTERISTICS
5.13 APPLICATION TIPS
101
101
102
102
103
106
108
110
111
111
112
112
113
BIBLIOGRAPHY
115
LIST OF TABLES
Tables
Table 2.1 Pin Description of IC 7805
Table 3.1 Pin Diagram of AT89C51
Table 3.2 Port 3 Functions
Table 3.3 Status of External Pins during Idle and Power-Down Modes
Table 3.4 Flash Programming Mode Signature Codes
Table 3.5 Lock Bit Protection Modes
Table 3.6 Signature Bytes
Table 3.7 SFR Addresses
Table 3.8 Modes of Operation
Table 3.9 PSW Register Details
Table 3.10 PCON Register
Table 3.11 Baud Rate Comparison for XTAL = 11.0592 MHZ
Table 3.12 TCON Register
Table 3.13 SCON Register
Table 3.14 Modes of SCON Register
Table 3.15 TMOD Register
Table 3.16 Modes of TMOD
Table 3.17 IE Register
Table 3.18 IP Register
Table 3.19 T2CON Register
Table 5.1 Mode selection
Table 5.2 Input Bandwidth & Duration
Table 5.3 Pin Description of APR 9600
Table 5.4 Absolute Maximum Ratings
Table 5.5 DC Characteristics
Table 5.6 Analog Characteristics
Page No.
18
30
31
34
35
36
38
39
40
41
42
42
43
43
44
44
44
45
45
46
95
101
108
109
109
109
LIST OF FIGURES
Figures
Page No.
11
13
14
16
17
20
20
24
logic
Fig 3.1 Basic Architecture of AT89C51 Microcontroller
Fig 3.2 Pin Diagram of Micro controller 8951
Fig 3.3 Oscillator connection
Figure 3.4 External Clock Drive Configuration
Fig 3.5 TMOD Register
Fig 3.6 PSW Register
Fig 3.8 Arithmetic Operation
Fig 3.9 Logic Operation
3.10 Data Transfer Operation
Fig 3.11 Boolean Manipulation & Program & Machine Control
26
27
33
34
39
41
47
49
49
50
Operation
Fig 4.1 Load New File in 8051 IDE
Fig 4.2 Auto Dial Up Coding
Fig 4.3 8951 Selection
Fig 4.4 Loading Flash Buffer
Fig 4.5 Gas Sensor with MCU
Fig 4.6 Gas Sensor with MCU
Fig 5.1 Pin Diagram of APR 9600 IC
Figure 5.2 APR9600 Block Diagram
Fig 5.3 APR9600 Experimental board
Figure 5.4 Tape Mode, Normal Option
Figure 5.5 Tape Mode, Auto Rewind Option
Figure 5.6 Random Access Mode
82
83
84
85
88
89
93
94
100
103
104
105
ABSTRACT
CHAPTER-1
INTRODUCTION
accident in any one of the blocks the person on that incident generally they makes a
call to the administrative block or security block as took over and they has to call the
ambulance, fire station etc. It will be a long time process, so in the mean the damage
may increase in gigantic extent. The most basic fire protection methods include fire
prevention, detection and control. Buildings should be constructed using fire rated
walls, doors, ceilings and floors. The use of combustible materials in interior
furnishing should be kept to a minimum. There are several types of detection devices.
Automatic fire detection systems, when combined with other elements of an
emergency response and evacuation plan, can significantly reduce property damage,
personal injuries, and loss of life from fire in the work place. Their main function is to
quickly identify a developing fire and alert building occupants and emergency
response personnel before extensive damage transpire. Automatic fire detection
systems do this by using electronic sensors to detect the smoke, heat or flames and
providing an early warning. Heat detectors which respond to heat generated in the
flame stage of a fire and smoke detectors which respond to the particles of cumbers
ion produced in a fire.
A fire alarm control panel, normally referred to as a panel within the active
fire protection industry is central control device for detecting, reporting and acting on
occurrences of fire with in a building. There are two types of panel's fallen
conventional panels and analogue addressable panels. In a conventional panel, fire
detection devices including, but not limited to smoke detectors, heat detectors and
manual call points are joined up with a number connected to the circuit. When a
device on the circuit is activated the panel recognizes an alarm on that circuit and
could be setup to take a number of actions including directly calling the fire
department via an alarm transportation system. An addressable panel is a more
modern type of panel and has a greater flexibility than a conventional panel. An
addressable panel has a number of loops where a number of devices are to be
connected, each with its own address. Bad experiences with early systems have left
the police reluctant to allow domestic security system to call for assistance directly,
except on high risk situations. Security systems can now be configured to call
telephones in the event of an alarm so that the occupants are nominated care takers
can be alerted before calling the police.
Business and industry today requires security systems that are the fact of life.
Your company simply must have them to protect your employees, your equipment and
sky scrapers themselves. There is only one thing more important than the selection of
the security systems to protect your facilities. That is why you should consider
reliable fire equipment for your security system requirements. Security and fire
protection are closely related to energy management in so far as they present tractable
goals for automated systems. It has been considered relatively easy for machine based
systems to recognize anomalous activity around the home which could be interpreted
as possible security breaches, accidents or fires. Fire damage, however can be
permanent and involves the entire life of human. Much can be done to minimize the
chance of a fire stating or spreading. Progress in fire technologies has been substantial
over last decade due to advances in sensor, microelectronics and information
technologies, as well as a greater understanding of fire physics. This paper provides a
review of progress in fire detection technologies over the last decades some problems
& a future research efforts related to current fire detection technologies are discussed.
1. 2 PROJECT STATEMENT
Nowadays, most couples leave for work early in the morning and get back
only in the evening. Most people also have to travel to other cities for their work.
When they are away, their house is empty. Therefore case like leakage of LPG and
short circuitry fire or else is easy to occur because the home owners are not in the
house. Our Country India has many such cases and still going ascending day by day.
The based solution is to develop home security system using a wireless to keeps your
house safe from such accidents and enables you to work in peace.
Based on the events above, the project can be developing to make our home
secure and safe. We never anxious and worried anymore even we leave the house. So
this project is to design and develop a home security system that can provide security
against gas leak, fire and other emergency situation by alarm via calling to the home
owner as there is something suspicious at home. Today there are a many wireless
home security alarm system available in the market. Some are designed for very high
security level protection and some are basic type. Most of the alarm systems are very
expensive and therefore not affordable by poor or middle class families. Some
systems which cheaper in cost do not provide reliable features like status checking. To
provide the public with a cost effective wireless security system, it is important to
design a low cost system with advanced features which ease the residents' life and
benefits the public and also will decrease the accident rate of India. Besides that, to
develop the system that can monitor gas leakage and fire detector including control
appliances in our home is a good matter. It is important because the system can be
help people through the realization of fully automated home protections. So this
project wills develops and design the home security system that can control the lamp
in the house.
CHAPTER 2
CIRCUIT STRUCTURE
LED array
555 IC
Reset circuit
ALARM
Relays
Crystal oscillator
Auto dialer
Power supply
Gas Sensor
In this sensor unit we connect 2 sensors, now it is our choice how many sensors
we use.
In the fire sensor we use bimetallic plates to sense fire, when fire touch the
bimetallic plates then plates join together and immediate provide a signal to the
controller. Fire sensor is attached to the IC 555. Here IC 555 work as a mono stable
timer and output signal is available on the pin 3 this signal is connected to the
microcontroller .When fire is on then sensor detect the logic and immediate provide a
signal to the controller.
Gas sensor is a special sensor when gas sensor sense the gas then gas sensor again
provides a small signal to the microcontroller via IC 555.
In the gas sensor interface we use gas sensor as a input logic. We attach one IC 555 as
with this sensor. Here IC 555 works as a monostable multivibrator timer. Sensor
output is connected to the IC 555 pin no 2 via NPN transistor. Pin no 2 is a negative
triggered IC. When sensor activate then positive output is available and this positive
output is converted into negative with the help of the NPN transistor. Output of the
NPN transistor is now connected to the pin no 2 of the IC 555. Pin no 4 and 8 of the
IC 555 is connected to the positive supply. Pin no 1 is connected to the ground pin.
Pin no 7 is the output pin. Pin no 6 and 7 is the time constant pin. Pin no 6 and 7
provide a time constant option. When IC 555 works then output is available on the pin
no 3. Now this output is switching by the further NPN transistor. One LED is also
connected to the transistor circuit. Output of the NPN transistor is available on the
collector point. This output from the collector of NPN is now connected to the
microcontroller pin no 1 which is port p1.0. Pin no 40 of the controller is connected to
the positive supply. We supply a 5 volt for supply.
These sensors firstly connected with the monostable circuit and then
connected to the microcontroller interface. In the monostable circuit we use IC 555 as
a monostable circuit.
2.5.1 CHARACTERISTICS
2.5.2 APPLICATIONS
RS = (VCC/VRL-1) RL.
Water Condensation
No matter the sensor is electrified or not, if long time placed in high gas
concentration, if will affect sensors characteristic.
The sensors resistance produce reversible drift if its stored for long time without
electrify, this drift is related with storage conditions. Sensors should be stored in
airproof without silicon jell bag with clean air. For the sensors with long time storage
but no electrify, they need long aging time for stability before using.
Vibration
Concussion
If sensors meet strong concussion, it may lead its lead wire disconnected.
Usage
For sensor, handmade welding is optimal way. If use wave crest welding should
meet the following conditions:
Warm-up temperature10020
Welding temperature25010
RESET signal that is asserted during power-up. If a state machine is built using
discrete flip-flops with asynchronous preset and clear inputs, the RESET signal can
be applied to these inputs to force the machine in to the desired initial state.
2.7 ALARM
An ALARM is used to indicate detection in home as well as in industry. When
Gas is detected by the heat detector and the buzzer is activated. Same as in case of
heat or fire, when heat is detected by the heat detector and the buzzer is activated.
2.8 RELAY
A relay is an electrically controllable switch widely used in
industrial controls, automobiles and appliances. A relays are widely
used electronics circuits as remote control LED mechanical switches
turn a sequence of events ON and OFF. Relays are provided some
mechanical contacts and with their help they control operation of
other circuits. The terminology of both relays and switches is
identical that is similar to switches. Output of the controller is
connected to the relay driver circuit. Relay driver circuit basically
provide a ON OFF signal in single pulse. We connect these pulses to
the hands free of the cell phone. When hands free of the telephone is
activate through the microcontroller then phone is automatic on and
last redial number is dialed. When last number is redialed then after
call voice processor is on automatically and voice signal is transfer to
the mobile phone through mike.
To drive a relay we use two transistor circuits. One is NPN and
second is PNP transistor. Output from the controller is connected to
the base point of the PNP transistor through 1k ohm resistor. Emitter
of the PNP transistor is connected to the positive supply. Collector is
connected to the base of the NPN transistor. Collector of the NPN
transistor is connected to the relay coil. This relay coil presses the
hands free coil and redials the last number directly. User can treat it
as a warning message to go to home or industry if owner is out of
station. Once the call is activate then sound is transfer from the voice
processor to the mobile phone. Here we use IC APR 9600. With the
help of this IC we produce up to 6 sounds and it is possible to send a
different sound on different application with the help of the mobile
phone. When the relay is on and activates the last number redial the
after few second voice processor pin is on and play a voice message
this message is transfer to the phone automatically.
2.13 IC 7805
7805 is a voltage regulator integrated circuit. It is a member of 78xx series of
fixed linear voltage regulator ICs. The voltage source in a circuit may have
fluctuations and would not give the fixed voltage output. The voltage regulator
IC maintains the output voltage at a constant value. The xx in 78xx indicates the fixed
output voltage it is designed to provide. 7805 provides +5V regulated power supply.
Capacitors of suitable values can be connected at input and output pins depending
upon the respective voltage levels.[8]
DESCRIPTION:
Table 2.1 shows the pin description of IC 7805.
Pin Function
No
1
2
3
Name
Input
Ground
Output
APR 9600 is a good stand lone voice recorder or playback IC with non volatile
storage and playback capability from 5 to 60 seconds. It can record and play multiple
messages at random or in sequential mode. The user can select sample rates with
consequent quality and recording time trade off. Microphone amplifier, automatic
gain control (AGC) circuits, internal anti aliasing filter, integrated output amplifier
and message management are some of the features of the APR 9600. Complete chip
management is accomplished through the device control and message control blocks.
Voice signal from the microphone is fed into the chip through a differential amplifier.
It is further amplified by connecting Analogue-Out (pin 21) to Analogue in (pin 20)
via an external DC blocking capacitor C1. A bias signal is applied to the microphone
and to save power during playback, the ground return of this bias network can be
connected to the normally open side of the record switch. Both Mike in and Mike Ref
(pins 18 and 19) must be coupled to the microphone network through capacitors.
Recording signal from the external source can also be fed directly into the chip using
Ana-In (pin 20), but the connection between Ana-in ( pin 20) and Ana-out (pin 21) is
still required for playback. An internal anti-aliasing filter automatically adjusts its
response according to the sampling frequency selected. Then the signal is processed
into the memory array through a combination of the sample and hold circuits and
analogue read/write circuit. The incoming voice signals are sampled and the
instantaneous voltage samples are stored in the non-volatile flash memory cells in the
8 bit binary encoded format. During playback, the stored signals are retrieved from
the memory, smoothed to form a continuous signal level at the speaker terminals SP+
and SP- ( pins 14 and 15 respectively) is at
impedance. The output from pin 14 (SP+) is further amplified by the low power
amplifier using LM386 (IC2) as shown in the figure. The recorded message is
reproduced into speaker LS1. An internal oscillator provides sampling clock to the
APR 9600. The frequency of the oscillator and sampling rate depend on the value of
resistor R12 connected across the OSCR (pin 7) of the chip and the ground.[6][12]
The APR9600 chip supports the following message modes. Random access
mode with 2, 4, 8 message within the total recording time. Tape mode with two
options: Auto rewind and Normal operation. The modes are defined by pins 24, 25
and 9 cannot be mixed. An important feature of the APR9600 chip is indication of
changes in the device status through beeps superimposed on the device output: for
example, the start of recording is indicated by a beep, so the person can now start
speaking into the microphone. This feature is enabled by making pin 11 high.
Fig2.6 555-Timer-Monostable-Multivibrator
applied to pin 2, the trigger input falls below +1/3 VCC, the output of comparator goes
high which resets the flip-flop and consequently the transistor turns off and the output
at pin 3 goes high. This is the transition of the output from stable to quasi-stable state,
as shown in figure. As the discharge transistor is cutoff, the capacitor C begins
charging toward +VCC through resistance RA with a time constant equal to R AC. When
the increasing capacitor voltage becomes slightly greater than +2/3 VCC, the output of
comparator 1 goes high, which sets the flip-flop. The transistor goes to saturation,
thereby discharging the capacitor C and the output of the timer goes low, as illustrated
in figure 2.7.
Thus the output returns back to stable state from quasi-stable state.
The output of the Monostable Multivibrator remains low until a trigger pulse is again
applied. Then the cycle repeats. Trigger input, output voltage and capacitor voltage
waveforms are shown in figure.
tp =1.0986RAC,
where RA is in ohms and C is in farads.
The pulse width of the circuit may range from micro-seconds to many
seconds. This circuit is widely used in industry for many different timing applications.
Talking about Heat Sensor now, in case of short circuits at homes, industries
etc there arise high flames of fire and also there is some places where excess of heat is
too dangerous. Heat sensor element senses it n give signal to triggered input IC 555.
The IC 555 output is now connected to port 3.2 of IC 8951. The main difference here
is that the exhaust fan will not work during heat sensing case. Relay that already
connected to hands free will redial the last call or concerned authorities of home,
industry, hotel etc. APR will play pre recorded message so the information is sent to
owner & if within time limit someone approaches there, chances of accident can be
easily eliminated.
This is all about how stuff works. !!
CHAPTER3
MICROCONTROLLER AT89C51
3.1.2 DESCRIPTION
The AT89C51 is a low-power, high-performance CMOS 8-bit microcomputer
with 4K bytes of Flash Programmable and Erasable Read Only Memory (PROM).
The device is manufactured using Atmels high density nonvolatile memory
technology and is compatible with the industry standard MCS-51 instruction set
and pin out. The on-chip Flash allows the program memory to be reprogrammed insystem or by a conventional nonvolatile memory programmer. By combining a
versatile 8-bit CPU with Flash on a monolithic chip, the ATMEL AT89C51 is a
powerful microcomputer which provides a highly flexible and cost effective solution
to many embedded control applications. The AT89C51 provides the following
standard features: 4K bytes of Flash, 128 bytes of RAM, 32 I/O lines, two 16-bit
timer/counters, five vector two-level interrupt architecture, a full duplex serial port,
and on-chip oscillator and clock circuitry.
In addition, the AT89C51 is designed with static logic for operation down to
zero frequency and supports two software selectable power saving modes. The idle
mode stops the CPU while allowing the RAM, timer/counters, serial port and interrupt
system to continue functioning. The Power down Mode saves the RAM contents but
freezes the oscillator disabling all other chip functions until the next hardware reset.
is
an
belongs
to
Atmel's 8051
family. ATMEL 89C51 has 4KB of Flash programmable and erasable read only
memory (PEROM) and 128 bytes of RAM. It can be erased and program to a
maximum of 1000 times.
In 40 pin AT89C51, there are four ports designated as P 1, P2, P3 and P0. All
these ports are 8-bit bi-directional ports, i.e., they can be used as both input and output
ports. Except P0 which needs external pull-ups, rest of the ports have internal pull-ups.
When 1s are written to these port pins, they are pulled high by the internal pull-ups
and can be used as inputs. These ports are also bit addressable and so their bits can
also be accessed individually.
Port P0 and P2 are also used to provide low byte and high byte addresses,
respectively, when connected to an external memory. Port 3 has multiplexed pins for
special functions like serial communication, hardware interrupts, timer inputs and
read/write operation from external memory. AT89C51 has an inbuilt UART for serial
communication. It can be programmed to operate at different baud rates. Including
two timers & hardware interrupts, it has a total of six interrupts.
3.2.1 VCC
Pin 40 provides supply voltage to the chip. The voltage source is +5V.
3.2.2 GND
3.2.3 PORT 0
Port 0 is an 8-bit open drain bidirectional I/O port. As an output port each pin
can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as
high impedance inputs. Port 0 may also be configured to be the multiplexed low order
address/data bus during accesses to external program and data memory. In this mode
P0 has internal pull-ups. Port 0 also receives the code bytes during Flash
programming, and outputs the code bytes during program verification.
External pull-ups are required during program verification.
3.2.4 PORT 1
Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 1
output buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins
they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port
1 pins that are externally being pulled low will source current (IIL) because of the
internal pull-ups. Port 1 also receives the low-order address bytes during flash
programming and verification.
3.2.5 PORT 2
Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 2
output buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins
they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port
2 pins that are externally being pulled low will source current (IIL) because of the
internal pull-ups. Port 2 emits the high-order address byte during fetches from
external program memory and during accesses to external data memory that uses 16bit addresses (MOVX @ DPTR). In this application it uses strong internal pull-ups
when emitting 1s. During accesses to external data memory that uses 8-bit addresses
(MOVX @ RI); Port 2 emits the contents of the P2 Special Function Register. Port 2
also receives the high order address bits and some control signals during Flash
programming and verification.
Pin
Function
Name
No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
P1.0
P1.1
P1.2
P1.3
P1.4
P1.5
P1.6
P1.7
Reset
P3.0
P3.1
8
bit
P3.2
P3.3
port (P3) pins
P3.4
P3.5
P3.6
P3.7
Crystal 2
Quartz crystal oscillator (up to 24 MHz).
Crystal 1
Ground (0V).
Ground
P2.0/ A8
8 bit input/output port (P2) pins
P2.1/ A9
High-order address bits when interfacing with external P2.2/ A10
P2.3/ A11
memory.
P2.4/ A12
P2.5/ A13
input/output
27
P2.6/ A14
28
P2.7/ A15
29
30
31
32
33
34
35
36
37
38
39
40
P0.7/ AD7
P0.6/ AD6
8 bit input/output port (P0) pins.
P0.5/ AD5
P0.4/ AD4
Low-order address bits when interfacing with external
P0.3/ AD3
memory.
P0.2/ AD2
P0.1/ AD1
P0.0/ AD0
Supply Voltage; 5V (up to 6.6V)
Vcc
Table 3.1 Pin Diagram of AT89C51
3.2.6 PORT 3
Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 3
output buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins
they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port
3 pins that are externally being pulled low will source current (I IL) because of the pullups. Port 3 also serves the functions of various special features of the AT89C51 as
listed below:
Port 3 also receives some control signals for Flash programming and
verification.
3.2.7 RST
Reset input. A high on this pin for two machine cycles while the oscillator is
running resets the device.
Port Pin
Alternate Functions
P3.0
P3.1
P3.2
P3.3
P3.4
P3.5
P3.6
P3.7
3.2.9 ALE/PROG
Address Latch Enable output pulse for latching the low byte of the address
during accesses to external memory. This pin is also the program pulse input (PROG)
during Flash programming. In normal operation ALE is emitted at a constant rate of
1/6 the oscillator frequency, and may be used for external timing or clocking
purposes. Note, however, that one ALE pulse is skipped during each access to
external Data Memory. If desired, ALE operation can be disabled by setting bit 0 of
SFR location 8EH. With the bit set, ALE is active only during a MOVX or MOVC
instruction. Otherwise, the pin is weakly pulled high. Setting the ALE-disable bit has
no effect if the microcontroller is in external execution mode.
3.2.10 PSEN
3.2.11 EA/VPP
External Access Enable. EA must be strapped to GND in order to enable the
device to fetch code from external program memory locations starting at 0000H up to
FFFFH. Note, however, that if lock bit 1 is programmed, EA will be internally latched
on reset. EA should be strapped to VCC for internal program executions. This pin also
receives the 12-volt programming enable voltage (VPP) during Flash programming, for
parts that require 12-volt VPP.
3.2.12 XTAL 1
Input to the inverting oscillator amplifier and input to the internal clock
operating circuit.
3.2.13 XTAL 2
Output from the inverting oscillator amplifier.
Pulse ALE/PROG once to program a byte in the Flash array or the lock bits
The byte-write cycle is self-timed and typically takes no more than 1.5 ms. Repeat
steps 1 through 5, changing the address and data for the entire array or until the end of
the object file is reached.
3.3.2 READY/BUSY
The progress of byte programming can also be monitored by the RDY/BSY
output signal. P3.4 is pulled low after ALE goes high during programming to indicate
BUSY. P3.4 is pulled high again when programming is done to indicate READY.
ACC
B
PSW
ACCUMULATOR
B REGISTER
PROGRAM STATUS WORD
0E0H
0F0H
0D0H
SP
DPTR
DPL
DPH
P0
P1
P2
P3
TMOD
STACK POINTER
DATA POINTER 2 BYTES
LOW BYTE OF DPTR
HIGH BYTE OF DPTR
PORT0
PORT1
PORT2
PORT3
TIMER/COUNTER
81H
TCON
TH0
TLO
TH1
TL1
SCON
SBUF
PCON
CONTROL
TIMER COUNTER CONTROL
TIMER 0 HIGH BYTE
TIMER 0 LOW BYTE
TIMER 1 HIGH BYTE
TIMER 1 LOW BYTE
SERIAL CONTROL
SERIAL DATA BUFFER
POWER CONTROL
82H
83H
80H
90H
0A0H
0B0H
MODE 89H
88H
8CH
8AH
8DH
8BH
98H
99H
3.5.1.1 GATE
Gating control when set. Timer/counter is enabled only while the INTX pin is
high and the TRx control pin is set. When cleared, the timer is enabled whenever the
TRx control bit is set
3.5.1.2 C/T
Timer or counter selected cleared for timer operation (input from internal
system clock)
M1
M0
M1
0
0
1
1
Mode bit 1
Mode bit 0
M0
0
1
0
1
MODE
OPERATING
MODE
13
TIMER/MODE
16 BIT TIMER
MODE
8 BIT
RELOAD
SPLIT
TIMER
MODE
BIT
AUTO
CHAPTER 4
COMPUTER AIDED INSTRUCTION
4.1 INTRODUCTION
In MPS we you will be developing code for the C8051F120 EVB (evaluation
board). This board is from Silicon Laboratories (SiLabs). For that purpose, you will
be using a x86 based PC (your laptop, a desktop, or co processor card in a Sun Ultra
10 workstation) to write and compile the controller programs. This type of
development is called Cross Platform Development. After generating the machine
code for the target environment and before you can run it you must download it to the
C8051F120.
When doing cross platform development, extra knowledge of the target
environment is needed. It is important to be able to answer the following questions:
The SiLabs IDE is a convenient way to edit, compile, and download source
code written for the microcontroller. While SiLabs provides a nice interface for
making source code changes and easily downloading them to the development boards,
it lacks the actual compiler portion which converts C code to hex files, the common
format used by the 8051. To do this, a free and widely used open source tool called
Small Device C Compiler (SDCC) is used. SDCC compiles the C code written, and
automatically optimizes and converts it to hex. Due to its popularity, support for
SDCC in the SiLabs IDE comes standard, making it easy and convenient to use.
analyzes and execute each line of source code in succession, without looking at the
entire program.
The advantage of interpreters is that they can execute a program immediately.
Secondly programs produced by compilers run much faster than the same programs
executed by an interpreter. However compilers require some time before an
executable program emerges. Now as compilers translate source code into object
code, which is unique for each type of computer, many compilers are available for the
same language.
Register allocation and addressing mode details are managed by the compiler.
Keywords and operational functions that more nearly resemble the human
thought process can be used.
The library files that are supplied provide many standard routines (such as
formatted output, data conversions, and floating-point arithmetic) that may be
incorporated into your application.
The C language is very portable and very popular. C compilers are available
for almost all target systems. Existing software investments can be quickly and
easily converted from or adapted to other processors or environments.
1. Download the latest snapshot under the Windows package with installer
section. A copy can also be obtained from the course website.
2. Open the executable that was just downloaded and allow the
installation wizard to step you through the process of installing SDCC
on your computer. It is recommended that you leave all of the
configuration options and installation paths the same as suggested by the
on:
StartAll
ProgramsSilicon
LaboratoriesSilicon
Laboratories IDE
2. Once open, click on: ProjectsTool Chain Integration
3. You will see a Select Tool Vendor dropdown box. Select SDCC from this
menu.
4. Next, you will notice that the Assembler tab is selected by default. Click
on Browse to tell SiLabs where SDCC is installed. If you kept all the paths
to the default as recommended, the path should be: C:\Program
Files\SDCC\bin\asx8051.exe
5. After the assembler path is configured, you will need to configure the
compiler path. To do this, click on the Compiler tab. Once again, click
Browse and select the path to where SDCC is installed. If you kept all the
paths
to
the
default,
the
full
path
should
be:
C:\Program
Files\SDCC\bin\sdcc.exe
6. Finally, to configure the linker, select the Linker tab. Click Browse and
select the path where SDCC is installed. The full path for a default
installation should be: C:\Program Files\SDCC\bin\sdcc.exe
7. Once you have made these changes, click OK. It is very important that
you not change anything outside of what has been mentioned above,
especially the command line flags passed to SDCC.
8. You have successfully set up SiLabs IDE to use SDCC!
Fortunately there are menu items that will perform all these operations. For
a C source file in an opened IDE Project, the menu commands to generate the
.exe download file are:
1. To compile your project, first verify that all of your code is correct. If its
not, dont worry, the compiler will catch your mistakes.
2. Click on: ProjectAssemble/Compile File
(<Ctrl><F7> or icon)
this will compile your project source code. The window at the bottom of
the IDE will alert you of any errors or warnings it finds in your code. If
there are errors, correct them first before moving on to the next step. If
there are warnings, you may or may not want to correct them, depending
on the nature of the warning.
3. Next click on: ProjectBuild/Make Project(<F7> or icon) This will
link your compiled file. Any errors detected by the linker will be
displayed.
HyperTerminal.
Create a new connection configured for a direct connection to COM1 (no
modem) with 115200 bits per second, 8 data bits, no (none) parity, 1 stop bit, and
no (none) flow control (handshaking).
Connect a DB-9 serial cable from the PC card serial port to the serial port on
the EVB.
Compilers produce hex files that we download in to the ROM of the micro
controller. The size of the hex file produced by the compiler is one of the main
concerns of micro controller programmers for two reasons:
1. Micro controllers have limited on-chip ROM
2. The code space for the 8051 is limited to 64k bytes.
While assembly language produces a hex file that is much smaller than C.
Programming in assembly language is tedious and time consuming. C programming,
on the other hand, is less time consuming and much easier to write. One statement in
C belongs to several statements in assembly language. However if we learn easily
instructions we can easily deal with C programming. Some of the assembly
instructions are discussed below.[5]
Output is available on the pin no 3. Sensor is connected to the pin no 2. In the case of
Gas sensor, Pin no 2 is negative bias through the 33k ohm resistor and pin no 3 is
positively biased. Infrared LED is directly connected to the positive and negative
supply through the 470 ohm resistor.
CHAPTER - 5
APR9600 RE-RECORDING VOICE IC
5.1.2
FEATURES
Automatic power-down
5.2
GENERAL DESCRIPTION
The APR9600 device offers true single-chip voice recording, non-volatile
storage, and playback capability for 5 to 60 seconds. The device supports both
random and sequential access of multiple messages. Sample rates are user-selectable,
allowing designers to customize their design for unique quality and storage time
needs. Integrated output amplifier, microphone amplifier, and AGC circuits greatly
simplify system design. The device is ideal for use in portable voice recorders, toys,
and many other consumer and industrial applications.
APLUS integrated achieves these high levels of storage capability by using its
proprietary analog/multilevel storage technology implemented in an advanced Flash
non-volatile memory process, where each memory cell can store 256 voltage levels.
This technology enables the APR9600 device to reproduce voice signals in their
natural form. It eliminates the need for encoding and compression, which often
introduce distortion.
5.3
FUNCTIONAL DESCRIPTION
APR9600 block diagram is included in order to describe the devices internal
architecture. At the left hand side of the diagram are the analog inputs. A differential
microphone amplifier, including integrated AGC, is included on-chip for applications
requiring use. The amplified microphone signals fed into the device by connecting the
ANA_OUT pin to the ANA_IN pin through an external DC blocking capacitor.
Recording can be fed directly into the ANA_IN pin through a DC blocking capacitor,
however, the connection between ANA_IN and ANA_OUT is still required for
playback. The next block encountered by the input signal is the internal anti-aliasing
filter. The filter automatically adjusts its response according to the sampling
frequency selected so Shannons Sampling Theorem is satisfied. After anti-aliasing
filtering is accomplished the signal is ready to be clocked into the memory array. This
storage is accomplished through a combination of the Sample and Hold circuit and the
Analog Write/Read circuit. These circuits are clocked by either the Internal Oscillator
or an external clock source. When playback is desired the previously stored recording
is retrieved from memory, low pass filtered, and amplified as shown on the right hand
side of the diagram. The signal can be heard by connecting a speaker to the SP+ and
SP- pins. Chip-wide management is accomplished through the device control block
shown in the upper right hand corner. Message management is provided through the
message control block represented in the lower center of the block diagram. More
detail on actual device application can be found in the Sample Application section.
More detail on sampling control can be found in the Sample Rate and Voice Quality
section. More detail on Message management and device control can be found in the
Message Management section.
5.4
MESSAGE MANAGEMENT
Auto rewind
Normal
Modes cannot be mixed. Switching of modes after the device has recorded an
initial message is not recommended. If modes are switched after an initial recording
has been made some unpredictable message fragments from the previous mode may
remain present, and be audible on playback, in the new mode. These fragments will
disappear after a Record operation in the newly selected mode. Table 1 defines the
decoding necessary to choose the desired mode.
An important feature of the APR9600 Message management capabilities is the
ability to audibly prompt the user to change in the device's status through the use of
"beeps" superimposed on the device's output. This feature is enabled by asserting a
logic high level on the BE pin.
Table
5.1
Mode
selection
On power up, the device is ready to record or playback in any of the enabled
message segments. To record,/CE must be set low to enable the device and /RE must
be set low to enable recording. You initiate recording by applying a low level on the
message trigger pin that represents the message segment you intend to use. The
message trigger pins are labeled /M1_MESSAGE - /M8_OPTION on pins 1-9
(excluding pin 7) for message segments 1-8 respectively. Note: Message trigger pins
of M1_MESSAGE,/M2_NEXT, /M7_END, and /M8_OPTION, have expanded
names to represent the different functionality that these pins assume in the other
modes. In random access mode these pins should be considered purely message
trigger pins with the same functionality as /M3, /M4, /M5, and /M6. For a more
thorough explanation of the functionality of device pins in different modes please
refer to the pin description table that appears later in this document. When actual
recording begins the device responds with a single beep (if the BE pin is high to
enable the beep tone) at the speaker outputs to indicate that it has started recording.
Recording continues as long as the message pin stays low. The rising edge of the same
message trigger pin during record stops the recording operation (indicated with a
single beep).If the message trigger pin is held low beyond the end of the maximum
allocated duration, recording stops automatically (indicated with two beeps),
regardless of the state of the message trigger pin. The chip then enters low-power
mode until the message trigger pin returns high. After the message trigger pin returns
to high, the chip enters standby mode. Any subsequent high to low transition on the
same message trigger pin will initiate recording from the beginning of the same
message segment. The entire previous message is then overwritten by the new
message, regardless of the duration of the new message. Transitions on any other
message trigger pin or the /RE pin during the record operation are ignored until after
the device enters standby mode.
segment you intend to playback. Playback will continue until the end of the message
is reached. If a high to low edge occurs on the same message trigger pin during
playback, playback of the current message stops immediately. If a different message
trigger pin pulses during playback, playback of the current message stops immediately
(indicated by one beep) and playback of the new message segment begins. A delay
equal to 8,400 cycles of the sample clock will be encountered before the device starts
playing the new message. If a message trigger pin is held low, the selected message is
played back repeatedly as long as the trigger pin stays low. A period of silence, of
duration equal to 8,400 cycles of the sampling clock, will be inserted during looping
as an indicator to the user of the transition between the end and the beginning of the
message.
is convenient because it allows the user to immediately playback and review the
message without the need to rewind. However, caution must be practiced because a
subsequent record operation will overwrite the last recorded message unless the user
remembers to pulse the /M2_Next pin in order to increment the device past the current
message. A subsequent falling edge on the /M1_Message pin starts a new record
operation, overwriting the previously existing message. You can preserve the
previously recorded message by using the /M2_Next input to advance to the next
available message segment. To perform this function, the /M2_NEXT pin must be
pulled low for at least 400 cycles of the sample clock. The auto rewind mode allows
the user to record over the just recorded message simply by initiating a record
sequence without first toggling the /M2_NEXT pin. To record over any other message
however requires a different sequence. You must pulse the /CE pin low once to rewind
the device to the beginning of the voice memory. The /M2_NEXT pin must then be
pulsed low for the specified number of times to move to the start of the message you
wish to overwrite. Upon arriving at the desired message a record sequence can be
initiated to overwrite the previously recorded material. After you overwrite the
message it becomes the last available message and all previously recorded messages
following this message become inaccessible. If during a record operation all of the
available memory is used, the device will stop recording automatically,(double beep)
and set the /M7_END pin low for a duration equal to 1600 cycles of the sample clock.
Playback can be initiated on this last message, but pulsing the /M2_Next pin will put
the device into an "overflow state". Once the device enters an overflow state any
subsequent pulsing of /M1_MESSAGE or /M2_NEXT will only result in a double
beep and setting of the /M7_END pin low for a duration equal to 400 cycles of the
sample clock. To precede from this state the user must rewind the device to the
beginning of the memory array. This can be accomplished by toggling the /CE pin low
or cycling power. All inputs, except the /CE pin, are ignored during recording.
enable playback. The first high to low going pulse of the /M1_MESSAGE pin
initiates playback from the beginning of the current message; on power up the first
message is the current message. When the /M1_MESSAGE pin pulses low the second
time, playback of the current Message stops immediately. When the /M1_MESSAGE
pin pulses low a third time, playback of the current message starts again from its
beginning. If you hold the /M1_MESSAGE pin low continuously the same message
will play continuously in a looping fashion. A 1,540ms period of silence is inserted
during looping as an indicator to the user of the transition between the beginning and
end of the message. Note that in auto rewind mode the device always rewinds to the
beginning of the current message. To listen to a subsequent message the device must
be fast forwarded past the current message to the next message. This function is
accomplished by toggling the /M2_NEXT pin from high to low. The pulse must be
low for least 400 cycles of the sampling clock. After the device is incremented to the
desired message the user can initiate playback of the message with the playback
sequence described above. A special case exists when the /M2_NEXT pin goes low
during playback. Playback of the current message will stop, the device will beep,
advance to the next message and initiate playback of the next message. (Note that
if /M2 Next goes low when not in playback mode, the device will prepare to play the
next message, but will not actually initiate playback).
If the /CE pin goes high during playback, playback of the current message will
stop, the device will beep, reset to the beginning of the first message, and wait for a
subsequent playback command. When you reach the end of the memory array, any
subsequent pulsing of /M1_MESSAGE or /M2_NEXT will only result in a double
beep. To precede from this state the user must rewind the device to the beginning of
the m memory array. This can be accomplished by toggling the /CE pin low or cycling
power.
recording. A subsequent rising edge on the /M1 Message pin will stop recording and
insert a single beep. If the /M1_ MESSAGE pin is held low beyond the end of the
available memory, recording Stops automatically, and two beeps are inserted;
regardless of the state of the /M1_MESSAGE pin. The device returns to the standby
mode when the /M1_MESSAGE pin is returned high. A subsequent falling edge on
the /M1_MESSAGE pin starts a new record operation in the memory array
immediately following the last recorded message, thus preserving the last recorded
message. To record over all previous messages you must pulse the /CE pin low once
to reset the device to the beginning of the first message. You can then initiate a record
sequence, as described above, to record a new message. The most recently recorded
message will become the last recorded message and all previously recorded messages
following this message will become inaccessible. If you wish to preserve any current
messages it is recommend that the Auto Rewind option be used instead of the Normal
option. If the Normal option is necessary the following sequence can be used. To
preserve current messages you must fast forward past the messages you want to keep
before you can record a new message. To fast forward when using the Normal option
you must switch to play mode and listen to messages sequentially until you arrive at
the beginning of the message you wish to overwrite. At this stage you should switch
back to record mode and overwrite the desired message. The most recently recorded
message will become the last recorded message and all previously recorded messages
following this message will become inaccessible. All inputs, except /CE, are ignored
during recording.
beginning. If you hold the /M1_MESSAGE pin low continuously, the current message
and subsequent messages play until the one of the following conditions is met: the end
of the memory array is reached, the last message is reached, the /M1_message pin is
released. If the last recorded message has already played, any further transitions on
the /M1_MESSAGE pin will initiate a double beep for warning and the /M7_END pin
will go low. To exit this state you must pulse the /CE pin high and then low once
during standby to reset the pointer to the beginning of the first message.
to
simplify
handshaking
between
the
microprocessor
and
the
APR9600.The /BUSY pin, when low, indicates to the host processor that the device is
busy and that No commands can be accepted. When this pin is high the device is
ready to accept and execute commands from the host. The /STROBE pin pulses low
each time a memory segment is used. Counting pulses on this pin enables the host
processor too accurately determine how much recording time has been used, and how
much recording time remains. The APR9600 has a total of eighty memory segments.
The /M7_END pin is used as an indicator that the device has stopped its current
record or playback operation. During recording a low going pulse indicates that all
memory has been used. During playback a low pulse indicates that the last message
has played. Microprocessor control can also be used to link several APR9600 devices
together in order to increase total available recording time. In this application both the
speaker and microphone signals can be connected in parallel. The microprocessor will
then control which device currently drives the speaker by enabling or disabling each
device using its respective /CE pins. A continuous message cannot be recorded in
multiple devices however because the transition from one device to the next will incur
a delay that is noticeable upon playback. For this reason it is recommended that
message boundaries and device boundaries always coincide.
resistance values and the corresponding sampling frequencies, as well as the resulting
input bandwidth and duration.
5.11
SAMPLING APPLICATION
Use a good quality 8 Ohm speaker with a cavity such as speakers for computer
sound systems. Do not use a bare speaker which gives you degraded sound.
For better sound replay quality, speak with a distance to the on-board
microphone and speak clearly. Also keep the background noise as low as
possible.
For even better sound replay quality, use microphone input or Audio Line In
input. If Audio Line In is used, the amplitude of input signal should be < 100
mV p-p.
CHAPTER - 6
CONCLUSION AND FUTURE ENHANCEMENT
6.1 CONCLUSION
Sensor technologies are developing fast with time and innovative technology.
This field is one of the most interesting areas to be discovered continuously. So many
new sensor designs will come out and develop in future hence increasing the
competitiveness between researchers. This project is a minor contribution to instill the
interest of people. It also gives a very basic understanding which will be a good
learning process to the beginner. The hardware and software part of this project is
working based on the objectives mentioned before and based on the conduct test or
experiments held towards the end this project, the results are stable and working as it
should be. This project can be concluded that the target to develop the security system
based
GSM has achieved. GSM technology capable solution has proved to be controlled
remotely, provide home security and is cost effective as compared to the previously
existing systems without Gas sensor and Fire sensor in one product or circuit.
The security is what a person expects from a home, this project was designed
keeping this particular aspect in mind. The security system is made fool proof to the
maximum extent possible. In this project we make use of a microcontroller as the
main controller to control the input and the output that reach the controller. There is a
large scope in the future enhancements that can be provided along with this project
like actuating a fire detection alarm or sensing a leakage of gas etc.
We conclude that we have 100% successfully fulfilled our project and we have
confidence that our project will provide full security for Industries, Hotels,
Restaurants, Homes. Hence we can conclude that the required goals and objectives of
Interactive Dial up based Home Security System have been achieved. The security
system with 3 combinations function has been implemented. This project will benefit
all the people in monitoring their property even when they are away from home with
low cost of home security system. It is most advantageous as compared to other
alternatives available for providing security since it is an integrated system. In this
project security plays an important role with low cost and with many advantages. The
system is simple, secure, reliable and fast. It can be operated by anyone who knows
nothing about its software and effective.
So, our project will help a lot everywhere because of its security and alertness.
We will still develop and extend our project to maximum level to safeguard the places
and extend the service with good response.
6.2 RESULT
This project is microcontroller based project. A Gas sensor is used to detect
dangerous gas leaks in the home kitchen, large scale industries, manufacturing plants,
skyscrapers, lodge, hotels etc. Mainly since its a small unit we can ideally implement
to detect dangerous gas leaks in the kitchen. For large scale, we have to implement
complex circuitry with same logic. The sensor can also sense LPG leak in your car or
in a service station, storage tank environment. This unit can be easily incorporated
into an alarm unit, to sound an alarm. The sensor has excellent sensitivity combined
with a quick response time. When GAS leakage is detected above 8 ppm, the sensor
sends electrical signal to microcontroller which in turn sends ON signal exhaust fan,
alarm, auto dial up and APR. So the four systems start working simultaneously to
enhance security & preserve accidents. First the exhaust fan will start that will try to
reduce the concentration of the gas so that any incident can be avoided; secondly the
alarm will start and will warn the people of surrounding areas. Lastly, the auto dial up
will start working and will call to the to the authorized person using cellular network
called GSM specifically to the last called number or stored number of the mobile
telephony, and lastly the APR with the help of speaker will give the message of gas
leakage to the called person.
Another feature that we added to our project is a fire sensor. A fire sensor will
start working in case if there occurred fire due to some sparking or blazes elements
present there, then fire sensor will do the same work as done by gas sensor. It will
send signals to the microcontroller which in turn will give signal to alarm and the
alarm will start. Also it will give signal to the APR and auto dial up system. The auto
dial up system as said above will call the last caller and the speaker connected to APR
will give the message about the fire.
BIBLIOGRAPHY
[2] Muhammad Ali Mazidi, Rolin McKinley, Janice Gillispie Mazidi, The 8051
Microcontroller and Embedded Systems Using Assembly and C, Second
edition, Pearson Education India, 2007
[4] M. Gopal, I.J. Nagrath, Control Systems Engineering 4/e, New Age Publications
(Academic), India
[5] Dogan Ibrahim, Microcontroller Projects in C for the 8051, Newnes (June 2000)