Documente Academic
Documente Profesional
Documente Cultură
A Thesis Project Proposal Presented to the Faculty of The Electrical/Electronics Engineering Department of the University of San Carlos Cebu City, Philippines
In Partial Fulfillment Of the Requirements for the Degree Bachelor of Science in Electronics Engineering
By
Gerard O. Campomayor Jelley Gay P. Ceniza Donna Bel R. Flores Dexter E. Nuevo
August 2012
Advisers Certification
This thesis project proposal has been reviewed by the undersigned and is certified acceptable in content and form for proposal hearing presentation:
Table of Contents
Title Page Advisers Certification Table of Contents i ii
Chapter 1 1.1 1.2 1.3 1.4 1.5 Chapter 2 2.1 2.2 2.3 2.4 Chapter 3 3.1 3.2 3.3 3.4 3.5 3.6 Bibliography
The Problem and Its Settings Introduction Statement of the Problem Significance of the Study Scope and Limitations Definition of Terms Review of Related Literature ECall Portable systems Single-board embedded system Data logger and Google maps Methodology Project Flow System Overview Hardware Design Coding Testing and Calibration Halfway Deliverables
16
ii
Vehicular collision occurs when a vehicle collides with another vehicle or other stationary obstructions. It is one of the major causes of external injuries, death and property damage. There are many proposed solutions in order to decrease the occurrence of vehicular collisions implementation of laws and rules, development of vehicular safety systems, automatic advisory to authorities and data gathering of vehicular collision for further basis in regulating the laws and existing vehicular safety systems. Automatic advisory and data logging of vehicular collision is a developing technology in the United States of America and several countries in Europe it aims to improve the response time of responsible authorities and accurate data collection of concerned agencies and personnel. This chapter will focus on the problems encountered in detection of vehicular collision and automatic advisory and logging of vehicular collision data and on outlining the proposed solutions.
1.1 Introduction
According to the Department of Health, vehicular collision is the top cause of external injuries on the year 2011 and on the first quarter of 2012. The average percentage of vehicular accidents that happen in the Philippines is more than fiftypercent[1][2][3]. Although these external injuries are non-fatal, it is still considered to be one of the major problems by the police and health department.
Data on vehicular collisionslocation and time of vehicular collision and intensity of collisionshould be logged for precaution and for a more systematic system of gathering data by the police and concerned agencies. The detection and systematic collection of vehicular collision data is essential for all the concerned agencies such as the Philippine National Police Traffic Management Group, Department of Public Works and Highways and Department of Health because it can serve as a basis for regulation of new traffic laws, improvement of public roads and a more convenient data gathering method.
Number of Fatalities on the Road as Reported by the Police vs. the Health Sector4
As shown in the tables above, there is an underreporting of vehicular accidents to the police authorities because data gathering of both sectors are not done in a centralized manner. Throughout the years the development of crash sensors and vehicle-collision 2
sensors has increased exponentially. For the convenience of mankind, the acquisition of data of these sensors has been done in many ways (e.g. GSM and internet). With the use of GSM modules, vehicular collision data can be transferred or logged easily. Internet is already the information highway of most people in the Philippines so storage of vehicular collision data on a local database and displaying it on a website is adapted.
Verification of accuracy of sensor data will only be done by calibrating the sensor and comparing the ideal data output and actual data output since there is no vehicular collision device and vehicular collision testing facility available in the Philippines. The study will not cover crash testing involving actual vehicles. Vehicle design and construction, including the placement of the device inside the vehicle, will be hardly considered. The term vehicular collision used in this study would refer only to impacts beyond the set threshold. Other factors that will determine vehicular impact will be neglected. The study will also not include cyberspace security.
Global System for Mobile communication (GSM) - a digital mobile telephony system that uses a variation of time division multiple access (TDMA) and operates at either the 900 MHz or 1800 MHz frequency band.
Global Positioning System (GPS) - a space-based satellite navigation system that provides location and time information in all weather, anywhere on or near the Earth, where there is an unobstructed line of sight to four or more GPS satellites.
Data Logger - an electronic device or module, which records data over time or a relation to a location. It has either a built-in instrument or sensor or via external instruments and sensors.
In-vehicle emergency systems have been developed since 2001. These are communication services aimed to provide the automatic notification through GSM of a road traffic accident based on precise GPS-based positioning.
2.1 ECall
Filjar, Vidovic, Britvic, and Rimac5 presented the architecture and technical solution of the modem-based eCall. The eCall device consists of in-vehicle control unit with a GPS receiver and GSM connected to the car sensors. It triggers an emergency call upon the detection of an accident or by manual interaction of the user and sends MSD containing: the timestamp and geographical position of the accident, activation indicator (manual or automatic), and vehicle type and identification number, number of passengers.
A disadvantage of this system is that the device is installed upon manufacture, making the device (1) proprietary of the carmakers, which renders it difficult to use the technology for the publics optimum benefit; and, (2) unavailable in all vehicles, especially those that were manufactured before the technology was developed. Moreover, the system utilizes one of the vehicles pyrotechnic systems like the airbag or seatbelt tensioning system, making the system expensive. 7
Communications (SRC) was included. The device was tested to be viable in a worst-case scenario in terms of Bluetooth link quality and reliable in case of long duration and crash detection. This service, however, requires a vehicles on-board or portable computer, which is absent in older vehicles and expensive to install. Goh, Ng, Jusoff, Chen, and Tan7 conducted a study on a GPS-based approach for reporting thoroughfare problems via GSM. They used a GPS-supported GSM phone and Python script to retrieve GPS signals and send SMS to server.
A study by White, Thompson, Turner, Dougherty, and Schmidt8 describes how smartphones, such as the iPhone and Google Android platforms, can automatically detect traffic accidents, immediately notify a central emergency dispatch server after an accident, and provide situational awareness through photographs, GPS coordinates, VOIP communication channels, and accident data recording. However, phones are mobile, so their motions do not directly mirror the forces the vehicle experiences. In-vehicle accelerometers, on the other hand, are physically mounted to the car, making them more reliable in detecting traffic accidents. 8
Chapter 3 Methodology
The Vehicular Collision Automatic Advisory and Data Management System is composed of mainly of the Client Module and the Server Module. The Client Module consists of the in-vehicle device and is implemented using ADIS16204 Programmable High-g Digital Impact Sensor and Recorder, ATmega348 GizDuino v3.0, SIM900D GSM/GPRS Module and GPS Module. The Server Module consists of the online database and the website developed using PHP and HTML, respectively.
The ADIS16204 Programmable High-g Digital Impact Sensor and Recorder is used as the sensor for the system. The ADIS16204 provides tunable digital sensor data in a convenient format that can be accessed using a serial peripheral interface (SPI). The 11
SPI provides access to measurements for dual-axis linear acceleration, a root sum square (RSS) of both axes, temperature, power supply, an auxiliary analog input, and an event capture buffer memory.
The SIM900D GSM/GPRS module is used for the transmission of data. SIM900D is a quad-band GSM/GPRS engine that works on frequencies GSM 850MHz, EGSM 900MHz and PCS 1900MHz. It features GPRS multi-slot class 10/class 8 and supports the GPRS coding schemes CS-1, CS-2, CS-3 and CS-4.
The ATmega328P 8-bit Microcontroller with 4/8/16/32K Bytes In-System Programmable Flash is used as the main microcontroller for the system. ATmega328P is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the ATmega48PA/88PA/168PA/328P achieves throughputs approaching 1 MIPS per MHz. 12
A simple breakout board is designed for the ADIS16204. The ADIS16204 breakout board is connected to the Gizduino using SPI communication protocol. SCLK (port 2 of J1) is connected to SCLK (port 12 of JP3) of the GizDuino, DOUT (port 4 of J1) is connected to MISO (pin 11 of JP3), and CS (port 3 of J1) is connected to SS (port 10 of JP3). The voltage supply pin (pin 13) of the ADIS16204 is connected to the 3.3V
13
port on the Gizduino and the COM pin (pin 16) is connected to the Gizduino GND ports. Output data is available by reading its internal registers.
The GSM/GPRS Module and GPS Module are specially designed to function as GizDuino shields. They are mounted directly on the GizDuino board.
3.4 Coding
Serial port configuration on both shields are done separately by connecting the modules to a computer using the GizDuino USB gateway.
14
The code for the ATmega328 microcontroller will be written using the Arduino development environment. The code will then be uploaded to the microcontroller by mounting the sensor, GSM/GPRS and GPS shields on the GizDuino board and connecting the board to the computer via USB cable.
The server system uses MySQL as database. A PHP script is written to retrieve the data from the database and display it on a webpage in tabular form. The system is then simulated using software and implemented in hardware.
3.5 Calibration
Accelerometers are mechanical structures which contain elements that move freely and these elements can be sensitive to mechanical stress. The 0 g bias or offset of an accelerometer defines the baseline for measuring the acceleration. The offset error of an accelerometer is constant value in g that cancels out the error caused by different factors environment, application, soldering and mounting. There are two methods of calibration of the accelerometer considered Gain Method and Two Points Per Axis of Interest Method.
Gain Method:
Figure 1. Output Response vs Orientation to Gravity This calibration method assumes that the gain is equal to 1. This method also limits the accuracy of the system to the non-calibrated error in sensitivity. The axis of interest is placed into a 0 g field and the accelerometer reading is equal to the offset error. The different orientations of each axis placed in a 0 g field is shown in Figure 1. To calibrate the accelerometer, it will be oriented in the same manner in Figure 1 and it is sampled by taking a number of readings and averaging them. The accelerometer must be perfectly still while this is done. The output data from the accelerometer will be compared to the 16
ideal output data of each axis with its respective orientation by calculating its error. Since, accelerometers are quite noisy, averaging values will help in reducing the error introduced by the noise or additional stresses caused by the environment. The 0 g bias or offset error will be calculated using the following equation: AOUT = AOFF + (Gain AACTUAL(x,y,z)) Equation 3.5.1 where: AOFF is the offset error, in g. Gain is the gain of the accelerometer, ideally a value of 1. AACTUAL is the real acceleration acting on the accelerometer and the desired value, in g. AOUT is the acceleration reading of the accelerometer. Two Points Per Axis of Interest Method: Another method of calibration is by calculating the AOFF using two points per axis. X axis will be oriented into +1 g and 1 g field and their actual measured value are as follows when broken down into an equation: A+1g = AOFF + (1 g Gain) Equation 3.5.2 A1g = AOFF (1 g Gain) Equation 3.5.3 Where: AOFF is the offset error, in g. A+1g is the actual measured value of the axis in g if it is oriented at +1g field. A1g is the actual measured value of the axis in g if it is oriented at -1g field. After both values are obtained, AOFF and Gain is calculated using the following equations: AOFF = 0.5 (A+1g + A1g) Equation 3.5.4 Gain = Equation 3.5.5 This type of calibration also helps to minimize cross-axis sensitivity effects as the orthogonal axes are in a 0 g field when making the measurements for the axis of interest. Once the accelerometers offset error is obtained, it the actual acceleration is now obtainable using the equation below: 17
AACTUAL(x,y,z) = Equation 3.5.6 Where: AACTUAL(x,y,z) is the actual acceleration acting on the accelerometer and the desired value in g. AOUT is the acceleration read by the accelerometer. AOFF is the accelerometers offset error. AACTUAL(x,y,z) is then the accelerometer data used to compare the threshold set in the microcontroller and the data to be stored into the database.
18
Bibliography
[1] DOH National Electronic Injury Surveillance System (NEISS) Factsheet Volume 3, Issue 3, December 2011. DOH National Electronic Injury Surveillance System (NEISS) Factsheet Volume 3, Issue 4, February 2012. DOH National Electronic Injury Surveillance System (NEISS) Factsheet Volume 4, Issue 1, May 2012. ASEAN Region Road Safety Strategy and Action Plan, May 2006. R. Filjar, K. Vidovic, P. Britvic, M. Rimac, "ECALL: AUTOMATIC NOTIFICATION OF A ROAD TRAFFIC ACCIDENT," in MIPRO: 600-605, 2011. C. Pinart, J. C. Calvo, L. Nicholson, J. Villaverde, "Ecall-compliant early crash notification service for portable and nomadic devices," in Vehicular Technology Conference: 1-5, 2009. Goh, Ng, Jusoff, Chen, Tan, "Architecture of a GPS-Based Road Management System," in World Applied Sciences Journal: 26-31, 2011. White, Thompson, Turner, Dougherty, Schmidt, "WreckWatch: Automatic Traffic Accident Detection and Notification with Smartphones," in Mobile Networks and Applications - Volume 16 Issue 3: 285-303, 2011. A. Khan, R. Mishra, "GPS-GSM Based Tracking System," in International Journal of Engineering Trends and Technology - Volume 31 Issue 2: 161-164, 2012.
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
19
Gantt Chart
20