Professional Documents
Culture Documents
Faculty of Engineering
Submitted by:
- Basma Adam Mohammed Adam
- Mozamil Jamal Mohammed Ismil
- Yassin Ahmed Mohammed Jameelallah
Supervised by:
Feb - 2022
ﻗﺎل ﺍﷲ ﺘﻌﺎﻟﻰ:
ﱦ ﱨﱩﱪﱫﱬﱭ
ﱧ ﱡ ﱡﱢﱣﱤﱥ
ﱮﱯﱰﱱ ﱲﱳﱴﱵﱶﱷﱸ
ﱼﱾﱿﲀﲁﲂﲃﲄ ﲅﱠ
ﱹﱺ ﱻ ﱽ
I
II
ﺍﻟﺸﻜﺭ ﻭﺍﻟﺘﻘﺩﻴﺭ
ﺍﻟﺤﻤﺩﷲ ﺭﺏ ﺍﻟﻌﺎﻟﻤﻴﻥ ﻭﺍﻟﺼﻼﺓ ﻭﺍﻟﺴﻼﻡ ﻋﻠﻰ ﺃﺸﺭﻑ ﺍﻷﻨﺒﻴﺎﺀ ﻭﺍﻟﻤﺭﺴﻠﻴﻥ ﻨﺒﻴﻨﺎ ﻤﺤﻤﺩ ﻭﻋﻠﻰ ﺁﻟﻪ ﻭﺼﺤﺒﻪ
ﺃﺠﻤﻌﻴﻥ
ﺃﻤﺎ ﺒﻌﺩ:
ﺍﻟﺸﻜﺭ ﻭﺍﻟﺜﻨﺎﺀ ﷲ ﻋﺯ ﻭﺠل ﺃﻭﻻﹰ ﻭﺃﺨﻴﺭﺍﹰ ﻋﻠﻰ ﻨﻌﻤﺔ ﺍﻟﺼﺒﺭ ﻭﺍﻟﻘﺩﺭﺓ ﻋﻠﻰ ﺇﻨﺠﺎﺯ ﺍﻟﻌﻤل ،ﻓﺎ ﷲ ﺍﻟﺤﻤﺩ ﻋﻠﻰ
ﻫﺫﻩ ﺍﻟﻨﻌﻡ <ﻴﺴﺭﻨﻲ ﺃﻥ ﺃﺘﻘﺩﻡ ﺒﺠﺯﻴل ﺍﻟﺸﻜﺭ ﻟﻭﺍﻟﺩﺍﻱ ﺍﻟﻠﺫﻴﻨﻘﺩﻤﺎ ﻟﻲ ﻴﺩ ﺍﻟﻌﻭﻥ ﻭﺴﻬﺭﺍ ﻋﻠﻰ ﺘﺭﺒﻴﺘﻲ ﻭﺘﻌﻠﻴﻤﻲ
ﻤﻨﺫ ﺍﻟﺼﻐﺭ.
ﺍﻻﺴﺎﺘﺫﺓ ﺍﻟﻜﺭﺍﻡ:
ﺃﺘﻭﺠﻪ ﺒﺎﻟﺸﻜﺭ ﻟﻜل ﻤﻥ ﺴﺎﻫﻡ ﻓﻲ ﺘﺩﺭﻴﺴﻲ ﻭﺘﻌﻠﻴﻤﻲ ﻤﻥ ﺃﺴﺎﺘﺫﻩ ﻭﺩﻜﺎﺘﺭﺓ ﻓﻲ ﺠﻤﻴﻊ ﺍﻟﻤﺭﺍﺤل ﺍﻟﺘﻌﻠﻴﻤﻴﺔ
،ﻭﺍﻟﺸﻜﺭ ﻤﻭﺼﻭل ﺒﺼﻔﺔ ﺨﺎﺼﺔ ﻟﻜل ﺍﻻﺴﺎﺘﺫﺓ ﺍﻻﻋﺯﺍﺀ ﺒﺠﺎﻤﻌﺔ ﺍﻟﻌﻠﻭﻡ ﻭﺍﻟﺘﻘﺎﻨﺔ ﻟﻤﺎ ﺒﺫﻟﻭﻩ ﻤﻥ ﺍﻟﺠﻬﺩ
ﻟﺘﺤﺼﻴﻠﻨﺎ ﻟﻠﻌﻠﻡ ﻭﺍﻟﻤﻌﺭﻓﺔ.
ﺃﺘﻭﺠﻪ ﺒﺎﻟﺸﻜﺭ ﻭﺍﻟﺘﻘﺩﻴﺭ ﻟﺴﻌﺎﺩﺓ ﺍﻟﻤﺸﺭﻑ ﺍﻟﺩﻜﺘﻭﺭ /ﻋﻭﺽ ﺍﷲ ﻁﻴﻔﻭﺭ ﺍﻟﺫﻱ ﻜﺎﻥ ﺒﻌﺩ ﺍﷲ -ﻋﺯ ﻭﺠل -
ﺍﻟﻤﻌﻴﻥ ﺍﻷﻭل ﻟﻲ ﻋﻠﻰ ﺇﺘﻤﺎﻡ ﻫﺫﻩ ﺍﻟﺩﺭﺍﺴﺔ ،ﻓﻠﻪ ﻜل ﺍﻟﺘﻘﺩﻴﺭ ﻭﺍﻵﻤﺘﻨﺎﻥ.
III
ﺍﻟﻤﺴﺘﺨﻠﺹ
ﻨﻅﺎﻡ ﺘﺘﺒﻊ ﺍﻟﻤﺭﻜﺒﺎﺕ ﺍﻟﻘﺎﺌﻡ ﻋﻠﻰ ﺍﻟـ GSMﻭ GPSﻭﺇﺨﺘﺒﺎﺭﻩ ﻤﻊ ﺸﺒﻜﺔ ﺍﻟﻬﺎﺘﻑ
ﺍﻟﻤﺤﻤﻭل ﻴﻤﻜﻥ ﺍﻟﻤﺴﺘﺨﺩﻡ ﻤﻥ ﺍﻟﺤﺼﻭل ﻋﻠﻰ ﺭﺴﺎﺌل ﻨﺼﻴﺔ ﻴﺤﺘﻭﻱ ﻋﻠﻰ ﺭﺍﺒﻁ ﺨﺭﻴﻁﺔ
ﻴﺴﺘﻁﻴﻊ ﺘﺤﺩﻴﺩ ﻤﻜﺎﻥ ﺘﻭﺍﺠﺩ ﻤﺭﻜﺒﺘﻪ .ﻫﺫﺍ ﻤﺠﺭﺩ ﻨﻤﻭﺫﺝ ﺘﻭﻀﻴﺤﻲ ﻭﻟﻜﻥ ﻴﻤﻜﻥ ﺘﻨﻔﻴﺫﻩ ﻋﻠﻰ
ﺍﻟﻌﺎﻟﻡ ﺍﻟﺨﺎﺭﺠﻲ ﻷﻏﺭﺍﺽ ﺍﻟﺤﻤﺎﻴﺔ ﻋﻠﻰ ﺍﻟﻤﺭﻜﺒﺎﺕ ﺒﻜل ﺃﻨﻭﺍﻋﻪ.
IV
ABSTRACT
Vehicle tracking system based on GSM and GPS and testing it with a mobile
phone network enables the user to receive text messages that contain a map
link that can determine the location of his vehicle. This is just an illustrative
model but can be implemented on the outside world for protection purposes on
V
List of Content
Content Page
اﻵﯾﺔ I
اﻷھﺪاء II
اﻟﺸﻜﺮ واﻟﺘﻘﺪﯾﺮ III
اﻟﻤﺴﺘﺨﻠﺺ IV
ABSTRACT V
List of content VI
List of Figure VIII
Abbreviations IX
Chapter One
Introduction
1.1General Background 1
1.2 Problem Statement 2
1.3 Project Objectives 2
1.4 Methodology 3
1.5 Project Layout 3
Chapter Tow
The Theoretical Background and Literature Review
2.1 Introduction 4
2.2 Global Positioning System 4
2.2.1 History Global Positioning System 5
2.2.2 Global Positioning System Section 5
2.2.2.1 Space section 5
2.2.2.2 Control Section 6
2.2.2.3 User section 6
2.2.3 Methods of Observations 7
2.2.3.1 Absolute Positioning 7
2.2.3.2 Relative Positioning 7
2.2.3.3 Differential Global Positioning System 8
2.2.3.4 Kinematic Global Positioning System 9
2.2.4 Application of Global Positioning System 9
2.3 Global System for Mobile Communications Mode 10
2.3.1 History of Global System for Mobile 10
2.3.2 Global System for Mobile Architecture 11
2.3.3 Application of Global System for Mobile 14
2.4 Vehicle Tracking System 14
2.4.1 Tracking System 16
.2.4.2 Tracking Applications 17
2.4.3 Different Types of Tracking System 17
VI
2.5 Microcontroller history 21
2.6 Microcontroller Overview 21
2.7 Microcontroller Architecture 22
2.8 Microcontroller Programming 23
2.9 Advantages and disadvantage of microcontroller 24
2.10 Microcontroller Applications 24
Chapter Three
System Hardware and Software
3.1 System Description 25
3.2 System Hardware 25
3.2.1 Arduino 25
3.2.2 Arduino Uno 25
3.3 Global positioning system Module 26
3.3.1 Pin configurations 27
3.4 Global System for Mobile Communication 27
3.4.1 Pin Configuration 28
3.5 System Flowchart 28
3.6 The Code 29
3.7 Simulation 33
Chapter Four
System Implementation and Testing
4.1 System implementation 34
4.2 System Testing 35
Chapter five
Conclusion and Recommendations
5.1 Conclusion 37
5.2 Recommendations 38
References 28
VII
List of Figure
Figure Page
Figure 2.1: GSM Interfaces used 13
Figure 2.2: GSM Architecture 13
Figure 2.3: Vehicle Tracking System 20
Figure 2.4: Microcontroller 8051 Chips 22
Figure 2.5: Block Diagram Microcontroller Programming 23
Figure 3.1: System block diagram 25
Figure 3.2: Arduino Uno 26
Figure 3.3: GPS 26
Figure 3.4 GSM 27
Figure 3.5 System Flow Chart 29
Figure 3.6 System Simulation 33
Figure (4.1) Circuit Implementation 34
Figure (4.2) Link of Google Map 35
Figure (4.3) Google Map 36
VIII
Abbreviations
GPS Global Positioning System
Mcs Master control Station
MSs Monitor stations
ULS UP Load Station
SV Space Vehicle
WGS 84 World Geodetic reference system 1984
3D Position of the antenna ( x, y, Z) and the receiver Clock error can be
determined
DGps Differentialor Global Positioning system
GSM Global system for Mobile communication
TDMA Time Division Multiple Access
HSPA High speed packet Access
SMS Stands for short message service
MS Mobile Station
Bss Base Station subsystem
Nss Network switching subsystem
ME Mobile Equipment
SIM Subscriber Identity Module
MT Mobile Termination
MSC Mobile switch Center
HLR Home location Register
VLR Visitor Location Register
AuC Authentication Center
EIR Equipment Identity Register
IWF Inter working function
SCM Supply chain Management
EPC Electronic product Code
WMS workhouse Management System
RTLs real Time locating
AVL Automatic Vehicle location
AGPS Assisted Global Positioning System
System
RFID Radio frequency Identification
GIS Geographic Information system
system
RF Radio frequency
DIP dual in line package
IX
Chapter One
Introduction
Chapter One
Introduction
1.1General Background
Another study shows that seventy five per cent of the market share is
Smartphone and a total of one hundred and six million Smartphone were
shipped in the second half of 2012.Smartphone became the top
telecommunication medium in the market in the present time worldwide and it
became the most popular used telecommunication medium known to man.
So, from the above mentioned survey now it’s clear that how smart phones
became important and integral part of our modern day life, that’s the reason to
make this vehicle tracking system text message oriented so that we can take
care of our own vehicle in just one touch of our hand. Through smart phone we
can track real time location of our vehicle with the help of internet connection.
In such a manner, this tracking system designed so that users can have easy
and user friendly interface to fetch their vehicle.
1
1.2 Problem Statement
In the present day vehicle tracking is becoming essential for the purpose of
improving our life condition. Convenience and ease of using vehicle is what
home vehicle tracking is offering. Vehicle tracking offers a futuristic way of
life in which an individual gets to control his vehicle using a smart phone,
from tracking a vehicle /detecting accidental place of a vehicle; it also offers
an efficient use of technology.
But to get or acquire such system installed will cost a lot of money and that
is the major reason of why vehicle tracking has not received much demand and
attention, adding to that also the complexity of installing it and configuring it.
Thus it is essential to make it cost effective and easy to configure, if this is
granted to people then they will be willing to acquire it in their personal
vehicles, school buses and taxes/cabs etc. In other words, a system
modification for the vehicle tracking is required in order to lower the price of
applying it to vehicles. Also this tracking project can be used to purpose of
women safety as well as parents can be used to take care of their child/kid for
the safety or missing purpose or to track their activities for their future.
2
safety purpose. So when this embedded system design take care of every
aspect of its purpose as it mentioned above.
1.4 Methodology
This system monitors the vehicle using a Global system for Mobile
Communications (GSM) and GPS network and can simply programmed to
monitor the vehicle by sending and receiving text messages.
3
Chapter Two
The Theoretical Background and
Literature Review
Chapter Two
The Theoretical Background and Literature Review
2.1 Introduction
Vehicle Tracking systems are very commonly used in fleet management and
asset tracking applications. Today these systems can not only track the location
of the vehicle but can also report the speed and even control it remotely. In
general, tracking of vehicles is a process in which we track the vehicle location
in form of Latitude and Longitude (GPS coordinates). GPS Coordinates are the
value of a location. This system is very efficient for outdoor application
purposes. This kind of Vehicle Tracking System Project is widely in tracking
Cabs/Taxis, stolen vehicles, school, college, buses etc.
In this project, we are going one step ahead with GPS building a GSM and
GPS based vehicle tracking system using Arduino.
This Vehicle Tracking System can also be used to track a vehicle using
GPS and GSM and can also be used as Accident Detection Alert System,
Soldier Tracking System and many more, by just making few changes in
hardware and software.
4
2.2.1 History Global Positioning System
The GPS project was launched in the United States in 1973 to overcome the
limitations of previous navigation systems integrating ideas from several
predecessors, including classified engineering design studies from the 1960s.
The U.S. Department of Defense developed the system, which originally used
24 satellites. It was initially developed for use by the United States military
and became fully operational in 1995. Civilian use was allowed from the
1980s. Roger L. Easton of the Naval Research Laboratory, Ivan A. Getting of
The Aerospace Corporation, and Bradford Parkinson of the Applied Physics
Laboratory are credited with inventing it.
The Global Positioning System basically consists of three section: the Space
section, The Control section and the User section.
5
2.2.2.2 Control Section
This has a Master Control Station (MCS), few Monitor Stations (MSs) and
an Up Load Station (ULS). The MSs are transportable shelters with receivers
and computers; all located in U.S.A., which passively track satellites,
accumulating ranging data from navigation signals. This is transferred to MCS
for processing by computer, to provide best estimates of satellite position,
velocity and clock drift relative to system time. The data thus processed
generates refined information of gravity field influencing the satellite motion,
solar pressure parameters, position, clock bias and electronic delay
characteristics of ground stations and other observable system influences.
Future navigation messages are generated from this and loaded into satellite
memory once a day via ULS which has a parabolic antenna, a transmitter and a
computer. Thus, role of Control section is:
6
2.2.3 Methods of Observations
In the translocation mode, with two or more GPS receivers observing the
same satellites simultaneously, many common errors, including the major
effect of SA get cancelled out, yielding the relative positions of the two or
more observing stations to a very high level of accuracy. The length of the
7
baseline between two stations, and also the absolute position of one of the
stations, if accurate position of the other station is known, can be obtained to
cmlevel accuracy, using carrier phase observations. In differencing mode of
observations, using single difference (difference of carrier phase observations
from two receivers to the same satellite), double difference (between
observations from two receivers to two satellites) and triple difference
(difference of double differences over two time epochs), effect of many errors
such as receiver and satellite clock errors etc., can be minimised. Use of dual
frequency observations (both L1 and L2 frequencies) eliminates the major part
of ionospheres effect on the signal, thus improving the accuracy of positioning.
With accurate satellite orbit information, and use of such refined data-
processing and modeling techniques, few mm to cm level accuracy is possible
even in regional or global scale surveys.
8
2.2.3.4 Kinematic Global Positioning System
Due to the high accuracy, versatility, ease and economy of operation, and
all-weather operation offered by GPS, it has found numerous applications in
many fields, ranging from the mm-level high precision geodesy to the several-
meter level navigational positioning. Some of these applications are:
• It is a digital cellular technology used for transmitting mobile voice and data
services-hence it is a circuit switched system.
• By being a circuit switched it divides each 200Khz channel into eight 25Khz
time slots.
• GSM digitizes and compresses data, then sends it down through a channel
with two other streams of user data each in its own time slot.
BY 2005 GSM networks accounted for more than 75% of the worldwide
cellular network market, serving 1.5 billion subscribers. In 2005, the first
HSDPA-capable network also became operational. The first HSUPA network
launch in 2007. (High-speed packet Access (HSPA) and its uplink and
10
downlink versions are 3G technologies, not part of GSM.) Worldwide GSM
subscribers exceeded three billion in 2008.The GSM Association estimated in
2010 that technologies defined in the GSM standard served 80% of the mobile
market, encompassing more than 5 billion people across more than 212
countries and territories, making GSM the most ubiquitous of the many
standards for cellular network. [3]
GSM network has three major subsystems which comprises of many functional
units.
Mobile Station
about the mobile, the subscriber and the network. It permits the user A
11
Base Station Subsystem (BSS)
Base Transceiver Station provide access to the mobile station and manage
radio access aspects of the system. It contains Radio Transmitter / receiver
(TRX), Signal processing and control equipment and feeder cables and
antennas.
The NSS is responsible for the network operation. It provides the link
between the cellular networks and the public switched telecommunication
network (PSTN, ISDN, or Data Networks). The NSS controls the handoffs
between cells in different BSS, authenticates user and validates their accounts
and includes functions for enabling worldwide roaming of mobile suscribers.
12
GSM Conceptual Block Diagram
Um HLR VLR
BSC
PSTN, ISDN,
SIM BTS MSC
PSPDN, CSPDN
BTS BSC
Abis
EIR AvC
13
2.3.3 Application of Global System for Mobile
14
This circuit is designed for tracking the location of vehicles. Most of
tracking systems are made by using GPS. This is very simple and cheap.
Tracking systems are mostly used by fleet operators for tracking a vehicle
location, routing and others. This is a very good method for preventing our
vehicles from stolen. This tracking system sends us the geographical
coordinates and by using these coordinates we can track our vehicle position
on electronic maps using internet. By using these. Tacking systems we can
share real time information about transportations. And also can be share real
time information or position bus/taxi/cab with passengers. Means passengers
can see the real time of arriving bus/taxi/cab on Mobiles. in. A tracking system
comprises of mainly three parts- vehicle unit, fixed based station and database
with software system. [5]
The tracking system is installed on the vehicle (car, bus, truck).The device
is controlled by mobile phone that makes it possible for the user to
communicate with the system wirelessly. The vehicle tracking system has a
SIM slot that uses a GSM SIM to receive and transmit SMS. The user can send
a SMS from a mobile phone and locate the vehicle that is to be tracked. We
have also created a flat file database that is stored on a host computer system
that contains a „flat file. A flat file can be either a text file or a binary file, for
our system we have used text file as our flat file. We have also used the
software XAMPP which make it possible to access the text file and view the
position of the vehicle on the Google map from anywhere on earth. The system
also provides the facility to prevent theft of the vehicle. So we can divide the
whole operation of the vehicle tracking system into two parts:-
15
The system consists of GPS receiver which provides real time location of
vehicle. This real time data is stored in the database which is use to send and
receive the SMS and send the data to the database. GSM module takes the data
and sends this data to the users mobile phone that has sent the request for the
coordinates of the position. This data consist of longitude, latitude and a link
and when we click on the link we are able to see the location on Google map.
This system also has another special feature which provides not only the
location of vehicle but also protection. If the vehicle is stolen, after knowing
the location of the vehicle, the owner can follow the car and give the
information of location to the police for faster recovery of the stolen car
16
.2.4.2 Tracking Applications
There are myriads of tracking system. Some are „lag time indicators that is,
the data is collected after an item has passed a point for example a bar code or
choke point or gate. Others are „real-time or„ near rear-time like global
positioning systems (GPS) depending on how often the data is refreshed. There
are bar-code systems which require to scan items and automatic identification
(RFID auto-id). For the most part, the tracking worlds are composed of
discrete hardware and software systems for different applications. That is, bar-
code system are separate from Electronic product code (EPC) systems, GPS
systems are separate from active real time locating or RTLS for example, a
passive RFID system would be used in a warehouse to scan the boxes as they
are loaded into work in progress models (WIP) or Warehouse Management
Systems (WMS) or ERP software. The readers required per choke point are
meshed auto-ID or hand-held ID applications.
There are three main types of GPS vehicle tracking that are widely used. They
all use active devices. They are:
AVL system is an advanced method to track and monitor any remote vehicle
with the device that receives and sends signals through GPS satellites. AVL
17
comprises of Global Positioning System (GPS) and Geographic Information
System (GIS) in order to provide the real geographic location of the vehicle.
AVL system consists of PC-based tracking software to dispatch, a radio
system, GPS receiver on the vehicle and GPS satellites. Among the two types
of AVL, GPS-based and Signpost-based, GPS-based system is widely used.
The tracking method uses GPS satellite to locate the vehicle equipped with
GPS modem by sending satellite signals. The accuracy of the tracking method
depends on the AVL system which provides the vehicle location with the
accuracy of about 5m to 10m. The information transmitted by the tracking
system to the base station is location, speed, direction, mileage, start and stop
information and status of vehicle. The information of the vehicle is often
transmitted to the central control system (base station) from the vehicle after
every 60 seconds. If the base station receives the data, it displays it on a
computerized map. GPS receiver on the vehicle receives the signals of its
geographic location. Then the receiver sends that data plus speed, direction,
etc. to the base station via a radio system. If AVL system is used to track a
vehicle the average cost of per vehicle is $1 to $2 per day. The system can
provide additional services like: vehicle route replay facility, external sensor
data, speed alerts. The system also has some limitation; using the AVL system
we cannot get accurate, complete and sufficient satellite data in dense urban
areas or indoors and when transmission is blocked by natural obstructions
(heavy tree cover) or many buildings. It can also occur in RF-shadowed
environments and under unfriendly Radio Frequency (RF) conditions.
Sometimes, a position fix can be impossible.
18
cellular networks to locate the accurate positioning information. AGPS is used
to overcome some limitations of GPS. With unassisted GPS, locating the
tracking method of AGPS uses GPS satellites to track the vehicles. A GPS
receiver in vehicle is always in contact with 4 satellites (3 satellites determine
latitude, longitude and elevation and the fourth provides element of time)
hence it never fails to detect the location of a vehicle. Location of the vehicle is
provided with accuracy of between 3m and 8m, and speed of 1km using this
method. Information like Vehicle location, average speed, direction, path
traversed in a selected period and alerts (Engaged/Unengaged, speed limit,
vehicle breakdown and traffic jam) are delivered by the tracking system to the
base station. The system provides continuous updates after every 10 seconds
while the vehicle is in motion. It also provides data storage for up to 1 year.
The location is retrieved from the GPS device and relayed as a SMS using the
cell phone by the Client Node to the Base station. This system is more
expensive than the AVL system as it gives continuous update of the vehicle
location. If the user needs update after every 10 seconds then the subscription
for this system is $1.33 per day per vehicle and if the user needs update after
every 5 seconds it is $1.67 per day per vehicle. The system can provide further
services like atomic time (Accurate Time Assistance). There is a "panic"
button. When pressed, you can contact an operator and he or she will help you
out or keep you safe from accidents or hijacks. The system has also some
limitations as GSM network is used to transmit data from the vehicle to the
base station, the cost of sending SMS is a major concern to be considered.
19
(middleware). RFID tag which contains microelectronic circuits sends the
vehicle information to a remote RFID reader which is then read via the
software. This system provides the location of the vehicle with the accuracy of
4m to 6m. Information such as location of the vehicle, mileage and speed are
delivered by the tracking system to the centre. The information is updated
every one minute. The information is sent to and received from RFID tags by a
reader using radio waves. RFID reader, basically a radio frequency (RF)
transmitter and receiver, is controlled by a microprocessor or digital signal
processor (DSP). RFID reader with an attached antenna reads data from RFID
tags. [7]
20
2.5 Microcontroller history
It was during 1970 and 1971 when Intel was working on inventing the
world’s first microprocessor, that Gary Boone of Texas Instruments was
working on quite a similar concept and invented the microcontroller. Boone
designed a single integrated circuit chip that could hold nearly all the essential
circuits to form a calculator; only the display and the keypad were not
incorporated. Surprisingly, this exceptional breakthrough in the field of
electronics and communication was rather given a mundane name of
TMS1802NC; however, the device wasn’t ordinary.
It had five thousand transistors providing 3000 bits of program memory and
128 bits of access memory!! So, it was possible to program it to perform a
range of functions. upload the compiled version of your program to your
microcontroller Arduino programming is a bit easier if you want to start really
simple.
21
Figure 2.4: Microcontroller 8051 Chips
All other devices like program memory, ports, data memory, serial interface,
interrupt control, timers, and the CPU are all interfaced together through the
system bus.
22
External interrupts
CPU
P0 P2 P1 P3 TXD RXD
Add data
A microcontroller does not know what to do by itself. It’s your job to tell it
what you want it to do.
compile the code with a compiler for the microcontroller you are using
23
2.9 Advantages and disadvantage of microcontroller
Some of the major advantages of microcontrollers are that they are reusable,
dependable, cost-effective, and energy efficient. The typical microcontroller is
programmable, which means it is reusable. This is especially advantageous for
prototyping control circuitry.
24
Chapter Three
System Hardware and Software
Chapter Three
The system shown in Figure 3.1 is a simple vehicle tracking system using the
GSM and GPS Arduino to determine the location of the vehicle at the moment
and is controlled via a smart phone.
3.2.1 Arduino
The Uno shown in Figure 3.2 is a great choice for your first Arduino. It's got
everything you need to get started, and nothing you don't. It has 14 digital
25
input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a
USB connection, a power jack, a reset button and more. It contains everything
needed to support the microcontroller; simply connect it to a computer with a
USB cable or power it with a AC-to-DC adapter or battery to get started .
The GPS shown in Figure 3.3: the system for calculating positions from the
signal sent by a network of the satellites. Continuously monitoring the bus by
reading parameters like the speed, the route and the geographic location in real
time which is uploaded to the server by the microcontroller and viewed
through a mobile application.
26
3.3.1 Pin configurations
GND is the Ground Pin and needs to be connected to GND pin on the
Arduino.
VCC supplies power for the module. You can directly connect it to the 5V
pin on the Arduino.
The GSM shown in figure 3.4 :is a globally accepted standard for digital
cellular communication. GSM is the name of a standardization group
establiehed in 1982 to create a common European mobile telephone standard
that would formulate specifications for a pan European mobile cellular radio
System operating at 900 MHz. It is estimated that many countries outside of
Europe will join the GSM partnership the GSM SIM900A.
27
3.4.1 Pin Configuration
TX connected to pin 11
RX connected to pin 10
5V from the module to 5V of Arduino two Grounds from the module to the
Ground to Arduino
The flowshown figure 3.5: to explain the operation of a real time vehicle
traking system.
28
Start
GPS,GSM On
GPS,GSM Waiting
n No
Valid
Yes
GPS receives
send to GSM
int i=0;
int led=13;
29
char str [15];
void setup()
Serial. begin(9600);
Serial_connection.begin(9600);
Pin Mode(13,OUTPUT);
delay(1000);
delay (1000);
Void loop()
30
{
char inchar=serial.read();
str [i++]=inchar;
if (inchar=='a');
Digital write(13,HIGH);
Serial. print("r");
delay(1000);
serial. print("AT+CMGF=1\r");
delay (1000);
serial. print("AT+CMGS=\"+249960132507\"\r);
delay(1000);
serial. print(",");
31
serial. print (gps. location. lng(),6);
delay(1000);
delay (1000);
delay(1000);
If (inchar=='b');
digital write(13,LOW);
32
3.7 Simulation
33
Chapter Four
System Implementation and
Testing
Chapter Four
The circuit implementation shown in figure 4.1: This system was created by
arduino uno which contains inside the chip code commands to perform a
specific purpose.
It also contains a GSM module connected to the Arduino board via ports
(11,10,GND) as well as the GPS unit through (0,1,GND) and all this to notify
the owner of the location of his vehicle by sending a text message containing a
link to Google maps, then the owner will click on it to go to the Google map
application.
34
4.2 System Testing
The system starts working when we send a lower case letter (a) from any
number to the chip inside the GSM unit.
The sent character is checked if it matches the character inside the code a
text message is sent to the owner containing a Google map link the chip
number inside the code. However, if the sent character does not match a
character in the code, it does not send any message to the owner.
35
Figure (4.3) Google Map
36
Chapter Five
Conclusion and Recommendations
Chapter Five
5.1 Conclusion
The vehicle tracking system based on GSM has been designed and tested with
a mobile phone network enabling the user to receive text messages co0ntaining
a map link that can determine the location of his vehicle.
This is just an illustrative model but can be implemented on the outside world
for protection purposes on vehicles.
37
5.2 Recommendations
The end of this study it recommended that the future applicants of this
project is to use camera to monitor the vehicles.
It is possible to add maps showing the possible routes to be taken from
the current point where the car is.
We can reduce the size of the kit by using GPS+GSM on the same
module.
38
References
2- prof madhav n. kulkarni lt. col.(r), the global positioning systemand its
applications, department of civil engineering indian institute of technology,
bombay. powai, mumbai – 400076
39
9- Garude M,. and Hadikar, N. Q014). “Real Time Position Tracking System
Using Google Maps”, international journal of Scientific and Research
Publications pp. 357.
10- Lee, S., G., and Keun, J. (2014). “Design nd implementation of Vehicle
Tracking System using GPSYGSM/GIRS Technology and Smartphone
Application”, in 2014 IEZE World Forum on internet of Things, pp. 353-358
40