INTRODUCTION
It is known that road accidents are increasing day by day.
India has the record of registering the highest number of road
accidents in the world. Of all the causes, exceeding the posted limit
or driving too fast is one of the most important factors and drunken
driving is also contributing to traffic crashes. According to
statistics, over 1, 37,000 people were killed in road accidents in
2013 alone. Road accidents are the major cause of accidental death
in India.
by using Global Positioning System (GPS) and the digital maps obtained
from the Geographical Information Systems (GIS) to assess threat levels
for driver if approaching the curved road quickly. But these maps need to
be updated regularly and are not useful if there are unexpected road
diversions or extensions etc. Speed radars are installed at regular intervals
along roads where, these radars monitor the speed of vehicles and capture
information of over speeding vehicles by taking photographs. Thus in
spite of the huge investments involved, the system is capable of only
identifying the over speeding vehicle but unable to restrict the top speed
of the vehicle.
1.4 ROAD ACCIDENT DEATH BY VARIOUS MODES OF
TRANSPORT
From
surveys
conducted
by
different
government
and
CHAPTER 2
LITERATURE REVIEW
2.1 GENERAL
In this chapter we reviewed several papers regarding the speed
control of vehicles. Generally most of the papers were based on the idea
of intimating the driver about the violation of speed limit.
2.2 LITERATURE SURVEY
Agerholm
N.
N. , Lahrmann H.
adaptation
in
,Waagepetersen
R. ,Tradisauskas
company
vehicles
(2008)"
about
an
road side. The SiVIC simulation platform is used to generate the virtual
world (the environment, sensors, beacons, and vehicle). The framework
platform RTMaps is used for prototyping the automatic speed control
algorithm. The seamless coupling of these platforms allows subsequently
embedding the prototyped application directly on a real vehicle.
In the paper "GPS enabled speed control embedded system speed
limiting device with display and ECI-(2013)", it is said that, one of the
ways to reduce vehicle crashes is to prevent excessive speeding in the
roads and highways. The paper aims to outline the design of an embedded
system that will automatically control the speed of a motor vehicle based
on its location determined by a GPS device. The embedded system will
make use of an AVR ATMega128 microcontroller connected to an EM406A GPS receiver. The large amount of location input data justifies the
use of an ATMega128 microcontroller which has 128KB of
programmable flash memory as well as 4KB SRAM, and a 4KB
EEPROM Memory. The output of the ATMega128 will be a
DOGMI63W-A LCD module which will display information of the
current and the set-point speed of the vehicle at the current position. A
discrete indicator LED will flash at a pre-determined frequency when the
speed of the vehicle has exceeded the recommended speed limit. Finally,
the system will have outputs that will communicate with the Engine
Control Unit (ECU) of the vehicle. For the limited scope of this project,
the ECU is simulated as an external device with two inputs that will
acknowledge pulse-trains of particular frequencies to limit the speed of a
vehicle. The speed control system will be programmed using mixed
language C and Assembly with the latter in use for some pre-written
subroutines to drive the LCD module. The GPS module will transmit
National Marine Electronics Association (NMEA) data strings to the
microcontroller (MCU) using Serial Peripheral Interface (SPI). The MCU
7
will use the location coordinates (latitude and longitude) and the speed
from the NMEA RMC output string. The current speed is then compared
against the recommended speed for the vehicles location. The memory
locations in the ATMega128 can be used to store set-point speed values
against a articular set of location co-ordinates. Apart from its
implementation in human operated vehicles, the project can be used to
control speed of autonomous cars and to implement the idea of a variable
speed limit on roads introduced by the Department of Transportation.
Drawback: The main disadvantage in this idea is, a GPS device should
be used to identify the location. The operation of the GPSs module is
based on the weather conditions. This GPS module also increases the cost
of the system. So, this system has some drawbacks.
Muzahid Hussain, Abhishek Tayal, Sarabjot Singh said in their paper
"Position Matching Based Autonomous Speed Regulation System for
Vehicles (2014)" about creating an advisory/regulatory environment to
limit the maximum running speed of the vehicle is presented. This paper
deals with creating an onboard speed regulation module for vehicles
which can monitor as well as control their instantaneous speed in
comparison with the maximum permissible speed of that location. The
location is obtained using position tracking technology of GPS and GSM
system. The work discusses the unique position matching algorithm
developed and design details of the proposed on-board module for
limiting vehicles speed. The algorithm continuously compares the actual
speed of the vehicle with its corresponding location based limits
Obtained through the developed database and thus provides:
a) An advisory signal to the driver about the need for a reduction in
speed.
b) An automatic restriction of the speed below the prescribed limits.
The algorithm matches the position with the geographical zone already
8
defined in the database and compares the actual speed with the limit of
the corresponding zone on an intermittent basis, depending on the
execution time of the processing cycle. The algorithm developed tracks
the vehicle position using data acquired from both GPS and GSM
receivers which lead to increased efficiency, reduced complexity and
processing time in contrast to the conventional methods.
Drawback: The main disadvantage in this idea is, a GPS device should
be used to identify the location. The operation of the GPSs module is
based on the weather conditions. This GPS module also increases the cost
of the system.
CHAPTER-3
PROPOSED SYSTEM
3.1 GENERAL
Many accidents are at least partially caused because of rash
driving. This can happen due to many reasons: poor judgment on the part
of the driver, poor driving by the driver. An innovative concept is
suggested by which the speed of the vehicle can be controlled
automatically at a given limit for a particular limiting distance and
practically by the developed concept system; the problems related to
traffic as well as accidents will be controlled.
3.2 CONCEPT METHODOLOGY
10
is free from alcohol the vehicle starts. This will avoid drunken driving
and provide safety to both the driver and the pedestrians.
ii)
3.3.1 Block diagram to control the speed based on the colour strip
sensed
11
12
W
B
V
A
P
Y
G
T
I
M
N
E
S
R
U
D
H
O
C
L
3.3.2 Block Diagram to detect Drunken Driving
The alcohol odour sensor integrated with the ignition system avoids
the driver to drive the vehicle if drunk. An alcohol odour sensor is integrated
with the ignition system of the vehicle. When a driver intends to start the
vehicle, he/she will be insisted to blow on the sensor after using the key. The
output of the sensor is also considered as a key to start the vehicle. Only if
the air blown by the driver is free from alcohol the vehicle starts. This will
avoid drunken driving and provide safety to both the driver and the
pedestrians
13
14
15
16
17
CHAPTER-4
HARDWARE REQUIREMENTS
4.1 GENERAL
In this chapter the various components used for the hardware
implementation of the project is explained with their specification and the
operating methodology is explained with their pin configurations. The major
hardware contributing in the implementation includes
i)
Micro controller
ii)
Colour sensor
iii)
18
Parallel Slave Port (PSP) 8 bits wide with external RD, WR and CS
controls (40/44-pin only)
Brown-out detection circuitry for Brown-out Reset (BOR)
Analog Features:
10-bit, up to 8-channel Analog-to-Digital Converter (A/D)
Brown-out Reset (BOR)
Analog Comparator module with:
- Two analog comparators
- Programmable on-chip voltage reference (VREF) module
- Programmable input multiplexing from device inputs and internal voltage
reference
- Comparator outputs are externally accessible
Special Microcontroller Features:
100,000 erase/write cycle Enhanced Flash program memory typical
1,000,000 erase/write cycle Data EEPROM memory typical
Data EEPROM Retention > 40 years
Self-reprogrammable under software control
In-Circuit Serial Programming (ICSP) via two pins
Single-supply 5V In-Circuit Serial Programming
Watchdog Timer (WDT) with its own on-chip RC oscillator for reliable
operation
Programmable code protection
Power saving Sleep mode
20
device has fifteen interrupts and eight input channels. The parallel slave port
is implemented in this device. The pin diagram of this device is given in the
below figure.
22
23
24
25
in
voltage
and
amplify
signal.
Common
circuit
known
On this way it is possible to detect other colours than red, green and blue.
Detection process is much better if there is a source of light that emit lights
close to day light (white light). White LEDs are commonly used. In this case
it should be known that white LED spectre is not ideal to white lights as it
shown on picture
27
CHAPTER-5
SOFTWARE IMPLEMENTATION
5.1 GENERAL
Simulation software is based on the process of modeling a real
phenomenon with a set of mathematical formulas. It is, essentially, a
program that allows the user to observe an operation through simulation
without actually performing that operation. Here we use Proteus 8
Professional software to simulate our project. The hex file for our
simulation is generated using the Keil u Vision 4 software.
5.2 KEIL SOFTWARE
Keil is a cross compiler. Definition of cross compiler is
a compiler that runs on one computer but produces object code for a
different
type
of
computer.
Cross
compilers
are
used
to
Project Manager
Simulator
Debugger
Keil Software provides you with software development tools for the 8051
family of microcontrollers. With these tools, you can generate embedded
applications for the multitude of 8051 derivatives. Keil provides following
tools for 8051 development
1.
2.
3.
4.
Source-Level Debugger/Simulator,
5.
The Keil tool kit includes three main tools, assembler, compiler and linker.
An assembler is used to assemble your 8051 assembly program. A
compiler is used to compile your C source code into an object file. A
linker is used to create an absolute object module suitable for your in-circuit
emulator.
5.2.1 Steps in Generating a Hex File
STEP 1: First download and install v4.exe setup in the computer, this is the
main executable of it. Then simply go on start menu, then search as "keil"
without quotes, if you have installed it correctly, then you will find this on
the top of results.
31
32
Now a new window will open, which will tell us to select the device, so it
will depend on your vendor, like nxp, atmel, Intel, who manufacture the
8051 IC, & you have purchased one of them. Select the exact configuration
to get go, on the next step. To find the exact version of 8051 IC you are
having, look deeply on your 8051 IC. Then match exact codes for vendors &
version. For example if the vendor is Atmel & device is AT89C51. After
selecting your device click on "OK"
34
FIG 5.5: Dialog Box in Keil, to copy STATUP.A51 to project folder &
add the file to the project
Step 5: Now after creating the project you need to create the source, which
Keil will later on Compile (on your command). For that go to the "File"
menu, and select "New".
A text window will open, where we are going to write a code to compile &
create the .hex file. Write down your code & save. For Assembly language
file please save the file with ".asm" extension, if instead writing a code in C
save it with a ".c" extension.
Save the file as any name, you want, but don't forget to give the file an
extension .asm or .c, depending on what you are writing.
37
38
40
to Use)
is
fully
Clipper/dBase;
it
is
especially
was
initially
created
as
multiplatform
(DOS, Windows, UNIX) system utility, to manipulate text and binary files
and to create CGI scripts. The language was later focused on Windows, by
adding hundreds of specialized functions for: network and serial
communication, database interrogation, system service creation, console
applications, keyboard emulation, ISAPI scripting (for IIS). Most of these
additional functions are only available in the Windows flavour of the
interpreter, even though a Linux version is still available.Proteus was
designed to be practical (easy to use, efficient, complete), readable and
consistent.
Its strongest points are:
41
point numbers and strings. Access to advanced data structures (files, arrays,
queues, stacks, AVL trees, sets and so on) takes place by using handles, i.e.
integer numbers returned by item creation functions.
Type declaration is unnecessary: variable type is determined by the
function applied Proteus converts on the fly every variable when needed
42
sorting data;
Basic (Dos like, having just the wildcards "?" and "*").
43
The ISAPI version of Proteus can be used to create scripts run through
Internet Information Services and is equipped with specific functions to
cooperate with the web server.
For intellectual property protection Proteus provides:
script encryption;
The option to enable or disable the execution of a script (or part of it)
by using the key of the customer.
Proteus is appreciated because it is relatively easy to write short,
45
Do not change anything, just follow the default options and click Next until
you see Finish button.
Step 2: Draw the circuit diagram and now click Schematic Capture button,
you will be directed to schematic panel.
FIG 5.14: SCHEMATIC CAPTURE BUTTON
46
47
After placing the components of our circuit we get the below window. We
have placed the PIC16F877A microcontroller, input terminal to the alcohol
odour sensor, input probe to colour sensor, a DC Motor, Display for showing
the voltage of the motor and a LCD display to show its operation. The
control of the speed of the dc motor is represented using the voltage of the
motor. Since, the speed of the motor is directly proportional to the voltage
given. After placing all the components, the final circuit diagram is shown
below.
48
49
same that you did for generating .HEX file. (I compiled my embedded
program with 10MHz; hence I selected 10MHz here).
50
CHAPTER-6
CONCLUSION
This project presents architecture for automatic adaptation of the
longitudinal speed control of a vehicle to the circumstances of the road
which can help to decrease one of the major causes of fatalities: the
excessive or inadequate vehicle speed and also decreases drunken driving
which is also an important cause of fatality. Our approach is based on a
combination of different sensor technologies: The proposed on-board
architecture is portable and easily adaptable to any commercial car with
minimal modifications. By this system, our approach is to control the speed
of vehicle at limiting road area to avoid the accidents. The accidents and
rash driving can be reduced up to 80 % and can save many lives and many
valuable properties. In the empirical trials in our installations, the vehicles
speed was successfully changed as a result of the detection of the signals,
increasing the drivers safety. The technology developed can assist human
drivers in difficult road circumstances. By using this system, it can be
reduced the rash driving within cities, within the regions of school zones,
villages that are located at the highways and beside the highways.
52
REFERENCES:
[1] W.H. Hucho (1998), Aerodynamics of Road Vehicles, ISBN 0-76800029-7, Warrendale PA, Society of Automotive Engineers, ,
142-145
[2] T.D. Gillespia(1992), Fundamentals of Vehicle Dynamics, ISBN 1556091-199-9, Warrendale PA, Society of Automotive
Engineers
[7]
Jersey TIDE
10, pp 121-126.
[11] Scott, C.A., Drane, C.R. (1994). Increased accuracy of motor vehicle
position estimation by utilizing map data, vehicle dynamics
other information sources. Proceedings of the Vehicle
and Information Systems Conferences, pp. 585-
54
590.
and
Navigation
[12] White, C.E., Bernstein, D., and A.L. Kornhauser (2000). Some map
matching
algorithms
for
personal
55
navigation
assistants.