Professional Documents
Culture Documents
Final Black Book
Final Black Book
CHAPTER 1
INTRODUCTION
When the vehicle is stolen, the location data from tracking system can be
used to find the location and can be informed to police for further action. Some
Vehicle tracking System can even detect unauthorized movements of the vehicle
and then alert the owner. This gives an edge over other pieces of technology for the
same purpose.
This accident alert system in it detects the accident and the location of the
accident occurred and sends GPS coordinates to the specified mobile, computer
etc. The fire detector circuit in it is used to detect fire in the vehicle, if the
temperature inside the vehicle goes above a certain limit then a warning will be
automatically send to the intend receiver. The infrared sensor which is additionally
interfaced to the microcontroller is used to detect the obstacles an4d accidents, in
any case if any mishap occurs then its warning will be directly send to the intended
receiver.
When a request by user is sent to the number at the modem, the system
automatically sends a return reply to that particular mobile indicating the position
of the vehicle in terms of latitude and longitude. A Program has been developed
which is used to locate the exact position of the vehicle and also to navigated track
of the moving vehicle on Google Map.
The proposed system is used for positioning and navigating the vehicle with
an accuracy of 10 m. The Exact location is indicated in the form of latitude and
longitude along with the exact Navigated track on Google map.
The system tracks the location of particular vehicle and sends to users
mobile in form of data and also to microcontroller. The arrived data, in the form of
latitude and longitude is used to locate the Vehicle on the Google maps and also
we can see the output on the LCD.
It is mainly benefit for the companies which are based on transport system.
Since it can show the position of all vehicles in real time, so that they can create
the expected data accordingly. These tracking system can store the whole data
where the vehicle had gone, where did it stop, how much time it takes 1 at every
stop and can create whole data analysis.
It is also used in buses and trains, to estimate how far are they, how much
time it takes for them to come to a particular stop. These systems are used to data
capture, data storage, data analysis and finally data transfer. By adding additional
sensors such as temperature sensor and infrared sensors the system can be enabled
to detect fire, theft and obstacles.
1.5 APPLICATIONS:
The project that has been introduced here can be used for variety of
applications -
1. Car navigation.
2. Fleet management/tracking.
CHAPTER 2
METHODOLOGY
The project consists of GPS receiver and GSM modem with a micro
controller. The whole system is attached to the vehicle. In the other end (main
vehicle station) one GSM mobile phone is attached to the computer with VB
application. So the GPS system will send the longitudinal and altitude values
corresponding to the position of vehicle to GSM Modem.
Imagine the bus has left Bangalore at 6 o clock in the morning. If the officer
in charge for that vehicle wants to know where the vehicle is, he will come to the
computer and click on the vehicle number on the VB program. The VB program
will send an SMS to the vehicle number.
The SMS sent would come through the GSM service provider and then
reach the vehicle, which is travelling, because the vehicle has a GSM device with
sim card. This GSM modem will receive the SMS and send to the microcontroller
in the vehicle. The microcontroller will receive this SMS and compare the
password and the command. If everything matches, then it will perform the request
required by the office.
A place name is assigned for each longitude & latitude. The GSM receiver
in the vehicle office receives these data & gives to the PC through serial port. The
VB program in the PC checks this data with its database & displays the details of
the vehicle on the screen. The device is password controlled i.e. person who knows
the device password only able to operate. In case of any mishaps such as motion,
theft or obstacle, the device will automatically will send an alert to the registered
number, i.e. the number that is feeder into the memory of microcontroller.
The block diagram of the vehicle tracking system is shown below. The block
diagram shows the overall view of the system. The blocks that are connected here
are ATMEGA328 Microcontroller, LCD display, GPS, GSM, 12V battery, Motion
sensor.
Fig 1: BLOCK DIAGRAM OF VEHICLE TRACKING SYSTEM USING GPS AND GSM
The GPS modem gives many parameters as the output, but only the NMEA
data coming out is read and displayed on to the LCD. The same data is sent to the
mobile at the other end from where the position of the vehicle is demanded. An
EEPROM is used to store the data received by GPS receiver.
This system using sensor such as Motion sensors used for detecting of
motion of encountered in the vehicle such as theft, accident. In any of these cases
messages will be automatically send to the intended receiver.
When a request by user is sent to the number at the modem, the system
automatically sends a return reply to that particular mobile indicating the position
of the vehicle in terms of latitude and longitude. A Program has been developed
which is used to locate the exact position of the vehicle and also to navigated track
of the moving vehicle on Google Map.
EXPLAINATION:
10
CHAPTER 3
PROCESS &
REQUIREMETS
11
The Arduino IDE comes with a C/C++ library called "Wiring" (from the
project of the same name), which makes many common input/output operations
much easier. Arduino programs are written in C/C++.
12
Google Maps is a desktop and mobile web mapping service application and
technology provided by Google, offering satellite imagery, street maps, and Street
View perspectives, as well as functions such as a route planner for travelling by
foot, car, bicycle (beta test), or with public transportation. Also supported are maps
embedded on third-party websites via the Google Maps API, [1] and a locator for
urban businesses and other organizations in numerous countries around the world.
Google Maps satellite images are not updated in real time; however, Google adds
data to their Primary Database on a regular basis. Google Earth support states that
most of the images are no more than 3 years old.
13
For designing this hardware many types of devices are used to make it
perfectly working. All the devices are purchased from different manufacturers.
These components are connecting to male-female connecting wires. The following
lists of hardware are required for this system.
12 V Battery (Power supply)
Microcontroller ATMEGA328
GPS module
GSM module
LCD display
Motion sensor
3.2.2 IC LM7805:
The Atmel AVR core combines a rich instruction set with 32 general
purpose working registers. All the 32 registers are directly connected to the
Arithmetic Logic Unit (ALU), allowing two independent registers to be accessed
in one single instruction executed in one clock cycle. The resulting architecture is
more code efficient while achieving throughputs up to ten times faster than
conventional CISC microcontrollers.
16
17
3.3.6 LCD:
A liquid-crystal display (LCD) is a flat panel display, electronic visual
display, or video display that uses the light modulating properties of liquid
crystals. Liquid crystals do not emit light directly.
19
PIR sensors are more complicated than many of the other sensors explained
in these tutorials (like photocells, FSRs and tilt switches) because there are
multiple variables that affect the sensors input and output. To begin explaining
how a basic sensor works, we'll use this rather nice diagram
The PIR sensor itself has two slots in it, each slot is made of a special
material that is sensitive to IR. The lens used here is not really doing much and so
we see that the two slots can 'see' out past some distance (basically the sensitivity
of the sensor). When the sensor is idle, both slots detect the same amount of IR, the
ambient amount radiated from the room or walls or outdoors.
When a warm body like a human or animal passes by, it first intercepts one
half of the PIR sensor, which causes a positive differential change between the two
halves. When the warm body leaves the sensing area, the reverse happens, whereby
the sensor generates a negative differential change. These change pulses are what
is detected.
20
CHAPTER 4
CODING
21
#include<LiquidCrystal.h>
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
#include <SoftwareSerial.h>
SoftwareSerial gps(10,11); // RX, TX
//String str="";
char str[70];
String gpsString="";
char *test="$GPGGA";
int temp=0,i;
boolean gps_status=0;
void setup()
{
lcd.begin(16,2);
Serial.begin(9600);
gps.begin(9600);
22
void loop()
{
serialEvent();
if(temp)
{
get_gps();
tracking();
}
}
void serialEvent()
{
while(Serial.available())
{
if(Serial.find("Vehicle Accident Detection system"))
{
temp=1;
break;
}
else
temp=0;
}
}
void gpsEvent()
{
gpsString="";
while(1)
{
while (gps.available()>0) //checking serial data from GPS
{
char inChar = (char)gps.read();
gpsString+= inChar; //store data from GPS into gpsString
i++;
if (i < 7)
{
if(gpsString[i-1] != test[i-1]) //checking for $GPGGA sentence
{
i=0;
gpsString="";
23
void gsm_init()
{
lcd.clear();
lcd.print("Finding Module..");
boolean at_flag=1;
while(at_flag)
{
Serial.println("AT");
while(Serial.available()>0)
{
if(Serial.find("OK"))
at_flag=0;
}
delay(1000);
}
lcd.clear();
lcd.print("Module Connected..");
delay(1000);
lcd.clear();
lcd.print("Disabling ECHO");
boolean echo_flag=1;
while(echo_flag)
{
24
lcd.clear();
lcd.print("Echo OFF");
delay(1000);
lcd.clear();
lcd.print("Finding Network..");
boolean net_flag=1;
while(net_flag)
{
Serial.println("AT+CPIN?");
while(Serial.available()>0)
{
if(Serial.find("+CPIN: READY"))
net_flag=0;
}
delay(1000);
}
lcd.clear();
lcd.print("Network Found..");
delay(1000);
lcd.clear();
}
void get_gps()
{
gps_status=0;
int x=0;
while(gps_status==0)
{
gpsEvent();
int str_lenth=i;
latitude="";
longitude="";
int comma=0;
while(x<str_lenth)
{
if(gpsString[x]==',')
25
void init_sms()
{
Serial.println("AT+CMGF=1");
delay(400);
Serial.println("AT+CMGS=\"+918308094599\""); // use your 10 digit cell no. here
delay(400);
}
void send_sms()
{
Serial.write(26);
}
void lcd_status()
{
lcd.clear();
26
void tracking()
{
init_sms();
send_data("Vehicle Tracking Alert:");
send_data("Your Vehicle Current Location is:");
Serial.print("Latitude:");
send_data(latitude);
Serial.print("Longitude:");
send_data(longitude);
send_data("Please take some action soon..\nThankyou");
send_sms();
delay(2000);
lcd_status();
27
CHAPTER 5
ADVANTAGES &
FUTURE SCOPE
28
These are also used for fire detector in large vehicles like train, bus
etc. because the vehicle like train contains large number of people and the
sending alert of fire accident can save many lives.
Fleet monitoring
Vehicle scheduling
Route monitoring
Driver monitoring
Accident analysis
Geo-fencing geo-coding
These are just a few advantages of the project that has been introduced in this
report. We can interface more number of sensors in order to serve multiple
purposes. The microcontroller that has been used in this project have inbuilt ADCs
and hence the controller is capable of accepting analogy inputs, which is the
biggest advantage. Since all real world signals are analogy in nature, by
incorporating different sensors required purpose can be served.
29
We can reduce the size of the kit by using GPS+GSM on the same module.
We can increase the accuracy up to 3m by increasing the cost of the
GPS receivers.
We can use our kit for detection of bomb by connecting to the bomb
detector.
With the help of high sensitivity vibration sensors, we can detect the
accident.
Whenever vehicle unexpectedly had an accident on the road with help of
vibration sensor we can detect the accident and we can send the location to
the owner, hospital and police.
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.
If anybody steals our car we can easily find our car around the globe.
By keeping vehicle positioning vehicle on the vehicle.
30
CHAPTER 6
RESULT &
CONCLUSION
31
32
6.2 CONCLUSION:
Vehicle tracking system makes better fleet management and which in turn
brings large profits. Better scheduling or route planning can enable you handle
larger jobs loads within a particular time. Vehicle tracking both in case of
personal as well as business purpose improves safety and security,
communication medium, performance monitoring and increases productivity. So
in the coming year, it is going to play a major role in our day-to-day living.
33
CHAPTER 7
REFERENCES
34
[5] Chen, H., Chiang, Y. Chang, F. H. Wang, Toward Real-Time Precise Point
Positioning: Differential GPS Based on IGS Ultra Rapid Product, SICE Annual
Conference, The Grand Hotel, Taipei, Taiwan August 18-21, (2010).
[8] Vikram Kulkarni & Viswaprakash Babu, embedded smart car security system
on face detection, special issue of IJCCT, ISSN(Online) : 2231-0371,
ISSN(Print):0975-7449,volume-3, issue-1.
35
CHAPTER 8
PHOTO
GALLERY
36
37
38
39