Professional Documents
Culture Documents
$RCSACO8
$RCSACO8
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
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)
(a)
(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-
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)
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
2 K
From equation (3), 3 5
R K
Therefore, 1 666.67 Ω