Vehicle Black Box
Vehicle Black Box
Vehicle Black Box
I. INTRODUCTION
According to the World Health Organization, more than a
million people in the world die each year because of
transportation-related accidents [1]. In order to react to this
situation, the black box system draws the first step to solve this
problem that crosses national boundaries and threatens the
safety and health of people worldwide. Introduced to a part of
the United States market in 1999, the black box system proved
to be efficient [2]. However in the latter case, the system was
embedded in the vehicle [3-5]. Therefore, in addition to
improving the treatment of crash victims and the road status in
order to decrease the death rate, constructing safer vehicles,
and helping insurance companies with their vehicle accidents
investigations, the main purpose of this paper is to develop a
black box system that can be installed to any vehicle all over
the world.
Like flight data recorders in aircraft, "black box"
technology can now play a key role in motor vehicle crash
investigations [6]. A significant number of vehicles currently
on the roads contain electronic systems that record information
in the event of a crash. That is why it is so important to have
recorders that objectively track what goes on in vehicles
before, during and after a crash as a complement to the
subjective input that is taken usually from victims, eye
witnesses and police reports.
This system is committed mainly to two approaches. The
first one is how to detect and record data from the vehicle. The
second is how to present the data recorded to the user in a
simplified way. To implement the first approach, some major
components and different type of sensors were used. While the
second approach was implemented using a Visual Basic .NET
computer program. This program receives the data serially
from the black box memory, presents it in real-time graphics
and finally saves it to a formal excel report for future use.
acidsesors
Mapletic
Switcl
Bobbiii
Wilte
Litt
Seiisoi
characteristics.
1. Microcontroller's Connections
The inputs to the microcontroller, which contain
information about the accident, are distributed as follows: 8
pins for the 8 accident sensors, 8 for the lights (flashers
included), 1 for the speed sensor, 1 for the belt sensor, 1 for the
brake switch, 1 for the water sensor, and 1 pin for the serial
switch. The outputs of the microcontroller are three pins for
the LEDs, and two pins for serial transmission and reception.
The three LEDs will show the user whether the black box is
rcrig atn,o rnmtig
rcrig atn,o rnmtig
_4
10k
bete ssor
6v
louF
5v~~~~~~~~~~~~~~~~~~~~~~~~~6A
A
22 fX
_j[3,
Krhl
Ril
oRi~~~~~~2
BE 6
ed
470D ohm || _
||l1||||l
RBO3
co
L I22470 ohm
- 11 b4ho 1
1A1
d to te sl pt of t
LI
100nFT,IQ
Il0On FIJ R2
*A4 l. . lu
r22pFR
*1cidn1k o 21
5;;
1|gshece:
beorensearv sv
onedto the
value2
ofahoutecue in conturollin
riepresent thecLighs statusefor eachto
sampe.vhcesaufe
althe reacr proces
conionades. 252nth
accidentieo 3Mcrontroller's, Prgamd05scnroesmlsoitd
address~
~~~~~~~~~Adese 253 ao varabl used tok difeetit the proes ofcsoacdn'
reorin
anMh rcs fraigteifrmto n hicrocontroller'
Temi ucino
progamRsOt
addess254 adte piner n adrss 55.Ths, n tta 25
taenputao sample from
odiferent ports
teac
0.5owg sheonds.
addese willO
beoavaiabed
foircrdntPIaccteiden
he
data The Bthee sampleset are takcientfrnom thes sensorinstalle ionthen
acciesant sensorsac
are droueds iontoin
1lByte,i the BEPROM. vehie,rebispectively iensrthefollowingt
order Puhbuwttons
Aoher Byte
isdneeded
fror0 the light. The microcontdroller will Msellaneous, Speed,ande Lighsets.Ather thatd, each
shensourt
rea thserpules fromsv the splee snor
cuteransfor
an
cnrlinto
the
sampleisensavhedLinhto stheumicorecntroller'.ERM.Ash
atvalue,otus thecnee ofn addition152Bthe tochavenataimum vauoftecretpitrisudtdadsvdatrec
valuresof 255, kmhFainablly thed othifereparamter are groupeds bo
of
forsmls
intord1nmore Bthe.o trocsave the deataing theBEPRorm,atobok NThethatnfntino
the
pontrwileurro0oatrler
savigra
on the25
ofdes
454
Bytsdwllhe requiere
fooahsapenh
address
of.Tu,itoa22tk
theuBEmpROM.
Srom thfernewetprsample wil.b saeods
microcontrollber wvilakle afsampeofdinthe acidnpts eacha.5oneThesoles
samples ate
taddres
0ro and thenproces
wistlledi start
seconds, thso 63esapesd (25/4
wnadillo1Byesoaveda a totmm
al.uhi
agin
means that the BEPROM can save up to 31.5 seconds of input
thisuren
proes
SERREAD
'
mile'ON'
YES
/if serial\
YES
switch
NO
s'ON'
therewasa
accident
GOTO
Tranmss
process
NO
POINTER
0
LOO
save pointer
LOOP
I= 128
and save
YES
Accident sensors
[;X
sensors!
255
Subroutine
_X=IFX=OYES
NO
NO
SAVE
CounterX
Counter = Counter -
YES
Speed
Tum
SAVE
;
POlNTER=
POINTER+ I
Mig
F
ane l
Ca
fiue5
figUre 5.
C. Data Transmission
One of the main characteristics of this system is that only
the authorized people could access the true interpretation of
the black box data. This is due to the interface between the
microcontroller and the computer, in addition to the specific
programs written for both of them.
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
specific computer, where a VB.NET program can use them to
~~~~~~beginthe analysis.
The choice of the microcontroller's transmission protocol was
the standard asynchronous format using 8 data bits, no parity
bit and one stop bit with a 9600 baud rate. Since the
complexity is in the interpretation of the data and not in the
transmission, the need was for a format that guarantees
lminimum simplicity with maximum reliability. In addition, a
MAX232 is used as an intermediary station, to connect the PIC
to the serial port of the computer.
III. SOFTWARE RESOURCES
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
Basic .NET program and how the user will be shown the data
recorded before, during, and after the accident. The main
duties of this program are to receive data serially, interpret,
and finally display it to the user in a clear and simple way.
SEGOTOEA
SERREAD
NO
save
accident sensors
POINTER+t
ofous
Count PortA.3,(300),
Turn
~~~~~~~~~SAVEE
th.ircnrle
Afteranaciden,
GOTO
iltk
0smlso
Pause 100
LOOP
seconds.
The belt sensor will be off.
Speed Graph
l
i0
||
l
X- -
0 >5 5 7
10 5 15
1t
lime
.5 20 25 2D 75 30
the Belt, water, and brake sensors for each 0.5 second sample
saved into the microcontroller's EEPROM.
The same method is used to show the Lights status when the
"Lights Table" Button is pressed; however this table shows 8
lights sensors as shown in the figure 10.
IV
1- I-W -I5
IV. CONCLUSION
=
II
i,i,i,
~, ~
~ ~, ~,
full and detailed description was made for every part of this
system. This paper has also offered a user friendly visual basic
program to analyze the data of the accident. In addition, the
7method between the two parts has been
I I I I _7transmission
I
introduced and developed.
i,
I
I. I, I
I
_The Black Box system built can be implemented in any
I
vehicle. As soon as the driver runs the motor, this system will
begin saving the events of the corresponding vehicle. The last
7
75-1
are always saved in the EEPROM of the Black
Iw IoI I =e====21
=seconds
=
0
I II.=Box, and in case of an accident, an additional 10 seconds of
0 f
events after this accident will be saved. The data saved can be
IIII=,retrieved only after the accident for privacy purposes. Using
serial transmission, a VB.NET program will read the data from
the
EEPROM and display it to the user in Graphical format. In
10.
Lights
Table
Sample
Fig.
addition, a detailed report will be given to the user containing
The "Accident Graph" button, when pressed will open the alncsayifrain
form shown in the figure 11. This form shows 20 vehicle
samples (after the accident's samples). On each vehicle 8 icons
ACKNOWLEDGMENT
are placed exactly where the accident sensors were installed in
the vehicle. The true icon represents ON status of the sensor
Authors would like to acknowledge the financial support
while the false icon will represent an OFF status of the sensor. from NDU, and the CAD tools from Microchip Company.
Note that only 20 samples were shown in this form since all
the accident sensors are OFF before the accident.
REFERENCES
[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] htll//wwwairba crash corn (General Motor Event Data Recorders)
Accident Position
A|t The Ajkiden t
i
A TtHU
Ld s
AccidST=d
T +1
T+1s
.E
T+2
T+p
T-5s
T+2R
< |}||
<w
T 43+
2)
T_
1 k a1
1><t-
_5_
If
T+
T+
l l< |~~~~~~~~~~~T+9<
[5] Thomas K. Kowalick, "Fatal Exit: The Automotive Black Box Debate",
Wiley, IEEE Press, Feb. 2005.
J.
[6] Lawrence and T. Newbery, "Crash Data Recorders in Motor Vehicles",
1Maclnnis Engineering, Associates, 2003.
[7] lii, ://wwv~b
~cv~k(Inductive proximity sensor HYP-18RL8P)
p <;11|
[8]711Chidester, Augustus, et al, "Recording Automotive Crash Event Data"
I<7 < ll i YInternational Symposium on Transportation Recorders, Arlington, VA,
1999.
<1l t<711
<1||
~~~~~~~~~~[9] L. Dae Geun, J. Se Myoung, L. Myoung Seob, "System on Chip design of
| |iB14
J 4t[21g IX tt| ~~~Em bedded Controller for Car Black Box", Intelligent Vehicles
T7s
T7.
||
Symposium
I
IEEE 2007, pp. 1174-1177, 13 June 2007.