You are on page 1of 61

GSM BASED VEHICLE SECURITY SYSTEM

BY
PATEL MAUSAM BHARATKUMAR (126140311046)
DARJI HINAL DINESHBHAI (126140311050)
UNDER THE GUIDENCE OF
INTERNAL GUIDE
Mrs.M.S.PRAJAPATI
D.E.C.E, GPG.

EXTERNALGUIDE&ADDRES
MR.ONKAR DAN
B-101 NIRMAN RESIDENCY,
REMEDIAL TECHNOLOGY,
GANDHINAGAR.

PROJECT REPORT SUBMITTED TO


ELECTRONICS AND COMMUNICATION DEPARTMENT
GORNMENT POLYTECHNIC FOR GIRLS,
AHMEDABAD
OCTOMBER-2014

DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING


GOVERNMENT POLYTECHNIC FOR GIRLS, AHMEDABAD
(Affiliated to Gujarat Technological University, Ahmadabad)

CERTIFICATE

This is to certify that Miss. PATEL MAUSAM BHARATKUMAR (126140311046)


having completed Part-I Project work having title GSM BASED VEHICALE

SECURITY SYSTEM
She has undergone the process of shodh yatra, survey & problem identification.
She has carried out project work under the guidance of REMEDIAL
TECHNOLOGY.

Internal Guide:

Head of Department:

Mrs. M.S.PRAJAPATI.
Lecturer,
EC department,
GPG, A bad

DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING


GOVERNMENT POLYTECHNIC FOR GIRLS, AHMEDABAD
(Affiliated to Gujarat Technological University, Ahmadabad)

ii

CERTIFICATE

This is to certify that Miss. DARJI HINAL DINESHBHAI (126140311050) having


completed Part-I Project work having title GSM BASED VEHICLE SECURITY
SYSTEM She has undergone the process of shodh yatra, survey & problem
identification. She has carried out project work under the guidance of REMEDIAL
TECHNOLOGY.

Internal Guide:

Head of Department:

Mrs. M.S.PRAJAPATI.
Lecturer,
EC department,
GPG, A bad

DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING


GOVERNMENT POLYTECHNIC FOR GIRLS, AHMEDABAD
(Affiliated to Gujarat Technological University, Ahmadabad)

iii

ACKNOWLEDGEMENT
Our thanks goes to this college to give us extreme chance to represent ourselves with better prospects
and better idea and we are very grateful to our HOD Mrs. B.C. PATEL and internal guide Mrs. M.S.
PRAJAPATI to give us good idea & advice in making our project.
And specially thanks to our College in which we worked very efficiently in our lab time. We
are very much thankful to our external guide MR. ONKAR DAN to give us fantastic idea to make
our project how to manage it and how to design it properly.
Again thanks to our internal guide MRS. M.S. PRAJAPATI who advice our project flow.
Our lovely and gracious bride stands by our side day and night, at last again thanks to you and
also our friends.

1. PATEL MAUSAM BHARATKUMAR


EN.NO (126140311046)
2. DARJI HINAL DINESHBHAI
EN.NO (126140311050)

iv

ABSTRACT
This project will focus on the developing an enhancement of vehicle security of system via SMS
(Short Message System).Security of our vehicle is major concern to us. Aim of this project is to save
the vehicle.
In this project, the technology of telecommunication, to be specific; SMS, is integrated or improvised
to the present vehicle security system. Instead of human to human telecommunication .This system
creates new entity which is machine to human telecommunication. This is wireless security system
which implement mobile communication protocol is proposed.
The vehicle send message is automatically sends to the owner of vehicle through GSM
modem.Here,the password like SMS(Short Message System) is sent by the owner is automatically
stop the vehicle. To avoid this kind of steals we are going to implement this system it provides more
security of vehicles.

INDEX
INDEX OF CONTENT
CONTENS

PAGE NO

TITLE PAGE
CERTIFICATE
ACKNOWLEDGEMENT
TABLE OF CONTENT
ABSTACT
CHAPTER-1 INTRODUCTION
1.1 INDUSTRY INTRODCTION
1.2 INDUSTRIAL SURVEY
1.3 UTILITY OF PROJECT
CHAPTER-2 IDENTIFICATION OF PROBLEM
2.1 IDENTIFICATION OF PROBLEM &
DEFINATION
2.2 LITRATURE REVIEW
CHAPTER-3 BLOCK DIAGRAM OF PROJECT
3.1 BLOCK DIAGRAM
3.2 DISCRIPTION OF BLOCK DIAGRAM

CHAPTER-4 CIRCUIT DIAGRAM


4.1 CIRCUIT DIAGRAM
4.2 DISCRIPTION OF CIRCUIT DIAGRAM
4.3 COMPONET LIST
4.4 DISCRIPTION OF COMPONENTS
CHAPTER-5 FLOW CHART
5.1 FLOW CHART
5.2 PROGRAM
CHEPTER-6 CONCLUSION &FUTURE WORK
ANEXUR -1 DATASHEET
ANEXER-2 REFERANCE

INDEX OF FIGURE

FIG. NO.

CONTENT

3.1

BLOCK DAIGRAM

3.2.1

GSM MODEM(SIM 900)

3.2.2

ARDUINO

3.2.3

IC-L293D

3.2.4

RELAY

3.2.5

HALL EFFECT CURRENT SENSOR

4.1

CIRCUIT DAIGRAM

4.4.1

PIN DECRIPTION OF ARDUION

4.4.2

PIN DECRIPTION OF IC-L293D

4.4.3

PIN DECRIPTION OF GSM(SIM900)

4.4.4

RESISTER

4.4.5

CAPACITOR

4.4.6

DC MOTOER

4.4.7

LCD

4.4.8

CRYSTAL OCILLATOR

4.4.9

IC-MAX232

4.4.10

HALL EFFECT CURRENT SENSOR

PAGE NO.

CHAPTER:-1
INTRODUCTION

10

INDUSTRY INTRODUCTION:-

REMEDIAL TECHNOLOGY is specialized in PCB Layout Designing. We provide


valuable services to our customers owing to our rich expertise in automation.. With the help of
our knowledgeable and experienced team, we have been able to acquire the status of a reliable
Service Provider in the industry.
We are well supported by our skilled professionals; they are expert in their respective
domains and help us in designing high-class PCB. Our services are widely applied in electrical
and mechanical industries. We provide assistance of premier layout work with the aid of our
engineers and advanced technology.
Our company's strength lies in high work standards, prompt & committed delivery,
and regular services to the clients. Our highly reputed partners in this domain add advantage to
our business, and thus we are looked upon as a strong competitor.
Further, we are providing services for IC Programming Facilities & Electronics
Project Guidance and Electronics Project Development. Providing best services to our clients is
the prime objective for us that enable us in attaining the clients' trust. We use innovative routing
method that makes our design more reliable and effective.

11

Industry Survey :According to the guideline of the GTU, for the the final year student, they have industry defined
project, so we are many industries during the survey, we go to two to three industries to find
problem which occur in industries or in our day to day life.
Initially I searched of all the components on internet at Ahmadabad, Gandhinagar and
other places, made a list of all and triad fir the references there at the companies because without
references they dont allow students to visit companies like this I went at two or three companies
where they dont allocate any problems or project work to student and were not also ready to
give this thing in written.
(1) UNIQUE TECHNOLOGY
(2) NEXFY EMBEDDED TECHNOLOGY
(3) SIGMA
(4) SINCENCE & TECHNOLOGY
(5) REMEDIAL TECNOLOGY
In the visit of these industries we have show that show that how to work in these
industries. Finally none our seniors suggestion we all went to REMEDIAL TECNOLOGY
where we met MR. ONKAR DAN the owner of the company. We discussed our project plan to
him in detail and then he reviewed our project and agreed to help and guide us in our project.

Patel Mausam B.
126140311046
Darji Hinal D.
126140311050
GPG, AHMEDABAD

12

1.3 UTILITY OF PROJECT:This project brings technology effectively in security and surveillance segment of
industry. In industry we can use security for industry; smart industry etc.The device implemented
to the vehicle will reduce the threat of theft and mischievous activity to the vehicle.
Vehicle used in house hold could be secure by implementing the device to it which
will reduce the threat of theft. In house hold application in use to smart home like we can control
the every equipment like light, fridge, fan, AC etc.
Beside this the feedback provided to the user will let know it about the current status
of the components of vehicle such as engine, lights, door lock etc.
Hence this project will lead forward effective security system.

13

CHAPTER:-2
IDENTIFICATION OF PROBLEM

14

2.1 Identification of problem & Defination


Now a days number of vehicles are increasing rapidly so thefts are increasing as well as
production of vehicles in yearly world. So vehicle theft is a universal problem. Every vehicle
owner wants maximum protection of their vehicles. The thieves are inventing cleverer and
stronger stealing techniques that need more powerful security systems. So, we are developing the
GSM base vehicle security system to provide more security of vehicles.
Aim of the project is to try the save the vehicles. This GSM based vehicle security
system is works when someone try to steal your vehicle. Immediately this security system be
alert and send SMS on your mobile phone. These systems send SMS through GSM modem and
generate control signal at every sensing point.
Other security system prevent from unwanted and give information to the recorded
security system give late information, while GSM based vehicles security system give
information at a time and this system also inform the owner of vehicle.

15

2.2 LITERATURE REVIEW


In modern years people needs vehicles.so, vehicle security is also require.Aim of this
project is to save the vehicles. So, we choose GSM based vehicle security system.
In our project we use arduino, GSM module, realy, halleffect sensor etc.We use arduino
in palse of 8051 microcontroller. Because of it is good performance. Arduino is latest
microcontroller .Now days the choice was obvious about to make this project .that is arduino
provide easy programming .Arudino taking information number of component of switches or
sensors and controlling a number of component of light ,motor and other physical outputs
In our project GSM module is used. Because Other security system prevent from
unwanted and give information to the recorded security system give late information, while
GSM based vehicles security system give information at a time and this system also inform the
owner of vehicle.
This project involves hardware &software parts construction and the integration of both
parts to create the system in the end of this project. We will document all hardware and soft ware
development and provide a simulation model of the system.

16

CHAPTER:-3
BLOCK DIAGRAM

17

3.1 BLOCK DIAGRAM OF PROJECT

18

3.2 DESCRIPTION OF BLOCK DIAGRAM


1) Mobile Phone:Mobile phone is used for transmission as well as reception purpose. In other
words, mobile phone is used to transfer data by user to micro-controller and microcontroller to user. The system will manipulate a mobile phone to send SMS (Short
Message Service). This system provides security via SMS.

2) GSM Module(SIM 900):A GSM modem is a specialized type of modem which accepts
a SIM card, and operates over a subscriptions to a mobile operator, just like a
mobile phone GSM modem can be a dedicated modem device with a serial, USB or
Bluetooth connection, or it may be a mobile phone that provides GSM modem
capabilities. A GSM modem could also be a standard GSM mobile phone with the
appropriate cable and software driver to connect to a serial port or USB port on your
computer.

FIG. 3.2.1 GSM MODULE (SIM 900)

In our project,GSM Module SIM 900 is used.It operate on a frequency of


900MHz. A GSM modem is communicate the micro controller with mobile phone
through UART.GSM module consist of simple SIM unit.The information passed by user
is received by GSM module using AT commands it will forward the commands to
microcontroller.
19

A GSM modem is very compact in size and easy to use as directly interface with PC
serial port.When GSM module is connected with Arduino it required MAX232 IC.It
converts the signal in from of RS232 serial port.

Features:

Uses the extremely popular SIM900 GSM module


Provides the industry standard serial RS232 interface for easy connection to computers
and other devices
Provides serial TTL interface for easy and direct interface to microcontrollers
Optionally available USB interface for easy interface to laptops, computers, etc
Onboard MIC and Speaker circuits and 3.5mm audio connectors for direct
connection to mics and speakers
Power, Statusand Network LEDs for easy debugging
Can be used for GSM based Voice communications, Data/Fax, SMS,GPRS and
TCP/IP stack
Can be controlled through standard AT commands
Comes with an onboard wire antenna for better reception.Board provides an option for
adding an external antenna through an SMA connector
Modem a low power consumption of 0.25 A during normal operations and around 1 A
during transmission
Operating Voltage: 715V AC or DC (board has onboard rectifier)

3).Arduino:Arduino micro-controller obtain information from GSM module and


scan the commands given by the user.In our project ATmega328
Arduino is used.

FIG 3.2.2 ARDUINO(MICRO-CONTROLLER)


20

The Arduino board is very easy to use as the user simply need to connect it
to a computer with USB cable. The Arduino board can take power from the USB
connector or DC plug. Micro-controller is called decision making device that is
programmed with higher level c language.
Arduino software runs on windows and linux operating system where the
other micro-controller are limited to windows. Arduino supports higher level C,C++
language.The main advantage of Arduino is easy to use compare to other controller.
The micro-controller Arduino analyse the command and perform the action
as per the programming we had done in Arduino. programming is simple. Arduino is
latest version of micro-controller. Arduino control the circuit through programming.

Features:

Analog input pins:6

Dc current for 3.3v pin:50mA

Digital I/O pins :14

Input voltage: 6-20v

Programmable serial USART

Internal calibrated oscillator

Rewrite program using boot loader

32x8 general purpose working register

On-chip 2-cycle multiplier

Clock speed-16MHZ

Programming lock for software security

32Kbyte memory

21

4)IC-L293D:The commands further passed to the motor driver IC-L293D which will regulate the
value of voltage and control the equipment.

FIG. 3.2.3 IC-L293D

Motor driver IC regulate the voltage as per circuit requirement.In our project
we use 16 pin L293D IC is used.L293D is used to interfacing with motor. Generally,
two motors are connected with L293D.It allows to connect four motors.When microcontroller gets input from sensor it gives some output to motor driver L293D.

Features:-

Easily compatible with any of the system


Easy interfacing through FRC (flat ribbon cable).
Motor driver IC is usable from 6-12v, at up to 1A total output.

5)Relay:Relay is electromagnetic switch.Relay provides the control of the circuit where


necessary.When the command is received by the relay then it is actuate.

22

FIG. 3.2.4 RELAY

A simple electromagnetic relay consist of a coil of wire wrapped


around a soft iron core .An iron yoke which provides a low reluctance
path for magnetic flux a moveable iron armature and one or more sets of
contact.
A Relay is electrically operated switch.simply,it is on-off swich.
Relays are used where it is necessary to control a circuit by low power
signal.

3) Hall effect current sensor:The feedback element of the circuit is Hall effect current sensor which
will detect the current in circuit.In our project we use Hall effect current
sensor A1302. It is three pin IC.

23

FIG. 3.2.5 HALL EFFECT CURRENT SENSOR

Current sensor measure AC and DC current level.They receive


current input and provide output as analog voltage signals,analog
current level,switches or audiable signals.
The magnetic field generated by the current is sensed by the
integrated hall Ic and converted it in to proportional voltage. When the
hall effect current sensor sense the current it give feedback command to
the Arduino.

Features:

Omnipolar (north or south pole) operation


Micropower operation
Single open drain output
2.5V to 5.5V operating voltage
Chopper stabilized design provides
Superior temperature stability
Minimal switch-point drift
Enhanced immunity to stress
24

Good RF noise immunity


-40C to 85C operating temperature

Finally, the message is send and received through all the components and
display in the LCD and the whole process is done. The devices are car, scooter,
active, truck, bike, etc.This system improving the security of vehicles.

25

CHAPTER:-4
CIRCUIT DIAGRAM

26

4.1 CIRCUIT DIAGRAM:-

FIG. 4.1 CIRCUIT DIAGRAM


27

4.2DISCRIPTION OF CIRCUIT DIAGRAM:This project mainly use GSM Module and Arduino.When GSM
module is connect to Arduino it required MAX 232.In GSM module main
pin are TXD, RXD, GND, VCC.
TXD: Transmit data
RXD: Receive data
GND: connect with Ground
VCC: power supply
MAX232 IC is 16 pin IC that is converts signal from an RS232
serial port to signals suitable for use in TTL compatible digital logic circuit.
It use RS 232 port is a driver IC to convert the AT command TTL logic to
the RS 232 logic. Much device today work on RS 232 logic such as, GSM
modem. So, in order to communicate with such devices we have to bring the
logic levels to the 232 logic.
Arduino micro-controller is 32 pin IC. Where 6 pin is analog and
12 pin is digital. Digital pin is used in our project is connect the LCD and
L293D. The Arduino works on TTL logic .So to convert the TTL logic to RS
232 logic we use the 4 capacitors connected to the RS232 IC. These Here in
our project we have One RS232 through which we can connect of serial
Devices .So in our project we have Devices that work on serial GSM
modem.
We connect the Arduino pin TXD is connected to RS232 IC pin
R2OUT pin .TXD is transmit the data and pin R2out receive the data.
Arduino pin RXD is connected to RS232 IC pin T2IN pin .RXD is the
receive data and T2IN pin transmit the data to the RXD pin of RS 232 as
shown and the GSM to the TXD pin of RS 232 .
28

LCD is use to display. It is connected to the digital pin of


Arduino.LCD has 4 data lines and 3 control lines .The 4 data lines of LCD
(pin 11 to pin 14 of LCD) are connected to Aurdino the control lines are
LCD RS, LCD R/W, and LCD E. In this we are connecting only 2 lines, via,
LCD E and LCD RS.
The LCD RD/WR is grounded, since we only write into the LCD
and never read from LCD. These 2 lines are connected to the pin1 VCC pin
16 is connected to the GND. The LCD RS is for selecting the data or the
code register .The LCDR/W is for choosing between reading and writing on
LCD.
Although only used 1 motor, it is possible to use 4 motors on a
single L293D chip. Remember that if you use 2 motors, the power source
will be the same voltage but the current needed will be doubled .
The L293D is a monolithic integrated, high voltage, high
current.,the L293D chip is also known as a type of H-Bridge. The H-Bridge
is typically an electrical circuit that enables a voltage to be applied across a
load in either direction to an output, e.g. Motor.
Motor works by having 4 elements in the circuit commonly
known as corners: high side left, high side right, low side right, and low side
left. By using combinations of these you are able to start, stop and reverse
the current.
Arduino power supply or since motor power supply is only 6V
Im going to use this if the motor supply was higher I would consider using a
transistor or voltage regulator. The only thing to remember is that the
grounding connection must be shared/ common for both supplies.
Generally, DC motors require a lot more current than the
Arduino board .It need a few capacitors in this circuit to smooth out the
power load to the motors .

29

4.3 COMPONENT LIST:1. ARDUINO


2. L293D
3. GSM MODEM(SIM 900)
4. RESISTER
5. CAPCITOR
6. DC MOTOR
7. LCD
8. CRYSTAL OSILLATOR
9. MAX232
10.HALL EFFECT CURRENT SENSOR

30

4.4 DISCRIPTION

OF COMPONENT LIST:-

4.4.1. Arduino

FIG. 4.4.1 PIN DISCRIPTION OF ARDUINO

Pin Descriptions
VCC: Digital supply voltage.

GND: Ground.

31

Port B (PB7:0) XTAL1/XTAL2/TOSC1/TOSC2

Port B is an 8-bit bi-directional I/O port with internal pull-up resistors


(selected for each bit). The Port B output buffers have symmetrical drive
characteristics with both high sink and source capability. As inputs, Port B pins
that are externally pulled low will source current if the pull-up resistors are
activated. The Port B pins are tri-stated when a reset condition becomes active,
even if the clock is not running.
Port C (PC5:0)
Port C is a 7-bit bi-directional I/O port with internal pull-up resistors
(selected for each bit). The PC5...0 output buffers have symmetrical drive
characteristics with both high sink and source capability. As inputs, Port C pins
that are externally pulled low will source current if the pull-up resistors are
activated. The Port C pins are tri-stated when a reset condition becomes active,
even if the clock is not running.
PC6/RESET

If the RSTDISBL Fuse is programmed, PC6 is used as an I/O pin. Note that
the electrical characteristics of PC6 differ from those of the other pins of Port C.
If the RSTDISBL Fuse is unprogrammed, PC6 is used as a Reset input. A low
level onthis pin for longer than the minimum pulse length will generate a Reset,
even if the clock is not running.

Port D (PD7:0)

Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected
for each bit). The Port D output buffers have symmetrical drive characteristics with
both high sink and source capability. As inputs, Port D pins that are externally
pulled low will source current if the pull-up resistors are activated. The Port D pins

32

are tri-stated when a reset condition becomes active, even if the clock is not
running.

VCC
AVCC is the supply voltage pin for the A/D Converter, PC3:0, and
ADC7:6. It should be externally connected to VCC, even if the ADC is not used. If
the ADC is used, it should be connected to VCC through a low-pass filter. Note
that PC6...4 use digital supply voltage, VCC.

AREF

AREF is the analog reference pin for the A/D Converter.


ADC7:6 (TQFP and QFN/MLF Package Only)
In the TQFP and QFN/MLF package, ADC7:6 serve as analog inputs to
the A/D converter. These pins are powered from the analog supply and serve as 10bit ADC channels.

33

4.2 IC- L293D

FIG. 4.4.2 PIN DISCRIPTION OF IC-L293D

Pin 4 ,Pin 5,Pin 12 and Pin 13 from L293D Chip Connect to Ground
(Negative On Breadboard)

Pin 1,Pin 9 and Pin 16 from L293D Chip Connect to 5 Volts (Positive On
Breadboard)

Pin 8 from L293D Chip Connects to 6 Volts (Positive On Breadboard)


34

Pin 3 from L293D Chip Connects to Right Motor


Pin 6 from L293D Chip Connects to Right Motor

Pin 11 from L293D Chip Connects to Left Motor


Pin 14 from L293D Chip Connects to Left Motor

Output pins on Arduino to control Right Motor :


Pin 2 from L293D Chip Connects to Output Pin on Arduino
Pin 7 from L293D Chip Connects to Output Pin on Arduino

Output pins on Arduino to control Left Motor :


Pin 10 from L293D Chip Connects to Output Pin on Arduino
Pin 15 from L293D Chip Connects to Output Pin on Arduino
Pin 3 from L293D Chip Connects to Right Motor
Pin 6 from L293D Chip Connects to Right Motor

Pin 11 from L293D Chip Connects to Left Motor


Pin 14 from L293D Chip Connects to Left Motor
Pin 4 ,Pin 5,Pin 12 and Pin 13 from L293D Chip Connect to Ground
(Negative On Breadboard)

Pin 1,Pin 9 and Pin 16 from L293D Chip Connect to 5 Volts (Positive On
Breadboard)

35

Pin 8 from L293D Chip Connects to 6 Volts (Positive On Breadboard)


Output pins on Arduino to control Right Motor :
Pin 2 from L293D Chip Connects to Output Pin on Arduino
Pin 7 from L293D Chip Connects to Output Pin on Arduino
Output pins on Arduino to control Left Motor :
Pin 10 from L293D Chip Connects to Output Pin on Arduino
Pin 15 from L293D Chip Connects to Output Pin on Arduino
9 Volts powering the Arduino Board

6 Volts(4 Double A 1.5 Volts batteries) connected to the Breadboard


powering the motors

36

4.3 GSM MODEM

FIG. 4.4.3 PIN DISCRIPTION OF GSM MODULE

GSM Module(SIM 900):


This is actual SIM900 GSM module which is manufactured by SIMCom. Designed
for global market, SIM900 is a quad-band GSM/GPRS engine that works on
frequencies GSM850MHz, EGSM 900MHz, DCS 1800MHz and PCS 1900MHz.
SIM900 features GPRS multiport class 10/ class 8 (optional) and supports the
37

GPRS coding schemes CS-1, CS-2, CS-3 and CS-4. With a tiny configuration of
24mm x 24mm x 3mm, SIM900 can meet almost all the space requirements in
Users applications, such as M2M, smart phone, PDA and other mobile devices.

MAX232 IC:
The MAX232 is an integrated circuit that converts signals from an RS-232 serial
port to signals suitable for use in TTL compatible digital logic circuits, so that
devices works on TTL logic can share the data with devices connected through
Serial port (DB9 Connector).
Serial port / DB9 connector:
User just needs to attach RS232 cable here so that it can be connected to devices
which has Serial port / DB9 Connector.

Power Supply Socket:


This power supply socket which actually named as AC/DC Socket provides the
functionality to user to connect external power supply from Transformer, Battery
or Adapter through DC jack. User can provide maximum of 12V AC/DC power
supply through AC/DC socket. This is power supply designed into maximum
protection consideration so that it can even prevent reverse polarity DC power
supply as well as DC conversion from AC power Supply. It also includes LM317
Voltage Regulator which provides an output voltage adjustable over a1.2V
to 37V.
Power On/Off and GSM On Switch:
Power On/Off switch is type of push-on push-off DPDT switch which is used for
only make power supply on/off provided through AC/DC Socket indicated by
Power LED. GSM On Switch is type of Push on DPST tactile switch which is
used for only to make GSM module On indicated by Module On/Off LED while
initiating with Network indicated by Network Indication LED.

SIM (Subscriber Identity Module) Card Slot:


This onboard SIM card slot provide User functionality of insert a SIM (GSM only)
card of any service provider. Process of inserting and locking SIM card into SIM
card slot is given in this manual. While inserting in and removing out SIM card
from SIM card slot, User needs to take precaution that power supply should be
38

OFF so that after making Power supply ON it will be easy to reinitialize with SIM
for this module.

Indicator LEDs:
Indicator LEDs just used to indicate status accordingly. These are three LEDs
represents Power On/Off Status, Network Status and Module On/Off Status
respectively. Power LED will keep on until the power supply is enable to this
board by using push-on push-off switch.
Network Status LED will show whether inserted SIM card successfully connected
to service providers Network or not, in short signal strength. Module On/Off
indicator LED will show status of GSM modules power on/off.
RXD, TXD and GND pins (JP2):
These pins are used to connect devices which need to be connected to GSM
module through USART (Universal Synchronous Asynchronous Receiver and
Transmitter) communication. Devices may be like Desktop or Laptop Computer
System, Microcontrollers, etc. RXD (Receive Data) should be connected to TXD
(Transmit Data) of other device and vice versa, whereas GND (Ground) should be
connected to other devices GND pin to make ground common for both systems.

Audio Connectors:
Audio Connectors deals with Audio related operations. These pins already shown
in Hardware description diagram. These are eight pins in a group of two each
denoted by SV4. GND (0V Supply) and VCC (+5V Supply) are used to have
source for external device. MIC+ and MICused to connect Microphone (abbr. as
Mic) through which user can give audio input while calling. SP- and SP+ used to
connect Speaker (can be connected to amplifier circuit if necessary) through which
User can hear audio output. LN-L and LN-R used to connect Line in to GSM
module.
Debugger (DBG-R and DBG-T) Connectors (J2):
These connectors are 2-wire null modem interface DBG_TXD and DBG_RXD.
These pins can be used for debugging and upgrading firmware. User generally no
need to deal withthes pins.

39

4.4 RESISTER

FIG. 4.4.4 RESISTER


There is always some resistance in every circuit.
A circuit is always made up of some wire, so there will be some resistance there.
Even the battery has parts that offer resistance to the flow of
Electrons.
The only circuits that come near to zero resistance are
Superconductors.
This resistance that is from the parts of the circuit itself (especially
the battery) is called internal resistance.
This internal resistance is usually drawn into a circuit
diagram (schematic) as shown in Figure 1.
Notice the squiggly line just before the positive terminal of
the battery? Thats to show the internal resistance of the
Circuit.
That symbol, drawn any other place in the circuit, represents an actual
resistorplaced in the
40

Circuit.
A resistor is a device found in circuits that has a certain amount of resistance.

4.5 CAPACITOR:-

FIG. 4.4.5 CAPACITOR

An electric circuit element used to store charge temporarily, consisting in general


of two metallic plates separated and insulated from each other by a dielectric. Also
called condenser.
A Capacitor is charged when electrons from a power source ,such as a battery
,flow to one of the two plates. Because the electrons can not pass through the
insulating layer, they build up on the first plate, giving it a negative charge.
Electrons on the other plate are attracted to the positive terminal of the battery
,causing that plate to become positively charged.

41

4.6 DC MOTOR

FIG.4.4.6 DC MOTOR
A DC motor relies on the fact that like magnet poles repels and unlike magnetic
poles attracts each other. A coil of wire with a current running through it generates
an electromagnetic field aligned with the center of the coil. By switching the
current on or off in a coil its magnetic field can be switched on or off or by
switching the direction of the current in the coil the direction of the generated
magnetic field can be switched 180.
A simple DC motor typically has a stationary set of magnets in the stator and an
armature with a series of two or more windings of wire wrapped in insulated stack
slots around iron pole pieces (called stack teeth) with the ends of the wires
terminating on a commentator Workings of a brushed electric motor with a twopole rotor (armature) and permanent magnet stator. "N" and "S" designate
polarities on the inside faces of the magnet the outside faces have opposite
polarities. The + and - signs show where the DC current is applied to the
commutator which supplies current to the armature coil.

42

4.7 LCD:-

Short for liquid crystal display, a type of display used in digital watches and
many portable computer.LCD displays utilize two sheets of polarizing
material with a liquid crystal solution between them.
An electric current passed through the liquid causes the crystals to align so
that light cannot pass through them. Each crystal, therefore, is like a shutter,
either allowing light to pass through or blocking the light.

FIG.4.4.7 LCD
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.
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.

43

4.8 CRYSTAL OSCILLATOR

FIG.4.4.8 CRYSTAL OSCILLATOR


A crystal oscillator is an electronic oscillator circuit that uses the mechanical
resonance of a vibrating crystal of piezoelectric material to create an electrical
signal with a very precise frequency. This frequency is commonly used to keep
track of time (as in quartz wristwatches), to provide a stable clock signal for
integrated, and to stabilize frequencies for radio transmitters and receivers. The
most common type of piezoelectric resonator used is the quartz crystal, but other
piezoelectric materials including poly crystalline ceramics are used in similar
circuits.

44

9 IC .MAX232

FIG.4.4.9 MAX232
The MAX232 is an IC, first created in 1987 by Maxim Integrated Products, that
converts signals from an RS-232 serial port to signals suitable for use in TTL
compatible digital logic circuits. The MAX232 is a dual driver/receiver and
typically converts the RX, TX, CTS and RTS signals.
The drivers provide RS-232 voltage level outputs (approx. 7.5 V) from a single +
5 V supply via on-chip charge pumps and external capacitors. This makes it useful
for implementing RS-232 in devices that otherwise do not need any voltages
outside the 0 V to + 5 V range, as power supply design does not need to be made
more complicated just for driving the RS-232 in this case.
The receivers reduce RS-232 inputs (which may be as high as 25 V), to standard
5 V TTL levels. These receivers have a typical threshold of 1.3 V, and a typical
hysteresis of 0.5 V
Application

Portable Computers
Low-Power Modems
Interface Translation
Battery-Powered RS-232 Systems
Multidrop RS-232 Networks
45

4.10 Hall effect current sensor

FIG.4.4.10 Hall effect current sensor

Hall effect current sensor is a micro-power Omni polar Hall-Effect switch designed
for portable and battery powered equipment such cellular phones, PDAs and
portable PCs. Based on two Hall Effect plates and a chopper stabilized
Architecture the Hall effect current sensor Provides reliable Solution Over the
whole Operating range. To support portable and battery Powered Equipment. The
Design Has Been optimized to operate over the supply range Of 2.5V to 5.5V and
consumes. Only 24uW with a supply Of 3V.

46

CHAPTER:-5
FLOW CHART

47

5.1 FLOW CHART

48

5.2 PROGRAMMING

#include<LiquidCrystal.h>

#define motor1 10
#define light2 11

int temp4=0;

LiquidCrystal lcd(7,6,5,4,3,2);
int lenth,lenth1,i=0,temp=0;

String str="";
String name="";
String number="";

String MOTOR_ON="MOTOR ON";


String MOTOR_OFF="MOTOR OFF";
String LIGHT2_ON="light 2 ON";
String LIGHT2_OFF="light 2 OFF";

void setup()
{
49

lcd.begin(16,2);
Serial.begin(9600);
pinMode(13, OUTPUT);
pinMode(MOTOR1, OUTPUT);
pinMode(light2, OUTPUT);

lcd.setCursor(0,0);
lcd.print("GSM Based security/ ");
lcd.setCursor(0,1);
lcd.print("Vehichle motor");
delay(2000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("

Control

");

delay(2000);
lcd.setCursor(0,0);
lcd.print("By Hinal ");
lcd.setCursor(0,1);
lcd.print("RemedialEng");
delay(1000);
Serial.println("AT+CNMI=2,2,0,0,0");
Serial.println("AT+CMGF=1");
delay(1000);
lcd.clear();
}

50

void loop()
{

while(temp!=0)
{
i=0;
while(i<lenth)
{
if(str[i]=='"')
{
temp4++;
}

if(temp4==1)
{
for(int j=0;j<15;j++)

{
number+=str[i];
i++;
}
temp4=2;
}
if(str[i]=='*')

51

{
i++;
while(str[i]!='#')
{
name+=str[i];
i++;
}
}
i++;
}

chack();
// lcd.setCursor(13,0);
// lcd.print(name);
// lcd.setCursor(0,1);
// Serial.println(name);
// Serial.println(number);
//Serial.print("AT+CMGS=");
// Serial.println(number);
delay(2000);

temp=0;
temp4=0;
name="";
lenth=0;

52

str="";
number="";
delay(1000);
}
lcd.setCursor(0,1);
lcd.print("System Ready");

delay(400);
}

void serialEvent()
{
while (Serial.available())
{
char inChar = (char)Serial.read();
str+=inChar;
lenth++;
if (inChar == '\n')
{

temp=1;
inChar=0;

}
}
}
void chack()
{
if(name == MOTOR_ON)

53

{
digitalWrite(MOTOR, HIGH);
Serial.println("AT+CMGF=1");
delay(1);
Serial.print("AT+CMGS=");
Serial.println(number);
delay(1);
Serial.print("MOTOR ON");
Serial.write(26);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("MOTOR ON");
delay(2000);
}

if (name == MOTOR_OFF)
{
digitalWrite(MOTOR,LOW);
Serial.println("AT+CMGF=1");
delay(1);
Serial.print("AT+CMGS=");
Serial.println(number);
delay(1);
Serial.print("MOTOR OFF");
Serial.write(26);
lcd.clear();

54

lcd.setCursor(0,0);
lcd.print("MOTOR OFF");
delay(2000);

if (name == LIGHT2_ON)
{
digitalWrite(light2,HIGH);
Serial.println("AT+CMGF=1");
delay(1);
Serial.print("AT+CMGS=");
Serial.println(number);
delay(1);
Serial.print("LIGHT 2 ON");
Serial.write(26);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("LIGHT 2ON");
delay(2000);

if (name == LIGHT2_OFF)
{
digitalWrite(light2,LOW);

55

Serial.println("AT+CMGF=1");
delay(1);
Serial.print("AT+CMGS=");
Serial.println(number);
delay(1);
Serial.print("LIGHT 2 OFF");
Serial.write(26);

lcd.clear();
lcd.setCursor(0,0);
lcd.print("LIGHT 2 OFF");
delay(2000);
}

56

CHAPTER: - 6
CONCLUSION

57

CONCLUSION
In this project, the method of Vehicle security systems used to secure the theft
vehicle by using GSM technology. This system puts into the sleeping mode vehicle
handled by the owner or authorized persons; otherwise goes to active mode. The
mode of operations changed by persons or remotely. When the theft identified, the
responsible people send SMS to the micro controller, then issue the control signals
to stop the engine motor. After that all the doors locked. To open the doors or to
restart the engine authorized person needs to enter the passwords. In this method,
easily track the vehicle place and doors locked.

58

Future work:Our project is provide more security of vehicle. This project brings technology
effectively in security and surveillance segment of industry.
This device is implemented to the vehicle will reduced the theft .
In this project we can control the engine, light, door lock etc through SMS. In
future we use the eye lock and finger print system and give the more security for
vehicle.
In future we can add the GPS module. It provides more security and exact location
for the vehicle. Same as small change in program and hard ware and it is use in
house hold application as well as industry; bank, etc control the system and
provide more security.
It can be used as home automation substituted in house hold application. This
project itself can be modified to achieve a complete home automation
system .Which will then create a plat from for user to interface with the hose hold.

59

7.2 REFERENCES
[1] Mrs.RamyaKulandaivel1, P.Ponmalar2, and B.Geetha3, G.Saranya4 GPS and
GSM based vehicle information system International Journal of Communications
and Engineering Volume 01 No.1, Issue: 01 March2012
[2] Deepak Mishra, Apurv Vas, Puneet Tandon A novel and cost effective
approach to public vehicle tracking system International Journal of UbiComp
(IJU), Vol.3, No.1, January 2012
[3] Ruchika Gupta and BVR Reddy GPS and GPRS Based Cost Effective Human
Tracking System Using Mobile Phones Volume 2 No. 1 January-June 2011
[4] Mohammad A. Al-Khedher Hybrid GPS-GSM Localization of Automobile
Tracking System International Journal of Computer Science & Information
Technology (IJCSIT) Vol 3, No 6, Dec 2011
[5] Francis Enejo Idachaba Design of a GPS/GSM based tracker for the location
of stolen items and kidnapped or missing persons in NIGERIAARPN Journal of
Engineering and Applied Sciences VOL. 6, NO. 10, OCTOBER 2011
[6] Adnan I. Yaqzan, Issam W. Damaj, and Rached N. Zantout GPS-based
Vehicle Tracking System-on-Chip Proceedings of the World Congress on
Engineering 2008 Vol I WCE 2008, July 2 - 4, 2008, London, U.K.
[7] T. Krishna Kishore, T.Sasi Vardhan, N.Lakshmi Narayana Vehicle Tracking
Using a Reliable Embedded Data Acquisition Sytem With GPS and GSM IJCSNS
International Journal of Computer Science and Network Security, VOL.10 No.2,
February 2010
.

60

61

You might also like