Professional Documents
Culture Documents
control Ni (A). As can be observed from Fig. 1, this is a stable limit cycle
having parameters of the amplitude, Aosc , and the frequency, vosc.
R. Duma, P. Dobra and M. Trusca The equivalent gain of the relay is computed using:
4b
Ku =
= (1)
A practical closed loop fractional order control application is presented. Ni (Aosc )
pAosc
A fractional order PID (FOPID) controller has been designed for a DC
motor and the determined controller implemented in real-time on an In the case of the practical application presented in this Letter a
embedded system. The implementation aspects on the embedded bi-positional relay with b 50 and 1 5 is implemented in software.
control system are described. In addition, a simple implementation
The obtained limit cycle is transferred from the microcontroller over
approach for a FOPID controller is presented.
the controller area network (CAN) bus of the microcontroller and is
presented in Fig. 2. The speed of the motor sent over the CAN bus is
Introduction: An extension of the classical PID controller is the frac- an eight bit data type. To obtain the speed of the motor in rotations per
tional order PID (FOPID) controller. The PID controller has three par- minute, the value has to be scaled. As a consequence, the value for the
ameters which can be changed in order to tune the controller, while amplitude of the limit cycle oscillation used in (1) has to be divided by
the FOPID controller has ve. Thus, higher exibility and better 15. From the obtained limit cycle the amplitude of oscillation and the fre-
closed loop performance can be achieved using a FOPID controller. quency are determined (Aosc 8.5, vosc 7.629 rad/s).
Fractional order calculus is used in a wide range of science and engin-
eering elds and also in the eld of control systems [1, 2]. In the litera- 2550
ture there are few papers which present practical implementations of 2500
2450
FOPID controllers. A case study for FOPID control of a DC motor
speed, rad/s
2400
with an elastic shaft is presented in [3]. The paper [4] investigates 2350
several types of FOPID controllers for a laboratory servo system. The 2300
2200
systems for DC motors, present only theoretical results. Practical 15.811 16 16.5 17 17.5 18 18.5 19 19.5
time, s
aspects on the implementation of a fractional controller on a microcon-
troller are presented in [5]. In this Letter a FOPID controller is designed Fig. 2 Limit cycle oscillation of DC motor
for a DC motor and a closed-loop control algorithm with a FOPID con-
troller is implemented on a Stellaris LM3S8962 microcontroller. As far The purpose of a controller in a closed loop control system is to com-
as we know, this is the rst report which presents the implementation of pensate for dominant time constants. A FOPID controller of the follow-
a FOPID controller on a microcontroller and the control of a real process ing form is used:
using the implemented code.
T1 s + 1
KFOID (s) = K1 = Kd s1m + Ki sm
Controller design and discretisation: The transfer function of a FOPID sm
controller is: The time constant T1 is chosen to be the mechanical time constant of the
Ki DC motor. The mechanical time constant is estimated from several step
KFOPID (s) = Kp + + Kd sm responses of the DC motor to be 0.07 s. The fractional order m is com-
sl
puted by imposing a xed phase margin gk = p/6, at the frequency esti-
where Kp is the proportional gain, Ki is the integration gain, Kd is the mated from the limit cycle, for the open loop system (fractional order
derivative gain, l and m are the integral and the derivative orders, controller and DC motor):
respectively.
gk = arg [KFOID (jvosc )G(jvosc )] + p =
p (2)
Im(.) atan(T1 vosc ) + m + arg [Ni (Aosc )]
2
From (2) m is computed to be 0.295. To simplify the discretisation of s m
the value of m is chosen to be 0.3.
Re(.)
To obtain the imposed phase margin at the oscillation frequency the
module of the open loop system must full the condition:
N1(A)
|KFOID (jvosc )G(jvosc )| = 1 (3)
LC(Aosc,osc)
applied at the encoder input type pins of a Stellaris LM3S8962 micro- 3000
speed, rad/s
2800
controller, on which the control algorithm is implemented. For real- 2600
time bidirectional data exchange between the PC and the microcontroller 2400
2000
1800
8 8.5 9 9.5 10 10.5 11 11.5 12 12.5 13 13.5 14 14.5 15 15.5 16 16.5 17 17.5 18 18.5 19
time, s
2800
2600
Eng., 2009, 60, (3), pp. 117128
2400 6 Al-Alaoui, M.A.: Novel digital integrator and differentiator, Electron.
2200
Lett., 1993, 29, (4), pp. 376378
2000
1800
31.5 32 32.5 33 33.5 34 34.5 35 35.5 36 36.5 37 37.5 38 38.5 39 39.5 40 40.5 41 41.5 42
time, s