Glare Congressional Report
Glare Congressional Report
Glare Congressional Report
Chapter 1
INTRODUCTION
Transportation has great importance in our daily life and its development has made
many of our chores much easy. But it can cause disaster to us and even can kill us
through accidents. During 2008, Road Traffic Injuries ranked fourth among the leading
causes of death in the world. Nearly 1.3 million people die every year on the world‟s
roads and 20 to 50 million people suffer non-fatal injuries, with many sustaining a
disability as a result of their injury. Road traffic injuries are the leading cause of death
among young people aged 15-29 years and cost countries 1-3% of the gross domestic
product (GDP). If no action is taken, road traffic crashes are predicted to result in the
deaths of around 1.9 million People annually by 2020. A Report on Road Accident in
India published by Transport Research wing recorded at least 4, 80,652 accident in 2016,
leading to 1, 50,785 d deaths. The number suggests that at least 413 people died every
day in 1317 road accident Thus accident detection system using GPS and GSM has
gained attention. This system automatically informs accident to the presaved numbers. In
this system Accelerometer and GPS tracking system are used for accident detection.
When accident occurs, this system sends short message to mobile number via GSM
modem. Message will give longitude and latitude values. From these values location of
accident can be determined. This alert message is sent to the rescue team in a short time,
which will help in saving the valuable lives. A Switch is also provided in order to
terminate the sending of a message in rare case where there is no casualty, this can save
the precious time of the concerned person. The message is sent through the GSM module
and the location of the accident is detected with the help of the GPS module. The accident
can be detected precisely with the help Micro electro mechanical system (MEMS) sensor.
The Angle of the rolls over of the car can also be known by the message through the
MEMS sensor. This application provides the optimum solution to poor emergency
facilities provided to the roads accidents in the most feasible way.
Chapter 2
LITERATURE SURVEY
At present criteria, we cannot detect where the accident has occurred leading to
the delaying time which may results in death of individual. Some of the authors who have
worked on the similar project are as follows
Rathinakumar and Manivannan [1] have seen that the accident occurs due to a
drunken driver and improper use of belt. The main cause of accident is due to the
driver drowsy and tired condition, which will be noticed by the help of eyes
sensor which will not start and also informs the status of the driver to the base
station along with the vehicle ID. Their system includes three modules; automatic
speed control module, accident detection and information sending module and
security enabling module. In case of any accident, the vibration in vibration sensor
increases beyond the limit and information is sent to GSM module, The GSM can
send message to respective authority,Rathinakumar and Manivannan.
Kumar and Jayasree [2] main concentration of this project is to find out the
vehicle which is met with an accident by using MEMS sensor and GPS, GSM
.This system will be placed in a moving vehicle. The ARM controller will poll
GPS module in prefixed intervals and sends the vehicle location information
(Latitude & Longitude) to central station over GSM network .This module
provides information about the accident to the hospital and police station, Kumar
and Jayasree.
Pingle and Ahirrao [3] in this papper tried to save people life from car accidents
by using GSM and GPS model. They designed a system has accuracy which can
detect accidents in significantly less time and sends the location information to
medical center within a fraction of seconds covering the time, geographical
coordinates and angle in which a vehicle accident had occurred. The message is
sent through the Internet Dongle and the location of the accident is detected using
GPS module. When the accident occurs the alert message is sent automatically to
the rescue team and to the police station & family members, Pingle, et al.
Sonika, Sathiyasekar [4] invented a new vivid scheme called Intelligent
Transportation System (ITS). The objective of this scheme is to minimize the
delay caused by traffic congestion and to provide the smooth flow of emergency
vehicles. The concept of the scheme is to green the traffic signal in the path of
ambulance automatically with the help of RF module. The main server finds the
nearest ambulance to the accident zone and sends the exact accident location to
the emergency vehicle. The control unit monitors the ambulance and provides the
shortest path to the ambulance at the same time it controls the traffic light
according to the ambulance location and thus arriving at the hospital safely.,
Sonika, et al.
Prabha, Sunitha [5] are design a project will provide an optimum solution for save
the people lives when they meet with an accident. An accelerometer can be used
in a car alarm application, when a vehicle meets with an accident immediately
Vibration sensor will detect the signal or if a car rolls over, and Micro electro
mechanical system (MEMS) sensor will detects the signal and sends it to ARM
controller. Microcontroller sends the alert message through the GSM MODEM
including the location to police control room or a rescue team. So that police can
immediately trace the location through the GPS MODEM, after receiving the
information. Then after conforming the location necessary action will be taken,
they add a wireless webcam for capturing the images which will help in providing
driver`s assistance, Prabha, et al.
2.1 PROBLEM DEFENATION
According to Save Life Foundation nearly 74% of Indians were unlikely to help
accident victims, weather alone or with other bystanders. Apart from being falsely
implicated people also worried about becoming trapped as a witness in a court
case legal proceeding can be notoriously protracted in India. If they helped the
victims to get into hospitals, they feared coming under pressure to stump up fee
for medical treatment. In some cases victims may meet with minor accident but
lacks communication with others because of damage of their mobile phones.
Considering above works by several authors we have come up with solution to use
arguing instead of microprocessor along with GPS and GSM module. Aurduino
board is built around the at Mega 328 microcontroller.it have been simplified for
the beginners .it also having on board crystal, program loader and GPIO pins .it
also provided with IDE to write code and run it. Also having 14 digital and along
pins which made it is easy to programming
Chapter 3
COMPONENTS USED
In our project we have used both hardware and software components for effective
working of the system.
HARDWARE COMPONENTS
3.1 GSM
In our project we used GSM SIM900A Module. Its working and specification is
as follows
SIM900A Modem is built with Dual Band GSM/GPRS based SIM900A modem
from SIMCOM. It works on frequencies 900/ 1800 MHz. SIM900A can search these two
bands automatically. The frequency bands can also be set by AT Commands. The band
rate is configurable from 1200-115200 through AT command. The GSM/GPRS Modem
is having internal TCP/IP stack to enable you to connect with internet via GPRS.
SPECIFICATION
3.2 GPS
GPS is used in vehicles for both tracking and navigation. Tracking systems
enable a base station to keep track of the vehicles without the intervention of the driver
where, as navigation system helps the driver to reach the destination. Whether navigation
system or tracking system, the architecture is more or less similar. When an accident
occurred in any place then GPS system tracks the position of the vehicle and sends the
information to the particular person through GSM by alerting the person through SMS or
by a call.
GPS satellites circle the Earth twice a day in a precise orbit. Each satellite
transmits a unique signal and orbital parameters that allow GPS devices to decode and
compute the precise location of the satellite. GPS receivers use this information and
trilateration to calculate a user's exact location. Essentially, the GPS receiver measures
the distance to each satellite by the amount of time it takes to receive a transmitted signal.
With distance measurements from a few more satellites, the receiver can determine a
user's position and display it.
To calculate your 2-D position (latitude and longitude) and track movement, a
GPS receiver must be locked on to the signal of at least 3 satellites. With 4 or more
satellites in view, the receiver can determine your 3-D position (latitude, longitude and
altitude). Generally, a GPS receiver will track 8 or more satellites, but that depends on the
time of day and where you are on the earth.
Once your position has been determined, the GPS unit can calculate other information,
such as:
Speed
Bearing
Track
Trip dist
Distance to destination
The NEO-6 module series is a family of stand-alone GPS receivers featuring the
high performance u-blox 6 positioning engine. These flexible and cost effective receivers
offer numerous connectivity options in a miniature 16 x 12.2 x 2.4 mm package. Their
compact architecture and power and memory options make NEO-6 modules ideal for
battery operated mobile devices with very strict cost and space constraints. The 50-
channel u-blox 6 positioning engine boasts a Time-To-First-Fix0 (TTFF) of less than 1
second. The dedicated acquisition engine, with 2 million correlates, is capable of massive
parallel time/frequency space searches, enabling it to find satellites instantly. Innovative
design and technology suppresses jamming sources and mitigates multipath effects,
giving NEO-6 GPS receivers excellent navigation performance even in the most
challenging environments. For more details check the datasheet here
SPECIFICATIONS
1. Supply Voltage: 2.7 to 3.6V
2. Supply current: 67 mA
3. Antenna gain: 50 dB
7. Sensitivity-
PIN DESCRIPTION
Vcc-Supply Voltage
Gnd-Ground pin
TX and RX-These 2 pins acts as an UART interface for communication
First, what goes on inside that little sensor? It is a chip-based technology, known
as a Micro Electro-Mechanical System that is composed of a suspended mass between a
pair of capacitive plates.
When tilt is applied to the sensor, the suspended mass creates a difference in electric
potential which is measured as a change in capacitance. That signal is then amplified to
produce a stable output signal in digital, 4-20mA or VDC.
These sensors are fine solutions to applications that do not demand the highest
accuracy such as industrial automation, platform levelling, position control and pitch and
roll measurement. Since they are low cost, the project will be economical.
The greatest resolution you can get with a MEMS inclinometer is 0.0005° (DMP
series). That‟s a different story from the highly accurate electrolytic line whose most
sensitive tilt meter (LILY borehole tilt meter) boasts a 0.005 µrad resolution. However,
MEMS has some advantages of its own.
A MEMS sensor provides the convenient features that you can get with any other
sensor line such as analog voltage, current and digital output options. You don‟t need to
concern yourself with space constraints as MEMS utilizes very compact micro machine
components so that each sensor can fit into the palm of your hand. They have an IP67 seal
and since the operating temperature range is -40° to +85°C, they will withstand some
intense conditions. While electrolytic sensors have much higher accuracy, some of them
can be sensitive to temperature.
SPECIFICATION
A jump wire (also known as jumper, jumper wire, jumper cable, DuPont wire, or
DuPont cable – named for one manufacturer of them) is an electrical wire, or group of
them in a cable, with a connector or pin at each end (or sometimes without them – simply
"tinned"), which is normally used to interconnect the components of a breadboard or
other prototype or test circuit, internally or with other equipment or components, without
soldering.
Individual jump wires are fitted by inserting their "end connectors" into the slots
provided in a breadboard, the header connector of a circuit board, or a piece of test
equipment.
3.5 BUZZER
include alarm devices, timers, and confirmation of user input such as a mouse click or
keystroke.
Piezo buzzers are used for making beeps alarms and tones. They can be used in
alarm systems, for keypad feedback, or some games. Light weight, simple construction
and low price make it usable in various applications like car/truck reversing indicator,
computers, call bells etc. Also they are fun to play around with.
SPECIFICATION
Microcontroller ATmega328
Operating Voltage 5V
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
POWER
The Arduino Uno can be powered via the USB connection or with an external
power supply. The power source is selected automatically.
External (non-USB) power can come either from an AC-to-DC adapter (wall-
wart) or battery. The adapter can be connected by plugging a 2.1mm centre-positive plug
into the board's power jack. Leads from a battery can be inserted in the Gnd and Vin pin
headers of the POWER connector.
The board can operate on an external supply of 6 to 20 volts. If supplied with less
than 7V, however, the 5V pin may supply less than five volts and the board may be
unstable. If using more than 12V, the voltage regulator may overheat and damage the
board. The recommended range is 7 to 12 volts.
VIN. The input voltage to the Arduino board when it's using an external power
source (as opposed to 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.
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.
3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current
draw is 50 mA.
GND. Ground pins.
MEMORY
The ATmega328 has 32 KB (with 0.5 KB used for the boot loader). It also has 2
KB of SRAM and 1 KB of EEPROM (which can be read and written with the EEPROM
library).
Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial
data. These pins are connected to the corresponding pins of the ATmega8U2
USB-to-TTL Serial chip.
External Interrupts: 2 and 3. These pins can be configured to trigger an interrupt
on a low value, a rising or falling edge, or a change in value. See the attach
Interrupt () function for details.
PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite ()
function.
SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI
communication using the SPI library.
LED: 13. There is a built-in LED connected to digital pin 13. When the pin is
HIGH value, the LED is on, when the pin is LOW, it's off.
The Uno has 6 analog inputs, labelled A0 through A5, 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
the analogReference () function.
TWI: A4 or SDA pin and A5 or SCL pin. Support TWI communication using the Wire
library.
AREF. Reference voltage for the analog inputs. Used with analogReference ().
Reset. Bring this line LOW to reset the microcontroller. Typically used to add a reset
button to shields which block the one on the board.
Rather than requiring a physical press of the reset button before an upload, the
Arduino Uno is designed in a way that allows it to be reset by software running on a
connected computer. One of the hardware flow control lines (DTR) of
theATmega8U2/16U2 is connected to the reset line of the ATmega328 via a 100
nanofarad capacitor. When this line is asserted (taken low), the reset line drops long
enough to reset the chip. The Arduino software uses this capability to allow you to upload
code by simply pressing the upload button in the Arduino environment. This means that
the boot loader can have a shorter timeout, as the lowering of DTR can be well-
coordinated with the start of the upload.
This setup has other implications. When the Uno is connected to either a computer
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 boot loader is running on the Uno.
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 Uno 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 labelled "RESET-EN".
You may also be able to disable the auto-reset by connecting a 110 ohm resistor from 5V
to the reset line; see this forum thread for details.
COMMUNICATION
The Arduino Uno has a number of facilities for communicating with a computer,
another Arduino, or other microcontrollers. The ATmega328 provides UART TTL (5V)
serial communication, which is available on digital pins 0 (RX) and 1 (TX). An
ATmega16U2 on the board channels this serial communication over USB and appears as
a virtual com port to software on the computer. The '16U2 firmware uses the standard
USB COM drivers, and no external driver is needed. However, on Windows, a .inf file is
required. The Arduino software includes a serial monitor which allows simple textual
data to be sent to and from the Arduino board. The RX and TX LEDs on the board will
flash when data is being transmitted via the USB-to-serial chip and USB connection to
the computer (but not for serial communication on pins 0 and 1).
PHYSICAL CHARACTERISTICS
The maximum length and width of the Uno PCB are 2.7 and 2.1 inches
respectively, with the USB connector and power jack extending beyond the former
dimension. Four screw holes allow the board to be attached to a surface or case. Note that
the distance between digital pins 7 and 8 is 160 mil (0.16"), not an even multiple of the
100 mil spacing of the other pins.
SOFTWARE COMPONENTS
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 tool chain, 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.
SKETCH
A program written with the Arduino IDE is called a sketch. Sketches are saved on
the development computer as text files with the file extension.ino. Arduino Software
(IDE) pre-1.0 saved sketches with the extension.pde.
setup (): This function is called once when a sketch starts after power-up or reset.
It is used to initialize variables, input and output pin modes, and other libraries
needed in the sketch.
loop (): After setup () has been called, function loop() is executed repeatedly in
the main program. It controls the board until the board is powered off or is reset.
#include <Wire.h>
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
const int buzzerPin = 8;
int flag = 0;
static const int RXPin = 4, TXPin = 3;
static const uint32_t GPSBaud = 9600;
void setup() {
Serial.begin(9600);
mySerial.begin(9600);
ss.begin(GPSBaud);
pinMode(buzzerPin, OUTPUT);
Wire.begin();
Wire.beginTransmission(MPU_addr);
Wire.write(0x6B);
Wire.write(0);
Wire.endTransmission(true);
}
void loop() {
while (ss.available() > 0){
gps.encode(ss.read());
if (gps.location.isUpdated()){
D.O.S IN MECH ENGINEERING, UBDTCE Page 18
Accident detection system
Serial.print("Latitude= ");
Serial.print(gps.location.lat(), 6);
delay(10000);
Serial.print(" Longitude= ");
Serial.println(gps.location.lng(), 6);
delay(5000);
go();
}
}
void go(){
Serial.print("WElcome");
Wire.beginTransmission(MPU_addr);
Wire.write(0x3B);
Wire.endTransmission(false);
Wire.requestFrom(MPU_addr,14,true);
AcX=Wire.read()<<8|Wire.read();
AcY=Wire.read()<<8|Wire.read();
AcZ=Wire.read()<<8|Wire.read();
int xAng = map(AcX,minVal,maxVal,-90,90);
int yAng = map(AcY,minVal,maxVal,-90,90);
int zAng = map(AcZ,minVal,maxVal,-90,90);
i=i+1;
}
if(x1<=x){
hello();
delay(7000);
DialCall();
flag=1;
}
}
}
}
void hello(){
Serial.print("hello msg");
double latitude,longitude;
delay(1000);
mySerial.print("Your friend met with an aciident or fall down :");
mySerial.print(" to see the location click below link ");
mySerial.print("http://www.google.com/maps/place");
mySerial.print("/");
mySerial.print(gps.location.lat(),6);// The SMS text you want to send
mySerial.print(",");
mySerial.print(gps.location.lng(),6);
mySerial.println((char)26);
delay(5000);
delay(1000);
mySerial.print("Your friend met with an aciident or fall down :");
mySerial.print(" to see the location click below link ");
mySerial.print("http://www.google.com/maps/place");
mySerial.print("/");
mySerial.print(gps.location.lat(),6);// The SMS text you want to send
mySerial.print(",");
mySerial.print(gps.location.lng(),6);
delay(100);
delay(3000);
}
void DialCall()
delay(100);
Chapter 4
WORKING
In this project, Arduino is used for controlling whole the process with a GPS
Receiver and GSM module. GPS Receiver is used for detecting coordinates of the
vehicle, GSM module is used for sending the alert SMS with the coordinates and the link
to Google Map. Accelerometer namely ADXL335 is used for detecting accident or
sudden change in any axis. And an optional 16x2 LCD is also used for displaying status
messages or coordinates. We have used GPS Module SIM28ML and GSM Module
SIM900A.
When we are ready with our hardware after programming, we can install it in our
vehicle and power it up. Now whenever there is an accident, the car gets tilt and
accelerometer changes his axis values. These values read by Arduino and checks if any
change occurs in any axis. If any change occurs then Arduino reads coordinates by
extracting $GPGGA String from GPS module data (GPS working explained above) and
send SMS to the predefined number to the police or ambulance or family member with
the location coordinates of accident place. The message also contains a Google Map link
to the accident location, so that location can be easily tracked. When we receive the
message then we only need to click the link and we will redirect to the Google map and
then we can see the exact location of the vehicle.
CHAPTER 5
CIRCUIT EXPLANATION
Circuit Connections of this Vehicle Accident Alert System Project is simple. Here
Tx pin of GPS module is directly connected to digital pin number 10 of Arduino. By
using Software Serial Library here, we have allowed serial communication on pin 10 and
11, and made them Rx and Tx respectively and left the Rx pin of GPS Module open. By
default Pin 0 and 1 of Arduino are used for serial communication but by using the
Software Serial library, we can allow serial communication on other digital pins of the
Arduino. 12 Volt supply is used to power the GPS Module.
An Accelerometer is added in this system for detecting an accident and its x,y, and
z-axis ADC output pins are directly connected to Arduino ADC pin A1, A2, and A3.
3. Jumper Wire
4. Power adapter 5V
5. SIM card
4. Now wait for some time (say 1 minute) and see the blinking rate of „status LED‟ or
„network LED‟ (D6, refer picture 5) //GSM module will take some time to establish
connection with mobile network//
5. Once the connection is established successfully, the status/network LED will blink
continuously every 3 seconds. You may try making a call to the mobile number of the sim
card inside GSM module. If you hear a ring back, the GSM module has successfully
established network connection.
You can see a TTL pin with 3VR, 3VT, 5Vr, 5VT, VCC and GND on your sim900a near
your power supply pin. You have to connect GSM's 5VT to Arduino D9 and GSM's 5VR
to Arduino's D10 for serial communication between arduino and sim900a module.
mySerial.println ("AT+CMGF=1");
mySerial.println("ATD+60XXXXXXXXX;");
mySerial.println("ATH");
5. To redial: ATDL
mySerial.println ("ATDL");
mySerial.println ("ATA");
STEP 5: LIBRARY
HARDWARE CONNECTIONS
The connections are made as follows
Vcc to 3.3V
Gnd to Gnd
TX to Digital pin 11
RX to Digital pin 10
5.3 INTERFACING BUZZER WITH ARDUINO UNO
A Piezo Buzzer.
Arduino Uno.
Resistor 100ohm.
Jumper Wires.
Connect the Supply wire (RED) of the buzzer to the Digital Pin 9 of the Arduino through
a 100 ohm resistor.
Connect the Ground wire (BLACK) of the buzzer to any Ground Pin on the Arduino.
COST ANALYSIS
CHAPTER 6
CONCLUSION
This project presents vehicle accident detection and alert system with SMS to the
user defined mobile numbers. The GPS tracking and GSM alert based algorithm is
designed and implemented with LPC2148 MCU in embedded system domain. The
proposed Vehicle accident detection system can track geographical information
automatically and sends an alert SMS regarding accident. Experimental work has been
carried out carefully. The result shows that higher sensitivity and accuracy is indeed
achieved using this project. EEPROM is interfaced to store the mobile numbers
permanently. This made the project more user-friendly and reliable. The proposed method
is verified to be highly beneficial for the automotive industry.
We may add some modules which will also let the system know about the traffic
details and then find out which node will take less time to reach from the accident spot.
Another thing which we may add is “first aid kit” for emergency medical treatment at the
scene itself. We can also add some modules which will measure the injuries level or some
additional information like blood group, heart beats, current glucose level which may be
send to the hospitals in advance before the victims reaches the hospitals hence improvise
the performance of the proposed system. We can also implement webcam for this system
for capturing the images which will help in providing drivers assistance
REFERANCES
[2] R. Kumar and K. Jayasree, "GSM & GPS Integrated With ARM Based Event Data
Recorder for Accident Detection," IJSEAT, vol. 2, pp. 468-473, 2014.
[5] C. Prabha, R. Sunitha, and R. Anitha, "Automatic vehicle accident detection and
messaging system using GSM and GPS modem," International Journal of Advanced
Research in Electrical, Electronics and Instrumentation Engineering, vol. 3, pp. 10723-
10727, 2014.