Design and Application of Models Reference Adaptiv
Design and Application of Models Reference Adaptiv
Received 29 September 2021; Revised 29 November 2021; Accepted 8 December 2021; Published online 29 July 2022
Abstract
This paper presents the implementation of an adaptive control approach to the ball and beam system (BBS). The dynamics
of a BBS are non-linear, and in the implementation, the uncertainty of the system's parameters may occur. In this research, the
linear state-feedback model reference adaptive control (MRAC) is used to synchronize the states of the BBS with the states of
the given reference model. This research investigates the performance of the MRAC method for a linear system that is applied
to a non-linear system or BBS. In order to get a faster states convergence response, we define the initial condition of the
feedback gains. In addition, the feedback gains are limited to get less oscillation response. The results show the error
convergence is improved for the different sets of the sinusoidal reference signal for the MRAC with modified feedback gains.
The ball position convergence improvement of MRAC with modified feedback gains for sinusoidal reference with an amplitude
of 0.25, 0.5, and 0.75 are 35.1 %, 36 %, and 52.4 %, respectively.
Copyright ©2022 National Research and Innovation Agency. This is an open access article under the CC BY-NC-SA license
(https://creativecommons.org/licenses/by-nc-sa/4.0/).
Keywords: model reference adaptive control; modified feedback gains; ball and beam system.
doi: https://dx.doi.org/10.14203/j.mev.2022.v13.15-23
2088-6985 / 2087-3379 ©2022 National Research and Innovation Agency
This is an open access article under the CC BY-NC-SA license (https://creativecommons.org/licenses/by-nc-sa/4.0/)
MEV is Scopus indexed Journal and accredited as Sinta 1 Journal (https://sinta.kemdikbud.go.id/journals/detail?id=814)
How to Cite: M.Z. Romdlony et al., “Design and application of models reference adaptive control (MRAC) on ball and beam,” Journal of
Mechatronics, Electrical Power, and Vehicular Technology, vol. 13, no. 1, pp. 15-23, July 2022.
16 M.Z. Romdlony et al. / Journal of Mechatronics, Electrical Power, and Vehicular Technology 13 (2022) 15-23
the edge of the beam. The BBS configuration can be where 𝑟̇ is velocity of the ball and 𝑟̈ is acceleration of
seen in Figure 1. the ball.
The motion of the ball can be found by using
B. Model reference adaptive control (MRAC)
Newton’s law that satisfies the following equation
(1) The model reference adaptive control (MRAC) is
one of the adaptive control methods which aims to
𝑚𝑚 sin 𝛼 − 𝐹𝑓 = 𝑚𝑟̈ (1)
solve control problems with limited parameters to
𝑗
where 𝐹𝑓 = 𝑏2 𝑟̈ is the frictional force, 𝑗𝑏 is the compensate for unknown system parameters by
𝑅
adapting the characteristics of the stable reference
moment of inertia of the ball, and 𝛼 is the deflection
model. Thus the system has the same characteristics
of the beam. Here we are assuming that 𝛼 is very
similar to the reference model. In this study, direct
small. Thus we have linearized BBS motion in
MRAC was used [14]. Figure 2 shows the structure of
equation (2)
the direct MRAC.
𝑚𝑚 𝛼 −
𝑗𝑏
𝑟̈ = 𝑚𝑟̈ (2) In direct state-feedback MRAC, the following
𝑅2
equations are used:
Unknown system using equation (5) • The states response from the BBS is measured
using an infrared sensor and sent back to
𝑥̇ = 𝐴𝐴 + 𝐵𝐵 (5)
MATLAB via Arduino Uno. The results are the
Reference model using equation (6) states of the BBS, the position and the speed of
the ball.
𝑥̇ 𝑚 = 𝐴𝑚 𝑥𝑚 + 𝐵𝑚 𝑟 (6)
• The ball moves on the beam according to the
Lyapunov equation using equation (7) given control and adapts the reference model
that was designed previously.
𝐴′𝑚 𝑃 + 𝑃𝐴𝑚 = −𝑄, 𝑄 > 0 (7) • This process will continue until the SIMULINK
Adaptive Laws using equation (8) and (9) running time finish.
III. Results and Discussions converge to the states of the model reference with
small errors at different timescales marked by
A. State feedback direct MRAC on ball and beam dotted lines. Therefore, we can take the values the
system experiment feedback gains, 𝑘 and 𝑙, at that time range as the
First, we define the initial ball position at 17.5 cm initial and saturation values.
from the edge of the beam, the sinusoidal frequency B. The influence of the Initial definition and
is 0.005 rad/sec, the sinusoidal bias is 1.75, and the saturation value on the BBS system
SIMULINK run time is 10,000 seconds. The responses
based on the simulation and experiment of the From the previous results, we get the information
proposed MRAC design for BBS can be seen in to define the initial value and the saturation value of
Figure 5. In the experiment (blue line), the state the feedback gains 𝑘 and 𝑙. For sinusoidal reference
error between simulation and experiment is 7.65 % signal with an amplitude of 0.25, we have 𝑘1 ∈ [5,10] ,
for an amplitude of 0.25, 13.41 % for an amplitude of 𝑘2 ∈ [50,100], and 𝑙 ∈ [40,80]. For sinusoidal reference
0.5, and 15.14 % for an amplitude of 0.75. It can be signal with an amplitude of 0.5, we have 𝑘1 ∈ [8,10],
seen in Figure 6 that the states of the BBS can 𝑘2 ∈ [35,98], and 𝑙 ∈ [40,80]. For sinusoidal reference
signal with an amplitude of 0.75, we have 𝑘1 ∈ [5,12],
𝑘2 ∈ [40,140], and 𝑙 ∈ [40,100].
The responses, simulation and experiment, of the
proposed MRAC with modified feedback gains 𝑘 and
𝑙 can be seen in Figure 6. The yellow signal color
indicates the reference signal, the blue color
indicates the BBS experimental signal, and the red
dotted line indicates the simulation signal. In the
experiment (blue line), the states error between
simulation and experiment is 4.97 % for an
amplitude of 0.25, 8.57 % for an amplitude of 0.5,
and 7.21 % for an amplitude of 0.75.
Table 1 shows the state error (error position of
the ball) value before and after we define the initial
and the saturation values of the feedback gains 𝑘 and
𝑙. It can be concluded that the modified feedback
gains 𝑘 and 𝑙 decreased the error value by 2.68 % in
the case of sinusoidal with an amplitude of 0.25,
4.84 % in the case of sinusoidal with an amplitude of
0.5, and 7.93 % in the case of sinusoidal with an
amplitude of 0.75. Figure 7 shows the comparison of
the ball position when using the MRAC with
modified feedback gains and standard MRAC.
Table 2 shows the performance improvement in
terms of ball position error after the modification of
the initial and the saturation values of feedback
gains 𝑘 and 𝑙. It can be concluded that the modified
feedback gains 𝑘 and 𝑙 gives the biggest
improvement in terms of ball position error when
the sinusoidal amplitude is 0.75. The smaller
amplitude gives a lower performance improvement.
Table 1.
Comparison of the difference of ball position error in the
experiment
Table 2.
Performance improvement MRAC with modified feedback gains 𝒌
and 𝒍 in the experiment
Figure 5. Comparison of simulations and experiments of BBS without initial definition and saturation values at the amplitude of (a) 0.25; (b) 0.5;
and (c) 0.75
Figures 5 and 6 show the simulation responses disturbances. In the experiment, the non-linear
are better than the experimental responses. This dynamics cannot be neglected, but it can be seen
happens because the BBS model in simulation is that the MRAC with modified feedback gains gives a
defined as a linear system and is unaffected by any better response or synchronization.
20 M.Z. Romdlony et al. / Journal of Mechatronics, Electrical Power, and Vehicular Technology 13 (2022) 15-23
Figure 6. Comparison of simulations and experiments of BBS with initial definition and saturation values at the amplitude of (a) 0.25; (b) 0.5;
and (c) 0.75
Table 3 shows the ball position error both in different response error between the simulation and
simulation and experiment. It is shown that the experiment of less than 10 %. We have different
designed MRAC with modified feedback gain gives a responses error between the simulation and
M.Z. Romdlony et al. / Journal of Mechatronics, Electrical Power, and Vehicular Technology 13 (2022) 15-23 21
Figure 7. Comparison of the ball position when using the MRAC with modified feedback gains and standard MRAC in the experiment at the
amplitude of (a) 0.25; (b) 0.5; and (c) 0.75
experiment in the case of sinusoidal with an into account the input saturation [15], where we
amplitude of 0.25, 0.5, and 0.75 equal to 4.37 %, know that the BBS system has limited servo
6.37 %, and 6.56 %, respectively. Future work may actuation.
include implementing adaptive control that takes
22 M.Z. Romdlony et al. / Journal of Mechatronics, Electrical Power, and Vehicular Technology 13 (2022) 15-23
Table 3.
Comparison of the ball position error values in simulations and experiments BBS
Amplitude Simulation (% error) Experiment (% error) Difference between simulation and experiment (% error )
0.25 0.004 % 7.65 % 7.646 %
0.25-modified 𝒌 and 𝒍 0.6 % 4.97 % 4.37 %
0.5 0.0036 % 13.41 % 13.4064 %
0.5-modified 𝒌 and 𝒍 2.2 % 8.57 % 6.37 %
0.75 0.004 % 15.14 % 15.136 %
0.75-modified 𝒌 and 𝒍 0.65 % 7.21 % 6.56 %
Additional information
IV. Conclusion
Reprints and permission: information is available at
In this research, we have shown that the https://mev.lipi.go.id/.
modified feedback gains are able to make the system Publisher’s Note: National Research and Innovation
performance better, which is shown by a smaller Agency (BRIN) remains neutral with regard to jurisdictional
error value. This work shows the experiment result claims in published maps and institutional affiliations.
of the MRAC and we proposed the modified feedback
gains 𝑘 and 𝑙 . The state-feedback MRAC with References
modified feedback gains 𝑘 and 𝑙 experiment resulted [1] P. Kotsampopoulos et al., "A benchmark system for hardware-
in a smaller ball position error with lower error in-the-loop testing of distributed energy resources," IEEE
percentage value of 2.68 % for the sinusoidal Power and Energy Technology Systems Journal, vol. 5, no. 3, pp.
94-103, Sept. 2018.
amplitude of 0.25, 4.84 % for the sinusoidal
[2] K. S. Amitkumar, R. S. Kaarthik, and P. Pillay, "A versatile
amplitude of 0.5, and 7.93 % for the sinusoidal power-hardware-in-the-loop-based emulator for rapid testing
amplitude of 0.75. The performance improvement of transportation electric drives," IEEE Transactions on
with modified 𝑘 and 𝑙 (in percentage) is 35.1 % for Transportation Electrification, vol. 4, no. 4, pp. 901-911, Dec.
2018.
the sinusoidal amplitude of 0.25, 36 % for the [3] J. E. Gaudio, A. M. Annaswamy, E. Lavretsky, and M. Bolender,
sinusoidal amplitude of 0.5, and 52.4 % for the "Parameter estimation in adaptive control of time-varying
sinusoidal amplitude of 0.75. Comparison of the systems under a range of excitation conditions," IEEE
Transactions on Automatic Control, 2021.
simulation ball position errors is better in the [4] G. Lymperopoulos and P. Ioannou, "Model reference adaptive
simulation. This happens due to the simplified BBS control for networked distributed systems with strong
model and the absence of any disturbances. The interconnections and communication delays," J Syst Sci
Complex 31, pp. 38–68, 2018.
modification of the feedback gains gives better ball [5] T. Yucelen and W. M. Haddad, "Low-frequency learning and
position convergence to the reference model, but a fast adaptation in model reference adaptive control," IEEE
testing case is required to get the information on the Transactions on Automatic Control, vol. 58, no. 4, pp. 1080-
initial values and saturation values of the feedback 1085, April 2013.
[6] C. Yuquan, W. Yiheng, L. Shu, W. Yong, "Indirect model
gains. reference adaptive control for a class of fractional order
systems," Communications in Nonlinear Science and
Numerical Simulation, Volume 39, pp. 458-471, 2016, ISSN
Acknowledgment 1007-5704.
[7] I. Barkana, "Simple adaptive control–a stable direct model
The authors express their gratitude to the reference adaptive control methodology–brief survey",
Ministry of Research and Technology of the Republic International Journal of Adaptive Control and Signal Processing,
of Indonesia (Ristekdikti) for providing the Post Volume 28, Issue 7-8, 2014, pp. 567-604.
doctoral research at Bandung Institute of Technology [8] Joseph E. Gaudio, Anuradha M. Annaswamy, Eugene Lavretsky
and Michael A. Bolender. "Fast parameter convergence in
(ITB). adaptive flight control," AIAA 2020-0594. AIAA Scitech 2020
Forum. January 2020.
[9] M.F. Rahmat, H. Wahid, and N.A. Wahab, "Application of
Declaration intelligent controller in a ball and beam control system,"
International journal on smart sensing and intelligent systems,
Author contribution 3(1), pp. 45-60, 2017.
[10] Y. H. Chang, W. S. Chan, and C. W. Chang, “T-S fuzzy model-
All authors contributed equally as the main contributor
based adaptive dynamic surface control for ball and beam
of this paper. All authors read and approved the final paper.
system,” IEEE Trans. Ind. Electron., vol. 60, no. 6, pp. 2251–
2263, 2013.
Funding statement
[11] P. Jain and M. J. Nigam, “Real time control of ball and beam
This research did not receive any specific grant from system with model reference adaptive control strategy using
funding agencies in the public, commercial, or not-for- MIT rule,” 2013 IEEE Int. Conf. Comput. Intell. Comput. Res.
(IEEE ICCIC 2013), no. 4, pp. 4–7, 2013.
profit sectors.
[12] I. M. Mehedi, U. M. Al-Saggaf, R. Mansouri, and M. Bettayeb,
"Two degrees of freedom fractional controller design:
Competing interest
application to the ball and beam system," Measurement,
The authors declare that they have no known Volume 135, pp. 13-22, 2019, ISSN 0263-2241.
[13] S. S. Tohidi, Y. Yildiz, and I. Kolmanovsky, "Adaptive control
competing financial interests or personal relationships that
allocation for constrained systems," Automatica, Volume 121,
could have appeared to influence the work reported in this 109161, 2020, ISSN 0005-1098.
paper. [14] P. Ioannou and B. Fidan, "Adaptive control tutorial," Advance in
design and control, 2006.
M.Z. Romdlony et al. / Journal of Mechatronics, Electrical Power, and Vehicular Technology 13 (2022) 15-23 23