Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
219 views18 pages

Vehicle Tracking System Using Gps & GSM - Acd Project

This document describes a vehicle tracking system that uses GPS and GSM technology. It provides an overview of how the system works, including collecting location data from GPS satellites, sending that data via GSM networks to be viewed on a mapping software. It then discusses the components used - GPS, GSM, microcontroller, LCD display - and provides the block diagram and code for the system. The system is useful for fleet management and vehicle security applications.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
219 views18 pages

Vehicle Tracking System Using Gps & GSM - Acd Project

This document describes a vehicle tracking system that uses GPS and GSM technology. It provides an overview of how the system works, including collecting location data from GPS satellites, sending that data via GSM networks to be viewed on a mapping software. It then discusses the components used - GPS, GSM, microcontroller, LCD display - and provides the block diagram and code for the system. The system is useful for fleet management and vehicle security applications.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Analog

project

circuit

design

Vehicle tracking using gps &gsm

Submitted by :

submitted to :

13BEC0155 - Dhanushik R Macharla

Pemeena P M
13BEC0288 Murali Krishna
13BEC0292 Sri Harsha
13BEC0387 K Sravanth Kumar
13BEC0728 - Chinaraja
13BEC0848 Ram Gopal v

Slot: A1
ABSTRACT:

Prof :Jasmin

This project deals in detail how Vehicle Tracking


System (VTS) technology is used to determine
the location of a vehicle using GPS & GSM which
operates through satellites and ground based
stations. By tracking the system enables to
calculate easy and accurate location of the
vehicle. Vehicle information like location details,
speed, distance travelled etc. can be viewed on a
digital mapping with the help of a software via
Internet. This system is an important tool for
tracking each vehicle at a given period of time
and now it is becoming increasingly popular for
people having expensive cars and hence as a
theft prevention and retrieval device. An
enterprise-level vehicle tracking system should
offer customizable reporting tools, for to provide
a summary of the any day activities. It should
have the ability to produce and print detailed
maps and reports displaying actual stops,
customer locations, mileage travelled and
elapsed time at each location, and real-time
access to vehicle tracking data and reports.
Vehicle tracking system can be active, passive or
both depending upon the application. Here are
steps involved in the vehicle tracking: data
capture ,data storage data analysis and data
transfer

Block diagram of vts:

OVERVIEW:
VTS uses a microcontroller and a rectified power
supply. In this system GPS and GSM modem are
interfaced to the microcontroller with the MAX232 device for communication with the vehicle A
16*2

LCD

display

is

interfaced

to

the

microcontroller for displaying the information. A


push-button

switch

is

used

to

store

the

authorized number The GPS modem gets the


vehicle location in the form of longitude and
latitude, which is then sent to the microcontroller
and it processes the location details got from the

GPS and sends them to a concerned authority by


an SMS through the GSM modem at periodical
intervals set by the user. The sending and
receiving information is displayed on the LCD.

INTRODUCTION:
1.Global
(GPS):

Positioning

System

GPS is space-based radio-navigation system


that broadcasts highly accurate navigation
pulses to users on or near the Earth. In the
United States Navistar GPS, 24 main
satellites in 6 orbits circle the Earth every 12
hours. In addition, Russia maintains a
constellation
called
GLONASS
(Global
Navigation Satellite System). A GPS receiver
operated by a user on Earth measures the
time it takes radio signals to travel from four
or more satellites to its location, calculates
the distance to each satellite, and from this
calculation determines the users longitude,
latitude, and altitude the GPS values of
different
Satellites
are
sent
to
microcontroller AT89S52, where these are
processed and forwarded to GSM. At the

time of processing GPS receives only


$GPRMC values only. From these values
microcontroller takes only latitude and
longitude values excluding time, altitude,
name of the satellite, authentication etc E.g.
LAT: 1728:2470 LOG: 7843.3089 GSM
modem with a baud rate 57600.

2.Global
System
for
Communications( GSM):

Mobile

GSM was developed in 1990. The first GSM


operator has subscribers in 1991, the beginning
of 1994 the network based on the standard,
already had 1.3 million subscribers, and the end
of 1995 their number had increased to 10 million
There were first generation mobile phones in the
70's, there are 2nd generation mobile phones in
the 80's and 90's, and now there are 3rd gen
phones which entered into the Indian market.
GSM is called a 3nd generation, or 3G
communications technology .In this project it acts
as a SMS Receiver and SMS sender. The GSM
technical specifications define the different
entities that form the GSM network by defining
their functions and interface requirements.

3.RS-232:
In telecommunications RS-232 is a traditional
name for series of standards for serial singleended data control signals connecting between
DTE & DCE The standard defines the electrical
characteristics and timing of signals An RS-232
port was once a standard feature of a personal
computer modems, universal serial bus for
connections to data storage, un-interruptible
power supplies However the limited transmission
speed, relatively large voltage swing and of the
which has displaced RS-232 from most of its
peripheral interface roles.

4.MAX232 IC :

The integrated circuit RS-232 TTL MAX232 is an


that converts signals from an serial port to
signals suitable for use in compatible digital logic
circuits. The MAX232 is a dual driver/receiver and
typically converts the RX, TX, CTS and RTS
signals. The receivers reduce RS-232 inputs
(which may be as high as 25 V), to standard 5
V TTL levels. It is helpful to understand what
occurs to the voltage levels. When a MAX232 IC
receives a TTL level to convert, it changes a TTL
Logic 0 to between +3 and +15 V, and changes
TTL Logic 1 to between -3 to -15 V, and vice

versa for converting from RS232 to TTL. This can


be confusing when you realize that the RS232
Data Transmission voltages at a certain logic
state are opposite from the RS232 Control Line
voltages at the same logic state The MAX232 IC
is used to convert the TTL/CMOS logic levels to
RS232 logic levels during serial communication of
microcontrollers with PC. The controller operates
at TTL logic level (0-5V) whereas the serial
communication in PC works on RS232 standards
(-25 V to + 25V). This makes it difficult to
establish a direct link between them to
communicate with each other.

5.Microcontroller:
AT89S52 Intel MCS-51 microcontroller is a great
family compatible with
Atmel AT89S52 is
indicated by the initials "AT". This microcontroller
has a low consumption, but 8-bit CMOS gives
high performance with an internal flash memory
of 8K bytes. This is done using flash memory
technology and high density belonging to Atmel

and is compatible with standard 80C51. Flash


memory chip allows internal or scheduled to be
reprogrammed by a non-volatile memory. By
combining an 8-bit CPU with Flash memory
programmable monolithic core, Atmel AT89S52 is
very powerful microcontroller has high flexibility
and is the perfect solution for many embedded
applications. A microcontroller is an electronic
structure of small size, usually containing a
processor, memory and peripheral input / output
programmable. AT89S52 has a RAM of 256 bytes.
The 128 Bytes additional to the 128 basic
families occupies an address space parallel to the
Registrar of Special Functions, and that these
additional bytes of special function registers are
accessible addresses, but physically they are in
different spaces. When an instruction accesses
an internal location in 7th address, addressing
mode used in the instruction specifies that the
CPU accesses the upper 128 bytes of RAM or the
RFS.

Circuit diagram:

Oper
ating procedure:
a) To store

a Number into the kit:

i. Place a jumper at the pin no 32 Store Number as


shown in the circuit diagram and Switch on the kit.
ii.Wait until you see Waiting for Call on the LCD
display.
iii.Now call from the mobile number from which you need
to store the number.
iv.Wait until you see Number stored on the LCD.
b) Normal

Operation:

i. Switch on the kit and wait until you see the Latitude and
longitude on the display.
ii. Now give a call from any mobile
iii. The kit will send the location.

Applications:

Vehicle scheduling
Route monitoring
Driver monitoring
Accident analysis
Geo-fencing geo-coding

Limitations:
1.The other limitation is the traffic problem, the program will
not able to detect which vehicle to track if it finds some
vehicle in the -6*step_y and +6*step_y of the current guess. If
the nearby vehicle is same as the one in the model the
probability of error increases manifolds.
2. Also if distance between the vehicle positions in the two
consecutive frames is too much then this tracking program
can't detect the vehicle in the second frame and will try to
track it in the subsequent frame.

Result & analysis :

Conclusion:
The project titled tracing down the vehicle using
GSM and satellite communication is a model for
vehicle tracking unit with the help of GPS
receivers and GSM modem. Vehicle Tracking
System resulted in improving overall productivity
turn offers better return on your investments
Vehicle tracking both in case of personal as well
as business purpose improves safety and security
performance
monitoring
and
increases
productivity. So in the coming year it is going to
play a major role in our day-to-day living.

Future scope:
1.We can reduce the size of the kit by using GPS+GSM on the
same module.

2.We can increase the accuracy up to 3m by increasing the


cost of the GPS receivers.
3. We can use our kit to assist the traffic. By keeping the kits
in the entire vehicles and by knowing the locations of all
the vehicles.

MAIN SOURCE CODE:


#include <REGX51.H>
#include"SERIAL.c"
#include"LCD.c"
sbit rf=P2^0;
sbit relay=P0^1;
sbit motor=P0^0;
unsigned char asc,ok[2],r[4],a,n[15],e[15],i,oxoa,
a,m[20],j,temp[10],temp1[10];
void cmdwrt_lcd(unsigned char cmd);
void serial_transmit(unsigned char *srstr);
void command(unsigned char d[]);
void serial_tx(unsigned char srda);
void delay1();
void gps()
{
do
{
do
{
oxoa = serial_rx();
}while(oxoa != 0x0A);
for(i=0;i<4;i++)
{
r[i] = serial_rx();
}
}while(r[3] != 'R');
do
{
a = serial_rx();
}while(a != 'A');
serial_rx();
i = 0;
do
{
n[i] =serial_rx();
i++;
}while(n[i-1] != 'N');
n[i] = '\0';
serial_rx();

i = 0;
do
{
e[i] = serial_rx();
i++;
}while(e[i-1] != 'E');
e[i] = '\0';
i=0;
TI=0;
cmdwrt_lcd(0x01);
cmdwrt_lcd(0x80);
serial_transmit("latitude value:");
serial_transmit(&n[0]);
display_lcd(&n[0]);
serial_tx(',');
serial_tx(0x0a);
cmdwrt_lcd(0xC0);
serial_transmit("longitude value:");
serial_transmit(&e[0]);
display_lcd(&e[0]);
}
void gsm_send()
{
command("AT");
delay1();
command("AT+CMGF=1");
delay(65000);
delay(65000);
//display_lcd("AT+CMGS=");
serial_transmit("AT+CMGS=");
serial_tx('"');
cmdwrt_lcd(0xC0);
//display_lcd("9940645764");
serial_transmit("9710362655");
serial_tx('"');
serial_tx(0x0d);
serial_tx(0x0a);
delay(65000);
delay(65000);
//display_lcd("Vehicle Thefted ");
delay(65000);
delay(65000);
delay(65000);

serial_transmit("Vehicle Thefted
");
serial_tx(0x0a);
serial_transmit("Current Location:
");
cmdwrt_lcd(0x01);
gps();
serial_tx(0x0a);
delay(650);
serial_tx(0x1A);
delay(65000);
delay(65000);
delay(65000);
delay(65000);
delay(65000);
delay(65000);
/*ommand("AT");
delay1();
command("AT+CMGF=1");
delay(65000);
delay(65000);
//display_lcd("AT+CMGS=");
serial_transmit("AT+CMGS=");
serial_tx('"');
cmdwrt_lcd(0xC0);
//display_lcd("9940645764");
serial_transmit("9710362655");
serial_tx('"');
serial_tx(0x0d);
serial_tx(0x0a);
delay(65000);
delay(65000);
//display_lcd("Vehicle Thefted ");
delay(65000);
delay(65000);
delay(65000);
serial_transmit("Vehicle Thefted
");
serial_tx(0x0a);
serial_transmit("Current Location:
");
cmdwrt_lcd(0x01);
gps();

serial_tx(0x0a);
delay(650);
serial_tx(0x1A);
delay(65000);
delay(65000);
delay(65000);
//cmdwrt_lcd(0x01); */
}
void gsm_send1()
{
command("AT");
delay1();
command("AT+CMGF=1");
delay(65000);
delay(65000);
//display_lcd("AT+CMGS=");
serial_transmit("AT+CMGS=");
serial_tx('"');
cmdwrt_lcd(0xC0);
//display_lcd("9940645764");
serial_transmit("9710362655");
serial_tx('"');
serial_tx(0x0d);
serial_tx(0x0a);
delay(65000);
delay(65000);
//display_lcd("Vehicle Thefted ");
delay(65000);
delay(65000);
delay(65000);
serial_transmit(" Your vehicle
Stopped at ");
serial_tx(0x0a);
serial_transmit("Current Location:
");
cmdwrt_lcd(0x01);
gps();
serial_tx(0x0a);
delay(650);
serial_tx(0x1A);
delay(65000);

delay(65000);
delay(65000);
delay(65000);
delay(65000);
delay(65000);
/*ommand("AT");
delay1();
command("AT+CMGF=1");
delay(65000);
delay(65000);
//display_lcd("AT+CMGS=");
serial_transmit("AT+CMGS=");
serial_tx('"');
cmdwrt_lcd(0xC0);
//display_lcd("9940645764");
serial_transmit("9710362655");
serial_tx('"');
serial_tx(0x0d);
serial_tx(0x0a);
delay(65000);
delay(65000);
//display_lcd("Vehicle Thefted ");
delay(65000);
delay(65000);
delay(65000);
serial_transmit(" Your vehicle
Stopped at ");
serial_tx(0x0a);
serial_transmit("Current Location:
");
cmdwrt_lcd(0x01);
gps();
serial_tx(0x0a);
delay(650);
serial_tx(0x1A);
delay(65000);
delay(65000);
delay(65000);
delay(65000);
delay(65000);
delay(65000); */
}
void wait_0x0a()

{
do
{
a=serial_rx();
}while(a!=0x0a);
}
void rec_msg()
{
//receving
message//
unsigned char i=0;
do
{
while(RI==0);
temp[i]=SBUF;
i++;
RI=0;
} while(temp[i1]!=0x0A);
}
void check_ok()
{
unsigned char i;
for(i=0;i<=3;i++)
//receving OK//
{
while(RI==0);
temp1[i]=SBUF;
RI=0;
}
}
void command(unsigned char d[])
{
serial_transmit(&d[0]);
cmdwrt_lcd(0x80);
//display_lcd(&d[0]);
serial_tx(0x0d);
wait_0x0a();
check_ok();

rw = 0;
en = 1;
delay(15);
en = 0;
delay(150);
}
void datawrt_lcd(unsigned char datas)
{
P1 = datas;
rs = 1;
rw = 0;
en = 1;
delay(15);
en = 0;
delay(150);
}
void display_lcd(unsigned char *lcdstr)
{
while (*lcdstr !='\0')
{
datawrt_lcd(*lcdstr);
lcdstr++;
}
}
void lcd_init()
{
cmdwrt_lcd(0x38);
cmdwrt_lcd(0x0C);
cmdwrt_lcd(0x01);
cmdwrt_lcd(0x80);

You might also like