Professional Documents
Culture Documents
OF
COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY
DEPARTMENT OF ELECTRONICS AND COMMUNICATION COLLEGE OF ENGINEERING, POONJAR KOTTAYAM 686 582
ABSTRACT
An accident information system is an electronic device installed in a vehicle to enable the owner or a third party to track the vehicle's location when an accident has occurred. Most systems use Global Positioning System (GPS) modules for accurate location of the vehicle. This system has a communication component (GSM) to communicate with the vehicles location to a remote user. Vehicle information can be viewed on Google maps via specialized software. This system uses a transducer (accelerometer) which converts the mechanical stress to electrical energy. If the value from the accelerometer exceeds the threshold value, then the system will inform the third party about the accident and also send him the latitude and longitude information through GSM. This system also has aloud alarm that makes it easier for police or ambulance to track the vehicle location.
CONTENTS
1. 2. 3. 4. INTRODUCTION MAIN OBJECTIVES PROJECT DESIGN HARDWARE SECTION 4.1 BLOCK DIAGRAM 4.2BLOCK LEVEL EXPLANATION 4.3 CIRCUIT DIAGRAM 4.4 CIRCUIT EXPLANATION 4.5 4.6 5. CIRCUIT COMPONENTS PCB LAYOUT 8 10 23 5 1 2 3
6. ADVANTAGES AND DISADVANTAGES 7. 8. 9. RESULTS AND DISCUSSIONS BIBLIOGRAPHY CONCLUSION AND FUTURE SCOPE
LIST OF FIGURES
Block Diagram Circuit Diagram Pin out of MAX232 Logic diagram of MAX232 GPS PCB Layout Flow chart
4 7 18 20 21 23 24
1. INTRODUCTION
Traffic safety plays a key and integral role in a sustainable transportation development strategy. The main negative impact of modern road transportation systems today is injury and loss of life as a result of road accidents. The success of traffic safety and highway improvement programs hinges on the analysis of accurate and reliable traffic accident data While of the road accident situation is slowly improving in the high income industrialized countries, most developing countries such as India, face a worsening situation . With the number of vehicles on the road growing rapidly, more road conflicts develop traffic accidents. Most of these accidents result from human error and carelessness on the part of the drivers or pedestrians. However, the probability of occurrence, and its severity, can often be reduced by the application of proper traffic control devices, and good roadway design features. It has long been recognized that the most effective means towards accident reduction lies in a systematic and scientific approach based on the use of accurate and reliable traffic accident data. But the quantity of data important for the analysis is not always sufficient Much of the accident information available in police files is all too often incomplete and therefore has not been utilized to the fullest extent. In addition, records are also needed to provide facts to guide programs including enforcement, education, maintenance, vehicle inspection, emergency medical services, and engineering to improve streets and highways. There is a need for better information of the circumstance of collisions, especially with regards to location in order to come up with a general picture of the data. More precise location data could help provide facts to guide programs including enforcement, education, maintenance, vehicle inspection, emergency medical services, and engineering to improve streets and highways. Our main objective through this project is an effective accident information system using GPS & GSM. When an accident is occurred, the GPS receiver is activated it receives the longitude & latitude of current location of the vehicle & this data is send through GSM in to the number saved inside GSM modem. The website is monitored at a control room and if an accident is occurred, instant rescue facilities can be provided to the victims. Day to day increasing vehicle accidents is the fact which leads us to do this project work.
Dept. of ECE, College of Engineering. Poonjar 5
2. MAIN OBJECTIVES
1.
ACCIDENT INFORMATION (if an accident happens, the system will detect the accident and the location will be send to the control room.).
2.
INSTANT RESCUE (we can provide emergency medical services to the victims much faster.)
3.
REDUCE DEATH (by providing emergency medical services to the victims death rate due to accidents can be reduced.)
3. PROJECT DESIGN
Our project has mainly two sections Hardware Software
a) HARDWARE SECTION
It includes 1. GPS module 2. GSM module 3. GPSR module 4. PIC16F877A
b) SOFTWARE SECTION
It includes programming of 1. ADC conversion 2. GPS reception 3. GSM initialization 4. GPSR initialization
HARDWARE SECTION
GSM MODEM
LCD DISPLAY
DISPLAY
This block provides machine to man communication and alert and instructs the driver in various conditions.
CRASH SENSOR
This is used to sense the accident of the vehicle. After the accident is reported, the system will give indication to remote person.
GSM modem
This system will send SMS to remote person about the accident of the vehicle and its location, after an accident has occurred. User has also provision to check the location of the vehicle by sending a request by user.
PIC167877A
For our project we are using PIC micro-controller. PIC is a family of Harvard architecture micro-controllers made by Microchip Technology. The name PIC initially referred to "Peripheral Interface Controller". PICs are popular with both industrial developers and hobbyists alike due to their low cost, wide availability, large user base, extensive collection of application notes, availability of low cost or free development tools, and serial programming (and re-programming with flash memory) capability. It is a 40 pin 8 bit CMOS FLASH microcontroller that operates at a clock input of 11.0592 MHz provided with a crystal. FEATURES:
operating speed :DC-20 MHz clock input interrupt capability upto 14 sources ADC resolution:5 mV 10 bit multi channel analog-to-digital converter(ADC) Universal synchronous asynchronous receiver transmitter(USART) with 9 bit address detection wide operating range:2-5.5 V programmable code protection upto 8kX 14 words of FLASH program memory and 256X8 bytes of EEPROM data memory
ADVANTAGES:
Dept. of ECE, College of Engineering. Poonjar 10
11
12
POWER SUPPLY
The power supply unit consist of a voltage regulator IC 7805, which gives regulated 5 v as output
ACCELEROMETER SECTION
The accelerometer used here a capacitive type, ie output voltage varies corresponding to the change in the capacitance semiconductor materials (polysilicon) using semiconductor processes (masking and etching). It can be modeled as a set of beams attached to a movable central mass that move between fixed beams. The movable beams can be deflected from their rest position by subjecting the system to acceleration As the beams attached to the central mass move, the distance from them to the fixed beams on one side will Increase by the same amount that the distance to the fixed beams on the other side decreases. The change in distance is a measure of acceleration. The g-cell beams form two back-to-back capacitors). As the center beam moves with acceleration, the distance between the beams changes and each capacitor's value will change, (C = A/D). Where A is the area of the beam, is the dielectric constant, and D is the distance between the beams.
The accelerometer used here is a three axis accelerometer which is capable of measuring acceleration or deceleration in 6 directions. The three output pins of module
Dept. of ECE, College of Engineering. Poonjar 13
GPS MODULE
GPS module is used to trace the position of the vehicle. The speed and position of the vehicle are received from the GPS module and these details are processed by the microcontroller unit.
MAX 232
The voltage level of PIC 16F877A is in TTL level. But the GPS is operating in RS 232 mode. thus to convert the voltage level from TTL to RS 232, the MAX 232 IC is used
a. PIC 16F877A
Basic diagram
Pin diagram
Peripheral Features:
Timer0: 8-bit timer/counter with 8-bit prescaler Timer1: 16-bit timer/counter with prescaler, can be incremented during Sleep via external crystal/clock Timer2: 8-bit timer/counter with 8-bit period register, prescaler and postscaler Two Capture, Compare, PWM modules - Capture is 16-bit, max. resolution is 12.5 ns - Compare is 16-bit, max. resolution is 200 ns - PWM max. resolution is 10-bit Synchronous Serial Port (SSP) with SPI (Master mode) and I2C (Master/Slave) Universal Synchronous Asynchronous Receiver Transmitter (USART/SCI) with 9-bit address detection 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
16
CMOS Technology:
Low-power, high-speed Flash/EEPROM technology Fully static design Wide operating voltage range (2.0V to 5.5V) Commercial and Industrial temperature ranges Low-power consumption
17
Synchronous modes of the USART. It is a dedicated 8-bit baud rate generator. The SPBRG register controls the period of a free running 8-bit timer. In Asynchronous mode, bit BRGH (TXSTA<2>) also controls the baud rate. In Synchronous mode, bit BRGH is ignored. Table 10-1 shows the formula for computation of the baud rate for different USART modes which only apply in Master mode (internal clock). Given the desired baud rate and FOSC, the nearest integer value for the SPBRG register can be calculated using the formula in Table 10-1. From this, the error in baud rate can be determined. It may be advantageous to use the high baud rate (BRGH = 1) even for slower baud clocks. This is because the FOSC/(16 (X + 1)) equation can reduce the baud rate error in some cases. Writing a new value to the SPBRG register causes the BRG timer to be reset (or cleared). This ensures the BRG does not wait for a timer overflow before outputting the new baud rate.
21
22
c.MAX232
_ Meets or Exceeds TIA/EIA-232-F and ITU Recommendation V.28 _ Operates From a Single 5-V Power Supply With 1.0-_F Charge-Pump Capacitors _ Operates Up To 120 kbit/s _ Two Drivers and Two Receivers
Dept. of ECE, College of Engineering. Poonjar 23
24
The MAX232 is a dual driver/receiver that includes a capacitive voltage generator to supply TIA/EIA-232-F voltage levels from a single 5-V supply. Each receiver converts TIA/EIA-232-F inputs to 5-V TTL/CMOS levels. These receivers have a typical threshold of 1.3 V, a typical hysteresis of 0.5 V, and can accept 30-V inputs. Each driver converts TTL/CMOS input levels into TIA/EIA-232-F levels
d. GPS BASICS
25
26
There has been significant progress in the design and miniaturization of stable clock. GPS satellite orbits are stable because of the high altitudes and no atmosphere drag. However, the impact of the sun and moon on GPS orbit though significant, can be computed completely and effect of solar radiation R1 pressure on the orbit and tropospheric delay of the signal have been now modeled to a great extent from past experience to obtain precise information for various applications.
27
28
START
Initialize GSM&GPS
No
If accident occured
Yes
ACTIVATE GPS
STOP
29
if(RCIF) { RCIF=0;
Dept. of ECE, College of Engineering. Poonjar 30
if(access==6) { gps[i++]=rcv_val;}
if(i>26) } } }
31
//***********************code ***********************// BUZZER = 1; lcd_init(); __delay_ms(50); lcd_send(0,0x85,0);lcd_send(1,'A',0);lcd_send(1,'I',0);lcd_send(1,'S',0); lcd_word(16,"Loading... gsmInit(); lcd_word(16," __delay_ms(200);
Dept. of ECE, College of Engineering. Poonjar 32
");
");
lcd_send(0,0x80,0); for(k=3;k<9;k++) {lcd_send(1,gps[k],0);}//********** Latitude direction ****** ****// lcd_send(1,gps[13],0); lcd_send(0,0xc0,0); for(k=15;k<22;k++){lcd_send(1,gps[k],0);} lcd_send(1,gps[26] ,0); status=0; } if(CRASH) { lcd_send(0,0x01,0); __delay_ms(100);
Dept. of ECE, College of Engineering. Poonjar 33
//**********************passing a string serial port********************// void puts(char *ptr) { while(*ptr) {TXREG=*(ptr++); while(TRMT==0); } } //*********************************gsm modem initialization ******************//
void gsmInit() {
34
SRL_DISP(0x1A); }
# C# POGRAMMING LANGUAGE C# (pronounced "see sharp") is a multi-paradigm programming language encompassing imperative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines. It was developed by Microsoft within the .NET initiative and later approved as a standard by Ecma (ECMA-334) and ISO (ISO/IEC 23270). C# is one of the programming languages designed for the Common Language Infrastructure. C# is intended to be a simple, modern, general-purpose, object-oriented programming language. Its development team is led by Anders Hejlsberg, the designer of Borland's Turbo Pascal, who has said that its object-oriented syntax is based on C++ and other languages. The most recent version is C# 3.0, which was released in conjunction with the .NET Framework 3.5 in 2007. The next proposed version, 4.0, is in development.
Dept. of ECE, College of Engineering. Poonjar 36
37
8.BIBLIOGRAPHY
http:/dx.doi.org/10.1109-ICMET.2010.5598437
Thank you!
Dept. of ECE, College of Engineering. Poonjar 38
39