Position Control of Low Cost Brushless DC Motor Using Hall Sensor
Position Control of Low Cost Brushless DC Motor Using Hall Sensor
Abstract— This paper concerns the research on position control for valve angle is explained. The motor control for adjusting
of low cost brushless DC (BLDC) motor. Usually BLDC motors the angle of the intake valve depending on engine speed is
are controlled by using the hall-effect sensor in a low cost proceeding. As the motor control is used for the opening and
application. Based on the characteristics of back electromotive closing operation, the system will be better.
force (back EMF), the rotation information of rotor can be
acquired from the hall sensor. During the one electrical cycle, the
motor has six trigger signals for three phases. Speed and position
of the rotor can be calculated by using hall sensor signal. The
motor system has 30:1 gear ratio in experiment. Then, the
number of hall sensor signal per one cycle is 180. Using the
dsPIC33FJMC804 CPU as controller, some experiments were
performed with the prototype which is the surface-mounted
permanent magnet motor. Currently it is being developed for air
intake system of vehicle.
2nπ
ex = K w + f (θ e − )ωm (2)
3
The back EMF is related to a function of rotor position. Kw
is back EMF constant of one phase, θ e is the electrical rotor
angle and ωm is the rotor angular velocity. The subscript x
presents a, b, c phase. If x is a, b and c phase, n is 0, 1 and 2.
Unlike the induction motor or synchronous motor control,
phase variables are used directly without any transformation
equation in BLDC motors. The physical properties as current,
flux and back EMF has rectangular forms, so coordinate
transformation is not needed.
Figure 2. Back EMF and hall effect sensor signal
Pe = e a i a + e b i b + e c i c (3)
ea ia + ebib + ec ic 2 EI (5)
Te = =
ωm ωm
The total output torque is a simple equation of back EMF E
and current I. According to (5), to produce an electromagnetic
torque, the sum of eaia, ebib and ecic has to be constant as far as
a certain speed is concerned. As shown in Fig. 2, this means
Figure 3. Electric circuit of BLDC motor
rectangular phase currents with the corresponding back EMF
which is required.
dix
Vx = Rix + L + ex (1)
dt
Where, Vx is the input voltage, ix is the current, R is the
resistance, L is the inductance and ex is the back EMF, Figure 4. BLDC motor and driver
The motor is an inner rotor type with two poles. It is very For speed and position control, rotor position must be
small sized driver that is placed in motor case. And motor detected. There are phase detectors as resolver, encoder, and
system has mechanical structure of gear ratio 30:1. The rated hall sensor. The resolver is excellent benefits and a simple
voltage is 12[V], rated current is 1[A] and maximum current is structure, but must be applied to the resolver’s stator winding
5[A]. As seen in Table II, motor parameter is presented. for excitation signal, so hardware has the disadvantage of
complexity. The absolute encoder output directly to a digital
Motor controller is composed of power, controller and signal beam and a digital output signal is proportional to the
drive part. Fig. 5 is a logic diagram of BLDC motor system. rotational speed of the frequency changes. When the digital
controller is designed it is easy to use. The hall sensor is
unsuitable for the high precision control because the three
phase of square wave with 120-degree is generated. But in this
motor test, the hall sensor is used as low precision speed
control can be required.
V. CONTROL
The BLDC motor driver has been operated by 120-degree
or 180-degree turn-on method. The two-phase conduction
method has 120-degree turn-on section and three-phase
conduction method has 180-degree turn-on section. The three-
phase conduction method has more torque ripple than 120-
degree conduction. Then, the three-phase conduction method is
not used generally [7]. Three hall-effect sensors are usually
used to detect the commutation point at every 60 electrical
degrees. In Fig. 6, control sequence is presented block diagram
Figure 5. Logic diagram of BLDC motor of current control, speed control and position control.
Parameter Description
Motor Type 3ph BLDCM
Weight 226.5 g
Rated Voltage 12 V DC
Rated Speed 7380 rpm Figure 6. Control block diagram of BLDC motor
Rated Current 0.98 A
The interval time for motor speed can be calculated from
Rated Torque 9.9 mNm
the counter of the PWM interrupt. The electrical frequency is
Stall Current 7.01 A acquired from the time as seen in Fig. 7. If the frequency and
Stall Torque 79.5 mNm rotor pole number are known, the motor rpm will be achieved.
Resistance 0.05 Ohm
The rpm of rotor are described in the following equation.
Back EMF 580 mVrms@1000rpm
120 × Fr (6)
Sr =
P
A. Control Part
To drive BLDC motor, the CPU generates three pulse Where, Sr is the rpm and P is the pole number of rotor. Fr is
width modulation (PWM) signals. Average DC input voltage the rotation frequency of rotor and presented calculated by
can be changed with the duty ratio of PWM signal. Then, the 1/Tint. The Tint is the time between triggers of hall sensor signal.
current flowing to the motor will be changed depending on
input voltage. That is, if switching sequence in Table I and
PWM input voltage can be produced, BLDC motor will be
operated. The PWM frequency used in this study is 10 kHz.
B. Input Signal Part Figure 7. Triggers of hall sensor signals and time interval between triggers
For current control, current detecting circuit is required. It The position and speed of rotor can be calculated using
checks the change of current. The signal from sensor is rising and falling edge of hall sensor signals. Thus it is
converted to adjusted signal for CPU. In this paper, the shunt generated 180 signals for one electrical cycle in case of 30:1
resistor was used for inexpensive module. The resistance of 2 geared motor. If rotor has two magnetic poles, rotating angle of
Watt, 0.01ohm is used and measured current is transformed to 2-degree is calculated from first hall sensor trigger signal to
voltage with level of 0.33 volt per 1 Ampere. next. In addition, this angle value is enough for position control
in intake system of automobile. For position control, each TABLE III presents reference angle and result angle. The
trigger point has counter value. That is, 0-degree of rotor is 1st system has always 2-degree angle error because of resolution
point, 2-degree is 2nd point and 90-degree is last point. These of hall sensor. The experiments are processed by using angle
points are used for position control. A closed loop control measurement equipment as seen in Fig. 8.
algorithm with a PI controller is presented as follows.
TABLE III. EXPERIMENTAL DATA OF ROTOR POSITION ANGLE
e = θ r* − θ r (7)
Ref. Experimental Data
(8) Angle
y = K p e + K i ∫ edt SPL #1 SPL #2 SPL #3 SPL #4
0° 0° (0°) 0° (0°) 0° (0°) 0°
y − y0 e − e0 (9) 15° 14° (-1°) 16° (+1°) 15° (0°) 15°
= Kp( ) + Kie
Δt Δt 30° 29° (-1°) 31° (+1°) 31° (+1°) 30.3°
45° 45° (0°) 46° (+1°) 46° (+1°) 45.6°
y = y0 + K p (e − e0 ) + K i e ⋅ Δt (10) 60° 60° (0°) 61° (+1°) 61° (+1°) 60.6°
75° 76° (+1°) 77° (+2°) 76° (+1°) 76°
In this paper, we define the position error e, previous error
90° 91° (+1°) 92° (+2°) 91° (+1°) 91°
e0, reference speed θ r* and measured speed θ r . The y is output
of the PI controller and y0 is previous output and Δt is the
sampling time. Kp and Ki are the proportional and integral gains VII. CONCLUSION
of the PI controller respectively.
This paper has presented a three-phase control technique
for BLDC motor which is used in air intake valve system of
VI. EXPERIMENTAL RESULTS automotive and described system hardware requirements. And
The intake valve moves only between 0 and 90-degree. control performance was verified by experiments.
First, the response time was tested. From start point 0-degree to
For a low cost control of BLDC motor, hall-effect sensor
end point 90-degree, the motor driver has average value of
was used and position information from sensor signal was
120ms response time for several test in Fig. 8.
acquired for motor control. Although air intake system has
insignificant position error for operation, it is negligible for
normal operation. Rather the response time is more important
than the accurate position.
REFERENCES
[1] N. Ravi, S. Ekram, and D. Mahajan, “Design and Development of a In-
Wheel Brushless D.C. Motor Drive for an Electric Scooter,” Power
Electronics, Drives and Energy Systems, 2006. PEDES '06. International
Conference on, 2006
[2] P. P. Acarnley, 1. F. Watson, "Review of Position-Sensor less Operation
Figure 8. Measurement for response time of Brushless Permanent-Magnet Machines," IEEE Trans. Industrial
Electronics Vol. 53, Iss. 2, pp. 352-362, Apr. 2006.
The second experiment is concerned with the accuracy of [3] H. A. Toliyat, L. Hao, D. S. Shet, T. A. Nondahl, "Position-Sensorless
the position according to the reference command. The results Control of Surface-Mount Permanent-Magnet AC (PMAC) Motors at
of position control are showed in Fig. 9. Low Speeds," IEEE Trans. Industrial Electronics Vol. 49, Iss. I, pp. 157-
164, Feb. 2002.
[4] Alaeinovin, P., Jatskevich, J., “Hall-Sensor Signals Filtering for
Improved Operation of Brushless DC Motors,” Industrial Electronics
Society, IEEE International Syposium , pp.613-618, June. 2011
[5] Yong-Kai Lin, Yen-Shin Lai, “Pulsewidth Modulation Technique for
BLDCM Drives to Reduce Commutation Torque Ripple Without
(a) Calculation of Commutation Time,” Industry Applications, IEEE
Transactions on Volume 47, pp. 1786-1793, 2011
[6] Tibor. B., Fedak. V., Durovsky. F., “Modeling and simulation of the
BLDC motor in MATLAB GUI,” Industrial Electronics (ISIE), 2011
IEEE International Symposium on, pp.1403-1407, 2011
[7] Hanyang Univ. Energy Conv. Lab., Electric Machinery, 1st ed.,
(b) Hongrung Publishing Company, 2011, pp.567.
Figure 9. (a) Position contol for reference angle 0 and 90-degree (b) Position
control for reference angle 0, 30, 60 and 90-degree