Professional Documents
Culture Documents
1000
Abstract: It is proposed, in this paper a dynamic matrix control (DMC) with an anti-windup
(AW) based on linear matrix inequalities (LMI). The DMC-AW control is applied in the ball-
beam system, in which the main purpose is to control the ball position on a rotating beam.
System modeling was performed, which presented two degrees of freedom. For the mechanical
system implementation a microcontroller, an ultrasonic sensor, and a servo motor were used. The
proposed control was implemented both numerically with the software MATLAB and with the
microcontroller ATmega328Pu. The simulation results validated the efficiency of the proposed
DMC-AW and showed that the approach improves the response of the system under input
saturation.
X(s) −mg Ld m
T (s) = = Iball [ ]. (8)
Θ(s) ( r2 + m)s2 rad
3. CONTROL STRATEGY
N
X
Figure 1. System free-body diagram. yk = yk−1 + hi ∆uk , (9)
i=1
the system model is represented by a set of nonlinear such that, ∆uk = uk − uk−1 is the input, yk is the output,
differential equations, which represents a great difficulty and hi are the coefficients of the unit step response. N is
for the implementation of a linear controller designed the number of terms of the impulse response sequence that
with classical methods. For simplification, modeling and has been retained and corresponds to the horizon of the
simulation are performed only for the ball and beam. For model.
simplicity reason, it is assumed that all friction in the
system is negligible. At each sampling instant k, the prediction model is used
to predict the output trajectory over a finite future time
By Newton’s second law one has to, interval given in terms of the prediction horizon R.
X
F = mẍ, (1) Minimizing the equation (9) to get ∆u,
where m is the mass and ẍ is the acceleration. ∆u = inv(AT QT QA + λ)AT QT QE = KE, (10)
It is obtained from this law and the Lagrange equations where, A is the toeplitz matrix that stores system step
of motion the differential equation that governs the ball- responses, λ is the control motion suppression, Q is the
output weight matrix, E is the predicted errors vector, by saturation. In the nominal case, u(k) = um (k). When
and K is the control matrix defined by, saturation events end, the output of the dead-zone ũ(k)
becomes null.
K = inv(AT QT QA + λ)AT QT Q. (11) The signal ylin (k) is given by,
For DMC implementation it is necessary to define a se- ylin (k) = y(k) + yd (k). (18)
quence of L (control horizon) control movements such that So, as y(k) = ylin (k) − yd (k) the size of yd is a direct
the difference between the desired value and the predicted measure of the saturated system’s deviation from the
value over the optimization interval is minimized. nominal linear performance in response to ulin .
The signals generated by the anti-windup compensator are
3.2 Anti-windup fed into the controller output and the controller input, as
can be seen in Figure 2. To calculate the anti-windup gain
The suggested anti-windup with DMC control structure Turner et al. (2003) proposes the Theorem 1.
to deal with both linear time-invariant and linear time-
Theorem 1. There exists a dynamic compensator Θ(z) of
varying systems with saturating actuators is depicted in
order np which solves strongly the anti-windup problem
Figure 2. Saturation are values outside of the actuator’s
if there exist matrices Qa > 0, Ua = diag(µ1 , ..., µm ),
amplitude limits are mapped into the range of capabilities
(Zaccarian e Teel, 2011). La ∈ R(m+q)×m and a scalar µa > 0, such that the
following linear matrix inequality is satisfied,
Letting umax correspond to the maximal and umin to the
minimal attainable actuator value, the saturation function
is described mathematically by, min γa
−Qa ∗ ∗ ∗ ∗
−La −2Ua ∗ ∗ ∗
(19)
umax , if u > umax
0 I −µa I ∗ ∗ < 0.
sat(u) = u, if umin ≤ u ≤ umax (12) (C Q + D L ) D U
j a j a j a 0 −I ∗
(Aj Qa + Bj La ) Bj Ua 0 0 −Qa
umin , if u < umin
Where FAW = La Q−1 a is anti-windup
√ action gain, based
Figure 2 shows the proposed closed-loop diagram with
on coprime factorization. And γa = µa .
anti-windup. Where T (z) is the system transfer function
and K is the gain. M (z) and G(z) are coprime matrices. Proof. See (Turner et al., 2003).
4. NUMERICAL SIMULATION
xd (k + 1) = (A + BFAW )xd (k) + B ũ(k), (14) The initial states of the system is assumed as x = [0 0]T .
The set reference was rt≤20 = 20cm and rt>20 = 15cm.
ud (k) = FAW xd (k), (15) The maximum value of the control signal was umax = 1.5×
yd (k) = Cxd (k). (16) 106 and the sample time Ts = 2ms. Thus, the discrete-time
where ũ(k) is defined by, LTI state-space model is,
ũ(k) = Dz(sat(u(k)) − u(k)), (17)
where Dz the designation of dead-zone according to mod- 1 0 0.0020
A= , B= ,
eling defined in (Turner et al., 2003; Herrmann et al., 0.0020 1 1 (20)
2003). And sat(u(k)) = um (k) is the control signal limited C = [ 0 1.3180 ] , D = 0.
The controller gain obtained was,
140
K = [ 4.4471 9.4387 6.6252 −3.9933 ] × 104 . (21)
120 DMC with AW
The anti-windup gain was, DMC
100 Reference
FAW = [ −4.8328 −1.9606 ] × 102 . (22)
80 Saturated
Output (cm)
It is shown, in Figure 3 the output response of the ball-
60
beam system by employing DMC and DMC-AW without
input saturation. The closed-loop output is following the 40
desired reference input. It is observed that the system 20
with actuator AW has a regimen recovery faster than the
circuit operating only with the DMC controller. The AW 0
25 2
Saturated
1
20
Control signal
0
−1
Output (cm)
15 sat(u(k))
−2
10 DMC with AW −3
DMC
Reference −4
5
−5
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time (s)
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
Time (s) (b) Control signal u(k) with saturation.
regime.
0
7
x 10
2.5
−0.5
2
−1 1.5
Saturated
Control signal
1
−1.5
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
Time (s) 0.5
−0.5 sat(u(k))
Figure 3. Closed-loop response of position control without
saturation. −1
−1.5
It is shown, in Figure 4 the simulation results of the 0 .9 0.91 0.92 0.93 0.94 0.95 0.96 0.97 0.98 0.99 1
Time (s)
control signal limited by saturation sat(u(k)) and u(k).
It is noted that the control signal with actuator AW has
a faster recovery than the circuit operating only with Figure 5. Input saturation u(k) with anti-windup
the DMC controller. In this way, the DMC-AW improved sat(u(k)).
performance when the system operated in the saturated
mode. The control signal of the DMC controller is longer 5. EXPERIMENTAL RESULTS
under saturation effect, impacting the responses of the
output.
To implement the physical system, a servo motor, an
It is shown, in Figure 5 the input saturated u(k) with DMC ultrasonic sensor to detect the ball position, and an At-
and DMC-AW sat(u(k)). Scheme recovery of the system mega328Pu microcontroller were used. For real simulation
with AW is faster than the model without AW. And note it was set the reference r(k) = 20cm. The software MAT-
LAB was used to send and receive the data. Figure 6 shows implemented control was successful in controlling the sys-
the circuit diagram implemented. tem with rapid response in the simulation and experimen-
tal results. Also, it was noted that the AW strategy avoids
that the saturation damages the system performance in a
permanent regime.
In this work, it was only considered to control the model
of the ball position with respect to the beam angle. As
future work, the authors intends to control also the non-
linear model of the angle process with respect to the motor
voltage.
ACKNOWLEDGMENT
REFERENCES
Adegbege, A.A. e Levenson, R.M. (2017). Linear multi-
variable antiwindup control design: Singular perturba-
tion approach. IFAC-PapersOnLine, 50(2), 289–294.
Camacho, E.F. e Alba, C.B. (2013). Model predictive
control. Springer Science & Business Media.
Cutler, C.R. e Ramaker, B.L. (1980). Dynamic matrix con-
trol: A computer control algorithm. In joint automatic
control conference, 17, 72.
(b) Ball-beam system De Doná, J.A., Goodwin, G.C., e Seron, M.M. (2000).
Anti-windup and model predictive control: Reflections
Figure 6. Ball-beam physical system: a) the circuit di- and connections. European Journal of Control, 6(5),
agram with sensor, motor and microcontroller. b) 467–477.
implemented physical system. Errouissi, R. e Al-Durra, A. (2018). Decoupled pi current
controller for grid-tied inverters with improved transient
It is shown, in Figure 7 the output y(k) for both technique performances. IET Power Electronics, 12(2), 245–253.
DMC and DMC-AW. Results show that the control with Fang, J., Yao, W., Chen, Z., Wen, J., Su, C., e Cheng, S.
AW presents a better result when compared with the con- (2018). Improvement of wide-area damping controller
trol without AW. The saturated signal causes instability subject to actuator saturation: a dynamic anti-windup
and affects closed-loop system stability margins degrading approach. IET Generation, Transmission & Distribu-
system performance over as shown in Figure 7. tion, 12(9), 2115–2123.
Herrmann, G., Turner, M.C., e Postlethwaite, I. (2003).
Discrete-time anti-windup: Part ii extension to the
30 sampled-data case. In European Control Conference
DMC−AW
DMC (ECC), 2003, 479–484. IEEE.
25 Hirsch, R. (1999). Mechatronic instructional systems ball
on beam system. Shandor Motion Systems.
Kwong, W. (2005). Introdução ao controle preditivo com
Output (cm)
20
matlab.
15
Lamrabet, O., Tissir, E.H., e El Haoussi, F. (2018). Anti-
windup compensator synthesis for sampled-data delay
systems. Circuits, Systems, and Signal Processing, 1–
10
17.
Löfberg, J. (2003). Minimax approaches to robust model
5
0.1 0.2 0.3 0.4 0.5 0.6 0.7 predictive control, volume 812. Linköping University
Time Electronic Press.
Qi, W., Park, J.H., Zong, G., Cao, J., e Cheng,
Figure 7. Sensor output y(k) with DMC and DMC-AW. J. (2018). Anti-windup design for saturated semi-
markovian switching systems with stochastic distur-
bance. IEEE Transactions on Circuits and Systems II:
6. CONCLUSION Express Briefs.
Ran, M., Wang, Q., e Dong, C. (2016). Anti-windup design
The obtained results can validate the good performance of for uncertain nonlinear systems subject to actuator sat-
a DMC-AW implemented in the ball-beam system. Despite uration and external disturbance. International Journal
the instability and oscillatory tendency of the system, the of Robust and Nonlinear Control, 26(15), 3421–3438.
Rego, R.C.B. e Costa, M.V.S. (2020). Output feedback
robust control with anti-windup applied to the 3ssc
boost converter. IEEE Latin America Transactions,
18(05), 874–880.
Rego, R.C.B., Costa, M.V.S., Reis, F.E.U., e Bascopé,
R.P.T. (2018). Análise e simulação do controlador
mpc-aw-lmi aplicado ao conversor ccte operando em
condições de saturação no sinal de controle. Congresso
Brasileiro de Automática, XXII.
Sathiyavathi, S. e Krishnamurthy, K. (2013). Pid control
of ball and beam system - a real time experimentation.
Journal of Scientific and Industrial Research, 72, 481–
484.
Schvarcz, A.F. e Diniz, I.S. (2010). Modelagem, simulação
e controle de um sistema barra e bola auxiliado por
computador: Cad e cae. Universidade Estadual Paulista.
Sorocaba.
Testud, J., Richalet, J., Rault, A., e Papon, J. (1978).
Model predictive heuristic control: Applications to in-
dustial processes. Automatica, 14(5), 413–428.
Turner, M.C., Herrmann, G., e Postlethwaite, I. (2003).
Discrete-time anti-windup: Part i stability and perfor-
mance. In European Control Conference (ECC), 2003,
473–478. IEEE.
Wada, N. e Saeki, M. (2016). Anti-windup synthesis for a
model predictive control system. IEEJ Transactions on
Electrical and Electronic Engineering, 11(6), 776–785.
Wang, W. (2007). Control of a ball and beam system. M.
Tech Thesis, University of Adelaide, Australia.
Yu, W. e Ortiz, F. (2005). Stability analysis of pd regula-
tion for ball and beam system. In Control Applications,
2005. CCA 2005. Proceedings of 2005 IEEE Conference
on, 517–522. IEEE.
Zaccarian, L. e Teel, A.R. (2011). Modern anti-windup
synthesis: control augmentation for actuator saturation,
volume 36. Princeton University Press.