Professional Documents
Culture Documents
Abstract- Brushless DC (BLDC) motors are widely used for motor, section 3 explains the design of PID controller using
many industrial applications because of their high efficiency, high Ziegler-Nichol's (ZN) method, section 4 gives brief overview
torque and low volume. The aim of this research is to develop a of GA, section 5 briefly illustrate the design of PID controller
complete model of the BLDC motor and to design an using GA method, section 6 presents the comparison between
optimal controller for its position control. Generally PID the results obtained by the GA and ZN method and finally,
controller is used for many control problems because of its section 7 concludes the paper.
simple structure and easy implementation. However in
practice, we often do not get the optimum performance with the
II. MATHEMATICAL MODELING
conventionally tuned PID controllers. For this purpose, Genetic
Algorithm is proposed as a global optimizer to find the
Fig. I shows the basic building blocks of BLDC motor and its
optimized PID gains for position control of BLDC motor.
The efficiency of this method is compared with that of
Driving circuitry.
traditional method. Simulation results showed that PID
control tuned by GA provides more efficient closed loop j---------------------.-------------------------,•
.
riALL 5f.MOR5{A eel
response for position control of BLDC motor. The modeling,
control and simulation of the BLDC motor have been done
using the software package MATLAB/SIMULINK.
I. INTRODUCTION
Authorized licensed use limited to: UNIVERSIDAD POLITECNICA DE VALENCIA. Downloaded on June 05,2022 at 00:17:53 UTC from IEEE Xplore. Restrictions apply.
IEEE - International Conference On Advances In Engineering, Science And Management (ICAESM -2012) March 30, 31, 2012 640
f
angular velocity.
Sampling period 10 J.lS
Friction constant 0.0001 Kg-m s/rad s, = ro,dt (3)
2
Motor moment of inertia 0.000018395 Kg-m s /rad
A. Electrical subsystem
The electrical part of DC brushless motor and relationship
between currents, voltage, and back electromotive force and
rotor velocity is derived using Kirchhoff's voltage law [6]:
Authorized licensed use limited to: UNIVERSIDAD POLITECNICA DE VALENCIA. Downloaded on June 05,2022 at 00:17:53 UTC from IEEE Xplore. Restrictions apply.
IEEE - International Conference On Advances In Engineering, Science And Management (ICAESM -2012) March 30, 31, 2012 641
TABLE II CLOCKWISE ROTATION voltage is less than the reference voltage, control signal is set to
Hall Hall Hall
EMF A EMF B EMF C one for t = 2T" where Ts is sampling time. In other case control
Sensor A Sensor B Sensor C signal is set to zero. In this way a pulse width modulated
0 0 1 0 -1 1 (PWM) signal having fixed frequency with variable duty cycle
0 1 0 -1 1 0 is obtained. This PWM signal is then mUltiplied with the output
0 I I -I 0 I from gate logic to drive three phase Power Convertor.
I 0 0 I 0 -I
I 0 I I -I 0
1 1 0 0 1 -1
-I
-1
-I
0
I
1
0
0
0
1
0
0
I
0
I
1
0
0
t5
c
=K
P
(1+ I:= +T
7; (.:;-1) d
=-l)e
Ts
(5)
I 0 -I I 0 0 0 0 I
The gain tuning of PID is done by increasing the
proportional gain until the system oscillates; that gain is KII• At
I -I 0 I 0 0 I 0 0
this instant, time interval is measured between peaks to get Til"
Table V gives approximate values for the controller gains.
In Reference current generator block as shown in Fig. 4,
PID controller attempts to minimize the difference between TABLE V. T HE ZIEGLER-NICHOLS RULES (FREQUENCY RESPONSE
METHOD )
desired angle and the actual measured angle by taking a
corrective action to generate reference current signal. Direction Controller Kp T; Td
of rotation is based on the sign of that reference current.
PID 0.6 x /(" Tn 12 T,,12
: .J
Step Response
1.6 ,-----,---
- =----,-
-----,------,--�---,----___,
-- -----____,
,
.. .
f ::;.: : : : :t
.... .... . ..
Fig. 4. Reference Current Generator Block
, .......... , ....
In current control block shown in Fig. 5, the reference
o�_� .....
current from current generator is transformed to reference
voltage signal by using Ohm's law (Vre! = ire! R). This reference -0.2 ' .......... , .......... , .......... , .......... , .......... , .......... , .......... , ....
o 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
voltage is then compared with the measured voltage across Time [sec]
control resistance Rc, where Rc=O.OJrL When the measured Fig. 6. Step response
Authorized licensed use limited to: UNIVERSIDAD POLITECNICA DE VALENCIA. Downloaded on June 05,2022 at 00:17:53 UTC from IEEE Xplore. Restrictions apply.
IEEE - International Conference On Advances In Engineering, Science And Management (ICAESM -2012) March 30, 31, 2012 642
f e(t)dt
Td T
0.005
Overshoot 54%
IAE =
(6)
o
Rise Time 0.03 sec
Genetic algorithms try to imitate the properties of natural Fitness value = ------
(7)
selection and natural genetics. It begins with initial population
Performancelndex
that consists of coded strings of binary numbers, called
chromosomes that hold possible solutions of the problem. Their D. Termination Criteria
performance is evaluated by a fitness function. Strings with Termination of algorithm takes place when the value of the
higher fitness value are likely to survive to the next generation fitness function for the best point in the current population is
as parents. It uses three operators namely selection, crossover less than or equal to fitness limit and the change in the value of
and mutation to produce next generations. This procedure is fitness function is less than function tolerance. The best
repeated until it finds the optimal solution to the problem. member of the population was selected and plotted in the
graph. The variation of the PID parameters Kp, Tj and Td are
V. TuNING OFPID CONTROLLER USING GENETIC shown, respectively, in Fig. 7 to Fig. 9.
ALGORITH M ApPROACH
5000 ����-�-�-�-�-�-�-�
The values of the PID controller parameters Kp, Tj and Td
are optimized using GA to ensure optimal control performance.
The steps involved in evaluating best possible controller gains 4000 i
are listed below:
:
':::c:.0..3000 ----------
A. initialization of Parameters
To initialize GA, we have to define certain initial 2000:
• • •
---------- ---------------------- -----------,
•
. . . j
parameters. The performance of the designed controller
depends heavily on how well we assigned the values to these 1000: --------- - ---------- ----------- ---------_ ----------_ _---------_ _----------
o :���-�-�-�-�-�-�-�-�
B. Objective Function for the GA o 10 20 30 40 50 60 70 80 90
To calculate the fitness of each chromosome, selection of Generation
objective function is very critical. The objective functions are
Mean of the Squared Error (MSE), Integral of Time multiplied Fig. 8. � convergence
Authorized licensed use limited to: UNIVERSIDAD POLITECNICA DE VALENCIA. Downloaded on June 05,2022 at 00:17:53 UTC from IEEE Xplore. Restrictions apply.
IEEE - International Conference On Advances In Engineering, Science And Management (ICAESM -2012) March 30, 31, 2012 643
2400 4200
Ziegler Nichols Method Genetic Algorithm Method
0.02 7
Kp
T
i 0.005 0.007142
10 20 30 40
Generation
50 60 70 80 90 T
d 54% 1%
0.03 0.03
Overshoot Less than
9. Td convergence
0.09 0.051
Fig. Rise Time sec sec
It is evident from the results that the best particle has an Settling Time sec sec
excellent convergence before reaching generation limit. The
plot of the error, which is based on IAE criterion for all
iterations, is shown in Fig. 10. Apart from step response, various simulations are carried
out in which sinusoidal and square waves having various
!
400O
amplitude and frequencies are applied. Performance
3800- ----------,- - - - - - - - - - - �- - --,-- ----------,-- ----------;-----------,- - -----,----
comparison of GA optimized controller with the controller
__________ _ 1 - -.. - ---------�- ---------- ______1 __
tuned by ZN method from various simulations are shown in
3400 � Fig.12 to Fig. I S.
W
3200 �
g; 3000 � 4 --------,---,
2800 �
3
2600 �
2400 � 2
............•................-
...-
...-:-.�-
.. -...;--...;--
!
2200
o
L
10
L
20 30 40 50 60 70 80 90
Generations
� .
Fig. 10. JAE convergence 5
f -1·
ft! :
PID parameters acquired after GA optimization are listed
below:
-2·· ·
TABLE VIII.
I :i
OPTIMIZED GAIN USING GENETIC ALGORITHMS
4200 I :d0071429 I ..
Kp -3f-
-4 .
o 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
Time [sec]
VI. SIMULATION RE SULTS AND CO MPARISON
Fig, ]2, Sinusoidal response 3deg at 5Hz
With optimized PID gains using GA, the step response of
8 __ __ __ ____ __ __ __----,_------------,
!
-
1.6�--�,,� :----� --�--�--�-,_ __-_-R-ere
- -- ---- -,
- -ce
- '-en 4
............. .
t,
g'�
}ft!
; .. . . ,-_
--
0
a.
-2 i ·
-4
-6
Fig, 11. Performance comparison Fig, ]3, Sinusoidal response 6 deg at 3Hz
Authorized licensed use limited to: UNIVERSIDAD POLITECNICA DE VALENCIA. Downloaded on June 05,2022 at 00:17:53 UTC from IEEE Xplore. Restrictions apply.
IEEE - International Conference On Advances In Engineering, Science And Management (ICAESM -2012) March 30, 31, 2012 644
REFERENCES
- - - -Reference
•; :;
----� - --------+ ---------! - - - -ZN Output
[1] N. Hemati, 1. S. Thorp, and M. C. Leu, " Robust nonlinear control of
" --GAOutput
I' Brushless dc motors for direct-drive robotic applications," IEEE Trans.
....... .. 1. -
- ---- -
Ind. Electron., vol. 37, pp. 460-468, Dec 1990.
I: ,
[2] P. M. Pelczewski and U. H. Kunz, 'The optimal control of a constrained
drive system with brushless dc motor," IEEE Trans. Ind. Electron., vol.
37, pp. 342-348, Oct. 1990.
[3] K. Ang, G. Chong, and Y. Li, "PID control system analysis, design, and
,- -------\, -r' - ,
technology," IEEE Trans.Control System Technology, vol. 13, pp. 559-
f -----, --------t, �:
576, July 2005.
:
-- - ------ + ------�-! ----- - : -- -- ________ ',�.: [4] T. O" Mahony, C J Downing and K Fatla, " Genetic Algorithm for PID
,: Parameter Optimization: Minimizing Error Criteria", Process Control
----�
, �'
-------'�� �} II
-----� ---------! ---------�- ---------� ---------!
�
and Instrumentation 26-28 July 2000, University of Stracthclyde, pg
,' !
�
- - - -
__
-\
___ _
\'
!
-10� O-: .1:------:
0 ----� 0�.2 :- -� 0.�3 �O�.4:------:
0�.5:- -�. 0 6�----O�.-: 7:- -----:
0.�:- 8 -0�.9:--�
Time Isecl
VII. CONCLUSION
Authorized licensed use limited to: UNIVERSIDAD POLITECNICA DE VALENCIA. Downloaded on June 05,2022 at 00:17:53 UTC from IEEE Xplore. Restrictions apply.