A Microcontroller Implementation of Fractional Order Controller
A Microcontroller Implementation of Fractional Order Controller
Université de Tunis El Manar, Ecole Nationale d’Ingénieurs de Tunis, LR11ES20 Laboratoire Analyse,
Conception et Commande des Systèmes, 1002, Tunis, Tunisie;
Université de Tunis El Manar, Faculté des Sciences de Tunis, 2092, Tunis, Tunisie;
E-mail : [email protected], [email protected]
Abstract: The idea of this paper is to implement a Fractional Order proportional integral PI on a real electronic
system by using the STM32 microcontroller. This controller is founded on an extended version of Hermite-Biehler
theorem to determine the complete set stabilizing. The STM32 keil starter kit based on a JTAG interface and the
STM32 board was used to implement the proposed fractional controller. So, this controller is implemented using Keil
development tools designed for ARM processor-based microcontroller devices and working with C/C++ langage. The
performances and the efficiency of the developed strategy are illustrated with simulation results.
necessary steps in finding the design method proposed al , bm R 2 , al , bm R2 , l=0,1, L,
for the PI . Simulation results are given in the section m=0,1, M
5. Finally, a conclusion is given.
5. Experiment results
In order to illustrate the effectiveness and
performances of the fractional order controller
developed in this paper, we make a practical
implementation of the proposed controller on an
electronic system by using an STM32 microcontroller.
The practical system used in this paper is a first order
system as shown in Figure 4.
Output
Set point
Tension (v)
1.5
Y ( p) 1
G( p) (10)
U ( p) 1 0.01504 p 1
2
Tension(v)
1.5
0.5
0
0 10 20 30 40 50 60 70 80 90 100
Time (ms)
Figure 5. Connecting the STM32 with the system A comparison of the closed-loop performances of the
pro-posed approach is established with classic
To implement the fractional-order PI of the thermal Proportional Integral (PI) controller.
system we have used the model given by equation The designed PI parameters are fixed as follows:
(26). So, the thermal system is defined as a first order K p 2, Ki 0.6
system with time delay. Therefore, we proceed the Figures 8 and 9 exhibits the output, the set point and
design of the controller by exploiting the approach the control signal obtained by applying the classic PI
exposed in section 4. controller.
3 REFERENCES
Output
Set point
2.5 [1] Podlubny I. Fractional Differential Equations,
Academie Press, New York, 1999.
2
[2] Mainardi F., Raberto M., Gorenflo R., Scalas E.
Fractional calculus and continuous-time finance II:
Tension (v)
1.5
the waiting-time distribution. Physica A: Statistical
Mechanics and its Applications, 2000, 287:468–
1
481.
0.5
[3] Yuste S., Abad E., Lindenberg K. Application of
fractional calculus to reaction-subdiffusion
0
0 10 20 30 40 50 60 70 80 90 100
processes and morphogen gradient formation.
Time (ms)
Arxiv preprint arXiv 2010, 1006.2661.
Figure 8. Set point and output signals with classic PI [4] Bagley R., Calico R. Fractional order state
equations for the control of viscoelastically
3
damped structures. Journal of Guidance, Control,
Control signal
and Dynamics, 1991, 14 :304–311.
2.5
[5] Zhang Y., Tian Q., Chen L., Yang J. Simulation of
a viscoelastic flexible multibody system using
2
absolute nodal coordinate and fractional derivative
Tension (v)
1.5
methods. Multibody System Dynamics, 2009,
21 :281–303.
1 [6] Sun H.H., Charef A., Tsao Y., Onaral B. Analysis
of polarization dynamics by singularity
0.5 decomposition method. Annals of Biomedical
Engineering, 1992, 20:321-335
0
0 10 20 30 40 50
Time (ms)
60 70 80 90 100 [7] Shantanu D. Functional fractional calculs for
system identification and controls. Springer-
Figure 9. Control signal classic PI
verlag, Berlin, 2008.
Rhouma, A. and Bouani, F. Robust model
Comparing the results obtained by the proposed PI
[8]
predictive control of uncertain fractional systems:
and the classic PI , we deduce that the first controller
a thermal application IET Control Theory and
reaches the desired reference despite the change of the
Applications. 2014, Vol. 8, Iss. 17, pp. 1986–1994.
system dynamic whereas the second controller
presents oscillations at the set point variations. We [9] Sundaravadivu K., Arun B., and Saravanan K.
have also remark that the control law obtained by the Design of fractional order PID controller for liquid
PI is smoother than one obtained by PI .
level control of spherical tank. IEEE Int. Conf.
Control Syst. Comput. Eng., Penang, Malaysia,
2011, 522–525.
6. Conclusion [10] Monje C, A., Chen Y. Q. Vinagre, B. M, Dingyu
The implementation of frcational PI controller by the use of
X. and Vicente F. Fractional-order Systems and
the STM32 microcontroller has been the object of this work. Controls: Fundamentals and Applications
This controller is designed so as to ensure certain closedloop (Advances in Industrial Control). 2010. London:
performances. The classic PI controller has been tested with Springer.
the same microcontroller and compared with the fractional [11] Valério D, and Costa J. S. Tuning of fractional
PI controller. Practical results show the effectiveness of the PID controllers with Ziegler-Nichols-type rules.
latter. Signal Processing, 2006, 86: 2771–2784.
[12] Sundaravadivu K., Arun B., and Saravanan K.
Design of fractional order PID controller for liquid
level control of spherical tank. IEEE Int. Conf.
Control Syst. Comput. Eng., Penang, Malaysia,
2011, 522–525.
[13] Oustaloup A. From fractality to non-integer [15] Ben Hariz M. Bouani F. Implementation of a fixed
derivation through recursivity, a property common low order controller on STM32 microcontroller,
to these two concepts: a fundamental idea from a International Conference on Control, Engineering
new process control strategy. 12th IMACS World & Information Technology (CEIT’14), Tunisie
Conf., Paris, 1988, 203–208. 2014.
[14] Hafsi.S, Laabidi.K and Farkh.R. A New Tuning [16] Kherigi A. Bouani F. Ksouri M. ben Ahmed M. A
Method for Stabilization Time Delay Systems Microcontroller Implementation of Model
Using PI D Controllers. Asian Journal of Predictive Control. International Journal of
Control, 2015 Vol. 17, No. 3, pp. 1-11. Electrical, Computer, Energetic, Electronic and
Communication Engineering Vol:5, No:5, 2011.