Numerical and experimental investigation for swing-up control of an inverted pendulum using Arduino microcontroller
DOI:
https://doi.org/10.15282/jmes.18.2.2024.4.0791Keywords:
Inverted Pendulum, Swing-up, LQR, Nonlinear Control, Microcontroller, ArduinoAbstract
The Inverted Pendulum is a classic control problem, it has non-linear dynamics, is underactuated and naturally unstable. Thus, the development of a system capable of controlling it goes through challenges such as modeling, design requirements and implementation of the control hardware. This work proposes the swing-up of the linear inverted pendulum using energy method with adjustable parameters, followed by its stabilization by an LQR controller. This work demonstrates how the system can be implemented using an Arduino microcontroller for acquisition of state variables and control commands. Furthermore, as a highlight, the implemented algorithm indicates a way to stabilize the sampling frequency, making the derivative process stable in the applied hardware, making control optimized. The applied method was efficient to perform the swing-up, consistent with the simulations and as effective as what is seen in the literature.
References
J. J. da Cruz, “Controle automático,” SBA: Controle & Automação Sociedade Brasileira de Automatica, vol. 22, no. 4, pp. 425–427, 2011.
R. C. Dorf, R. H. Bishop. Modern Control Systems, 13th ed. Boston: Pearson, 2016.
K. Ogata. Modern Control Engineering, 5th ed. Boston: Pearson, 2010.
T. Yoneyama, “Alguns aspectos relevantes em projeto,” in Engenharia de Controle: Teoria e Prática, pp. 439–464, 2022.
J.-H. Yang, S.-Y. Shim, J.-H. Seo, Y.-S. Lee, “Swing-up control for an inverted pendulum with restricted cart rail length,” International Journal of Control, Automation and Systems, vol. 7, no. 4, pp. 674–680, 2009.
H. O. Wang, K. Tanaka, M. F. Griffin, “An approach to fuzzy control of nonlinear systems: Stability and design issues,” IEEE Transactions on Fuzzy Systems, vol. 4, no. 1, pp. 14–23, 1996.
N. Muskinja, B. Tovornik, “Swinging up and stabilization of a real inverted pendulum,” IEEE Transactions on Industrial Electronics, vol. 53, no. 2, pp. 631–639, 2006.
C. W. Tao, J. S. Taur, Tzuen Wuu Hsieh, C. L. Tsai, “Design of a fuzzy controller with fuzzy swing-up and parallel distributed pole assignment schemes for an inverted pendulum and cart system,” IEEE Transactions on Control Systems Technology, vol. 16, no. 6, pp. 1277–1288, 2008.
J. Si, Y-T. Wang, “Online learning control by association and reinforcement,” IEEE Transaction on Neural Networks, vol. 12, no. 2, pp. 264–276, 2001.
J. Morimoto, K. Doya, “Robust reinforcement learning,” Neural Computation, vol. 17, no. 2, pp. 335–359, 2005.
M. Riedmiller, “Neural reinforcement learning to swing-up and balance a real pole,” in IEEE International Conference on Systems, Man and Cybernetics, pp. 3191–3196, 2005.
K. Yoshida, “Swing-up control of an inverted pendulum by energy-based methods,” in Proceedings of the 1999 American Control Conference (Cat. No. 99CH36251), vol. 6, pp. 4045–4047, 1999.
M. Bugeja, “Non-linear swing-up and stabilizing control of an inverted pendulum system,” in IEEE Region 8 EUROCON2003. Computer as a Tool, vol. 2, pp. 437–441, 2003.
A. Bellati, N. P. Blengio, F. Cancela, P. Monzon, N. Perez, “Modeling and control of a Furuta pendulum,” in IEEE URUCON, pp. 334–338, 2021.
K. Turkoglu, B. Graham, “Design, build and integration of a low-cost self-erecting inverted pendulum mechanism,” in AIAA Modeling and Simulation Technologies Conference, Grapevine, Texas, 9 – 13th January, 2017.
L. B. Prasad, B. Tyagi, H. O. Gupta, “Optimal control of nonlinear inverted pendulum system using PID controller and LQR: Performance analysis without and with disturbance input,” International Journal of Automation and Computing, vol. 11, no. 6, pp. 661–670, 2014.
J. Lee, R. Mukherjee, H. K. Khalil, “Output feedback stabilization of inverted pendulum on a cart in the presence of uncertainties,” Automatica, vol. 54, pp. 146–157, 2015.
S. Irfan, A. Mehmood, M. T. Razzaq, J. Iqbal, “Advanced sliding mode control techniques for inverted pendulum: Modelling and simulation,” Engineering Science and Technology, an International Journal, vol. 21, no. 4,
pp. 753–759, 2018.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2024 The Author(s)
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.