Kassemall
Kassemall
Kassemall
net/publication/4334587
CITATIONS READS
48 34,166
4 authors, including:
Abdallah Kassem
Notre Dame University – Louaize
116 PUBLICATIONS 1,078 CITATIONS
SEE PROFILE
All content following this page was uploaded by Abdallah Kassem on 09 September 2015.
Abstract – The main purpose of this paper is to develop a prototype In order to know what type of sensors should be installed
of the Vehicle Black Box System VBBS that can be installed into any into the vehicle, research was carried out to identify the main
vehicle all over the world. This prototype can be designed with information needed for better accident analysis. After filtering
minimum number of circuits. The VBBS can contribute to the information and taking into consideration what could be
constructing safer vehicles, improving the treatment of crash victims, done and what could help the most, the following data were
helping insurance companies with their vehicle crash investigations,
and enhancing road status in order to decrease the death rate.
found to be the most important ones needed after an accident:
Belt status, Road condition, Brake status, Speed Measurement,
Keywords- Vehicle, Black Box, Microcontroller, Computer interface. Position of the accident, Main Lights status.
In this paper, we describe in section II the hardware
resources dedicated to VBBS system. The software part is
I. INTRODUCTION subject of the section III. Finally, a conclusion is given in
According to the World Health Organization, more than a section IV.
million people in the world die each year because of
transportation-related accidents [1]. In order to react to this II. HARDWARE RESOURCES
situation, the black box system draws the first step to solve this The hardware part consists on the sensors and the black box
problem that crosses national boundaries and threatens the installed into the vehicle. This part mainly collects the status of
safety and health of people worldwide. Introduced to a part of the sensors and saves it to the microcontroller’s EEPROM.
the United States market in 1999, the black box system proved
to be efficient [2]. However in the latter case, the system was A. Sensors
embedded in the vehicle [3-5]. Therefore, in addition to 1. Speed Sensor
improving the treatment of crash victims and the road status in
order to decrease the death rate, constructing safer vehicles, An inductive proximity sensor HYP-18RL8P is used to
and helping insurance companies with their vehicle accidents detect the number of wheel turns per unit of time [7]. This
investigations, the main purpose of this paper is to develop a sensor can be used for the detection of all good electrical
black box system that can be installed to any vehicle all over conductors (materials). It has a sensing distance of maximum 8
the world. mm, and a Current Voltage 12 – 24VDC. Note that in case it
detects some metal; it will have an output voltage of exactly
Like flight data recorders in aircraft, “black box” what was given to its input voltage. However, when there is no
technology can now play a key role in motor vehicle crash detection, the output will be zero volts.
investigations [6]. A significant number of vehicles currently Because of the 14VDC of its output, a voltage divider was
on the roads contain electronic systems that record information placed between the sensor’s output and the microcontroller’s
in the event of a crash. That is why it is so important to have input pin to decrease the voltage to 5VDC. Finally in order to
recorders that objectively track what goes on in vehicles detect the speed in the PICBasic Pro, the ‘COUNT’ command
before, during and after a crash as a complement to the was used.
subjective input that is taken usually from victims, eye
witnesses and police reports. 2. Water Sensor
This system is committed mainly to two approaches. The The water sensor module used is very sensitive to water
first one is how to detect and record data from the vehicle. The level, and its sensitivity can be increased by turning the
second is how to present the data recorded to the user in a potentiometer. This module consists of two uncovered and
simplified way. To implement the first approach, some major unconnected wires equidistant of each other, as seen in the
components and different type of sensors were used. While the figure 1. When this sensor detects water, the two wires will be
second approach was implemented using a Visual Basic .NET connected through water conductivity, and the status of the
computer program. This program receives the data serially sensor will be on.
from the black box memory, presents it in real-time graphics The module is implemented inside the black box, whereas the
and finally saves it to a formal excel report for future use. sensors are placed in the front of the vehicle behind the front
wheels to detect the first change in the road status.
of the accident in order to determine whether the driver has
used them properly.
This sensor consists of a small magnetic switch, connected to
the input of the microcontroller, and a bobbin wire all around
it. This wire is in series with the light connection of the
vehicle. Whenever the light is “ON”, a current will pass in the
wire, creating a magnetic field. This magnetic field will cause
the switch to close. Thus the microcontroller will detect 5V in
case of the flashers, and 0V in case of the other lights.
Fig. 1. Equidistant Wires However, an additional circuit was connected between the
sensor’s output and the microcontroller’s input pin for the
3. Switches flashers sensors. This circuit converts an ON/OFF period to an
To stimulate accident sensors and belt sensors push button ON period. This circuit is added so the sensor’s status will be
are used [8]. They have three pins, one pin for the common (C) ON for the total duration when the flasher is turned ON. Figure
and the other two for normally closed (NC) and normally open 3 shows the different parts of the sensor.
(NO). In the black box system, nine push buttons were used.
One of them is used as the belt sensor and the eight others as
the accident sensors. In all cases the NO pin was used because
a zero volt was needed as input to the microcontroller, when
the push button is pressed. This justifies the use of pull up
resistors for all these nine inputs of the PIC. Fig. 3. Light Sensor
Two pins are connected to the MAX232, which in its turn is time. Ten seconds were used to monitor the vehicle status after
connected to the serial port of the black box. Figure 4 shows the accident, so 21 seconds are left to give information before
all the black box connections. any accident occurs, and 0.5 second or one sample is omitted.
Addresses 0 to 251 will make up the 63 blocks of accident’s
2. Microcontroller’s EEPROM
information which are ordered like the following: The first
The EEPROM contained in the PIC has the size of 256 Byte represents the accident sensors, the second will contain
Bytes, and since each address contains 1Byte, the EEPROM the 3 bits of the belt sensor, the brake switch and the water
has 256 addresses from $00 to $FF. The last 4 addresses will sensor, the third Byte represents the speed, and the fourth
be reserved to save the value of a counter used in controlling represents the Lights status for each sample.
the record process on address 252, the accident time on
3. Microcontroller’s Program
address 253, a variable used to differentiate the process of
recording and the process of reading the information on The main function of the microcontroller program is to
address 254, and the pointer on address 255. Thus, in total 252 take input samples from different ports each 0.5 seconds.
addresses will be available for recording the accident data. The These samples are taken from the sensors installed in the
accident sensors are grouped into 1 Byte in the EEPROM. vehicle, respectively in the following order: Pushbuttons,
Another Byte is needed for the lights. The microcontroller will Miscellaneous, Speed, and Lights. After that, each sensor
read the pulses from the speed sensor and transform them into sample is saved into the microcontroller’s EEPROM. Also the
a value, thus the need of in addition 1 Byte to have a maximum value of the current pointer is updated and saved after each
value of 255 km/h. Finally the other parameters are grouped block of four samples.
into 1 more Byte. So, to save the data in the EEPROM, a block Note that the pointer will return to 0 after saving on the 251
of 4 Bytes will be required for each sample. The address of the EEPROM. So the newest sample will be saved
microcontroller will take a sample of the inputs each 0.5 on the oldest sample at address 0 and the process will start
seconds, so 63 samples (252/4) will be saved as a total. This again. This process will keep a maximum of 63 samples saved
means that the EEPROM can save up to 31.5 seconds of input in the EEPROM at a time.
Main before going to sleep. This sleep mode ends if the switch on
PortA.4 is switched to ‘0’. When this happens, the
microcontroller program will go to the “SerialTest” where the
SERREAD
data saved on the EEPROM will be transmitted serially to the
YES Visual Basic.NET program in order to be visualized using an
middle LED
'ON'
interface that could be helpful in analyzing the accident. The
value of the Pointer is sent first, followed by the Accident
if serial
Pointer and finally the remaining data will be transmitted in a
NO switch YES loop from the oldest sample to the newest one. Add to that, a
i s 'ON' method of handshake is used between the microcontroller and
the VB.NET program in order to be sure that there is no data
if there was an GOTO lost during the transmission. The overall explanation of the
Transmission
accident
process
microcontroller’s program is found in the flowchart of the
NO
the left LED ''ON' figure 5.
C. Data Transmission
POINTER = One of the main characteristics of this system is that only
0
the authorized people could access the true interpretation of
the black box data. This is due to the interface between the
LOOP
microcontroller and the computer, in addition to the specific
programs written for both of them.
save pointer
As described previously, the data related to the accident is
saved in the EEPROM of the 16F877A PIC. An interface is
thus needed to transmit this data from the EEPROM to a
LOOP specific computer, where a VB.NET program can use them to
begin the analysis.
Accident sensors
I = 128
YES
The choice of the microcontroller’s transmission protocol was
and save
If sensors != the standard asynchronous format using 8 data bits, no parity
255 bit and one stop bit with a 9600 baud rate. Since the
AccidentTime
Subroutine complexity is in the interpretation of the data and not in the
IF X = 0 YES transmission, the need was for a format that guarantees
NO
X=1
NO
minimum simplicity with maximum reliability. In addition, a
MAX232 is used as an intermediary station, to connect the PIC
SAVE to the serial port of the computer.
IF Counter = GOTO
III. SOFTWARE RESOURCES
YES
0 SERREAD
Counter = Counter - 1 After covering the hardware part of the Black Box system,
it’s now time to take a look at the main functions of the Visual
save accident sensors NO Speed = Turn * 6
Basic .NET program and how the user will be shown the data
recorded before, during, and after the accident. The main
POINTER = SAVE duties of this program are to receive data serially, interpret,
POINTER + 1
POINTER =
and finally display it to the user in a clear and simple way.
POINTER + 1
Miscellaneous
LIGHTS
ANDED WITH $07
and SAVE IT
SAVE
POINTER =
POINTER + 1 POINTER =
POINTER + 1
SPEED
Pause 100
Count PortA.3,(300), GOTO
Turn LOOP
IV. CONCLUSION
[1] G. Hayes, F. Blosser, “Motor Vehicle Crashes Claim More than a Million
Lives Worldwide”, CDC Injury Center Media Relations, Press Release,
April, 2004.
[2] http://www.airbagcrash.com (General Motor Event Data Recorders)
[3] Thomas K. Kowalick, “Black Boxes: Event Data Recorders”, MICAH,
summer 2005.
[4] Thomas K. Kowalick, “Black Boxes: Event Data Recorder Rulemaking
for Automobiles”, MICAH, summer 2006.
[5] Thomas K. Kowalick, “Fatal Exit: The Automotive Black Box Debate”,
Wiley, IEEE Press, Feb. 2005.
[6] J. Lawrence and T. Newbery, “Crash Data Recorders in Motor Vehicles”,
MacInnis Engineering, Associates, 2003.
[7] http://www.hyelec.co.kr (Inductive proximity sensor HYP-18RL8P)
[8] Chidester, Augustus, et al, “Recording Automotive Crash Event Data”,
International Symposium on Transportation Recorders, Arlington, VA,
1999.
[9] L. Dae Geun, J. Se Myoung, L. Myoung Seob, “System on Chip design of
Embedded Controller for Car Black Box”, Intelligent Vehicles
Symposium IEEE 2007, pp. 1174-1177, 13 June 2007.