Design and Implementation of Digital Fractional Order PID Controller Using Optimal Pole-Zero Approximation Method For Magnetic Levitation System
Design and Implementation of Digital Fractional Order PID Controller Using Optimal Pole-Zero Approximation Method For Magnetic Levitation System
Abstract—The aim of this paper is to employ fractional order applications such as magnetically levitated train, magnetic
proportional integral derivative (FO-PID) controller and integer bearing, conveyor system, etc.[1] .
order PID controller to control the position of the levitated object In recent years, various methods have been proposed to
in a magnetic levitation system (MLS), which is inherently non-
linear and unstable system. The proposal is to deploy discrete improve control in MLS-based applications. In 2006, Chiang
optimal pole-zero approximation method for realization of digital et al. proposed the concept of integral variable-structure grey
fractional order controller. An approach of phase shaping by control[2] . Yang et al. introduced the concept of adaptive robust
slope cancellation of asymptotic phase plots for zeros and poles output-feedback control with K-filter approach in 2008[3] .
within given bandwidth is explored. The controller parameters In 2011, Chih-Min Lin et al. developed an adaptive PID
are tuned using dynamic particle swarm optimization (dPSO)
technique. Effectiveness of the proposed control scheme is verified controller and a fuzzy compensation controller for MLS[1] .
by simulation and experimental results. The performance of In the same year, Rafael Morales et al. proposed generalized
realized digital FO-PID controller has been compared with that proportional integral output feedback controller[4] . Recently in
of the integer order PID controllers. It is observed that effort 2014, Chih-Min Lin et al. proposed a function-link cerebellar
required in fractional order control is smaller as compared model articulation control system design based on the neural
with its integer counterpart for obtaining the same system
performance. network concept[5] . However, in spite of all these develop-
ments, there is scope for improving efficiency of the controller.
Index Terms—Digital control, Position control, Fractional The energy required to achieve and maintain the object’s
calculus, Particle swarm optimization (PSO), Approximation
methods, Magnetic levitation, Discretization, Fractional order position (in the face of disturbances) form an important part
PID controller (FOPID). of improving the control action. The aim of this paper is to
control and maintain the desired object’s position, with lesser
controller effort. The controller effort minimization is reported
I. I NTRODUCTION in literature[11−14] .
The conventional integer order controllers such as, PD and
I N 1914, American inventor Emile Bachelet presented his
idea of a magnetically levitated (maglev) vehicle with a dis-
play model. In magnetic levitation system (MLS), ferromag-
PID controller have been applied in industry for over half-a-
century to control linear and nonlinear systems[15] . Recently,
netic object levitate by the electromagnetic force induced due such control schemes have been extended to their generalized
to electric current flowing through coil around a solenoid[1−5] . form using fractional calculus[16−17] (differentiation and inte-
The MLS is inherently nonlinear and unstable[6−10] . However, gration of an arbitrary order). The FO-PID controller has frac-
the advantage is that, as the suspended object has no mechan- tional differ-integrator operations. This makes the controller
ical support, there is no friction and noise. This allows us to have memory (i.e. its action will memorize its past states)
position it accurately - a major advantage, explored in many and avoids instantaneous actions. Using the definition of con-
volution integral, the expression for the fractional integration
This article has been accepted for publication in a future issue of this (which also is embedded in the fractional differentiation) can
journal, but has not been fully edited. Content may change prior to final be written as the convolution of the function and the power
publication. function, which is elaborately explained in [17].
This work was supported by the Board of Research in Nuclear sciences
of the Department of Atomic Energy, India. Sanction no. 2012/36/69- In last few decades, the fractional order approach to rep-
BRNS/2012. Recommended by Associate Editor Antonio Visioli. resent the plant and its controllers are increasingly used to
Amit S. Chopade, Swapnil W. Khubalkar, Anjali S. Junghare, describe the dynamic process accurately[17] . The fractional or-
and Mohan V. Aware are with the Department of Electrical En-
gineering, Visvesvaraya National Institute of Technology, Nagpur, In- der transfer function is approximated by integer order transfer
dia 440010 e-mail: ([Link]@[Link], [Link]@[Link], function using various methods[16−20] . The proposed method
asjunghare@[Link], mvaware@[Link]). can achieve the desired accuracy over a much larger bandwidth
Shantanu Das is with Reactor Control Division, Bhabha Atomic Research
Centre, India. e-mail: (shantanu@[Link]). than has been achieved using earlier methods. In applications,
Digital Object Identifier 10.1109/JAS.2016.7510181 where non-integer order controllers are used for integer order
2 IEEE/CAA JOURNAL OF AUTOMATICA SINICA
rendering dentification impossible. The reference signal r(t) 1) : Riemann-Liouville (RL) definition is given in (9).
i.e. random binary sequence signal is given to excite the MLS
and output y(t) is monitored. 2500 samples of the input, output à !n Z
t
α 1 d f (τ )
signals are collected from the system with sampling period of a Dt f (t) = dτ (9)
0.01s. Γ(n − α) dt a (t − τ )α−n+1
for (n − 1) ≤ α < n
where, n is an integer, α is a real number, and Γ is Euler
gamma function. Laplace transform of the RL fractional
derivative/integral (9), under zero initial conditions, is given
in (10).
and the frequency band of interest (ωL , ωH ), the nth order number of pole-zero pairs. Fig.6 shows the basic idea of
approximation is obtained[28] . The proposed algorithm is de- frequency band tightening. The problem regarding frequency
veloped to obtain the number of optimal pole-zero pairs to band shrinking is tackled by designing the rational approx-
ωl
maintain the phase value within the tolerance, of around 1o . imation on wider frequency band ( 10 δ
γ , 10 ωh ) followed by
In this algorithm, poles and zeros given by (13) are obtained curtailing the frequency overhang on either side, such that the
as follows: phase remains within φreq ± ε in range of (ωl , ωh ). Nominal
φreq +45logωl values to expand frequency band are γ = 3, δ = 2.
F irst pole, p1 = 10[ 45 +1]
Error values presented in Table III are calculated using (16): 1) Experimental Results using a PD Controller: The mea-
sured and desired ball positions using real time PD controller
is shown in Fig.15(a) and control signal c(t) before digital to
P ercent error = analog (D/A) conversion is given in Fig.15(b). This control
desired position − actual position signal is used to levitate the object at desired position. The
× 100%
actual position plant input signal m(t) after D/A conversion and output signal
(16) y(t), captured on the digital storage oscilloscope (DSO), is
From the data presented in Table III, it is observed that FO- presented in Fig.16.
PID controller tracks the desired position more efficiently than The control effort required by controller to maintain object’s
PD or PID controllers. position can be observed from the control signal c(t). The
ball position is tracked by infrared sensor and is fed back to
B. Real Time Implementation of Closed-Loop System Simulink environment via analog to digital (A/D) converter. It
The MLS used for experimentation is shown in Fig.12. Due is observed from Fig.15 - Fig.16 that there is more deviation
to high nonlinearity and open-loop instability, MLS system in ball position and control effort required by the controller,
is a very challenging plant. Assembly of MLS consists of a and is higher in case of PD controller. Hence, integral action is
mechanical unit labeled A in Fig.12. Analogue control inter- added to the PD controller to achieve an improved control over
face unit labeled A is used to transfer control signals between desired ball position. The quantitative analysis of desired and
computing system and MLS. Advanced PCI1711 I/O card has actual ball position achieved by the controller is presented in
been inserted into a PCI computer slot and connected with Table IV and the control effort analysis of controller is shown
SCSI adapter box using SCSI cable. Mathworks software tools in Table V.
Table III
MEASURED AND DESIRED BALL POSITIONS FOR DIFFERENT CONTROLLERS IN SIMULATION
Controllers
Ball Positions (m)
PD PID FO-PID
Max. 8.12 × 10−3 6.92 × 10−3 5.94 × 10−3
Measured ball position
Min. −4.83 × 10−3 −6.68 × 10−3 −5.65 × 10−3
Max. 5.5 × 10−3 5.5 × 10−3 5.5 × 10−3
Desired ball position
Min. −5.5 × 10−3 −5.5 × 10−3 −5.5 × 10−3
Error 23.06% 19.09% 5.03%
CHOPADE et al.: DESIGN AND IMPLEMENTATION OF DIGITAL FRACTIONAL ORDER PID CONTROLLER · · · 7
Table IV
MEASURED AND DESIRED BALL POSITIONS FOR DIFFERENT CONTROLLERS IN REAL TIME IMPLEMENTATION
Controllers
Ball Positions (m)
PD PID FO-PID
Max. 16.8 × 10−3 13.1 × 10−3 12.6 × 10−3
Measured ball position
Min. 8.3 × 10−3 4.85 × 10−3 5.24 × 10−3
Max. 12.5 × 10−3 12.5 × 10−3 12.5 × 10−3
Desired ball position
Min. 5.5 × 10−3 5.5 × 10−3 5.5 × 10−3
Error 29.66% 8.95% 5.75%
Fig. 17. (a) Controlled output result of MLS using a PID controller
(b) Control signal of PID controller. Fig. 20. Experimental FO-PID controller output and object’s trajec-
tory captured on DSO.
Table V
CONTROL EFFORT ANALYSIS OF DIFFERENT
CONTROLLERS IN REAL TIME IMPLEMENTATION
Controllers
Performance Indices
PD PID FO-PID
Error Signal 51.97 14.56 12.79
IAE
Control Signal 208 181 151.5
Error Signal 609 455.7 425.5
ITAE
Control Signal 900.6 797.9 602.5
Fig. 18. Experimental PID controller output and object’s trajectory Error Signal 28.38 4.978 2.488
ISE
captured on DSO. Control Signal 832.6 647.2 347.2
Fig. 19. (a) Controlled output result of MLS using a FO-PID The control effort required by PD, PID, and FO-PID
controller (b) Control signal of FO-PID controller. controllers is calculated using IAE (Integral Absolute Error),
ITAE, and ISE (Integral Square Error). The analysis has been
carried out for a period of 100s and is tabulated in Table V.
From the data presented in Table IV it is observed that FO- Fig.21 represents the control effort analysis in pictorial form.
CHOPADE et al.: DESIGN AND IMPLEMENTATION OF DIGITAL FRACTIONAL ORDER PID CONTROLLER · · · 9
Fig. 25. (a) Controlled output result of MLS using a PID controller
(b) Control signal of PID controller.
The deviation in ball position is higher as load is increased [2] H. K. Chiang, C. A. Chen, and M. Y. Li, “Integral variable-structure
and greater amount of effort (power consumption, as indicated grey control for magnetic levitation system,” IEE Proc. Electric Power
Applications, Vol. 153, No. 6, pp. 809–814, November 2006. doi:
by high switching fluctuations in the voltage graph) is required 10.1049/ip-epa:20060056
by controller to achieve desired ball position.
Similar analysis for PID and FO-PID controllers is pre-
[3] Z. J. Yang, K. Kunitoshi, S. Kanae, and K. Wada, “Adaptive robust
sented in Fig.25 - Fig.28. These figures lead to inference that in output-feedback control of a magnetic levitation system by K-filter
case of PID controller, the deviation in ball position is high and approach,” IEEE Trans. on Industrial Electronics, Vol. 55, No. 1, pp.
greater amount of effort is required by controller to achieve 390–399, January 2008. doi: 10.1109/TIE.2007.896488
ball position as compared to FO-PID controller. Comparison
shows that FO-PID controller requires lesser effort to levitate [4] R. Morales, V. Feliu, and H. Sira-Ramrez, “Nonlinear control for
the object and effect of disturbance is less as compared to PD magnetic levitation systems based on fast online algebraic identification
or PID controllers. of the input gain,” IEEE Trans. on Control Systems Technology, Vol. 19,
No. 4, pp. 757–771, July 2011. doi: 10.1109/TCST.2010.2057511
Fig. 28. Experimental FO-PID controller output and object’s trajec- [7] R. C. Kluever, C. A. Kluever, Dynamic Systems: Modeling, Simulation,
and Control, 1st Edition, John Wiley and Sons, April 2015.
tory captured on DSO.
Table VI
PARAMETERS OF THE MLS [12] S. Das, S. Das, and A. Gupta, “Fractional order modeling of a PHWR
under step-back condition and control of its global power with a robust
Symbol Parameters Values controller,” IEEE Trans. on Nuclear Science, Vol. 58, No. 5, pp. 2431–
2441, October 2011. doi: 10.1109/TNS.2011.2164422
i Input Current in the Coil [0 − 3]A
u Input Voltage [0 − 5]V
m Mass of the Steel Sphere 20 × 10−3 kg [13] S. Saha, S. Das, R. Ghosh, B. Goswami, R. Balasubramanian, A. K.
Chandra, S. Das, A. Gupta, “Fractional order phase shaper design with
k Magnetic Constant 8.54 × 10−5 kg Bode integral for iso-damped control system,” ISA Trans., Vol. 49, No.
k1 Input Conductance 0.3971/Ω 2, pp. 196–206, April 2010. doi:10.1016/[Link].2009.12.001
g Gravitational Acceleration 9.81m/s2
[14] S. Das, “Fuel efficient nuclear reactor control,” International Conference
R EFERENCES on Nuclear Engineering, Beijing, China, May 16-20, 2005.
[16] I. Podlubny, Fractional Differential Equations, Academic Press, New [31] I. Petras, “Fractional order feedback control of a DC motor,” Journal of
York, 1999. Electrical Engineering, Vol. 60, No. 3, pp. 117128, March 2009.
[17] S. Das, (a) Functional Fractional Calculus for System Identification and [32] S. Cuoghi and L. Ntogramatzidis, “Direct and exact methods for the
Controls, Springer Science and Business Media, 2007, doi: 10.1007/978- synthesis of discrete-time proportional-integral-derivative controllers,”
3-540-72703-3; and (b) Functional Fractional Calculus, Springer Sci- IET Control Theory and Applications, Vol. 7, No. 18, pp. 21642171,
ence and Business Media, 2011. doi: 10.1007/978-3-642-20545-3 December 2013. doi: 10.1049/iet-cta.2013.0064
[18] I. Podlubny, “Fractional-order systems and P I λ Dµ controllers,” IEEE [33] Y. Q. Chen, I. Petras, and D. Xue, “Fractional order control-a tutorial,”
Trans. on Automatic Control, Vol. 44, No. 1, pp. 208–214, January 1999. American Control Conference, St. Louis, MO, USA, June 10-12, pp.
doi: 10.1109/9.739144 1397–1411, 2009. doi: 10.1109/ACC.2009.5160719
[19] A. Charef, H. H. Sun, Y. Y. Tsao, and B. Onaral, “Fractal system as [34] Y. Jin, Y. Q. Chen, and D. Xue, “Time-constant robust analysis of
represented by singularity function,” IEEE Trans. on Automatic Control, a fractional order [proportional derivative] controller,” IET Control
Vol. 37, No. 9, pp. 14651470, September 1992. doi: 10.1109/9.159595 Theory and Applications, Vol. 5, No. 1, pp. 164172, January 2011. doi:
10.1049/iet-cta.2009.0543
[24] D. Valerio and J. Sa da Costa, “Introduction to single-input, single- [38] S. Das, S. Saha, S. Das, and A. Gupta, “On the selection of tuning
output fractional control,” IET Control Theory and Applications, Vol. 5, methodology of FOPID controllers for the control of higher order
No. 8, pp. 10331057, May 2011. doi: 10.1049/iet-cta.2010.0332 processes,” ISA Transactions, Vol. 50, No. 3, pp. 376–388, July 2011.
doi: 10.1016/[Link].2011.02.003
[44] S. Saha, S. Das, S. Das, and A. Gupta, “A conformal mapping based Anjali S. Junghare received the B.E. and [Link]
fractional order approach for sub-optimal tuning of PID controllers with degree from Visvesvaraya Regional College of En-
guaranteed dominant pole placement,” Communications in Nonlinear gineering (VRCE), Nagpur, India, in 1981 and 1985,
Science and Numerical Simulation, Vol. 17, No. 9, pp. 3628–3642, respectively. She received the Ph.D. degree from
September 2012. doi: doi:10.1016/[Link].2012.01.007 VRCE in 2007. She is currently an associate pro-
fessor in the Department of Electrical Engineering,
Visvesvaraya National Institute of Technology, Nag-
[45] S. Das, I. Pan, K. Halder, S. Das, and A. Gupta, “Impact of fractional pur, India. She has 13 years of industrial experience
order integral performance indices in LQR based PID controller de- and 19 years of academic experience.
sign via optimum selection of weighting matrices,” IEEE International Her research areas are control system, fractional
Conference on Computer Communication and Informatics, Coimbatore, order controllers, fuzzy Logic and its applications.
India, Jan. 1012, pp. 1–6, 2012. doi: 10.1109/ICCCI.2012.6158892
[46] S. Das, I. Pan, S. Das, and A. Gupta, “Genetic algorithm based improved
sub-optimal model reduction in nyquist plane for optimal tuning rule
extraction of PID and P I λ Dµ controllers via genetic programming,”
IEEE International Conference on Process Automation, Control and
Computing, July 20, pp. 1–6, 2011. doi: 10.1109/PACC.2011.5978962