Professional Documents
Culture Documents
Control Inteligente en Simulink
Control Inteligente en Simulink
com
Systems
Engineering
Procedia
www.elsevier.com/locate/procedia
Graduate Workstation of North China Electric Power University & Yunnan Power Grid Corporation,Kunming,650217,China
b
Yunnan Electric Power Test & Research Group CO,LTD Electric Power Research Institute,Kunming,650217,China
c
North China Electric Power University,Beijing,102206,China
Abstract
The PWM speed regulation of DC motor based on intelligent control is discussed. The simulation is
carried out with the SIMULINK after that the mathematical model of controlled object is built. This
article introduces the PWM bipolar drive of DC motor, designs a fuzzy controller and a neutral network
controller and then discusses the application of artificial intelligence in the speed regulation of DC motor.
Elsevier Ltd.
Ltd.Selection
Selectionand
andpeer-review
peer-reviewunder
underresponsibility
responsibility
Desheng
Dash
2011
2011 Published
Published by
by Elsevier
of of
Desheng
Dash
WuWu.
Key Words: speed regulation of DC motor; PWM bipolar speed regulation; fuzzy PID control; neutral network control
1. Introduction
DC motor is widely used in metallurgy, machinery manufacturing and light industry because of its
good performance in starting and breaking and its easily controlled speed regulation. In recent years, with
the development of the power electronic technology, the thyristor rectifier is commonly used for the
power supply of the DC motor, witch replaces the AC motorDC generator power supply system. But
DC motor speed control system is a complex multivariable nonlinear control system, because the various
parameters influence each other, its antiinterference ability is weak and its not suitable for high
control performance occasion.
Therefore, in order to enhance DC motor speed control system of antijamming and robustness, and
improve the response speed and stable precision of the speed regulation system, this paper discuss the
PWM DC motor speed control system based on the fuzzy control and neural network control.
* Corresponding author. Tel.: +86 0135 81840177; fax: +86 0871 6345171.
E-mail address: 13581840177@139.com.
2211-3819 2011 Published by Elsevier Ltd. Selection and peer-review under responsibility of Desheng Dash Wu.
doi:10.1016/j.sepro.2011.11.028
260
+
v
-
1.14
A
-
-KTL
A+
Gain
dc
Ia
A-
F+
If
F-
no de 10
Out1
no de 10
Te
In1
PWM
Clock
10
-10
In1 Out1
In1 Out1
ASR
ACR
0.83
0.002s+1
Transfer Fcn
-KGain1
C o ntinuo us
po we rgui
In Fig.2, it shows the internal structure of the PWM model and the ACR model.[3]
1
1
Signal(s)
-K-
Pulses
In1
In1
Out1
Saturation
kpn
PWM Generator
1
Out1
Signal(s)
0.001
Pulses
Selector
PWM Generator1
-K-
Constant
G-acr
1
s
I-acr
Fig.2. The internal structure of the PWM model and the ACR model
261
controller is the system error, its a kind of scale, intergral, differential adjustment rules, and its equation
is:
t
u (t ) =
K P e(t ) + K I e(t )d t+ K D
0
de(t )
dt
(1)
In the equation, K P , K I , K D are the parameters of the PID controller, e(t ) is the deviation input
signal of the controller, u (t ) is the control signal. In Fig. 3, it shows the simulation model of the ordinary
PID controller.
-K-
In1
1
Out1
kpn
-K-
G-asr
I-asr
4. Fuzzy Controller
Fuzzy control is a kind of computer intelligent control based on the fuzzy set theory, the fuzzy
language variables and the fuzzy logic. The basic concept is proposed by the famous professor of the
university L.A.Zadeh. After over 20 years development, it makes a great success in the fuzzy control
theory.
Fuzzy controller is also called Fuzzy Logic Controller. Because the fuzzy control rules are described
by the fuzzy conditional statement of the fuzzy theory, its a kind of language controller, so its also
called Fuzzy Language Controller.[4]
The composition of the fuzzy controller is showed in Fig. 4:
Data Base
Rule Base
Knowledge
Base
Input\
Fuzzification
Interface
Reasoning
Defuzzification
Interface
Output
262
e = { NB
NM NS Z PS PM
PB}
NB
NM
NS
PS
PM
PB
ec
NB
PB
PB
PM
PM
PS
NM
PB
PB
PM
PM
PS
ZS
263
e
u
NB
NM
NS
PS
PM
PB
NS
PM
PM
PM
PS
NS
NS
ec
PM
PM
PS
NS
NM
NM
PS
PS
PS
NS
NS
NM
NM
PM
PS
NS
NM
NM
NM
NB
PB
NM
NM
NM
NB
NB
The basic structure can be reduced to If A and B then C, among which A is a fuzzy subsets of domain
U, and B is a fuzzy subsets of domain V. According to the control experience, the control decision table R
can be organized offline.R is a fuzzy subsets of the cartesian product U V . In a moment, its control
volume is given out by the following equation:
C
= ( A B) R
In the equation,
(3)
4.4. Defuzzification
After getting the results, the reasoning of the fuzzy control has been completed. However, at present,
the results obtained is still a fuzzy vector, which cant be directly used as a control volume. Therefore a
conversion must be done on the results so that it can get a clear output. The process is the defuzzification.
Usually the output part that has a conversion function is called defuzzification interface.
To obtain accurate control volume, it requires the fuzzy method to express the calculated output of the
membership functions. In this paper, the weighted average method is used. For each element on the
domain, xi (i = 1, 2, , n) , its used as the weighting factor of the output fuzzy set membership degree
u (i ) , that is to take the product xi u (i ) , then calculate the sum of the product and the membership, and
then calculate as follows:
n
x0 =
x u (i)
i =1
n
u (i)
i =1
264
The average x0 is the required output of the fuzzy sets obtained by the weighted average method.
Finally, the output x0 is multiplied by the quantitative factor to meet the control requirement. Then the
practical value of control volume is obtained.
In Fig. 5 and Fig. 6, it shows the SIMULINK model of the fuzzy PID controller and the fuzzy control
rules, and also the fuzzy membership function graph of the error E, error change rate EC and the control
volume u.
1
In1
Mux
1
Out1
du/d
Fuzzy Logic
Controller
Derivative
t
NB
1
NM
NS
PS
PM
PB
-3
-2
-1
0
e
NB
1
NM
NS
PS
PM
PB
Degree of membership
0.8
fuzzf
e (7)
(mamdani)
49 rules
u (7)
0.6
0.4
0.2
ec (7)
NB
1
NM
NS
PS
PM
PB
0.8
Degree of membership
Degree of membership
0.8
0.6
0.4
0.2
0.4
0.2
0
-3
0.6
-2
-1
0
ec
-4
-3
-2
-1
0
u
Fig.6. The fuzzy membership function gragh of the error E, error change rate EC and the control volume u
265
u (k )= u (k 1) + K wi (k ) xi (k )
(5)
i =1
wi (k ) = w j (k ) / w j (k )
(6)
w1 (k=
) w1 (k 1) + I z (k )u (k ) x1 (k )
(7)
w2 (k=
) w2 (k 1) + P z (k )u (k ) x2 (k )
(8)
w3 (k=
) w3 (k 1) + D z (k )u (k ) x3 (k )
(9)
j =1
x2 (k ) = e(k ) e(k 1)
x3 (k ) =
2 e( k ) =
e(k ) 2e(k 1) + e(k 2
)
z ( k ) = e( k )
266
I P D are respectively the learning rate of integral, proportion and differential. K is the
proportionality coefficient of neurons, K > 0 .
The integral I, proportion D and differential P respectively used different learning rate I P D .
So as to separately adjust the different weight coefficient .
The choice of K value is very important. The greater the K value, the better the speed. But the big
overshoot may even make the system out of stability. When the controlled object delay increases, the k
value must be reduced to ensure that the system is stable. If K value selection is too small, it can also
make the system efficiency becomes poor.
In Fig. 7, it shows the SIMULINK simulation model of the neural network PID controller.
Model Reference Controller
MATLAB
Function
Reference Fcn
Reference
Neural
Network
Controller
Control
Signal
1
Out1
Plant Output
1
In1
6. Conclusion
0.8
0.8
0.6
0.6
0.6
0.4
0.4
0.4
0.2
0.2
0.2
rin,yout
1
0.8
rin,yout
rin,yout
In Fig. 8, it shows the square-wave response curve of the ordinary PID controller, the fuzzy PID
controller and the neural network PID controller. We can see from the picture that the square-wave
responses of the fuzzy PID controller and ordinary PID controller are similar ,but the tracking curve of
fuzzy PID controller is more smooth; Neural network PID controller has the most smooth tracking curve
and the minimum error with the input signal. It is obviously that the application of neural networks PID
control can be a very good way to improve the control performance, and fuzzy PID control can realize
concise and effective control requirements in the face of a more complex nonlinear system for its simple
application.
-0.2
-0.2
-0.2
-0.4
-0.4
-0.4
-0.6
-0.6
-0.6
-0.8
-0.8
-1
-1
0.2
0.4
0.6
0.8
1
time(s)
1.2
1.4
1.6
1.8
-0.8
0
0.2
0.4
0.6
1.2
1
0.8
Time(second)
1.4
1.6
1.8
-1
0.2
0.4
0.6
0.8
1
time(s)
1.2
1.4
1.6
1.8
Fig.8. The square-wave response curve of the ordinary PID controller, the fuzzy controller and the neural network
PID controller
References
[1] Saffet Ayasun, Gltekin Karbeyaz. DC motor speed control methods using MATLAB/Simulink and their integration into
undergraduate electric machinery courses[C]. Computer Applications in Engineering Education, 2007:347-354.
[2] Aytel Gelen, Saffet Ayasun. Realization of Power Electronic Convertor Based DC Motor Speed Control Methods Using
MATLAB/Simulink[C]. Int J Engng Ed. Vol. 25, No. 1, pp. 33-41, 2009.
[3] Seung-Ki Sul. Control of Electric Machine Drive Systems[M], 2011: 46-47, 157-208.
[4] Kevin M. Passino, Stephon Yurkovich. Fuzzy Control[M], 2001: 21-72.
[5] L.P.J. Veelenturf. Analysis and Applications of Artificial Neural Networks[M], 1995: 6-45.
267