Professional Documents
Culture Documents
Mini Project Vasudevan
Mini Project Vasudevan
SUBMITTED BY
BACHELOR OF ENGINEERING
in
APRIL 2018
1
SRI KRISHNA COLLEGE OF ENGINEERING AND TECHNOLOGY
(An Autonomous Institution)
BONAFIDE CERTIFICATE
Certified that this project report “ACCIDENT DETECTION AND ALERT
-SYSTEM” is the bonafide work of AVINASH P (16EUEC019), BHARATH KB
(16EUEC021), GOKUL KUMAR P (16EUEC034), SHAN FAR BASHA J
(17EUEC525), who carried out the Project work under my supervision.
SIGNATURE SIGNATURE
Dr. S SOPHIA Ph.d., Mrs. NANTHINI M.E.
HEAD OF THE DEPARTMENT ASSISTANT PROFESSOR
DEPARTMENT OF ELECTRONICS AND DEPARTMENT OF ELECTRONICS AND
COMMUNICATION ENGINEERING COMMUNICATION ENGINEERING
SRI KRISHNA COLLEGE OF ENGINEERING SRI KRISHNA COLLEGE OF ENGINEERING
AND TECHNOLOGY AND TECHNOLOGY
KUNIYAMUTHUR KUNIYAMUTHUR
COIMBATORE – 641008 COIMBATORE - 641008
2
INTERNAL EXAMINER EXTERNAL EXAMINER
ABSTRACT
Initially the GPS continuously takes input data from the satellite and stores the
latitude and longitude values in Arduino. If we have to track the vehicle, we need to send a
message to GSM device, by which it gets activated. It also gets activated by detecting
accident on the Vibration Sensor connected to vehicle. Parallely deactivates GPS with the
help of relay .Once GSM gets activated it takes the last received latitude and longitude
positions values from the arduino and sends a message to the particular number or laptop
which is predefined in the program. Once message has been sent to the predefined device
the GSM gets deactivated and GPS gets activated.
3
TABLE OF CONTENTS
ABSTRACT 3
LIST OF FIGURES 6
1 INTRODUCTION 7
1.4 Atmega 9
1.5 GSM 10
2 PROPOSED SYSTEM 11
4 HARDWARE DESCRIPTION 16
4
4.1 ATmega 328p 16
4.1.1 Features 16
4.1.2.2 Memory 19
4.1.3 Communication 20
4.1.4 Programming 21
4.3 GSM 25
4.4 GPS 28
5 SOFTWARE DESCRIPTION 30
6 HARDWARE PHTOTGRAPHY 34
7 RESULT 35
8 CONCLUSION 36
5
LIST OF FIGURES
4.8 GPS 28
6
CHAPTER 1
INTRODUCTION
Vehicle tracking system main aim is to give Security to all vehicles. Accident alert
system main aim is to rescuing people in accidents. This is improved security systems for
vehicles. The latest like GPS are highly useful now a days, this system enables the owner to
observe and track his vehicle and find out vehicle movement and its past activities of
vehicle.
This new technology, popularly called vehicle Tracking Systems which created many
wonders in the security of the vehicle. This hardware is fitted on to the vehicle in such a
manner that it is not visible to anyone who is inside or outside of the vehicle. Thus it is used
as a covert unit which continuously or by any interrupt to the system, sends the location
data to the monitoring unit. 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.
7
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 take 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.
This system is based on new technology, its main purpose is to detect an accident
and alert to the control room, so the victim can find some help. It can detect accidents the
intensity of the accident without any visuali contact from control room. If this system is
inserted in every vehicle then it is easy to understand how many vehicles are involved in a
particular accident and how intense is it. So that the help from control room will be
according to the control room. The present board designed has both vehicle tracking and
accident alert systems, which make it more valuable and useful. This board alerts us from
theft and on accident detection also. This device detects fire accidents also by placing fire
detector in one of the interrupt pins.
8
police if this system is located in every vehicle they can estimate the traffic by looking
on the map and if any accident is detected then they can route the traffic in to another way.
This is how tracking is useful because India is one of busy traffic countries and this system
can control many of the traffic problems.
1.4 ATMEGA
The Arduino UNO is a widely used open-source microcontroller board based
on the Atmega328P microcontroller and developed by Arduino.cc. The board is equipped
with sets of digital and analog input/output (I/O) pins that may be interfaced to various
expansion boards (shields) and other circuits. The board features 14 Digital pins and 6
Analog pins. It is programmable with the Arduino IDE (Integrated Development
Environment) via a type B USB cable. It can be powered by a USB cable or by an external
9
9 volt battery, though it accepts voltages between 7 and 20 volts. It is also similar to the
Arduino Nano and Leonardo. Layout and production files for some versions of the
hardware are also available. “Uno” means one in Italian and was chosen to mark the release
of Arduino Software (IDE) 1.0. The Uno board and version 1.0 of Arduino Software (IDE)
were the reference versions of Arduino, now evolved to newer releases. The Uno board is
the first in a series of USB Arduino boards, and the reference model for the Arduino
platform. The Atmega328 on the Arduino Uno comes preprogrammed with a boot loader
that allows to upload new code to it without the use of an external hardware
programmer. The Uno also differs from all preceding boards in that it does not use the
FTDI USB-to-serial driver chip. Instead, it features the Atmega16U2 (Atmega8U2 up to
version R2) programmed as a USB-to-serial converter. The Arduino UNO is generally
considered the most user-friendly and popular board.
1.5 GSM
A GSM modem is a specialized type of modem which accepts a SIM card, and operates
over a subscription to a mobile operator, just like a mobile phone. From the mobile operator
perspective, a GSM modem looks just like a mobile phone. A GSM modem exposes an
interface that allows applications such as Now SMS to send and receive messages over the
modem interface. The mobile operator charges for this message sending and receiving as if
it was performed directly on a mobile phone. To perform these tasks, a GSM modem must
support an “extended AT command set” for sending/receiving SMS messages, as defined in
the ETSI GSM 07.05 and 3GPP TS 27.005 specifications.
10
CHAPTER 2
PROPOSED SYSTEM
11
2.3 BLOCK DIAGRAM
This is the block diagram of vehicle tracking and accident alert system. This
shows the overall view of the vehicle tracking and accident alert system circuit. The blocks
connected here are LCD display, GPS, GSM, Vibration Sensor, Power supply.
POWER
SUPPLY
Vibration LCD
Sensor 16X2
ARDUINO
GPS UNO
GSM SMS
12
CHAPTER 3
WORKING OF THE SYSTEM
This vehicle tracking system takes input from GPS and send it through the GSM module
to desired mobile/laptop using mobile communication. Vehicle Tracking System is one of
the biggest technological advancements to track the activities of the vehicle. The security
system uses Global Positioning System GPS, to find the location of the monitored or
tracked vehicle and then uses satellite or radio systems to send to send the coordinates and
the location data to the monitoring center. At monitoring center various software’s are used
to plot the Vehicle on a map. In this way the Vehicle owners are able to track their vehicle
on a real-time basis. Due to real-time tracking facility, vehicle tracking systems are
becoming increasingly popular among owners of expensive vehicles.
13
3.2 VIBRATION SENSOR INTEGRATION
It is integrated in the circuit system by connecting all the sensors to arduino whose
output is connected to the int pin of microcontroller. These sensors are connected in such a
way that they detect force impact occurring from any side of the car. This is concerned to
the safety of the system of the human driving the car so that once accident is detected the
paramedics can reach to the location as soon as they can.
14
Figure 3.2 Sensors position in vehicle
15
3.3 VEHICLE TRACKING SYSTEM WORKING
This system takes input from GPS and which goes into rs232. This Rs232 sends data
into max232 and it converts the data format and sends it to the Rx (receiver pin) of
microcontroller and this microcontroller stores this data in USART buffer and the data
stored is sent again through Tx pin into max232 this max 232 sends the data into GSM via
rs232. This is how vehicle tracking works using GSM and GPS. The lcd interfaced to the
microcontroller also shows the display of the coordinates. This lcd display is only used to
know the working condition of the vehicle tracking system.
16
CHAPTER 4
HARDWARE DESCRIPTION
Microcontroller Atmega328p
Operating voltage::1.8-5.5 V
CPU type:8-bit AVR
Performance:20 MIPS at 20 MHz
Flash memory: 32 kB
SRAM: 2 kB
EEPROM:1 kB
Pin count : 28-pin PDIP, MLF, 32-pin TQFP, MLF
Maximum operating frequency : 20 MHz
Number of touch channels: 16
Hardware Qtouch Acquisition: No
Maximum I/O pins: 23
17
External interrupts: 2
USB Interface:Yes
18
Figure 4.1 : Overview of the Arduino Atmega328p
19
4.1.2.1 Power pins
1) VIN : The input voltage to the Arduino board when it’s using an external power source
(as opposed to be 5 volts from the USB connection or other regulated power source). You
can supply voltage through this pin, or, if
supplying voltage via the power jack, access it through this pin.
2) 5V : The regulated power supply used to power the microcontroller and other
components on the board. This can come either from VIN via an on-board regulator, or be
supplied by USB or another regulated 5V supply.
3) 3.3V: A 3.3 volt supply generated by the on-board regulator. Maximum current drawn is
50 mA.
4) GND : Ground pin
4.1.2.2 Memory
The Atmega328p has 32 KB of flash memory for storing code (of which 8 KB is used
for the bootloader), 2 KB of SRAM and 1 KB of EEPROM (which can be read and written
with the EEPROM library).
20
External Interrupts: 2 (interrupt 0), 3 (interrupt 1), 18 (interrupt 5), 19
(interrupt 4), 20 (interrupt 3), and 21(interrupt 2). These pins can be configured
to trigger an interrupt on a low value, a rising or falling edge, or a change in value.
PWM: 0 to 13. Provide 8-bit PWM output with the analogWrite() function.
SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS). These pins support SPI
communication, which, although provided by the underlying hardware, is not
currently included in the Arduino language. The SPI pins are also
broken out on the ICSP header, which is physically compatible with the Duemilanove
and Diecimila.
LED: 13. There is a built-in LED connected to digital pin 13. When the pin is in
HIGH value, the LED is on, when the pin is LOW, it’s off.
I2C: 20 (SDA) and 21 (SCL). Support I2C (TWI) communication using the Wire
library. Note that these pins are not in the same location as the I2C pins on the
Duemilanove. The Mega328p has 6 analog inputs, each of which provide 10 bits of
resolution (i.e. 1024 different values). By default they measure from ground to 5
volts, though is it possible to change the upper end of their range using the AREF pin
and
analogReference() function.
There are a couple of other pins on the board:
AREF. Reference voltage for the analog inputs. Used with analogReference().
Reset. Bring this line LOW to reset the microcontroller.
4.1.3 COMMUNICATION
The Arduino Mega328p has a number of facilities for communicating with a
computer, another Arduino, or other microcontrollers. The Atmega328p provides four
hardware UARTs for TTL (5V) serial communication.
21
An Atmega328 on the board channels one of these over USB and provides a virtual com
port to software on the computer (Windows machines will need a .inf file, but OSX and
Linux machines will recognize the board as a COM port automatically). The Arduino
software includes a serial monitor which allows simple textual data to be sent to and from
the board. The RX and TX LEDs on the board will flash when data is being transmitted via
the Atmega328chip and USB connection to the computer (but not for serial communication
on pins 0 and 1).A SoftwareSerial library allows for serial communication on any of the
Mega’s digital pins. The Atmega328 also supports I2C (TWI) and SPI communication.
4.1.4 PROGRAMMING
The Arduino Mega328 can be programmed with the Arduino software
The Atmega328 on the Arduino Mega comes preburned with a bootloader that allows you
to upload new code to it without the use of an external hardware programmer. It
communicates using the original STK500 protocol (reference, C header files).You can also
bypass the bootloader and program the microcontroller through the ICSP (In-Circuit Serial
Programming) header.
22
running Mac OS X or Linux, it resets each time a connection is made to it from software
(via USB). For the following half-second or so, the bootloader is running on the Meg328.
While it is programmed to ignore malformed data (i.e. anything besides an upload of new
code), it will intercept the first few bytes of data sent to the board after a connection is
opened. If a sketch running on the board receives one-time configuration or other data when
it first starts, make sure that the software with which it communicates waits a second after
opening the connection and before sending this data.
The Mega contains a trace that can be cut to disable the auto-reset. The pads on either
side of the trace can be soldered together to re-enable it. It’s abeled “RESET-EN”. You
may also be able to disable the auto-reset by connecting a 110 ohm resistor from 5V to the
reset line.
The Arduino UNO has a resettable polyfuse that protects your computer’s USB ports
from shorts and overcurrent. Although most computers provide their own internal
protection, the fuse provides an extra layer of protection. If more than 500 mA is applied to
the USB port, the fuse will automatically break the connection until the short or
overload is removed.
Liquid crystal displays (LCDs) have materials which combine the properties of
both liquids and crystals. Rather than having a melting point, they have a temperature range
within which the molecules are almost as mobile as they would be in a liquid, but are
grouped together in an ordered form similar to a crystal.
23
Figure 4.4 LCD display
An LCD consists of two glass panels, with the liquid crystal material sand witched in
between them. The inner surface of the glass- plates are coated with transparent electrodes
which define the character, symbols or patterns to be displayed polymeric layers are present
in between the electrodes and the liquid crystal, which makes the liquid crystal molecules to
maintain a defined orientation angle.
One each polarisers are pasted outside the two glass panels. These
polarisers would rotate the light rays passing through them to a definite angle, in a
particular direction.
When the LCD is in the off state, light rays are rotated by the two
polarisers and the liquid crystal, such that the light rays come out of the LCD without any
orientation, and hence the LCD appears transparent.
When sufficient voltage is applied to the electrodes, the liquid crystal molecules
would be aligned in a specific direction. The light rays passing through the LCD would be
rotated by the polarisers, which would result in activating / highlighting the desired
characters.
24
figure 4.5 Pin Diagram of LCD display
The LCD’s are lightweight with only a few millimeters thickness. Since the
LCD’s consume less power, they are compatible with low power electronic circuits, and can
be powered for long durations.The LCD’s don’t generate light and so light is needed to read
the display. By using backlighting, reading is possible in the dark. The LCD’s have long life
and a wide operating temperature range. Changing the display size or the layout size is
relatively simple which makes the LCD’s more customer friendly. The LCDs used
exclusively in watches, calculators and measuring instruments are the simple seven-
segment displays, having a limited amount of numeric data. The recent advances in
technology have resulted in better legibility, more information displaying capability and a
wider temperature range. These have resulted in the LCDs being extensively used in
telecommunications and entertainment electronics. The LCDs have even started replacing
the cathode ray tubes (CRTs) used for the display of text and graphics, and also in small TV
applications.
25
4.3 GSM
A GSM modem is a specialized type of modem which accepts a SIM card, and
operates over a subscription to a mobile operator, just like a mobile phone. From the mobile
operator perspective, a GSM modem looks just like a mobile phone.
For the purpose of this document, the term GSM modem is used as a generic term
to refer to any modem that supports one or more of the protocols in the GSM evolutionary
family, including the 2.5G technologies GPRS and EDGE, as well as the 3G technologies
WCDMA, UMTS, HSDPA and HSUPA.
A GSM modem exposes an interface that allows applications such as Now SMS
to send and receive messages over the modem interface. The mobile operator charges for
this message sending and receiving as if it was performed directly on a mobile phone. To
perform these tasks, a GSM modem must support an “extended AT command set” for
sending/receiving SMS messages, as defined in the ETSI GSM 07.05 and 3GPP TS 27.005
specifications.
26
GSM modems can be a quick and efficient way to get started with SMS, because a
special subscription to an SMS service provider is not required. In most parts of the world,
GSM modems are a cost effective solution for receiving SMS messages, because the sender
is paying for the message delivery.
A GSM modem can be a dedicated modem device with a serial, USB or Bluetooth
connection, such as the Falcom Samba 75 used in this document. (Other manufacturers of
dedicated GSM modem devices include Wavecom, Multitech and iTegno.) To begin, insert
a GSM SIM card into the modem and connect it to an available USB port on your
computer.
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. Any
phone that supports the “extended AT command set” for sending/receiving SMS messages,
as defined in ETSI GSM 07.05 and/or 3GPP TS 27.005, can be supported by the Now SMS
& MMS Gateway. Note that not all mobile phones support this modem interface.
Due to some compatibility issues that can exist with mobile phones, using a
dedicated GSM modem is usually preferable to a GSM mobile phone. This is more of an
issue with MMS messaging, where if you wish to be able to receive inbound MMS
messages with the gateway, the modem interface on most GSM phones will only allow you
to send MMS messages. This is because the mobile phone automatically processes received
MMS message notifications without forwarding them via the modem interface.
It should also be noted that not all phones support the modem interface for
sending and receiving SMS messages. In particular, most smart phones, including
Blackberries, iPhone, and Windows Mobile devices, do not support this GSM modem
interface for sending and receiving SMS messages at all at all. Additionally, Nokia phones
that use the S60 (Series 60) interface, which is Symbian based, only support sending SMS
27
messages via the modem interface, and do not support receiving SMS via the modem
interface.
When you install your GSM modem, or connect your GSM mobile phone to the
computer, be sure to install the appropriate Windows modem driver from the device
manufacturer. To simplify configuration, the Now SMS & MMS Gateway will
communicate with the device via this driver. If a Windows driver is not available for your
modem, you can use either the “Standard” or “Generic” 33600 bps modem driver that is
built into windows. A benefit of utilizing a Windows modem driver is that you can use
Windows diagnostics to ensure that the modem is communicating properly with the
computer.
28
4.4 GPS
The Now SMS & MMS gateway can simultaneously support multiple modems,
provided that your computer hardware has the available communications port resources.
GPS abbreviates Global Positioning System and this is used to detect the latitude and
longitude of the particular position and it also shows the exact time. It detects these values
anywhere on the earth. In our project it plays main role and it is the main source of the
latitude and longitude of the vehicle to know the accident occurred location, or even for
theft tracking of the vehicle. This gadget gets the coordinates from the satellite for each and
every second. This device is the main component of vehicle tracking project.
29
4.5 VIBRATION SENSOR
Sensor integration It is integrated in the circuit system by connecting all the sensors to
or gate whose output is connected to the int pin of microcontroller. These sensors are
connected in such a way that they detect force impact occurring from any side of the car.
This is concerned to the safety of the system of the human driving the car so that once
accident is detected the paramedics can reach to the location as soon as they can.
CHAPTER 5
30
SOFTWARE DESCRIPTION
31
Many new items have been added to the Control Panel, including Clear Type Text
Tuner, Display Color Calibration Wizard, Gadgets, Recovery, Troubleshooting,
Workspaces Center, Location and Other Sensors, Credential Manager, Biometric
Devices, System Icons, and Display.
The Windows Security Center has been renamed to Windows Action Center
(Windows Health Center and Windows Solution Center in earlier builds), which
encompasses both security and maintenance of the computer. Ready boost on 32bit
editions now supports up to 256 Gigabytes of extra allocation.
The default setting for User Account Control in Windows 7 has been criticized for
allowing untrusted software to be launched with elevated privileges without a prompt
by exploiting a trusted application. Microsoft’s Windows kernel engineer Mark
Russinovich acknowledged the problem, but noted that malware can also compromise a
system when the users agree to a prompt. Windows 7 also supports images in the RAW
image format through the addition of Windows Imaging Component-enabled image
decoders, which enables raw image thumbnails, previewing and metadata display in
Windows Explorer, plus full-size viewing and slideshows in Windows Photo Viewer
and Windows Media Center.
Arduino is an open source computer hardware and software company, project, and user
community that designs and manufactures single-board microcontrollers and
microcontroller kits for building digital devices and interactive objects that can sense and
control objects in the physical and digital world. The project’s products are distributed as
open-source hardware and software, which are licensed under the GNU Lesser General
Public License (LGPL) or the GNU General Public License (GPL), permitting the
32
manufacture of Arduino boards and software distribution by anyone. Arduino boards are
available commercially in preassembled form, or as do-it-yourself (DIY) kits.
Arduino board designs use a variety of microprocessors and controllers. The boards are
equipped with sets of digital and analog input/output (I/O) pins that may be interfaced to
various expansion boards or Breadboards (shields) and other circuits. The boards feature
serial communications interfaces, including Universal Serial Bus (USB) on some models,
which are also used for loading programs from personal computers. The microcontrollers
are typically programmed using a dialect of features from the programming languages C
and C++. In addition to using traditional compiler toolchains, the Arduino project provides
an integrated development environment (IDE) based on the Processing language project.
33
The Arduino IDE supports the languages C and C++ using special rules of code structuring.
The Arduino IDE supplies a software library from the Wiring project, which provides many
common input and output procedures. User-written code only requires two basic functions,
for starting the sketch and the main program loop, that are compiled and linked with a
program stub main() into an executable cyclic executive program with the GNU toolchain,
also included with the IDE distribution. The Arduino IDE employs the program avrdude to
convert the executable code into a text file in hexadecimal encoding that is loaded into the
Arduino board by a loader program in the board’s firmware.
34
CHAPTER 6
HARDWARE PHOTOGRAPHY
35
CHAPTER 7
RESULT
“Accident alert
latitude: 2400.0090,
N longitude: 12100.0000,
E time: 12:00”
This system shows the location of vehicle on the lcd connected to it also just to make
sure the working condition of the Arduino
36
Figure 7.2 Arduino output
38
CHAPTER 8
CONCLUSION
In the proposed project embedded system technique is incorporated for accident alert
system. We have detected the latitude and longitude of the accident area and the
information is sent to computer or mobile through GSM module. In the proposed project
whenever accident occurs in vehicle then the device send message to given mobile device.
This system shows the location of vehicle on the LCD display connected to it just to make
sure the working condition of the microcontroller. The results obtained found to be more
appropriate and the operator can send the nearest ambulance driver to the spot immediately
inorder to save life. Even though the chance of saving the person is complex there is slight
chance where we can save life of a person with this project.
39
REFERENCE
[2] Erik Savasgard, “Arduino For Beginners How to get started with your arduino,
including Arduino basics, Arduino tips and tricks, Arduino projects and more!
[3] Jack Purdum, Ph.D.,”Beginning C for Arduino”, 2nd Edition: Learn C Programming for
the Arduino
[4] DANIEL .W.LEWIS “Fundamental of embedded software “prentice
Hall of India, 2004
[5] WILLIAM STALLING “Wireless communication and Networks”, 2nd edition, 2005
prentice hall of India
40