SlideShare a Scribd company logo
1 of 54
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
1
Chapter-1
Introduction of Project
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
2
1.1 Project Defination
Industrial automation is controlling of light, climate, doors and window shutters
and multimedia entertainment systems. In this project we are going to develop an
embedded system, which will control all these devices with commands from a Remote
device through GSM communication. In this project we are using 8051 based
microcontroller for controlling the industr ia l equipments
1.2 Project Detail
In this project industrial automation is controlling of light, climate, doors and
window shutters and multimedia entertainment systems. In this project we are going to
develop an embedded system, which will control all these devices with commands from a
Remote device through GSM communication. In this project we are using 8051 based
microcontroller for controlling the industr ia l equipments.
GSM modem is used to communicate and respond to the remote commands and
those commands are sent to the processor. In this project we are also going to
develop a embedded security system which will detect theft, fire and inform to the
owner of house, over wireless medium.
The security system will use GSM interface to inform the authorized person,
the embedded system will also inform local fire station as well as local police. The
authorized person can also alert the known people.
Every system is automated in order to face new challenges in the present day
situations. Automated systems have less manual operations, so that the flexibility,
reliabilities are high and accurate. Probably the most useful thing to know about the global
system for mobile communication is that it is an international standard If you travel in parts
of world, GSM is only type of cellular service available. Instead of analog
services, GSM was developed as a digital system using TDMA technology.
Main part of our project is 89C51 which is an 80C51 microcontroller with 64kb Flash
and 1024 bytes of data bytes of data RAM. It is from Phillips family 8051. The Flash
Program memory supports both parallel programming and in serial.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
3
Other parts like GSM, RFID Reader, Keypad, LCD, Flash Memory will be interface
with the microcontroller.RFID and GSM use the serial port with the microcontroller but in
this microcontroller only one serial port so we will put one switch using which we select
any one out of both for interfacing.
RFID stands for Radio-Frequency Identification. The acronym refers to small
electronic devices that consist of a small chip and an antenna. The chip typically is capable
of carrying 2,000 bytes of data or less.
In this project RFID card reader reads the data of the authorized person like name of
authorized person and also finger print of authorized person etc.
RFID readers read the data of authorized person and directly opens it then the
authorized person can enter in the room.
GSM/GPRS module is used to establish communication between a computer and
`a GSM-GPRS system. Global System for Mobile communication (GSM) is an
architecture used for mobile communication in most of the countries. GSM/GPRS
MODEM is a class of wireless MODEM devices that are designed for communication of a
computer with the GSM and GPRS network. It requires a SIM (Subscriber Identity
Module) card just like mobile phones to activate communication with the network. A
GSM/GPRS MODEM can perform the following operations:
1. Receive, send or delete SMS messages in a SIM.
2. Read, add, search phonebook entries of the SIM.
3. Make, Receive, or reject a voice call.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
4
Chapter-2
Technical Specification
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
5
2.1 Specification of Machine
a) Input Voltage - 9 V
- 220 V(A.C.)
b) Temperature range - 0º to 70ºC
c) Input Current - 80-100 mA
d) Oscillator Frequency - 33 MHz
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
6
Chapter-3
Hardware Description
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
7
3.1 Block Diagram
Fig. : 3.1.1 Block Diagram
3.1.1 Description of Block Diagram
HERE WE HAVE 4 MAJOR BLOCKS IN THIS PROJECT
1. MICROCONTROLLER
2. GSM MODEM
3. LCD
4. DEVICES
The Microcontroller control whole the system. In this project Industrial automation
is controlling of light, climate, doors and window shutters and multimedia entertainment
systems. In this project we are going to develop an embedded system, which will control all
these devices with commands from a Remote device through GSM communication. In this
project we are using 8051 based microcontroller for controlling the equipments in the
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
8
Industrial. GSM modem is used to communicate and respond to the remote commands and
those commands are sent to the controller.
In this project we can control the all the devices through GSM, the devices which are
connected to microcontroller, so that you can control your devices from anywhere in the
world.The microcontroller deceives the commands to switch the devices from GSM
modem. Then microcontroller operates the devices using GSM.
3.2 89C51 Controller
3.2.1 Specification:
 80c51 central processing unit
 5 V operating voltage from 0 to 40 MHz
 64 kB on chip Flash program memory with ISP(In-System Programming) and IAP (In-application
Programming )
 Supports 12-clock (default) or 6-clock mode selection via software or ISP
 SPI ( Serial Peripheral Interface ) and enhanced UART
 PCA( Programmable Counter Array) with PWM and Capture/Compare function
 Four 8-bit I/O ports with three high-current port-1 pins( 16 mA each)
 Three 16-bit timers/counters
 Eight Interrupt sources with four priority levels
 Second DPTR register
 Low EMI mode (ALE inhibit)
FEATURE 8051 8052 8031
ROM 4K bytes 8K bytes 0K
RAM 128 bytes 256 bytes 128 bytes
Timers 2 3 2
I/O pins 32 32 32
Serial port 1 1 1
Table No. 1
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
9
3.2.2 Pin Diagram of 89C51 Controller
Fig. : 3.2.1 Pin Diagram of 89C51
3.2.3 Pin Description
Vcc- Supply voltage provided to pin no. 40
GND-Ground provided ton pin no. 20.
PORT 0
Port 0 pins may serve as inputs, outputs or when used together as a bidirectional low order
address in data bus for external memory. For example, when a pin is to be used as an input,
a 1 must be written to the corresponding port 0 latch by the program, thus turning both of
the output transistors off, which in turn causes the pin to “float” in a high impedance state,
and the pin is essentially connected to the input buffer.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
10
When used as an output, the pin latches that are programmed to a 0 will turn on the lower
FET, grounding the pin. All the latches that are programmed to a 1 still float; thus external
pull-up resistors will be needed to supply a logic high when using port 0 as an output.
Fig. : 3.2.2 Port 0
PORT 1
Port 1 pins have no dual functions. Therefore, the output latch is connected
directly to the gate of the lower FET which has an FET cicuit labeled internal FET pull-up
as an active pull-up load.
Used as an input, a 1 is written to the latch, turning a lower FET on. The pin and the input to
the pin buffer are pulled high by the FET load. An external circuit can overcome the high
impedance pull-up and drive the pin low to input a 0 or leave the input high for a 1.
If used as an output the latches containing a 1 can drive the input of an external circuit high
through the pull-up. If 0 is written to the latch, the lower FET is on, the pull-up is off and
pin can drive the input of the external circuit low.
PORT 2
Port 2 is a bi-directional I/O port with internal pull-ups. The alternate use of port 2 is to
supply a high order address byte in conjunction with the port 0 low order byte to address
external memory. Port 2 latches remain stable when external memory is addressed as they
do not have to be turned around(set to 1 ) for data input as in case for port 0.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
11
PORT 3
Port 3 is an input/output port similar to port 1. The input and output functions can
be programmed under the control of the P3 latches or under the control of various other
special function registers.
Port 3 alternate functions:
P3.0 RXD (Serial input port)
P3.1 TXD (Serial output port)
P3.2 INT0 (External interrupt 0)
P3.3 INT1 (External interrupt 1)
P3.4 T0 (Timer0 external input)
P3.5 T1 (Timer1 external input)
P3.6 WR (external data memory write strobe)
P3.7 RD (external data memory read strobe)
RST
Pin 9 is a reset pin. It is an input and is active high (normally low). Upon applying a high
pulse to this pin, the microcontrollers will reset and terminate all activities. This is often
referred to as power on reset. Activating a power on reset will cause all values in the
registers to be lost. It will set program counter to all 0’s.
EA
The 8051 family members with on chip ROM, EA pin connected to Vcc. For those in
which there is no on chip ROM, code is stored on an external ROM and the EA pin must be
connected to GND to indicate that the code is stored externally. EA which stands for
“external access” is pin no. 31 in the DIP packages. It is an input pin and must be connected
to either Vcc or GND.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
12
PSEN
This is an output pin. PSEN stands for “program store enable”. PSEN is the read strobe to
external program memory.
ALE
ALE (address latch enable) is an output pin and is active high. ALE output pulse for
latching the low byte of the address during accesses to external memory. This pin is also the
program pulse input during ROM programming.
XTAL1 and XTAL2
The 8051 has an on chip oscillator but requires an external clock to run it. Most often a
quartz crystal oscillator is connected to inputs XTAL1 (pin 19) and XTAL2 (pin 18). The
quartz crystal oscillator connected to each capacitor is connected to the ground. There are
various speeds of the 8051 family. Speed refers to the maximum oscillator frequency
connected to XTAL. For example, a 12MHz chip must be connected to a crystal with
12MHz frequency or less.
Fig. : 3.2.3 Crystal Oscillator
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
13
3.3 RS232
3.3.1 Pin diagram
Fig. : 3.3.1 Pin Diagram Of RS232
3.3.2 Pin Configurations
D-Type-9 pin
no.
D-Type-25
pin no.
Pin outs Function
3 2 RD Receive Data (Serial data input)
2 3 TD Transmit Data (Serial data output)
7 4 RTS Request to send (acknowledge to
modem that UART is ready to exchange
data
8 5 CTS Clear to send (i.e.; modem is ready to
exchange data)
6 6 DSR Data ready state (UART establishes a
link)
5 7 SG Signal ground
1 8 DCD Data Carrier detect (This line is active
when modem detects a carrier
4 20 DTR Data Terminal Ready.
Table No. 2
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
14
3.3.3 Specification
RS-232 TTL Logic
-15V … -3V +2V … +5V High
+3V … +15V 0V … +0.8V Low
Table No. 3
3.3.4 Description
When communicating with various micro processors one needs to convert the
RS232 levels down to lower levels, typically 3.3 or 5.0 Volts. Here is a cheap and simple
way to do that. Serial RS-232 (V.24) communication works with voltages -15V to +15V
for high and low. On the other hand, TTL logic operates between 0V and +5V . Modern
low power consumption logic operates in the range of 0V and +3.3V or even lower.
Thus the RS-232 signal levels are far too high TTL electronics, and the negative RS-
232 voltage for high can’t be handled at all by computer logic. To receive serial data from
an RS-232 interface the voltage has to be reduced. Also the low and high voltage level has
to be inverted. This level converter uses a Max232 and five capacitors. The max232 is
quite cheap (less than 5 dollars) or if you are lucky you can get a free sample from Maxim.
The MAX232 from Maxim was the first IC which in one package contains the necessary
drivers and receivers to adapt the RS-232 signal voltage levels to TTL logic. It became
popular, because it just needs one voltage (+5V or +3.3V) and generates the necessary RS-
232 voltage levels
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
15
3.4 LCD
Fig. : 3.4.1 LCD
3.4.1 Description
LCD (Liquid Crystal Display) screen is an electronic display module and find a wide
range of applications. A 16x2 LCD display is very basic module and is very commonly used
in various devices and circuits. These modules are preferred over seven segments and other
multi segment LEDs. The reasons being: LCDs are economical; easily programmable; have
no limitation of displaying special & even custom characters (unlike in seven
segments), animations etc.
A 16x2 LCD means it can display 16 characters per line and there are 2 such lines.
In this LCD each character is displayed in 5x7 pixel matrix. This LCD has two registers,
namely, Command and Data.
The command register stores the command instructions given to the LCD. A
command is an instruction given to LCD to do a predefined task like initializing it, clearing
its screen, setting the cursor position, controlling display etc. The data register stores the
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
16
data to be displayed on the LCD. The data is the ASCII value of the character to be
displayed on the LCD. Click to learn more about internal structure of a LCD.
3.4.2 Pin Diagram
Fig. : 3.4.2 Pin Diagram of LCD
3.4.3 Pin Description
Pin No Function Name
1 Ground (0V) Ground
2 Supply voltage; 5V (4.7V – 5.3V) Vcc
3 Contrast adjustment; through a variable resistor VEE
4 Selectscommand registerwhen 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
8-bit data pins
DB0
8 DB1
9 DB2
10 DB3
11 DB4
12 DB5
13 DB6
14 DB7
Table No. 4
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
17
VCC, VSS, VEE
The voltage VCC and VSS provide +5V and ground respectively, while VEE is used for
controlling LCD contrast. Variable voltage between Ground and Vcc is used to specify the
contrast (or "darkness") of the characters on the LCD screen.
RS (register select)
There are two very important registers inside the LCD. The RS pin is used for their
selection as follows. If RS=0, the instruction command code register is selected, then
allowing to user to send a command such as clear display, cursor at INDUSTRIAL etc.. If
RS=1, the data register is selected, allowing the user to send data to be displayed on the
LCD.
R/W (read/write)
The R/W (read/write) input allows the user to write information from it. The pin R/W=1,
when it reads and R/W=0, when writing.
EN (enable)
The enable pin is used by the LCD to latch information presented to its data pins. When data
is supplied to data pins, a high power, a high-to-low pulse must be applied to this pin in
order for the LCD to latch in the data presented at the data pins. This pulse must be a
minimum of 450ns wide.
D0-D7 (data lines)
The 8-bit data pins, D0-D7, are used to send information to the LCD or read the contents of
the LCD’s internal registers. To display the letters and numbers, we send ASCII codes for
the letters A-Z, a-z, and numbers 0-9 to these pins while making RS =1. There are also
command codes that can be sent to clear the display or force the cursor to the
INDUSTRIAL position or blink the cursor. We also use RS =0 to check the busy flag bit to
see if the LCD is ready to receive the information. The busy flag is D7 and can be read
when R/W=1 and RS =0, as follows: if R/W =1 and RS =0, when D7 =1(busy flag =1), the
LCD is busy taking care of internal operations and will not accept any information. When
D7 =0, the LCD is ready to receive new information.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
18
Interfacing of LCD with microcontroller
In most applications, the “R/W” line is grounded. This simplifies the application because
when data is read back, the microcontroller I/O pins have to be alternated between input and
output modes. In this case, R/W to ground and just wait the maximum amount of time for
each instruction and also the application software is simpler, it also frees up a
microcontroller pin for other uses.
Fig. : 3.4.3 - interfacing of LCD with 8051
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
19
3.5 GSM Module
3.5.1 Diagram
Fig. : 3.5.1 GSM Module
3.5.2 Description
The SIM300 E is a Tri-band GSM/GPRS solution in a compact plug-in module
integrated with a SIM card holder. Featuring an industry-standard interface, the SIM300E
delivers GSM/GPRS 900/1800/1900MHz performance for voice, SMS, Data, and Fax in a
small form factor and with low power consumption. The leading features of SIM300 E
make it ideal for virtually unlimited applications, such as WLL applications, M2M
application, handheld devices and much more.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
20
3.5.3 Features
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
21
Table No. 5
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
22
3.6 RELAYS
A relay is an electrical switch that opens and closes under the control of another
electrical circuit. In the original form, the switch is operated by an electromagnet to open or
close one or many sets of contacts.
The first relay was invented by Joseph Henry in 1835. The name relay derives from
the French noun ‘relais’ that indicates the horse exchange place of the postman. Generally a
relay is an electrical hardware device having an input and output gate. The output gate
consists in one or more electrical contacts that switch when the input gate is electrically
excited. It can implement a decouple, a router or breaker for the electrical power, a
negation, and, on the base of the wiring, complicated logical functions containing and, or,
and flip-flop. In the past relays had a wide use, for instance the telephone switching or the
railway routing and crossing systems. In spite of electronic progresses (as programmable
devices), relays are still used in applications where ruggedness, simplicity, long life and
high reliability are important factors (for instance in safety applications).
Fig. : 3.6.1 Relay
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
23
3.6.1 OPERATION:
When a current flows through the coil, the resulting magnetic field attracts an
armature that is mechanically linked to a moving contact. The movement either makes or
breaks a connection with a fixed contact. When the current to the coil is switched off, the
armature is returned by a force approximately half as strong as the magnetic force to its
relaxed position. Usually this is a spring, but gravity is also used commonly in industrial
motor starters. Most relays are manufactured to operate quickly. In a low voltage
application, this is to reduce noise. In a high voltage or high current application, this is to
reduce arcing.
3.6.2 ADVANTAGES OF RELAYS:
 Relays can switch AC and DC, transistors can only switch DC.
 Relays can switch higher voltages than standard transistors.
 Relays are often a better choice for switching large currents (> 5A).
 Relays can switch many contacts at once.
3.6.3 DISADVANTAGES OF RELAYS:
 Relays are bulkier than transistors for switching small currents.
 Relays cannot switch rapidly (except reed relays), transistors can switch many times per second.
 Relays use more power due to the current flowing through their coil.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
24
3.7 Smoke Sensor
Smoke sensor composed by micro AL2O3 ceramic tube, Tin Dioxide (SnO2)
sensitive Layer , measuring electrode and heater are fixed into a crust made by plastic and
stainless steel net. The heater provides necessary work conditions for work of sensitive
components. The enveloped MQ-5 have 6 pin ,4 of them are used to fetch signals, and other
2 are used for providing heating current.
They are used in SMOKE leakage detecting equipments in family and industry, are
suitable for detecting of LPG, natural SMOKE, town SMOKE, avoid the noise of alcohol
and cooking fumes and cigarette smoke. The SMOKE sensor gives 12v to 16 v output when
triggered and this output voltage is given to the microcontroller using NPN transistor
BC547.The SMOKE sensor output is taken across he HS1527 OTP Encoder, HS1527 It can
reduce any code collision and unauthorized code scanning possibilities.
Natural SMOKE is an energy source that is commonly used in homes for cooking,
heating, and Water heating. It is primarily composed of methane. (Methane is a highly
flammable chemical compound consisting of one carbon atom surrounded by four hydrogen
atoms.) Although it only happens rarely, a natural SMOKE leak can sometimes occur inside
the home. A natural SMOKE leak can be dangerous because it increases the risk of fire or
explosion. Your local SMOKE company works hard to provide adequate warning in the
event of a SMOKE leak. Because methane—and therefore, natural SMOKE—does not have
any odor, the SMOKE company adds a warni“rottenegg” smell (mercaptan or a similar
sulfur-based compound) that can be easily detected by most people. However, people who
have a diminished sense of smell may not be able to rely upon this safety mechanism. If you
have a concern about your ability to smell the additive that signals a SMOKE leak, you need
to see a physician and use a different safety signal. A SMOKE detector can be an important
tool to help protect you and your family.
A SMOKE sensor is used to Detect dangerous SMOKE leaks in the kitchen or
near the SMOKE heater. This unit detects 300 to 5000ppm of Natural SMOKE. Ideal to
detect dangerous SMOKE leaks in the kitchen. Sensor can be easily configured as an alarm
unit. The sensor can also sense LPG and Coal SMOKE. Ideal sensor for use to detect the
presence of a dangerous 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 or
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
25
give a visual indication of the LPG concentration. The sensor has excellent sensitivity
combined with a quick response time. detected is messaged to the authorized person using
cellular network called GSM.
Here we are using an 8-bit Microcontroller for which SMOKE sensors and GSM
modem are connected. In This project SMOKE sensors are used to detect the motion of
human beings entering into the high security zones. After detecting, this system will
intimate the authorized people by sending an SMS using GSM (Global system for mobile
communication) modem.
Fig. : 3.7.1 Smoke Sensor
3.7.1 FEATURES
 High sensitivity to LPG, iso-butane, propane
 Small sensitivity to alcohol, smoke.
 Fast response .
 Stable and long life
 Simple drive circuit
3.7.2 APPLICATIONS
They are used in SMOKE leakage detecting equipments in family and industry, are
suitable for detecting of LPG, natural SMOKE , town SMOKE, avoid the noise of alcohol
and cooking fumes and cigarette smoke.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
26
3.7.3 PRECAUTIONS TO BE TAKEN WHEN SMOKE DETECTED
What to do if your SMOKE detector alerts you to a natural SMOKE leak
1. Leave the house immediately.
2. DO NOT make calls from your home. Phones are capable of producing a spark, which
could start a fire or explosion. Contact your local SMOKE utility company or call 911
from a phone outside and away from your home.
3. DO NOT light a match or other combustible material. Likewise, DO NOT turn any light
switches on or off, and DO NOT plug or unplug electrical appliances such as a
television or vacuum cleaner. These activities also can produce a spark that could start a
fire or explosion.
4. Do not re-enter the house until the SMOKE company finds the source of the leak and
corrects it.
3.7.4 SOURCES OF SMOKE SENSORS
1. Leaks from SMOKE appliances, heating systems, and water heaters
2. Leaks from interior natural SMOKE piping systems
3. Migration of natural SMOKE indoors from leaks in outdoor piping systems
3.8 Infrared Technology
3.8.1 How it Works
An infrared transmission system is comprised of three components, the transmitter, the
infrared emitter (also called radiator) and the receiver. The transmitter modulates the audio
signal onto a carrier frequency using F.M. or digital techniques. The emitter takes the
modulated signal and converts it into infrared light. The receiverdecodes the infrared signal
and coverts it back to an audio signal which is sent to the headphone.
In a multichannel system the transmitter generates a carrier wave for each channel. All the
modulated carrier waves are mixed, and are fed via a coaxial cable from the transmitter to
the infrared emitters. The output of the emitters is modulated infrared light, which is
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
27
invisible to the human eye. Each user is given their own pocket receiver. This receiver has a
lens which collects the infrared light, and directs it to an IR sensitive receptor. he receiver
has electronics to decode the received signals, and to output one of the signals (selected by a
channel selector) to the headphone connector.
In a conference or theater setting the transmitter can be placed anywhere within about 1,000
feet of the radiators. The radiators need to be placed around the area to be covered by a
technician with knowledge about the dispersion pattern of the emitter and the power output.
These radiators are connected in a daisy chain configuration around the hall to give
adequate signal strength to the entire area to be covered. Additional emitters may be placed
back stage or in over flow rooms as the signal will not travel through walls.
3.8.2 Advantages
The of an infrared transmission system are fully realized when different programs are
required in adjacent rooms, such as a multiplex cinema or conference center. Each room can
be equipped with a separate infrared system without interference between rooms. In the case
of a multichannel transmission system, a delegate can go from room to room and keep the
same channel for their particular language. Additionally, since the signal is transmitted via
infrared light there is little change of radio frequency interference.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
28
3.9 Schematic Diagram
Fig. : 3.9.1 Schematic Diagram
3.10 Component List
Component Quantity
Microcontroller 1(8051)
LCD 16*2
GSM Module 1
Smoke Detector 1
RS232 Connector 1
Adapter 1(12 V)
Table No.6
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
29
Chapter 4.
Software Description
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
30
4.1 Keil - μVISION4
Steps For Create New Project:-
1. Click on the Keil uVision Icon on DeskTop
2. The following fig will appear
Fig. : 4.1.1
3. Click on the Project menu from the title bar
4. Then Click on New Project
5. Save the Project by typing suitable project name with no extension in u r own
folder sited in either C: or D:
6. Then Click on Save button above.
7. Select the component for u r project. i.e. Philips……
8. Click on the + Symbol beside of Philips
9. Select AT89S52 as shown below
Fig. : 4.1.2
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
31
10. Then Click on “OK”
11. The Following fig will appear
Fig. : 4.1.3
12. Then Click either YES or NO………mostly “NO”
13. Now your project is ready to USE
14. Now double click on the Target1, you would get another option “Source group 1” as
shown in next page.
15. Click on the file option from menu bar and select “new”.
16. The next screen will be as shown in next page, and just maximize it by double
clicking on its blue boarder.
17. Now start writing program in either in “C” or “ASM”
18. For a program written in Assembly, then save it with extension “. asm” and for “C”
based program save it with extension “ .C”
19. Now right click on Source group 1 and click on “Add files to Group Source”
20. Now you will get another window, on which by default “C” files will appear.
21. Now select as per your file extension given while saving the file
22. Click only one time on option “ADD”
23. Now Press function key F7 to compile. Any error will appear if so happen.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
32
Start
A
4.2 Flowchart of program:
Fig. : 4.2.1 Flowchart 1
Initialise The Modem
Specify Microcontroller
Send “AT” Command
Is Modem
Ready?
Return
Response≠OK
Send “AT+CMGF=1” Command
Is Response = “OK”
Response= OK
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
33
A
B
YES No
Fig. : 4.2.2 Flowchart 2
Send “AT+CMGW = MOBILE
NUMBER” Command
Is Response
= “ > ”
Take Data From Smoke Sensor to Microcontroller via ADC
According to the data print message for smoke on LCD
Smoke
Detected ?Display on LCD Not Display on
LCD
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
34
B
C
YES No
Fig. : 4.2.3 Flowchart 3
Take Data From IR Sensor to Microcontroller via ADC
Object
Detected ?
According to the data print message for smoke on LCD
Display on
LCD
Not Display on LCD
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
35
Device 1 is On Device 1 is Off
Device 2 is On Device 2 is Off
C
C
Fig. : 4.2.4 Flowchart 4
If message
received
L1N
According to the data print message for Device 1 On or Off
If message
received
L1F
If message
received
L2N
According to the data print message for Device 2 On or Off
If message
received
L2F
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
36
Device 3 is On Device 3 is Off
C
Fig. : 4.2.5 Flowchart 5
If message
received
L3N
According to the data print message for Device 3 On or Off
If message
received
L3F
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
37
Chapter 5.
Advantages & Application
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
38
5.1Advantages
 Reduce Production Cost -
A quick return on investment outweighs the initial setup
costs. All of the following automation advantages reduce
production cost.
 Decrease in Part Cycle Time -
A lean manufacturing line is crucial for increasing
efficiency. Automation System can work longer and faster which
increase production rate.
 Improved Quality and Reliability –
Automation is precise and repeatable. It ensures the
product is manufactured with the same specifications and
process every time. Repairs are few and far between.
 Better Floor Space Utilization –
By decreasing a footprint of a work area by automating
parts of your production line, you can utilize the floor
space for other operations and make the process flow more
efficient.
5.2 Application
 Industry based security system.
 Furnace temperature control.
 GSM based electricity control.
 Any types of door control system.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
39
Chapter 6.
Conclusion & Future Expansion
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
40
6.1 Conclusion & Future Expansion
While working on this project we came to know about various new concepts and
components. We compared various components and finalized the best compatible ones for
the project and this made us aware of their application and utility in various fields. We
learned to work on different software tools that are currently in use. At the end of this
semester we finalized the circuit diagram and selected the best suitable components for the
project.
 This project can be further expanded to home security level, Automatic cooling
system using the temperature control using LM35 or LM37, Automatic light
controlling using LDR.
 This can also be expanded to industry level by monitoring and controlling
different devices.
 Computer can also be interfaced with this project using another GSm module or
RF module.
 The DSP processor can also be used with GSM modem for different application
like DTMF, image processing, voice recognition instrumentation and control etc.
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
41
Chapter - 7.
Bibliography
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
42
7.1 REFERENCES
Here, I present a list of references for gathering sufficient information on the material
required for my project as well as getting the brief idea about the technology involved.
7.1.1 Book
[1] The 8051 Microcontroller and Embedded system by Muhammad Ali Mazidi.
7.1.2 Documents
 From the website: www.google.com
 From the website: www.youtube.com
 From the website: www.industrial.automation-au.com
 From the website: www.robots.com
 From KEIL Software
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
43
Chapter - 8.
APPENDIX
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
44
PROGRAMING:
$regfile ="M16def.dat"
$crystal = 8000000
$framesize =24
$hwstack = 32
$swstack = 8
$baud = 9600 '*****BAUD RATE ISAUTO DETECTED BY GSM MODULE SO YOU
CAN TAKE ANYONE
DimA As String* 5 , Rcvd As String* 5
DimI As Integer
DimMessage As String* 25
DimMessage1 AsString* 100
DimAb AsInteger
DimYy AsInteger
DimMn As Integer
DimNum AsString* 25
Dim PosAs Byte
ConfigPortb.0= Output
ConfigPortb.1= Output
ConfigPortb.2= Output
ConfigPortb.3= Output
ConfigPortd.6= Output
ConfigLcdpin= Pin, E = Portc.4 , Rs = Portc.5 , Db4 = Portc.3 , Db5 = Portc.2 , Db6 = Portc.1 , Db7 =
Portc.0
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
45
ConfigSerialin=Buffered,Size =254
ConfigSerialout=Buffered,Size =254
Enable Interrupts
'ROHIT, LUBNA & ANKIT
ConfigAdc= Single ,Prescaler=Auto , Reference =Avcc
Start Adc
DimW1 As Word
DimW2 As Word
ConfigPortd.5= Output
ResetPortd.6
ResetPortd.5
Cls
Locate 1 , 1
Lcd " PROJECTBY:"
Wait 2
Cls
Locate 1 , 1
Lcd "ROHIT"
Wait2
Cls
Locate 1 , 1
Lcd "LUBNA"
Wait2
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
46
Cls
Locate 1 , 1
Cls
Locate 1 , 1
Lcd "ANKIT"
Wait2
Cls
Cls
Locate 1 , 1
Cls
Locate 1 , 1
Lcd "GSM BASED"
Wait 1
Cls
Locate 1 , 1
Lcd "SECURITY"
Wait 1
Cls
Locate 1 , 1
Lcd "SYSTEM"
Wait 2
Cls
Locate 1 , 1
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
47
Lcd "PROCESSING..."
Wait 10
Message1= ""
Mn = 0
Yy = 0
Main:
' Message1= ""
Mn = 0
Yy = 0
Message = ""
Rcvd = ""
A = ""
Num= ""
Cls
Locate 1 , 1
Lcd "PowerUP"
Waitms500
Cls
Do
Cls
Locate 1 , 1
Lcd "Waiting"
Print"AT" 'SENDING "AT"FOR CHEKING THE GSM MODEM ISWORKING
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
48
A = Inkey()
Loop Until A = "O" 'RESPONSEOF "AT" IS"OK" SO WAITINGFOR FIRSTLETER "O"
Rcvd = A
Do
A = Waitkey()
Loop Until A = "K" 'RESPONSEOF "AT" IS"OK" SOWAITING FOR SECONDLETER
"K"
Rcvd = Rcvd + A 'COMBINE "O & K" FORFINALRESPONSE"OK"
Cls
Lcd Rcvd
Wait 1
Rcvd = "" 'MAKING RCVD EMPTY FOR OTHER RESONSE
'TO ENTER IN TEXT MODE OTHER WISE MODEM WILL BE IN PDU(PACKETDATA
UNIT) "AT+CMGF=0"
Locate 1 , 1
Lcd "AT+CMGF=1" 'FORDISPLAY
Do
Waitms500
Print"AT+CMGF=1"
A = Inkey()
Loop Until A = "O" 'RESPONSEOF "AT+CMGF=1" IS "OK"SO WAITINGFOR FIRST
LETER "0"
Rcvd = A
Do
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
49
A = Inkey()
Loop Until A = "K" 'RESPONSEOF "AT+CMFG=1" IS "OK"SO WAITINGFOR SECOND
LETER "K"
Rcvd = Rcvd + A
'COMBINE "O & K" FORFINALRESPONSE"OK"
Lowerline
Lcd Rcvd
Waitms500
Rcvd = ""
'Print"ATE0" 'TURNING ECHO OFF(RESPONSEIS"OK")
Lcd "ATE0"
Do
Waitms500
Print"ATE0"
A = Inkey()
Loop Until A = "O"
Rcvd = A
Do
A = Waitkey()
Loop Until A = "K"
Rcvd = Rcvd + A
Cls
Lcd Rcvd
Wait 1
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
50
Do
Print"AT+CMGD=1" 'TO RECIVE THE NEW MESSAGE IN 1ST INDEXWE ARE
DELETING THE FIRST ENTRY
Lcd "AT+CMGD=1"
Rcvd = "" 'RESEPONSE IS"OK"
Cls
Wait 1
Do
Cls
' W1 = Getadc()
' W2 = Getadc(1)
' Cls
' If W1 > 60 Then
' SetPortd.6
' Else
' ResetPortd.6
' EndIf
' If W2 > 800 Then
' SetPortb.0
' Else
' ResetPortb.0
' EndIf
A = Inkey()
W1 = Getadc()
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
51
W2 = Getadc(1)
If W2 > 800 Then
Cls
Locate 1 , 1
Lcd "OBJECT DETECTED"
Waitms200
Elseif W1 > 100 Then
Cls
Locate 1 , 1
Lcd "SMOKE DETECTED"
Waitms200
End If
Loop Until A = "S" '+CMTI: "SM",4 ***WE ARE WAITINGFOR LATTER "S"
Rcvd = A
Do
A = Inkey()
Loop Until A = "M" '+CMTI: "SM",4 ***WE ARE WAITINGFOR LATTER "M"
Rcvd = Rcvd + A
Lcd Rcvd
Waitms500
Cls
Print"AT+CMGR=1" 'at CommandTo ReadThe Message FromFirstIndex(responseIs+ Cmgr : "REC
READ" , "CG-6.......)
ClearSerialin
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
52
'CLEAR THE SERIALIN BUFER TO REMOVE OLD RECIVEDLATTERS
Do
ClearSerialin
A = Waitkey()
'*****USER REAL MESSEAGE STARTS AFTER SECONDCRLF SO WAITINGFOR
TWO CRLF******
Loop Until A = Chr(13) 'WAIT UNTIL Carriage Return"ASCIIFORCarriage ReturnIS13
DECIMAL "
ClearSerialin
Do
ClearSerialin
A = Waitkey()
ClearSerialin
Do
ClearSerialin
A = Waitkey()
Pos = Instr(message ,"L1N")
If Pos > 0 Then
Cls
Lcd "LIGHT 1 ON"
SetPortb.1
End If
Pos= 0
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
53
Wait 2
Pos = Instr(message ,"L1F")
If Pos > 0 Then
Cls
Lcd "LIGHT 1 OFF"
ResetPortb.1
End If
Pos= 0
Pos = Instr(message ,"L2N")
If Pos > 0 Then
Cls
Lcd "LIGHT 2 ON"
SetPortb.2
End If
Pos= 0
Pos = Instr(message ,"L2F")
If Pos > 0 Then
Cls
Lcd "LIGHT 2 OFF"
ResetPortb.2
End If
Pos= 0
'**********
PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM
54
Pos= Instr(message ,"L3N")
If Pos > 0 Then
Cls
Lcd "LIGHT 3 ON"
SetPortb.3
End If
Pos= 0
Pos = Instr(message ,"L3F")
If Pos > 0 Then
Cls
Lcd "LIGHT 3 OFF"
ResetPortb.3
End If
Pos= 0
'************

More Related Content

What's hot

What's hot (20)

Rfid interface with lpc2148
Rfid interface with lpc2148 Rfid interface with lpc2148
Rfid interface with lpc2148
 
Ppt land rover
Ppt land roverPpt land rover
Ppt land rover
 
What is POR,LVD,WDT ?
What is POR,LVD,WDT ?What is POR,LVD,WDT ?
What is POR,LVD,WDT ?
 
Ppt
PptPpt
Ppt
 
P89v51rd2
P89v51rd2P89v51rd2
P89v51rd2
 
8051
80518051
8051
 
dspAt89 s52
dspAt89 s52dspAt89 s52
dspAt89 s52
 
9. io link technology - russell smith
9. io link technology - russell smith9. io link technology - russell smith
9. io link technology - russell smith
 
Introduction to Stellaris Family Microcontrollers
Introduction to Stellaris Family MicrocontrollersIntroduction to Stellaris Family Microcontrollers
Introduction to Stellaris Family Microcontrollers
 
At89 c51
At89 c51At89 c51
At89 c51
 
Cellphone land rover using micro controller
Cellphone land rover using micro controllerCellphone land rover using micro controller
Cellphone land rover using micro controller
 
At89s51
At89s51At89s51
At89s51
 
V350-35-RA22_INSTAL-GUIDE_10-08
V350-35-RA22_INSTAL-GUIDE_10-08V350-35-RA22_INSTAL-GUIDE_10-08
V350-35-RA22_INSTAL-GUIDE_10-08
 
Cell operated land rover robot
Cell operated land rover robotCell operated land rover robot
Cell operated land rover robot
 
land rover robot control using GSM technology
land rover robot control using GSM technologyland rover robot control using GSM technology
land rover robot control using GSM technology
 
Aircraft Anti collision system using ZIGBEE Communication
Aircraft Anti collision system using ZIGBEE CommunicationAircraft Anti collision system using ZIGBEE Communication
Aircraft Anti collision system using ZIGBEE Communication
 
Industrial communication 2016 English
Industrial communication 2016 EnglishIndustrial communication 2016 English
Industrial communication 2016 English
 
ZiLOG Universal Infrared Remote Reference Design
ZiLOG Universal Infrared Remote Reference DesignZiLOG Universal Infrared Remote Reference Design
ZiLOG Universal Infrared Remote Reference Design
 
Final Report
Final ReportFinal Report
Final Report
 
Atmel
AtmelAtmel
Atmel
 

Viewers also liked

Wager chapter15 2nded-000
Wager chapter15 2nded-000Wager chapter15 2nded-000
Wager chapter15 2nded-000Krupa Shah
 
Rajitha priya(wk 413)
Rajitha priya(wk 413)Rajitha priya(wk 413)
Rajitha priya(wk 413)ammu59
 
Utility and Added Value of Classifications in Health Information Systems
Utility and Added Value of Classifications in Health Information SystemsUtility and Added Value of Classifications in Health Information Systems
Utility and Added Value of Classifications in Health Information SystemsBedirhan Ustun
 
PDF Road flood sensor with web and mobile application support
PDF Road flood sensor with web and mobile application supportPDF Road flood sensor with web and mobile application support
PDF Road flood sensor with web and mobile application supportMark Anthony Muya
 
Powerpoint on electronic health record lab 1
Powerpoint on electronic health record lab 1Powerpoint on electronic health record lab 1
Powerpoint on electronic health record lab 1nephrology193
 
Week 9 emr implementation final project
Week 9 emr implementation final projectWeek 9 emr implementation final project
Week 9 emr implementation final projectprdolfin
 
gsm based security system
gsm based security systemgsm based security system
gsm based security systemnayandey
 

Viewers also liked (8)

Wager chapter15 2nded-000
Wager chapter15 2nded-000Wager chapter15 2nded-000
Wager chapter15 2nded-000
 
Rajitha priya(wk 413)
Rajitha priya(wk 413)Rajitha priya(wk 413)
Rajitha priya(wk 413)
 
Utility and Added Value of Classifications in Health Information Systems
Utility and Added Value of Classifications in Health Information SystemsUtility and Added Value of Classifications in Health Information Systems
Utility and Added Value of Classifications in Health Information Systems
 
PDF Road flood sensor with web and mobile application support
PDF Road flood sensor with web and mobile application supportPDF Road flood sensor with web and mobile application support
PDF Road flood sensor with web and mobile application support
 
Powerpoint on electronic health record lab 1
Powerpoint on electronic health record lab 1Powerpoint on electronic health record lab 1
Powerpoint on electronic health record lab 1
 
Week 9 emr implementation final project
Week 9 emr implementation final projectWeek 9 emr implementation final project
Week 9 emr implementation final project
 
gsm based security system
gsm based security systemgsm based security system
gsm based security system
 
Secured vehicle control system
Secured vehicle control systemSecured vehicle control system
Secured vehicle control system
 

Similar to CHAPTERS

International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
IRJET- Intelligent Security and Monitoring System for Vehicle
IRJET- Intelligent Security and Monitoring System for VehicleIRJET- Intelligent Security and Monitoring System for Vehicle
IRJET- Intelligent Security and Monitoring System for VehicleIRJET Journal
 
Monitoring & Controlling of Devices using GSM
Monitoring & Controlling of Devices using GSMMonitoring & Controlling of Devices using GSM
Monitoring & Controlling of Devices using GSMpriyanka kini
 
Appliances control through sms
Appliances control through smsAppliances control through sms
Appliances control through smsAbhay Pratap
 
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...IRJET Journal
 
Thesis power theft detection ch 3
Thesis power theft detection ch 3Thesis power theft detection ch 3
Thesis power theft detection ch 3Faraz Ahmed
 
Report on Embedded Based Home security system
Report on Embedded Based Home security systemReport on Embedded Based Home security system
Report on Embedded Based Home security systemNIT srinagar
 
TV Remote Operated Domestic Appliances Control
TV Remote Operated Domestic Appliances ControlTV Remote Operated Domestic Appliances Control
TV Remote Operated Domestic Appliances ControlEdgefxkits & Solutions
 
Home Security System Using Gsm Modem
Home Security System Using Gsm ModemHome Security System Using Gsm Modem
Home Security System Using Gsm ModemIJERA Editor
 
RFID AND GSM BASED CAMPUS SECURITY SYSTEM
RFID AND GSM BASED CAMPUS SECURITY SYSTEMRFID AND GSM BASED CAMPUS SECURITY SYSTEM
RFID AND GSM BASED CAMPUS SECURITY SYSTEMijiert bestjournal
 
IRJET- Centralised Status alert system for industrial machines
IRJET-  	  Centralised Status alert system for industrial machinesIRJET-  	  Centralised Status alert system for industrial machines
IRJET- Centralised Status alert system for industrial machinesIRJET Journal
 
Paper presentation of mini project
Paper presentation of mini projectPaper presentation of mini project
Paper presentation of mini projectJayashankar Gavvala
 
Bluetooth based home appliances control
Bluetooth based home appliances controlBluetooth based home appliances control
Bluetooth based home appliances controlPROJECTRONICS
 
ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARHarshit Jain
 
Technical seminar project stalin babu m 116_f1a0471
Technical seminar project stalin babu m 116_f1a0471Technical seminar project stalin babu m 116_f1a0471
Technical seminar project stalin babu m 116_f1a0471STALIN BABU
 

Similar to CHAPTERS (20)

Smart home
Smart homeSmart home
Smart home
 
Smart home copy
Smart home   copySmart home   copy
Smart home copy
 
Smart home
Smart homeSmart home
Smart home
 
Home automation
Home automationHome automation
Home automation
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
IRJET- Intelligent Security and Monitoring System for Vehicle
IRJET- Intelligent Security and Monitoring System for VehicleIRJET- Intelligent Security and Monitoring System for Vehicle
IRJET- Intelligent Security and Monitoring System for Vehicle
 
Monitoring & Controlling of Devices using GSM
Monitoring & Controlling of Devices using GSMMonitoring & Controlling of Devices using GSM
Monitoring & Controlling of Devices using GSM
 
G3602050055
G3602050055G3602050055
G3602050055
 
Appliances control through sms
Appliances control through smsAppliances control through sms
Appliances control through sms
 
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
 
Thesis power theft detection ch 3
Thesis power theft detection ch 3Thesis power theft detection ch 3
Thesis power theft detection ch 3
 
Report on Embedded Based Home security system
Report on Embedded Based Home security systemReport on Embedded Based Home security system
Report on Embedded Based Home security system
 
TV Remote Operated Domestic Appliances Control
TV Remote Operated Domestic Appliances ControlTV Remote Operated Domestic Appliances Control
TV Remote Operated Domestic Appliances Control
 
Home Security System Using Gsm Modem
Home Security System Using Gsm ModemHome Security System Using Gsm Modem
Home Security System Using Gsm Modem
 
RFID AND GSM BASED CAMPUS SECURITY SYSTEM
RFID AND GSM BASED CAMPUS SECURITY SYSTEMRFID AND GSM BASED CAMPUS SECURITY SYSTEM
RFID AND GSM BASED CAMPUS SECURITY SYSTEM
 
IRJET- Centralised Status alert system for industrial machines
IRJET-  	  Centralised Status alert system for industrial machinesIRJET-  	  Centralised Status alert system for industrial machines
IRJET- Centralised Status alert system for industrial machines
 
Paper presentation of mini project
Paper presentation of mini projectPaper presentation of mini project
Paper presentation of mini project
 
Bluetooth based home appliances control
Bluetooth based home appliances controlBluetooth based home appliances control
Bluetooth based home appliances control
 
ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CAR
 
Technical seminar project stalin babu m 116_f1a0471
Technical seminar project stalin babu m 116_f1a0471Technical seminar project stalin babu m 116_f1a0471
Technical seminar project stalin babu m 116_f1a0471
 

CHAPTERS

  • 1. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 1 Chapter-1 Introduction of Project
  • 2. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 2 1.1 Project Defination Industrial automation is controlling of light, climate, doors and window shutters and multimedia entertainment systems. In this project we are going to develop an embedded system, which will control all these devices with commands from a Remote device through GSM communication. In this project we are using 8051 based microcontroller for controlling the industr ia l equipments 1.2 Project Detail In this project industrial automation is controlling of light, climate, doors and window shutters and multimedia entertainment systems. In this project we are going to develop an embedded system, which will control all these devices with commands from a Remote device through GSM communication. In this project we are using 8051 based microcontroller for controlling the industr ia l equipments. GSM modem is used to communicate and respond to the remote commands and those commands are sent to the processor. In this project we are also going to develop a embedded security system which will detect theft, fire and inform to the owner of house, over wireless medium. The security system will use GSM interface to inform the authorized person, the embedded system will also inform local fire station as well as local police. The authorized person can also alert the known people. Every system is automated in order to face new challenges in the present day situations. Automated systems have less manual operations, so that the flexibility, reliabilities are high and accurate. Probably the most useful thing to know about the global system for mobile communication is that it is an international standard If you travel in parts of world, GSM is only type of cellular service available. Instead of analog services, GSM was developed as a digital system using TDMA technology. Main part of our project is 89C51 which is an 80C51 microcontroller with 64kb Flash and 1024 bytes of data bytes of data RAM. It is from Phillips family 8051. The Flash Program memory supports both parallel programming and in serial.
  • 3. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 3 Other parts like GSM, RFID Reader, Keypad, LCD, Flash Memory will be interface with the microcontroller.RFID and GSM use the serial port with the microcontroller but in this microcontroller only one serial port so we will put one switch using which we select any one out of both for interfacing. RFID stands for Radio-Frequency Identification. The acronym refers to small electronic devices that consist of a small chip and an antenna. The chip typically is capable of carrying 2,000 bytes of data or less. In this project RFID card reader reads the data of the authorized person like name of authorized person and also finger print of authorized person etc. RFID readers read the data of authorized person and directly opens it then the authorized person can enter in the room. GSM/GPRS module is used to establish communication between a computer and `a GSM-GPRS system. Global System for Mobile communication (GSM) is an architecture used for mobile communication in most of the countries. GSM/GPRS MODEM is a class of wireless MODEM devices that are designed for communication of a computer with the GSM and GPRS network. It requires a SIM (Subscriber Identity Module) card just like mobile phones to activate communication with the network. A GSM/GPRS MODEM can perform the following operations: 1. Receive, send or delete SMS messages in a SIM. 2. Read, add, search phonebook entries of the SIM. 3. Make, Receive, or reject a voice call.
  • 4. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 4 Chapter-2 Technical Specification
  • 5. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 5 2.1 Specification of Machine a) Input Voltage - 9 V - 220 V(A.C.) b) Temperature range - 0º to 70ºC c) Input Current - 80-100 mA d) Oscillator Frequency - 33 MHz
  • 6. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 6 Chapter-3 Hardware Description
  • 7. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 7 3.1 Block Diagram Fig. : 3.1.1 Block Diagram 3.1.1 Description of Block Diagram HERE WE HAVE 4 MAJOR BLOCKS IN THIS PROJECT 1. MICROCONTROLLER 2. GSM MODEM 3. LCD 4. DEVICES The Microcontroller control whole the system. In this project Industrial automation is controlling of light, climate, doors and window shutters and multimedia entertainment systems. In this project we are going to develop an embedded system, which will control all these devices with commands from a Remote device through GSM communication. In this project we are using 8051 based microcontroller for controlling the equipments in the
  • 8. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 8 Industrial. GSM modem is used to communicate and respond to the remote commands and those commands are sent to the controller. In this project we can control the all the devices through GSM, the devices which are connected to microcontroller, so that you can control your devices from anywhere in the world.The microcontroller deceives the commands to switch the devices from GSM modem. Then microcontroller operates the devices using GSM. 3.2 89C51 Controller 3.2.1 Specification:  80c51 central processing unit  5 V operating voltage from 0 to 40 MHz  64 kB on chip Flash program memory with ISP(In-System Programming) and IAP (In-application Programming )  Supports 12-clock (default) or 6-clock mode selection via software or ISP  SPI ( Serial Peripheral Interface ) and enhanced UART  PCA( Programmable Counter Array) with PWM and Capture/Compare function  Four 8-bit I/O ports with three high-current port-1 pins( 16 mA each)  Three 16-bit timers/counters  Eight Interrupt sources with four priority levels  Second DPTR register  Low EMI mode (ALE inhibit) FEATURE 8051 8052 8031 ROM 4K bytes 8K bytes 0K RAM 128 bytes 256 bytes 128 bytes Timers 2 3 2 I/O pins 32 32 32 Serial port 1 1 1 Table No. 1
  • 9. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 9 3.2.2 Pin Diagram of 89C51 Controller Fig. : 3.2.1 Pin Diagram of 89C51 3.2.3 Pin Description Vcc- Supply voltage provided to pin no. 40 GND-Ground provided ton pin no. 20. PORT 0 Port 0 pins may serve as inputs, outputs or when used together as a bidirectional low order address in data bus for external memory. For example, when a pin is to be used as an input, a 1 must be written to the corresponding port 0 latch by the program, thus turning both of the output transistors off, which in turn causes the pin to “float” in a high impedance state, and the pin is essentially connected to the input buffer.
  • 10. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 10 When used as an output, the pin latches that are programmed to a 0 will turn on the lower FET, grounding the pin. All the latches that are programmed to a 1 still float; thus external pull-up resistors will be needed to supply a logic high when using port 0 as an output. Fig. : 3.2.2 Port 0 PORT 1 Port 1 pins have no dual functions. Therefore, the output latch is connected directly to the gate of the lower FET which has an FET cicuit labeled internal FET pull-up as an active pull-up load. Used as an input, a 1 is written to the latch, turning a lower FET on. The pin and the input to the pin buffer are pulled high by the FET load. An external circuit can overcome the high impedance pull-up and drive the pin low to input a 0 or leave the input high for a 1. If used as an output the latches containing a 1 can drive the input of an external circuit high through the pull-up. If 0 is written to the latch, the lower FET is on, the pull-up is off and pin can drive the input of the external circuit low. PORT 2 Port 2 is a bi-directional I/O port with internal pull-ups. The alternate use of port 2 is to supply a high order address byte in conjunction with the port 0 low order byte to address external memory. Port 2 latches remain stable when external memory is addressed as they do not have to be turned around(set to 1 ) for data input as in case for port 0.
  • 11. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 11 PORT 3 Port 3 is an input/output port similar to port 1. The input and output functions can be programmed under the control of the P3 latches or under the control of various other special function registers. Port 3 alternate functions: P3.0 RXD (Serial input port) P3.1 TXD (Serial output port) P3.2 INT0 (External interrupt 0) P3.3 INT1 (External interrupt 1) P3.4 T0 (Timer0 external input) P3.5 T1 (Timer1 external input) P3.6 WR (external data memory write strobe) P3.7 RD (external data memory read strobe) RST Pin 9 is a reset pin. It is an input and is active high (normally low). Upon applying a high pulse to this pin, the microcontrollers will reset and terminate all activities. This is often referred to as power on reset. Activating a power on reset will cause all values in the registers to be lost. It will set program counter to all 0’s. EA The 8051 family members with on chip ROM, EA pin connected to Vcc. For those in which there is no on chip ROM, code is stored on an external ROM and the EA pin must be connected to GND to indicate that the code is stored externally. EA which stands for “external access” is pin no. 31 in the DIP packages. It is an input pin and must be connected to either Vcc or GND.
  • 12. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 12 PSEN This is an output pin. PSEN stands for “program store enable”. PSEN is the read strobe to external program memory. ALE ALE (address latch enable) is an output pin and is active high. ALE output pulse for latching the low byte of the address during accesses to external memory. This pin is also the program pulse input during ROM programming. XTAL1 and XTAL2 The 8051 has an on chip oscillator but requires an external clock to run it. Most often a quartz crystal oscillator is connected to inputs XTAL1 (pin 19) and XTAL2 (pin 18). The quartz crystal oscillator connected to each capacitor is connected to the ground. There are various speeds of the 8051 family. Speed refers to the maximum oscillator frequency connected to XTAL. For example, a 12MHz chip must be connected to a crystal with 12MHz frequency or less. Fig. : 3.2.3 Crystal Oscillator
  • 13. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 13 3.3 RS232 3.3.1 Pin diagram Fig. : 3.3.1 Pin Diagram Of RS232 3.3.2 Pin Configurations D-Type-9 pin no. D-Type-25 pin no. Pin outs Function 3 2 RD Receive Data (Serial data input) 2 3 TD Transmit Data (Serial data output) 7 4 RTS Request to send (acknowledge to modem that UART is ready to exchange data 8 5 CTS Clear to send (i.e.; modem is ready to exchange data) 6 6 DSR Data ready state (UART establishes a link) 5 7 SG Signal ground 1 8 DCD Data Carrier detect (This line is active when modem detects a carrier 4 20 DTR Data Terminal Ready. Table No. 2
  • 14. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 14 3.3.3 Specification RS-232 TTL Logic -15V … -3V +2V … +5V High +3V … +15V 0V … +0.8V Low Table No. 3 3.3.4 Description When communicating with various micro processors one needs to convert the RS232 levels down to lower levels, typically 3.3 or 5.0 Volts. Here is a cheap and simple way to do that. Serial RS-232 (V.24) communication works with voltages -15V to +15V for high and low. On the other hand, TTL logic operates between 0V and +5V . Modern low power consumption logic operates in the range of 0V and +3.3V or even lower. Thus the RS-232 signal levels are far too high TTL electronics, and the negative RS- 232 voltage for high can’t be handled at all by computer logic. To receive serial data from an RS-232 interface the voltage has to be reduced. Also the low and high voltage level has to be inverted. This level converter uses a Max232 and five capacitors. The max232 is quite cheap (less than 5 dollars) or if you are lucky you can get a free sample from Maxim. The MAX232 from Maxim was the first IC which in one package contains the necessary drivers and receivers to adapt the RS-232 signal voltage levels to TTL logic. It became popular, because it just needs one voltage (+5V or +3.3V) and generates the necessary RS- 232 voltage levels
  • 15. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 15 3.4 LCD Fig. : 3.4.1 LCD 3.4.1 Description LCD (Liquid Crystal Display) screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits. These modules are preferred over seven segments and other multi segment LEDs. The reasons being: LCDs are economical; easily programmable; have no limitation of displaying special & even custom characters (unlike in seven segments), animations etc. A 16x2 LCD means it can display 16 characters per line and there are 2 such lines. In this LCD each character is displayed in 5x7 pixel matrix. This LCD has two registers, namely, Command and Data. The command register stores the command instructions given to the LCD. A command is an instruction given to LCD to do a predefined task like initializing it, clearing its screen, setting the cursor position, controlling display etc. The data register stores the
  • 16. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 16 data to be displayed on the LCD. The data is the ASCII value of the character to be displayed on the LCD. Click to learn more about internal structure of a LCD. 3.4.2 Pin Diagram Fig. : 3.4.2 Pin Diagram of LCD 3.4.3 Pin Description Pin No Function Name 1 Ground (0V) Ground 2 Supply voltage; 5V (4.7V – 5.3V) Vcc 3 Contrast adjustment; through a variable resistor VEE 4 Selectscommand registerwhen 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 8-bit data pins DB0 8 DB1 9 DB2 10 DB3 11 DB4 12 DB5 13 DB6 14 DB7 Table No. 4
  • 17. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 17 VCC, VSS, VEE The voltage VCC and VSS provide +5V and ground respectively, while VEE is used for controlling LCD contrast. Variable voltage between Ground and Vcc is used to specify the contrast (or "darkness") of the characters on the LCD screen. RS (register select) There are two very important registers inside the LCD. The RS pin is used for their selection as follows. If RS=0, the instruction command code register is selected, then allowing to user to send a command such as clear display, cursor at INDUSTRIAL etc.. If RS=1, the data register is selected, allowing the user to send data to be displayed on the LCD. R/W (read/write) The R/W (read/write) input allows the user to write information from it. The pin R/W=1, when it reads and R/W=0, when writing. EN (enable) The enable pin is used by the LCD to latch information presented to its data pins. When data is supplied to data pins, a high power, a high-to-low pulse must be applied to this pin in order for the LCD to latch in the data presented at the data pins. This pulse must be a minimum of 450ns wide. D0-D7 (data lines) The 8-bit data pins, D0-D7, are used to send information to the LCD or read the contents of the LCD’s internal registers. To display the letters and numbers, we send ASCII codes for the letters A-Z, a-z, and numbers 0-9 to these pins while making RS =1. There are also command codes that can be sent to clear the display or force the cursor to the INDUSTRIAL position or blink the cursor. We also use RS =0 to check the busy flag bit to see if the LCD is ready to receive the information. The busy flag is D7 and can be read when R/W=1 and RS =0, as follows: if R/W =1 and RS =0, when D7 =1(busy flag =1), the LCD is busy taking care of internal operations and will not accept any information. When D7 =0, the LCD is ready to receive new information.
  • 18. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 18 Interfacing of LCD with microcontroller In most applications, the “R/W” line is grounded. This simplifies the application because when data is read back, the microcontroller I/O pins have to be alternated between input and output modes. In this case, R/W to ground and just wait the maximum amount of time for each instruction and also the application software is simpler, it also frees up a microcontroller pin for other uses. Fig. : 3.4.3 - interfacing of LCD with 8051
  • 19. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 19 3.5 GSM Module 3.5.1 Diagram Fig. : 3.5.1 GSM Module 3.5.2 Description The SIM300 E is a Tri-band GSM/GPRS solution in a compact plug-in module integrated with a SIM card holder. Featuring an industry-standard interface, the SIM300E delivers GSM/GPRS 900/1800/1900MHz performance for voice, SMS, Data, and Fax in a small form factor and with low power consumption. The leading features of SIM300 E make it ideal for virtually unlimited applications, such as WLL applications, M2M application, handheld devices and much more.
  • 20. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 20 3.5.3 Features
  • 21. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 21 Table No. 5
  • 22. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 22 3.6 RELAYS A relay is an electrical switch that opens and closes under the control of another electrical circuit. In the original form, the switch is operated by an electromagnet to open or close one or many sets of contacts. The first relay was invented by Joseph Henry in 1835. The name relay derives from the French noun ‘relais’ that indicates the horse exchange place of the postman. Generally a relay is an electrical hardware device having an input and output gate. The output gate consists in one or more electrical contacts that switch when the input gate is electrically excited. It can implement a decouple, a router or breaker for the electrical power, a negation, and, on the base of the wiring, complicated logical functions containing and, or, and flip-flop. In the past relays had a wide use, for instance the telephone switching or the railway routing and crossing systems. In spite of electronic progresses (as programmable devices), relays are still used in applications where ruggedness, simplicity, long life and high reliability are important factors (for instance in safety applications). Fig. : 3.6.1 Relay
  • 23. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 23 3.6.1 OPERATION: When a current flows through the coil, the resulting magnetic field attracts an armature that is mechanically linked to a moving contact. The movement either makes or breaks a connection with a fixed contact. When the current to the coil is switched off, the armature is returned by a force approximately half as strong as the magnetic force to its relaxed position. Usually this is a spring, but gravity is also used commonly in industrial motor starters. Most relays are manufactured to operate quickly. In a low voltage application, this is to reduce noise. In a high voltage or high current application, this is to reduce arcing. 3.6.2 ADVANTAGES OF RELAYS:  Relays can switch AC and DC, transistors can only switch DC.  Relays can switch higher voltages than standard transistors.  Relays are often a better choice for switching large currents (> 5A).  Relays can switch many contacts at once. 3.6.3 DISADVANTAGES OF RELAYS:  Relays are bulkier than transistors for switching small currents.  Relays cannot switch rapidly (except reed relays), transistors can switch many times per second.  Relays use more power due to the current flowing through their coil.
  • 24. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 24 3.7 Smoke Sensor Smoke sensor composed by micro AL2O3 ceramic tube, Tin Dioxide (SnO2) sensitive Layer , measuring electrode and heater are fixed into a crust made by plastic and stainless steel net. The heater provides necessary work conditions for work of sensitive components. The enveloped MQ-5 have 6 pin ,4 of them are used to fetch signals, and other 2 are used for providing heating current. They are used in SMOKE leakage detecting equipments in family and industry, are suitable for detecting of LPG, natural SMOKE, town SMOKE, avoid the noise of alcohol and cooking fumes and cigarette smoke. The SMOKE sensor gives 12v to 16 v output when triggered and this output voltage is given to the microcontroller using NPN transistor BC547.The SMOKE sensor output is taken across he HS1527 OTP Encoder, HS1527 It can reduce any code collision and unauthorized code scanning possibilities. Natural SMOKE is an energy source that is commonly used in homes for cooking, heating, and Water heating. It is primarily composed of methane. (Methane is a highly flammable chemical compound consisting of one carbon atom surrounded by four hydrogen atoms.) Although it only happens rarely, a natural SMOKE leak can sometimes occur inside the home. A natural SMOKE leak can be dangerous because it increases the risk of fire or explosion. Your local SMOKE company works hard to provide adequate warning in the event of a SMOKE leak. Because methane—and therefore, natural SMOKE—does not have any odor, the SMOKE company adds a warni“rottenegg” smell (mercaptan or a similar sulfur-based compound) that can be easily detected by most people. However, people who have a diminished sense of smell may not be able to rely upon this safety mechanism. If you have a concern about your ability to smell the additive that signals a SMOKE leak, you need to see a physician and use a different safety signal. A SMOKE detector can be an important tool to help protect you and your family. A SMOKE sensor is used to Detect dangerous SMOKE leaks in the kitchen or near the SMOKE heater. This unit detects 300 to 5000ppm of Natural SMOKE. Ideal to detect dangerous SMOKE leaks in the kitchen. Sensor can be easily configured as an alarm unit. The sensor can also sense LPG and Coal SMOKE. Ideal sensor for use to detect the presence of a dangerous 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 or
  • 25. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 25 give a visual indication of the LPG concentration. The sensor has excellent sensitivity combined with a quick response time. detected is messaged to the authorized person using cellular network called GSM. Here we are using an 8-bit Microcontroller for which SMOKE sensors and GSM modem are connected. In This project SMOKE sensors are used to detect the motion of human beings entering into the high security zones. After detecting, this system will intimate the authorized people by sending an SMS using GSM (Global system for mobile communication) modem. Fig. : 3.7.1 Smoke Sensor 3.7.1 FEATURES  High sensitivity to LPG, iso-butane, propane  Small sensitivity to alcohol, smoke.  Fast response .  Stable and long life  Simple drive circuit 3.7.2 APPLICATIONS They are used in SMOKE leakage detecting equipments in family and industry, are suitable for detecting of LPG, natural SMOKE , town SMOKE, avoid the noise of alcohol and cooking fumes and cigarette smoke.
  • 26. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 26 3.7.3 PRECAUTIONS TO BE TAKEN WHEN SMOKE DETECTED What to do if your SMOKE detector alerts you to a natural SMOKE leak 1. Leave the house immediately. 2. DO NOT make calls from your home. Phones are capable of producing a spark, which could start a fire or explosion. Contact your local SMOKE utility company or call 911 from a phone outside and away from your home. 3. DO NOT light a match or other combustible material. Likewise, DO NOT turn any light switches on or off, and DO NOT plug or unplug electrical appliances such as a television or vacuum cleaner. These activities also can produce a spark that could start a fire or explosion. 4. Do not re-enter the house until the SMOKE company finds the source of the leak and corrects it. 3.7.4 SOURCES OF SMOKE SENSORS 1. Leaks from SMOKE appliances, heating systems, and water heaters 2. Leaks from interior natural SMOKE piping systems 3. Migration of natural SMOKE indoors from leaks in outdoor piping systems 3.8 Infrared Technology 3.8.1 How it Works An infrared transmission system is comprised of three components, the transmitter, the infrared emitter (also called radiator) and the receiver. The transmitter modulates the audio signal onto a carrier frequency using F.M. or digital techniques. The emitter takes the modulated signal and converts it into infrared light. The receiverdecodes the infrared signal and coverts it back to an audio signal which is sent to the headphone. In a multichannel system the transmitter generates a carrier wave for each channel. All the modulated carrier waves are mixed, and are fed via a coaxial cable from the transmitter to the infrared emitters. The output of the emitters is modulated infrared light, which is
  • 27. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 27 invisible to the human eye. Each user is given their own pocket receiver. This receiver has a lens which collects the infrared light, and directs it to an IR sensitive receptor. he receiver has electronics to decode the received signals, and to output one of the signals (selected by a channel selector) to the headphone connector. In a conference or theater setting the transmitter can be placed anywhere within about 1,000 feet of the radiators. The radiators need to be placed around the area to be covered by a technician with knowledge about the dispersion pattern of the emitter and the power output. These radiators are connected in a daisy chain configuration around the hall to give adequate signal strength to the entire area to be covered. Additional emitters may be placed back stage or in over flow rooms as the signal will not travel through walls. 3.8.2 Advantages The of an infrared transmission system are fully realized when different programs are required in adjacent rooms, such as a multiplex cinema or conference center. Each room can be equipped with a separate infrared system without interference between rooms. In the case of a multichannel transmission system, a delegate can go from room to room and keep the same channel for their particular language. Additionally, since the signal is transmitted via infrared light there is little change of radio frequency interference.
  • 28. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 28 3.9 Schematic Diagram Fig. : 3.9.1 Schematic Diagram 3.10 Component List Component Quantity Microcontroller 1(8051) LCD 16*2 GSM Module 1 Smoke Detector 1 RS232 Connector 1 Adapter 1(12 V) Table No.6
  • 29. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 29 Chapter 4. Software Description
  • 30. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 30 4.1 Keil - μVISION4 Steps For Create New Project:- 1. Click on the Keil uVision Icon on DeskTop 2. The following fig will appear Fig. : 4.1.1 3. Click on the Project menu from the title bar 4. Then Click on New Project 5. Save the Project by typing suitable project name with no extension in u r own folder sited in either C: or D: 6. Then Click on Save button above. 7. Select the component for u r project. i.e. Philips…… 8. Click on the + Symbol beside of Philips 9. Select AT89S52 as shown below Fig. : 4.1.2
  • 31. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 31 10. Then Click on “OK” 11. The Following fig will appear Fig. : 4.1.3 12. Then Click either YES or NO………mostly “NO” 13. Now your project is ready to USE 14. Now double click on the Target1, you would get another option “Source group 1” as shown in next page. 15. Click on the file option from menu bar and select “new”. 16. The next screen will be as shown in next page, and just maximize it by double clicking on its blue boarder. 17. Now start writing program in either in “C” or “ASM” 18. For a program written in Assembly, then save it with extension “. asm” and for “C” based program save it with extension “ .C” 19. Now right click on Source group 1 and click on “Add files to Group Source” 20. Now you will get another window, on which by default “C” files will appear. 21. Now select as per your file extension given while saving the file 22. Click only one time on option “ADD” 23. Now Press function key F7 to compile. Any error will appear if so happen.
  • 32. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 32 Start A 4.2 Flowchart of program: Fig. : 4.2.1 Flowchart 1 Initialise The Modem Specify Microcontroller Send “AT” Command Is Modem Ready? Return Response≠OK Send “AT+CMGF=1” Command Is Response = “OK” Response= OK
  • 33. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 33 A B YES No Fig. : 4.2.2 Flowchart 2 Send “AT+CMGW = MOBILE NUMBER” Command Is Response = “ > ” Take Data From Smoke Sensor to Microcontroller via ADC According to the data print message for smoke on LCD Smoke Detected ?Display on LCD Not Display on LCD
  • 34. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 34 B C YES No Fig. : 4.2.3 Flowchart 3 Take Data From IR Sensor to Microcontroller via ADC Object Detected ? According to the data print message for smoke on LCD Display on LCD Not Display on LCD
  • 35. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 35 Device 1 is On Device 1 is Off Device 2 is On Device 2 is Off C C Fig. : 4.2.4 Flowchart 4 If message received L1N According to the data print message for Device 1 On or Off If message received L1F If message received L2N According to the data print message for Device 2 On or Off If message received L2F
  • 36. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 36 Device 3 is On Device 3 is Off C Fig. : 4.2.5 Flowchart 5 If message received L3N According to the data print message for Device 3 On or Off If message received L3F
  • 37. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 37 Chapter 5. Advantages & Application
  • 38. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 38 5.1Advantages  Reduce Production Cost - A quick return on investment outweighs the initial setup costs. All of the following automation advantages reduce production cost.  Decrease in Part Cycle Time - A lean manufacturing line is crucial for increasing efficiency. Automation System can work longer and faster which increase production rate.  Improved Quality and Reliability – Automation is precise and repeatable. It ensures the product is manufactured with the same specifications and process every time. Repairs are few and far between.  Better Floor Space Utilization – By decreasing a footprint of a work area by automating parts of your production line, you can utilize the floor space for other operations and make the process flow more efficient. 5.2 Application  Industry based security system.  Furnace temperature control.  GSM based electricity control.  Any types of door control system.
  • 39. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 39 Chapter 6. Conclusion & Future Expansion
  • 40. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 40 6.1 Conclusion & Future Expansion While working on this project we came to know about various new concepts and components. We compared various components and finalized the best compatible ones for the project and this made us aware of their application and utility in various fields. We learned to work on different software tools that are currently in use. At the end of this semester we finalized the circuit diagram and selected the best suitable components for the project.  This project can be further expanded to home security level, Automatic cooling system using the temperature control using LM35 or LM37, Automatic light controlling using LDR.  This can also be expanded to industry level by monitoring and controlling different devices.  Computer can also be interfaced with this project using another GSm module or RF module.  The DSP processor can also be used with GSM modem for different application like DTMF, image processing, voice recognition instrumentation and control etc.
  • 41. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 41 Chapter - 7. Bibliography
  • 42. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 42 7.1 REFERENCES Here, I present a list of references for gathering sufficient information on the material required for my project as well as getting the brief idea about the technology involved. 7.1.1 Book [1] The 8051 Microcontroller and Embedded system by Muhammad Ali Mazidi. 7.1.2 Documents  From the website: www.google.com  From the website: www.youtube.com  From the website: www.industrial.automation-au.com  From the website: www.robots.com  From KEIL Software
  • 43. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 43 Chapter - 8. APPENDIX
  • 44. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 44 PROGRAMING: $regfile ="M16def.dat" $crystal = 8000000 $framesize =24 $hwstack = 32 $swstack = 8 $baud = 9600 '*****BAUD RATE ISAUTO DETECTED BY GSM MODULE SO YOU CAN TAKE ANYONE DimA As String* 5 , Rcvd As String* 5 DimI As Integer DimMessage As String* 25 DimMessage1 AsString* 100 DimAb AsInteger DimYy AsInteger DimMn As Integer DimNum AsString* 25 Dim PosAs Byte ConfigPortb.0= Output ConfigPortb.1= Output ConfigPortb.2= Output ConfigPortb.3= Output ConfigPortd.6= Output ConfigLcdpin= Pin, E = Portc.4 , Rs = Portc.5 , Db4 = Portc.3 , Db5 = Portc.2 , Db6 = Portc.1 , Db7 = Portc.0
  • 45. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 45 ConfigSerialin=Buffered,Size =254 ConfigSerialout=Buffered,Size =254 Enable Interrupts 'ROHIT, LUBNA & ANKIT ConfigAdc= Single ,Prescaler=Auto , Reference =Avcc Start Adc DimW1 As Word DimW2 As Word ConfigPortd.5= Output ResetPortd.6 ResetPortd.5 Cls Locate 1 , 1 Lcd " PROJECTBY:" Wait 2 Cls Locate 1 , 1 Lcd "ROHIT" Wait2 Cls Locate 1 , 1 Lcd "LUBNA" Wait2
  • 46. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 46 Cls Locate 1 , 1 Cls Locate 1 , 1 Lcd "ANKIT" Wait2 Cls Cls Locate 1 , 1 Cls Locate 1 , 1 Lcd "GSM BASED" Wait 1 Cls Locate 1 , 1 Lcd "SECURITY" Wait 1 Cls Locate 1 , 1 Lcd "SYSTEM" Wait 2 Cls Locate 1 , 1
  • 47. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 47 Lcd "PROCESSING..." Wait 10 Message1= "" Mn = 0 Yy = 0 Main: ' Message1= "" Mn = 0 Yy = 0 Message = "" Rcvd = "" A = "" Num= "" Cls Locate 1 , 1 Lcd "PowerUP" Waitms500 Cls Do Cls Locate 1 , 1 Lcd "Waiting" Print"AT" 'SENDING "AT"FOR CHEKING THE GSM MODEM ISWORKING
  • 48. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 48 A = Inkey() Loop Until A = "O" 'RESPONSEOF "AT" IS"OK" SO WAITINGFOR FIRSTLETER "O" Rcvd = A Do A = Waitkey() Loop Until A = "K" 'RESPONSEOF "AT" IS"OK" SOWAITING FOR SECONDLETER "K" Rcvd = Rcvd + A 'COMBINE "O & K" FORFINALRESPONSE"OK" Cls Lcd Rcvd Wait 1 Rcvd = "" 'MAKING RCVD EMPTY FOR OTHER RESONSE 'TO ENTER IN TEXT MODE OTHER WISE MODEM WILL BE IN PDU(PACKETDATA UNIT) "AT+CMGF=0" Locate 1 , 1 Lcd "AT+CMGF=1" 'FORDISPLAY Do Waitms500 Print"AT+CMGF=1" A = Inkey() Loop Until A = "O" 'RESPONSEOF "AT+CMGF=1" IS "OK"SO WAITINGFOR FIRST LETER "0" Rcvd = A Do
  • 49. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 49 A = Inkey() Loop Until A = "K" 'RESPONSEOF "AT+CMFG=1" IS "OK"SO WAITINGFOR SECOND LETER "K" Rcvd = Rcvd + A 'COMBINE "O & K" FORFINALRESPONSE"OK" Lowerline Lcd Rcvd Waitms500 Rcvd = "" 'Print"ATE0" 'TURNING ECHO OFF(RESPONSEIS"OK") Lcd "ATE0" Do Waitms500 Print"ATE0" A = Inkey() Loop Until A = "O" Rcvd = A Do A = Waitkey() Loop Until A = "K" Rcvd = Rcvd + A Cls Lcd Rcvd Wait 1
  • 50. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 50 Do Print"AT+CMGD=1" 'TO RECIVE THE NEW MESSAGE IN 1ST INDEXWE ARE DELETING THE FIRST ENTRY Lcd "AT+CMGD=1" Rcvd = "" 'RESEPONSE IS"OK" Cls Wait 1 Do Cls ' W1 = Getadc() ' W2 = Getadc(1) ' Cls ' If W1 > 60 Then ' SetPortd.6 ' Else ' ResetPortd.6 ' EndIf ' If W2 > 800 Then ' SetPortb.0 ' Else ' ResetPortb.0 ' EndIf A = Inkey() W1 = Getadc()
  • 51. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 51 W2 = Getadc(1) If W2 > 800 Then Cls Locate 1 , 1 Lcd "OBJECT DETECTED" Waitms200 Elseif W1 > 100 Then Cls Locate 1 , 1 Lcd "SMOKE DETECTED" Waitms200 End If Loop Until A = "S" '+CMTI: "SM",4 ***WE ARE WAITINGFOR LATTER "S" Rcvd = A Do A = Inkey() Loop Until A = "M" '+CMTI: "SM",4 ***WE ARE WAITINGFOR LATTER "M" Rcvd = Rcvd + A Lcd Rcvd Waitms500 Cls Print"AT+CMGR=1" 'at CommandTo ReadThe Message FromFirstIndex(responseIs+ Cmgr : "REC READ" , "CG-6.......) ClearSerialin
  • 52. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 52 'CLEAR THE SERIALIN BUFER TO REMOVE OLD RECIVEDLATTERS Do ClearSerialin A = Waitkey() '*****USER REAL MESSEAGE STARTS AFTER SECONDCRLF SO WAITINGFOR TWO CRLF****** Loop Until A = Chr(13) 'WAIT UNTIL Carriage Return"ASCIIFORCarriage ReturnIS13 DECIMAL " ClearSerialin Do ClearSerialin A = Waitkey() ClearSerialin Do ClearSerialin A = Waitkey() Pos = Instr(message ,"L1N") If Pos > 0 Then Cls Lcd "LIGHT 1 ON" SetPortb.1 End If Pos= 0
  • 53. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 53 Wait 2 Pos = Instr(message ,"L1F") If Pos > 0 Then Cls Lcd "LIGHT 1 OFF" ResetPortb.1 End If Pos= 0 Pos = Instr(message ,"L2N") If Pos > 0 Then Cls Lcd "LIGHT 2 ON" SetPortb.2 End If Pos= 0 Pos = Instr(message ,"L2F") If Pos > 0 Then Cls Lcd "LIGHT 2 OFF" ResetPortb.2 End If Pos= 0 '**********
  • 54. PARUL INSTITUTEOF ENGINEERING & TECHNIOLOGY INDUSTRIAL AUTOMATION AND SECURITY SYSTEM BASED ON GSM 54 Pos= Instr(message ,"L3N") If Pos > 0 Then Cls Lcd "LIGHT 3 ON" SetPortb.3 End If Pos= 0 Pos = Instr(message ,"L3F") If Pos > 0 Then Cls Lcd "LIGHT 3 OFF" ResetPortb.3 End If Pos= 0 '************