A Microcontroller Implementation of Model Predictive Control

Model Predictive Control (MPC) is increasingly being proposed for real time applications and embedded systems. However comparing to PID controller, the implementation of the MPC in miniaturized devices like Field Programmable Gate Arrays (FPGA) and microcontrollers has historically been very small scale due to its complexity in implementation and its computation time requirement. At the same time, such embedded technologies have become an enabler for future manufacturing enterprises as well as a transformer of organizations and markets. Recently, advances in microelectronics and software allow such technique to be implemented in embedded systems. In this work, we take advantage of these recent advances in this area in the deployment of one of the most studied and applied control technique in the industrial engineering. In fact in this paper, we propose an efficient framework for implementation of Generalized Predictive Control (GPC) in the performed STM32 microcontroller. The STM32 keil starter kit based on a JTAG interface and the STM32 board was used to implement the proposed GPC firmware. Besides the GPC, the PID anti windup algorithm was also implemented using Keil development tools designed for ARM processor-based microcontroller devices and working with C/C++ langage. A performances comparison study was done between both firmwares. This performances study show good execution speed and low computational burden. These results encourage to develop simple predictive algorithms to be programmed in industrial standard hardware. The main features of the proposed framework are illustrated through two examples and compared with the anti windup PID controller. Keywords—Embedded systems, Model Predictive Control, microcontroller, Keil tool.

[1]  Spyros G. Tzafestas,et al.  Adaptive generalized predictive control using a state-space approach , 1991, Proceedings IROS '91:IEEE/RSJ International Workshop on Intelligent Robots and Systems '91.

[2]  Manfred Morari,et al.  Robust constrained model predictive control using linear matrix inequalities , 1994, Proceedings of 1994 American Control Conference - ACC '94.

[3]  Manfred Morari,et al.  Robust Model Predictive Control , 1987, 1987 American Control Conference.

[4]  Eduardo F. Camacho,et al.  Model Predictive Controllers , 2007 .

[5]  M. Ksouri,et al.  A GGP approach to solve non convex min-max predictive controller for a class of constrained MIMO systems described by state-space models , 2011 .

[6]  B. Faouzi,et al.  Solving non convex Min-Max predictive controller , 2007, 2007 Information, Decision and Control.

[7]  Gabriele Pannocchia,et al.  Robust model predictive control with guaranteed setpoint tracking , 2004 .

[8]  Mekki Ksouri,et al.  GGP approach to solve non convex min-max robust model predictive controller for a class of constrained MIMO systems , 2010, 2010 XIth International Workshop on Symbolic and Numerical Methods, Modeling and Applications to Circuit Design (SM2ACD).

[9]  Eduardo F. Camacho,et al.  Efficient implementation of constrained min–max model predictive control with bounded uncertainties: a vertex rejection approach , 2005 .

[10]  Riccardo Scattolini,et al.  Robust predictive control of systems with uncertain impulse response , 1996, Autom..

[11]  W. Marsden I and J , 2012 .

[12]  K.V. Ling,et al.  A FPGA implementation of model predictive control , 2006, 2006 American Control Conference.

[13]  Yeshwenth Jayaraman,et al.  FPGA Implementation of Predictive Control Strategy for Power Factor Correction , 2008 .

[14]  John Anthony Rossiter,et al.  Predictive Control implementation in a PLC using the IEC 1131.3 programming standard , 2009, 2009 European Control Conference (ECC).

[15]  Jan M. Maciejowski,et al.  Embedded Model Predictive Control (MPC) using a FPGA , 2008 .

[16]  J. Rawlings,et al.  A new robust model predictive control method I: theory and computation , 2004 .