Professional Documents
Culture Documents
CHAPTER 1
INTRODUCTION
1.1PROJECT INFORMATION:
Home security has been a major issue where crime is increasing and everybody wants to take
proper measures to prevent intrusion. This project presents a model that will provide security to
their home, office or cabin etc via SMS using GSM technology.
Keeping in view the rapid growth of wireless communication we are inspired to work on this
project. The idea behind this project is to meet the upcoming challenges of the modern practical
applications of wireless communication and to facilitate our successors with such splendid ideas
that should clear their concept about wireless communication and control system.
The applications of SMS/GSM Based security system are quite diverse. There are many real life
situations that require control of different devices remotely and to provide security. There will be
instances where a wired connection between a remote appliance/device and the control unit
might not be feasible due to structural problems. In such cases a wireless connection is a better
option.
Basic Idea of our project is to provide GSM Based security even if the owner is away from the
restricted areas. For this we adopted wireless mode of transmission using GSM. Beside this there
are many methods of wireless communication but we selected GSM in our project because as
compared to other techniques, this is an efficient and cheap solution also, we are much familiar
with GSM technology and it is easily available.
This project is designed to provide ubiquitous access to the system for the security using
extensive GSM technology for communication purposes and microcontroller for device control.
The highlights of our system are the long range of communication and password security. The
security is provided by sending a message to our access number, controlling and
acknowledgement is done through SMS code between our access number and the authenticated
user.
ELECTRONICS AND TELECOMMUNICATION, M.M.C.O.E, PUNE
1
ELECTRONIC DOOR LOCKING SYSTEM THROUGH SMS
1.2 OBJECTIVE:
Designing a system which opens and closes the door from remote place on receiving a SMS
and to intimate the user regarding the status of the door.
CHAPTER 2
LITETRATURE SURVEY
In the present day technology we have the following electronic door locking
systems.
2.4.1 Advantages:
• It is cost effective system as compared to controlling through Internet.
• Acknowledgement to the owner regarding intrusion ,which was not possible in the
earlier systems.
• Locking/unlocking is done through SMS, which is free to use these days
• Cell phones are accessed by the users all over the world including in the rural areas
and hobli region where Internet cannot reach.
CHAPTER 3
System Description
3.1 BLOCK DIAGRAM:
3.2.1 Microcontroller:-
When we have to learn about a new computer we have to familiarize about the machine
capability we are using, and we can do it by studying the internal hardware design
(devices architecture), and also to know about the size, number and the size of the
registers.
A microcontroller is a single chip that contains the processor (the CPU), non-volatile
memory for the program (ROM or flash), volatile memory for input and output (RAM), a
clock and an I/O control unit. Also called a "computer on a chip," billions of
microcontroller units (MCUs) are embedded each year in a myriad of products from toys
to appliances to automobiles. For example, a single vehicle can use 70 or more
microcontrollers. The following picture describes a general block diagram of
microcontroller.
reducing the EMI. The Flash program memory supports both parallel programming and
in serial In-System Programming (ISP). Parallel programming mode offers gang-
programming at high speed, reducing programming costs and time to market. ISP allows
a device to be reprogrammed in the end product under software control. The capability to
field/update the application firmware makes a wide range of applications possible. The
P89V51RD2 is also In-Application Programmable (IAP), allowing the Flash program
memory to be reconfigured even while the application is running.
This is a plug and play GSM Modem with a simple to interface serial interface. Use it to send
SMS, make and receive calls, and do other GSM operations by controlling it through simple AT
commands from micro controllers and computers. It uses the highly popular SIM300 module for
all its operations. It comes with a standard RS232 interface which can be used to easily interface
the modem to micro controllers and computers.
The modem consists of all the required external circuitry required to start experimenting with the
SIM300 module like the power regulation, external antenna, SIM Holder, etc.
3.2.3 LM 7805 :
This series of fixed-voltage integrated-circuit voltage regulators is designed for a wide range of
applications.
These applications include on-card regulation for elimination of noise and distribution problems
associated with single-point regulation. Each of these regulators can deliver up to 1.5 A of output
current. The internal current-limiting and thermal-shutdown features of these regulators
essentially make them immune to overload.
In addition to use as fixed-voltage regulators, these devices can be used with external
components to obtain adjustable output voltages and currents, and also can be used as the power-
pass element in precision regulators.
CHAPTER 4
HARDWARE DESIGN
4.1 SPECIFICATIONS:
4.1.1 MICROCONTROLLER P89V51RD2:
FEATURES:
1.80C51 CPU.
Vcc-Pin 40 provides supply voltage to the chip. The voltage source is +5V.
EA- pin is connected to the Vcc and connected to pin no. 31.
ALE-It is output pin and is active high. When connecting a microcontroller to external memory,
port 0 provides both address and data.
PORT 0: An 8-bit open drain bidirectional I/O port. It is the multiplexed low-order address and
data bus.
PORT 1:An 8-bit bidirectional I/O port. P1.5, P1.6, P1.7 have high current drive of 16mA.
PORT 2: *-bit bidirectional I/Oort, it receives control signals and a partial of high-order address
bits during the programming.
5V RS232 Driver
Real Time Clock
USB connector
"RED led" 5mm
10 watt zener diode
Features:
Module’s operation mode can be controlled through the PWR Switch connected to the
PWR pin.
Comes with an onboard wire antenna for better reception. Board provides an option for
adding an external antenna through an SMA connector
The SIM300 allows an adjustable serial baud rate from 1200 to 115200 bps (9600
default)
Operating Voltage: 7 – 15V AC or DC (board has onboard rectifier)
AT COMMANDS-
The AT commands are used to control the operation of the modem. They are called AT
commands because the characters AT must precede each command to get the ATtention of the
modem.
AT commands can be issued only when the modem is in command mode or online command
mode. The modem is in command mode whenever it is not connected to another modem. The
modem is in data mode whenever it is connected to another modem and ready to exchange data.
Online command mode is a temporary state in which one can issue commands to the modem
while connected to another modem.
COMMANDS DESCRIPTION
1. Ate Turn off echo
2. AT&W Save settings
3. AT+CMGF Select text mode for SMS
4. AT+CNMI Notifications for new SMS
5. AT+CMGR Read message
6. AT+CMGS Send message
7. AT+CMGD Delete message
4.2.3 LM 7805:
3-Terminal Regulators
Output Current up to 1.5 A
Internal Thermal-Overload Protection
High Power-Dissipation Capability
Internal Short-Circuit Current Limiting
Output Transistor Safe-Area Compensation
4.3 DESIGN :
For power supply ,
The transformer used is 230V,50HZ. Transformer converts this voltage in to 8.4V. The drop out
voltage of IN4007 diode is 0.7V. The bridge rectifier is used at the input side. The total drop out
voltage of two diodes is 0.7V+0.7V=1.4V. The output voltage is of bridge rectifier is 8.4V –
1.4V = 7V .
The drop out voltage of LM7805 is 2V. Hence output voltage of LM7805 is approximately
comes out to be 7V - 2V= 5V which is the required output voltage from the power supply.
The voltage rating of relay driver is 20V and the current rating is 20mA-30 mA
R = V/I
R = 20V / 20mA
Therefore R = 1 KΩ
CHAPTER 5
SOFTWARE IMPLEMENTATION
5.1 FLOWCHART
START
Is there NO
any
Message?
YES
Keil MicroVision is a free software which solves many of the pain points for an embedded
program developer. This software is an integrated development environment (IDE), which
integrated a text editor to write programs, a compiler and it will convert your source code to hex
files too.
Here is simple guide to start working with Keil uVision which can be used for
Writing programs in C/C++ or Assembly language
Compiling and Assembling Programs
Debugging program
Creating Hex and Axf file
Testing your program without Available real Hardware (Simulator Mode)
access to all the ISP features provided by the devices. These features include:
5.2.3 DipTrace:
DipTrace is EDA software for creating schematic diagrams and printed circuit boards.
PCB Layout— PCB design with an easy to use manual routing tools,
auto-router and auto-placer.
Schematic— Schematic Capture and export to PCB or Spice.
Pattern Editor— allows you to create part footprints.
Component Editor— allows you to draw parts and make components.
CHAPTER 6
RESULTS AND CONCLUSION
6.1 RESULT:
Firstly, when the system kit is turned ON, GSM modem will send the message to the user
“HELLO, WELCOME ALL”
After that the password is typed by the user wishing to access the security area. If the password
is correct then a message containing password along with his details is sent to the owner.
When the owner receives message along with the details of the person who wants to enter the
office or the restricted area, then the owner will reply ”OPEN”, if reply is positive, the door will
open otherwise remains closed.When the device is turned ON the system acknowledges the user
about the status of the device.If some unregistered user sends sms to the GSM, it will inform to
the owner about the access of unregistered person.
6.2 CONCLUSION:
We are able to control the devices using GSM enabled mobile phone. Hence, from the above
result we conclude that this is the one of the best option for the security purpose. Since all the
component or device which we are using in our project is very easily available and affordable to
common people, and using the current resources of communication system, this model is
developed. Hence, this makes it very attractive and also very efficient in operation and cost
effective, so that a common people can easily afford it and very easy in operation also.
This technology has applications like in large scale search and rescue missions in adverse
environments. Future work includes research on the device control in 3G mobile communication
networks. This will facilitate controlling the environment of a particular area using the DTMF of
mobile phone with video data from the remote mobile’s camera.
CHAPTER 7
APPLICATIONS AND FUTURE SCOPE
7.1 Applications:
1) This project has its main application in security system. This project can be used in home as
SMS based domestic security system. It will be really useful for the security of flat, bungalow or
any row house. It can be used in our house for theft detection at night time. The other part of the
project (password detector) can be used to automate the door locking process, so the user need
not to carry the door lock keys along with him, he/she can just remember the password and use it
later to open the door.
2) Various parameters monitored in this project like LPG gas leakage, theft detection and
overheat due to fire are also applicable for industrial purpose as well. So this system can also be
used in industries as a GSM based industrial security system.
3) This project can be used in hospitals. We need to do little bit modifications for use in hospital.
We can add oxygen gas sensor to detect the leakage in oxygen gas cylinders, as it can also cause
fire. The password operated locking section can be used in hospitals for those rooms which have
limited access like rooms with chemical or x-ray machine units. So only authorized person can
gain access to this areas/rooms/sections.
3. We can monitor and control more parameters and devices.We can implement other related
modules like fire sensor, wind sensor.
CHAPTER 8
COST OF COMPONENTS
Components List Quantity Cost Total Cost
GSM modem-SIM300 1 1200 1200
IC LM 7805 1 15 15
Relay-SPDT 12V 1 25 25
0-9v Transformer 1 65 65
Transistor-NPN BC548 1 5 5
Diode-IN4007 5 1 5
Crystal Oscillator 1 10 10
Capacitors-30pF 2 1 2
-1000uF 1 5 5
-470uF 1 2 2
Resistors-1k 2 0.5 1
-10k 1 1 1
-330 1 1 1
MX27 connector 1 23 23
Relimate connector-2 pin 2 4 8
Tact switch 1 3 3
LED 1 1 1
TOTAL COST Rs.2192/-
REFERENCES
[1] BOOK REFERENCES:
[1] Muhammad Ali Mazidi,the 8051 Microcontroller.
[2] “Embedded Systems Using Assembly and C” 2nd Edition, Dept Of E&TC
[2] Sheikh Izzal Azid, Sushil Kumar, “Analysis and Performance of a Low Cost SMS Based
Home Security System International Journal of Smart Home Vol. 5, No. 3, July, 2011, P 15.
[3] Nadia Shaheen, Aihab Khan, Malik Sikander Hayat Khiyal and Qaiser Javed, “ Home
Automation Disaster Management System via SMS and GSM",JOURNAL OF COMPUTING,
VOLUME 3, ISSUE 7, JULY 2011, ISSN 2151-9617, P 132.
[4] Elkamchouchi, H.; ElShafee, A. "Design and prototype implementation of SMS based home
automation system", Electronics Design, Systems and Applications (ICEDSA), 2012 IEEE
International Conference on, On page(s): 162 – 167.