Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

2013 International Conference on Electrical, Electronics and System Engineering

Smart Helmet with Sensors for Accident


Prevention

Mohd Khairul Afiq Mohd Rasli, Nina Korlina Madzhi, Juliana Johari
Faculty of Electrical Engineering
Universiti Teknologi MARA
40450 Shah Alam Selangor, MALAYSIA
julia893@salam.uitm.edu.my

Abstract—The impact when a motorcyclist involves in a high safety helmet that we created is embeddedwith sensors which
speed accident without wearing a helmet is very dangerous and act as detectorsfor rider’s head and the safety belt itself. The
can cause fatality. Wearing a helmet can reduce shock from the engine of the motorcycle can start only if the rider has buckle
impact and may save a life. There are many countries enforcing a up its’helmet safety belt. The second safety method that we
regulation that requires the motorcycle’s rider to wear a helmet
introduced is another sensor which acts as an alarm to the rider
when riding on their motorcycle, Malaysia is an example. With
this reason, this project is specially developed as to improve the when the motorcycle speed exceeds 100km/h. Indicator is
safety of the motorcycle’s rider. Motorcyclist will be alarmed placed and will flash to alert the rider about the speed limit.
when the speed limit is exceeded. A Force Sensing Resistor (FSR) A microcontroller is used in this project to control the
and BLDC Fan are used for detection of the rider’s head and
detection of motorcycle’s speed respectively. A 315 MHz Radio
system. The microcontroller used to operate the project is
Frequency Module as wireless link which able to communicate Peripheral Interface Controller (PIC) 16F84a. The PIC is an 8-
between transmitter circuit and receiver circuit. PIC16F84a is a bit controller. Since it has a small number of inputs and output,
microcontroller to control the entire component in the system. PIC kit software is needed to write the program in basic
Only when the rider buckled the helmet then only the compiler language. Other than that, Force Sensing Resistance
motorcycle’s engine will start. A LED will flash if the motor (FSR) and the speed sensor (BLDC Fan) are used as sensors to
speed exceeds 100 km/hour. operate this project.
Keywords-Mircocontroller PIC16F844a, 315 MHz Radio Therefore, the scopes of the project will be using two
Frequency Module, Force Sensing Resistance, BLDC Fan, 5V sensors which are Force Sensing Resistance (FSR) and a
Relay, LM311 and IC 555. BLDC Fan. The main purpose is actually to make some
research correlation on a Force Sensing Resistance (FSR) with
I. INTRODUCTION
resistance and a BLDC Fan with voltage. Signal transmission
Traffic accidents in Malaysia have increased year by year. between the two circuits is using a radio frequency concept.
Muhamad Nizam Mustafa who works in planning highway unit 315 MHz Radio Frequency Module is used since the range
in Ministry of Works stated that, the increase of road accidents between the circuits is short. While the microcontroller
is in link with the rapid growth in population, economic Peripheral Interface Controller (PIC) 16F84A is used to control
development, industrialization and motorization encountered the system.
by the country [1]. In 2010, motorcyclists made up more than
half the road fatalities in Malaysia. Statistics provided by the II. TECHNICAL STUDIES
Malaysian Institute of Road Safety Research (MIROS) showed A. Force Sensing Resistor (FSR)
that 4,067 motorcyclists died in 2010[1].
Force Sensor Resistor (FSR), structure shown in Fig. 1 (a)
A motorcycle’s helmet is a type of protective headgear used is placed inside the helmet as a tactile sensor to detect whether
by the motorcyclist. The main purpose is for safety, which is to the wearer is wearing their helmet. It consists of a Polymer
protect the rider's head from the impact during an accident. It Thick Film (PTF) device which exhibits a decrease in
protects the rider’s head as the helmet provides ventilation resistance with an increase in the force applied to the active
system. Speeding and not wearing a helmet are the main surface [2].
reasons of fatalities and injuries. It is proven that, as the speed
of motorcycles increased, so did the number of accident and The force vs. resistance characteristic shown in Fig. 1 (b)
fatalities [1]. This is again due to the shock of an impact during provides an overview of FSR typical response behavior. For
the accident. interpretational convenience, the force vs. resistance data is
plotted on a log/log format [2]. A mathematical formula
The objective of this project is to build a safety system in a produced based on the graph in Fig. 1 (b). Two point’s method
helmet and speed alert for a better safety of motorcyclists. The

978-1-4799-3178-1/13/$31.00 ©2013 IEEE 21


2013 International Conference on Electrical, Electronics and System Engineering

is used to find the mathematical formula. The formula However, due to its asymmetric rotor structure (Fig. 2 (b))
represents as below: of the single-phase BLDC motor, it has instantaneous torque.
Then, it becomes nonlinear. There are two components in
0.0014 9 (1)
electromagnetic torque of a single phase BLDC which are the
Where: y = Resistance (ohm) cogging torque and the excitation torque [5].
= Force (gram)

(a) (b)
Fig. 2. (a) BLDC Fan and (b) Asymmetric rotor structure

(a)
This BLDC Fan has four poles and external-rotor type
which are single-phase. Fig. 2 (b) shows the cross-sectional
view of stator and rotor assembly with the air gap [6]. The
single coil wounding the fan motor which is winding terminals
are connected to an inverter. This converter switched at a
frequency corresponding to rotor velocity. The differential
equations describing the dynamic behavior of single-phase
with four poles BLDC fan motor can be described as in (2).

(2)

Where: = Terminal voltage (phase voltage input).


Rs = Series Resistance
Ls = Series Inductance of stator winding
(b) Vemf = back-EMF induced by rotor flux variation.
Fig. 1. (a) Force Sensing Resistance Sensor Structure and (b) Resistance vs
Force. C. IC LM311 (Comparator IC)
Based on the graph, a switch-like response is evident. This In general, comparator IC is a device comparing two
turn-on threshold, or ‘break force, that swings the resistance voltages at the same time and give HIGH or LOW in the
from greater than 100 kΩ to at about 10 kΩ (the beginning of output. A reference voltage is fixed while the input voltage is
the dynamic range that follows a power-law) is determined by variable from zero to the supply voltage. Fig. 3 (a) below
the substrate and overlay thickness and flexibility, size and shows the simplest configurations for voltage comparators. Fig.
shape of the actuator, and spacer-adhesive thickness (the gap 3 (b) and 3 (c) shows the diagrams of the circuits that give the
between the facing conductive elements). Break force increases output results in a graphical form. Theoretically, the reference
with increasing substrate and overlay rigidity, actuator size, and input voltages can be used between any kind of values
and spacer-adhesive thickness [3]. from zero and the supply voltage, but there is practical
limitations on the actual range depending on the particular
B. Brushless Direct Current (BLDC) Fan device used [7].
Brushless Direct Current (BLDC) Fan motors (as in Fig. 2
(a)) are widely used in electronic as a cooling device but in this
project, it is used as a speed sensor. This is because the
characteristics of BLDC Fan are high efficiency, low cost,
simple mechanical construction, and maintenance frees [4].
The phase windings of a brushless permanent magnet motor
can be categorized as single-phase, two-phase, or three-phase,
their flux distribution can be either sinusoidal or trapezoidal
[4]. This BLDC motor is single-phase which the trapezoidal
flux is distributed.

(a)

978-1-4799-3178-1/13/$31.00 ©2013 IEEE 22


2013 International Conference on Electrical, Electronics and System Engineering

(b) (c)
Fig. 3: (a) Configuration of comparator circuit, (b) and (c) Output diagram of
comparator.
Fig. 4: Astable circuit connection.
The output from comparator is either HIGH (ON) or LOW
(OFF). There are two conditions probably outcomes for the , 0.7 1 2 2 1 (4)
output: .
, (5)
• Current will flow through the output (open collector) if
the voltage at the PLUS (+) input is lower than the
voltage at the MINUS (-) input.
Where: T = Time period in second (s)
• Current will not flow through the output (open f = Frequency in Hertz (Hz)
collector) if the voltage at the PLUS (+) input is higher R1 = Resistor in Ohm (Ω)
than the voltage at the MINUS (-) input. R2 = Resistor in Ohm (Ω)
Setting the voltage reference is to select the right range of C1 = Capacitance in Farads (F)
voltage input for the output in current or voltage to trigger.
There are several concepts to set the voltage reference. The III. METHODOLOGY
simplest is by using the voltage divider. Based on Fig. 3 (a),
value resistors R1 and R2 must be changed due to the desired A. The Description of Flowchart
value by using voltage divider rule. In theory, a voltage divider 1) At A: Initially, a suitable microcontroller is used to
consisting two resistors connected in series that across supply control all the input such as sensors [10]. In embedded system,
voltage (Vin) produced voltage output that is fraction from PIC16F84a is most suitable as the controller that can read up to
voltage supply [8]. The supply voltage is divided up between four inputs.
the two resistances R1 and R2. This depends on the value of R2 2) The function of PIC16F84a is to read the input like a
relative to R1. switch. Therefore, it is easy to implement and interface with all
sensors and switch (Fig. 6 (b) (1)). The size of PIC16F84a is
small and it is low cost too [11]. Radio Frequency (RF). Radio
(3) Frequency is a wireless concept which is used to transmit data
from helmet to the motor. The signal can be transmitted up to
Where: V+ = supply voltage 100 meters in open space and continuously [12]. A 315 MHz
Vi = supply voltage for comparator frequency is chosen because 315 MHz is in interval of testing
R1 = Resistor 1 band and it is free license to use. This RF Module consists of
R2 = Resistor 2 Transmitter Module and Receiver Module. Each RF module
have its own circuit called the transmitter circuit and is placed
D. IC Timer 555 at the helmet (in Fig. 6 (c) (2)) and the receiver circuit is
placed in the motorcycle (in Fig. 6 (d) (2)). Radio Frequency
An astable circuit using IC timer 555 produces square wave
transmitter circuit consists of transmitter module, PT2262 as
[9]. This circuit produced ‘beep-beep’ sound for the buzzer.
remote encoder and 8-pins DIP-Switch (in Fig. 6 (a) (1)).
This square wave which is in digital form will change LOW
Radio Frequency receiver circuit consists of transmitter
(0V) to HIGH (+Vs). It is not stable in any state because the
module, PT2263 as remote decoder and 8-pins DIP-Switch (in
output is continuously changing between HIGH and LOW as in
Fig. 6 (b) (2)).
Fig. 4 (a). The duration of the LOW and HIGH state may vary
due to circuit and value of component. 3) At B: Force Sensing Resistor (FSR) is installed in the helmet
(in Fig. 6 (c) (1)). The Force Sensing Resistor (FSR) sensor
Fig. 4 shows the astable circuit connection. Technically, it’s
detects the head of motorcyclist. It connects directly to the
considered as Frequency (f) which is the number of cycle for
transmitter circuit as a switch (in Fig. 6 (a) (2)). So, the
one period (second). Based on the astable circuit, the time
transmitter circuit will be automatically ON when the helmet is
period (T) and Frequency (f) as in equations (3) and (4) are
worn. An IC timer 555 was used and placed in the transmitter
shown respectively.
circuit (in Fig. 6 (a) (3)) with a buzzer to produce a ‘beep-

978-1-4799-3178-1/13/$31.00 ©2013 IEEE 23


2013 International Conference on Electrical, Electronics and System Engineering

beep’ sound and this sound will be heard affter the transmitter the signal, thePIC16F84a will read the signal and give output
circuit is ON as an indication to the rider foor buckle-up to the HIGH at pin 13 PIC16F84a; to t activate the relay to contact.
helmet belt. As the second safety, a SPD DT limit switch is After that, PIC16F84a will readd the signal from the comparator
installed on the helmet’s buckle (in Fig. 6 (c) (3)) to detect (speed sensor). If the signal from comparator is HIGH the
whether the rider is buckle-up or not. It is dirrectly connected in output from the pin 14 PIC16F F84a will be high and prompted
series with Force Sensing Resistor (FSR) as (in Fig. 6 (a) (4)). LED to flash. Otherwise, it willl be vice-versa.
This SPDT limit switch connected parallel too IC Timer 555 (in
Fig. 6 (a) (3) and (4)). After buckling-up, therre is a short circuit
supply for IC timer 555. Therefore, a ‘bbeep-beep’ sound
1
disappeared and the short circuit gives input to the RF
Transmitter module and send signal to the RF F receiver module.
4
2
A

3
B C

(
(a)

(
(b)

Fig. 5 Flow chart

3 (
(c)
4) At C: RF receiver module is placedd at receiver circuit
and the receiver circuit is placed under the motorcycle’s seat
(in Fig. 6 (d) (2)).The receiver module is to read the signal
from the transmitter module. This signal istto be the input for
PIC 16F84a and the output was connected too IC ULN2803 and
(
(b)
to the relay (in Fig. 6 (b) (1)). The relay is inn a normally closed
position is connected in series to the output wire of Capacitor
Discharge Ignition (CDI) motorcycles. A BLDC Fan is 1
installed in front of the motorcycle as the speeed detector (Fig. 6
(d) (1)). If the speed is over the limit, then thet LEDwill flash.
The LED was installed beside the speed metter (Fig. 6 (d) (3)).
Therefore, the output from BLDC Fan connnected to the IC
LM311 (in Fig. 6 (b) (3)) then connected to thhe PIC16F84a and
a LED. Then, the PIC16F84a is programmed. 2
PIC16F84a is programmed in assembly language
l by using
basic compiler. PIC kit 2 software is used to program and burn
the PIC16F84a. There are several commandss that were burned
in the PIC16F84a. Firstly, when RF receiveer module received 3

978-1-4799-3178-1/13/$31.00 ©2013 IEEE 24


2013 International Conference on Electrical, Electronics and System Engineering

voltage is used as a voltage refference for the comparator since


(c) the LED will be flashing if thhe speed exceeds 100 km/ hour.
Then, voltage reference for com mparator is set to 3V. To set the
1 voltage reference is based on the
t circuit Fig. 3 (a) connection
and equation (3). The voltage supplied for the circuit is 5 V
3
which is constant. The value resistor R2 must be set to one
value that is 1 kΩ. These valuees substitute into equation (3) to
get the value of R1 for vooltage reference of 3 V. The
calculation is stated as below:

2 K
From equation (3), 3 5
R K

Therefore, 1 666.67 Ω

B. Force Sensing Resistance (FSR)


(F
(d) Resistance of the sensor beecomes lower when the applied
force is higher. About 1000 graams and above, the resistance is
Fig. 6: (a) Transmitter circuit, (b) Receiver circuit, (c) Helmet hardware
design and (d) Motorcycle hardware and design. below than 1 Ω that can allow w current to flow as shown in
Fig.1 (b). The FSR need to bee more sensitive anda plate was
designed to make better contaact to the FSR. These designs
IV. RESULTS& DISCUSSIO
ON consist of two plates of prospect, a rubber band and springs.
A. BLDC Fan (Speed Sensor) The design as shown in Fig. 8 below:
b
An experiment of the speed sensor whichh is BLDC Fan has
been done. The purpose is to measure the vaalue of voltage that
corresponds with the motorcycle speed. ThereT are several
steps to measure the BLDC Fan output:
1) Experimental
• The two terminal of BLDC Faan is connected to
the multimeter to measure the vooltage.
• Placed the BLDC Fan in front of o motorcycle and
make sure the BLDC Fan perrpendicular to the
motorcycle (allow maximum airr –flow). Fig. 8: Force Sensing Resistance.
• Voltage measured every 10km/hhour This design improves the coontact of Force Sensing Resistor
• Every measurement filled inn the table and (FSR) sensor. The rubber sizee maximizes the contact to the
sketches electrode area and the springs return to its normal position if
the rubber is bending. This way,
w a simple force makes the
resistance below 1 Ω and can eaasily detect the rider’s head.
C. 315 MHz Radio Frequency Module
1) Situation for data transmmitting
IC PT2262 placed at the transmitter circuit is a remote
encoder that encode the signaal first before sending it to the
receiver circuit by using 8-Pinns DIP-Switch manually. Then,
315 MH z Radio Frequency Trransmitter Module send signal to
the 315MHz Radio Frequency Receiver Module. The right
combination of the DIP-Swittch at the receiver circuit can
decode the signal of IC PT T2272 which is the signal is
synchronous. This signal is inn the form of digital and have
four data pin. Each data pin connnected to LED but only single
Fig. 7: Graph Speed vs Voltage DATA is used since Force Sennsing Resistor (FSR) and SPDT
Limit Switch are connected in series. The digital form is
Fig. 7 is a graph about voltage varies with the speed of HIGH (5 V) or LOW (0 V). ThereT are several situations that
motor. When the speed increased, the voltaage also increased. prompted the signal as shown in the Table 1.
This is because more flux produced when speed is increasing
through the winding of BLDC fan. Based on the graph, the
output voltage from BLDC Fan is 3 Volt at 100 km/hour. This

978-1-4799-3178-1/13/$31.00 ©2013 IEEE 25


2013 International Conference on Electrical, Electronics and System Engineering

hardwire. Therefore, a rider would not get disturbed by the


Table 1: Situations producing signals. wire while riding the motorcycle.
Observations
No VI. FUTURE WORK
Situations LED Digital
Not wearing helmet and not Another type of wireless communication can be used
1 OFF LOW because RF module has some limitations which only provide
buckling the belt
2 Wearing helmet only OFF LOW one way data transmission. Besides, we can add a buzzer in
the helmet, like the LED will be flashing when the speed
3 Buckle the belt only OFF LOW
exceeds. The LED is placed at the speed meter of a
Wearing helmet and buckle the motorcycle not too alarming. By inserting a buzzer in the
4 ON HIGH
belt
helmet, the motorcyclist will be more alert and will slow down
the motorcycle once they received the signal.
2) RF data transmission
REFERENCES
A 315 MHz Radio Frequency shows the continuous data
[1] Mohamad Nizam Mustafa , “OVERVIEW OF CURRENT ROAD
transmitting between RF transmitter module and RF receiver SAFETY SITUATION IN MALAYSIA,” Highway Planning Unit Road
module. The continuity of data transmitting was observed by Safety Section Ministry of Works, 2010
using oscilloscope. Fig. 9 shows the results of input signal to [2] Thum Chia Chieh; Mustafa, M.M.; Hussain, A.; Zahedi, E.; Majlis,
the RF transmitter and output signal from the RF module. B.Y.; , "Driver fatigue detection using steering grip force," Research
and Development, 2003. SCORED 2003. Proceedings. Student
[3] Kagami, S.; Takahashi, Y.; Nishiwaki, K.; Mochimaru, M.; Mizoguchi,
H.; , "High-speed matrix pressure sensor for humanoid robot by using
thin force sensing resistance rubber sheet," Sensors, 2004. Proceedings
of IEEE, vol., no., pp. 1534- 1537 vol.3, 24-27 Oct. 2004
[4] Chun-Lung Chiu; Chen, Y.-T.; You-Len Liang; Ruey-Hsun Liang; ,
"Optimal Driving Efficiency Design for the Single-Phase Brushless DC
Fan Motor," Magnetics, IEEE Transactions on , vol.46, no.4, pp.1123-
1130, April 2010
[5] Wei-Chao Chen; Ying-Yu Tzou; , "Current-mode sensorless control of
single-phase brushless DC fan motors," Power Electronics and Drive
Systems (PEDS), 2011 IEEE Ninth International Conference on , vol.,
no., pp.659-663, 5-8 Dec.
[6] Wei-Chao Chen; Ying-Yu Tzou; , "Efficiency optimization control for
single-phase brushless dc fan motors," Power Electronics and Motion
Control Conference, 2009. IPEMC '09. IEEE 6th International , vol.,
no., pp.1913-1918, 17-20 May 2009
[7] Boutigny, Pierre-Henri; Nguyen, Huy Anh; Raoulx, Denis; , "1GHz
Analog Comparator and Switch Matrix for 8-Channel Analog Data
Acquisition System," Solid-State Circuits Conference, 1988. ESSCIRC
'88. Fourteenth European , vol., no., pp.106-109, 21-23 Sept. 1988
[8] Hart, B.L.; , "Precision voltage-divider circuit," Electronics Letters ,
Fig. 9: Result of 122 Hz square wave signal transmission (CH1 – input, CH2 – vol.7, no.23, pp.679-680, November 18 1971
output) [9] Rezal, M.; Mariun, N.; Aris, I.; , "Simple boost converter using Timer
IC 555 for charging capacitor banks," Research and Development
As shown in Fig. 9 above, the input signal from input RF (SCOReD), 2010 IEEE Student Conference on , vol., no., pp.272-274,
transmitter alternates between HIGH and LOW and similar to 13-14 Dec. 2010
the output from RF receiver. The time of changing also has [10] Ferreira, L.; Matos, E.L.; Menendez, L.M.; Mandado, E.; , "MILES: A
been synchronous between input and output. This condition Microcontroller Learning System combining Hardware and Software
tools," Frontiers in Education, 2005. FIE '05. Proceedings 35th Annual
proves the reliability of wireless link as a medium of data Conference , vol., no., pp.F4E, 19-22 Oct. 2005
transmission. [11] Jianyun Ni; Jing Luo; , "Microcontroller-based engineering education
innovation," Educational and Information Technology (ICEIT), 2010
V. CONCLUSION International Conference on , vol.3, no., pp.V3-109-V3-112, 17-19 Sept.
2010
The results of this project have provedthat the motorcycle’s
[12] Thamrin N, M.; Rosman, R.; Sarmawi, D.S.; , "Design and analysis of
engine will only start is the helmet is worn and the belt has wireless controller panel using RF module's for robotic
been buckled. So, it will reduce the impact from accident and wheelchair," Industrial Electronics and Applications (ISIEA), 2011
can prevent motorcycles from being stolen. Besides, the LED IEEE Symposium on , vol., no., pp.376-381, 25-28 Sept. 2011
will flash when the speed exceeds 100 km/hour as alarm
because over the speed limit signal to alert the rider.
Peripheral Interface Controller (PIC) 16F84a is good in
controlling all sensors and the system. Implementing the
wireless module which is 315 MHz Radio Frequency
Moduleto transmit signal from helmet to the motorcycle
improved the capability of transmitting data instead of

978-1-4799-3178-1/13/$31.00 ©2013 IEEE 26

You might also like