Modelling, control and simulation for a Two-Wheeled Balancing Mobile Robot System

Authors

  • Abdulnasser Shaeban Alfirjani Author
  • Mohamed Naji Muftah Author
  • Abobaker Zargoun Author

Keywords:

TWBMR, PID controller, PSO algorithm, System Modelling, MATLAB simulation

Abstract

Two-Wheeled Balancing Mobile Robots (TWBMRs) are inherently unstable systems that require an efficient control strategy to maintain balance and ensure satisfactory dynamic performance. This paper presents the optimization of a Proportional-Integral-Derivative (PID) controller using the Particle Swarm Optimization (PSO) algorithm for a TWBMR system. The mathematical model of the robot is derived based on the inverted pendulum concept, and the optimized PID controller is implemented and evaluated in the MATLAB/Simulink environment. The PSO algorithm is employed to determine the optimal PID gains by minimizing the Integral of Squared Error (ISE) performance index. The performance of the proposed PSO-PID controller is compared with the conventional Ziegler-Nichols tuning method using transient response characteristics and performance indices. Simulation results demonstrate that the proposed PSO-PID controller significantly improves the system performance, achieving a rise time of 0.0196 s, a settling time of 0.0637 s, a maximum overshoot of 9.83%, and zero steady-state error. Furthermore, the optimized controller achieves lower performance indices, with IAE = 0.0258, ISE = 0.005079, and ITAE = 0.03032, confirming superior tracking accuracy, faster transient response, and enhanced control performance compared with the conventional tuning approach. In addition, robustness analysis under ±25% system parameter variations demonstrate that the proposed controller maintains stable and satisfactory performance, highlighting its effectiveness and reliability for two-wheeled balancing mobile robot applications.

References

[1] Filipek, p. remote-controlled two-wheeled self-balancing robot. Journal of Technology and Exploitation in Mechanical Engineering. 2022 https://doi.org/10.35784/jteme.3147

[2] Mudeng, V., Hassanah, B., Priyanto, Y., & Saputra, O. Design and Simulation of Two-Wheeled Balancing Mobile Robot with PID Controller. International Journal of Sustainable Transportation Technology. 2020 https://doi.org/10.31427/ijstt.2020.3.1.3

[3] Nawawi, S., Noh, A., & Osman, J. Two-wheeled balancing robot, 2008.

[4] Iwendi, C., Alqarni, M., Anajemba, J., Alfakeeh, A., Zhang, Z., & Bashir, A. Robust Navigational Control of a Two-Wheeled Self-Balancing Robot in a Sensed Environment. IEEE Access. 2019;7. https://doi.org/10.1109/ACCESS.2019.2923916

[5] Lim, B. Two Wheeled Balancing Robot. . 2007

[6] Hong-Ge, R. Two-wheeled self-balancing mobile robot dynamic model and balancing control. Application Research of Computers. 2009

[7] Pawananont, K., & Charoensuk, K. Design of a Two-Wheeled Auto-Balancing Robot under Impulse Interruption. ECTI Transactions on Electrical Engineering, Electronics, and Communications. 2022 https://doi.org/10.37936/ecti-eec.2022203.247520

[8] Nemec, D., Adamkovic, D., Hruboš, M., Pirník, R., & Mihálik, M. Fast Two-Wheeled Balancing Robot. 2021 22nd International Carpathian Control Conference (ICCC). 2021 https://doi.org/10.1109/ICCC51557.2021.9454659

[9] Junfeng, W., & Wanying, Z. (2011). Research on Control Method of Two-wheeled Self-balancing Robot. 2011 Fourth International Conference on Intelligent Computation Technology and Automation. doi:10.1109/icicta.2011.132.

[10] Zhao, J. W., & Ruan, X. G. (2011). Modelling and control of a flexible two-wheeled self-balancing mobile robot. International Journal of Systems, Control and Communications, 3(3), 330. doi:10.1504/ijscc.2011.042438

[11] Sikander, A., & Prasad, R. Reduced order modelling based control of two wheeled mobile robot. Journal of Intelligent Manufacturing. 2017; 30. https://doi.org/10.1007/s10845-017-1309-3

[12] Kim, S., & Ahn, C. Self-Tuning Position-Tracking Controller for Two-Wheeled Mobile Balancing Robots. IEEE Transactions on Circuits and Systems II: Express Briefs. 2019; 66. https://doi.org/10.1109/TCSII.2018.2869915

[13] Lima-Perez, A., Díaz-Téllez, J., Gutierrez-Vicente, V., Estevez-Carreon, J., Pérez-Pérez, J., García-Ramirez, R., & Chavez-Galan, J. Robust Control of a Two-Wheeled Self-Balancing Mobile Robot. 2021 International Conference on Mechatronics, Electronics and Automotive Engineering (ICMEAE). 2021 https://doi.org/10.1109/ICMEAE55138.2021.00038

[14] Mudeng, V., Hassanah, B., Priyanto, Y., & Saputra, O. Design and Simulation of Two-Wheeled Balancing Mobile Robot with PID Controller. International Journal of Sustainable Transportation Technology. 2020 https://doi.org/10.31427/ijstt.2020.3.1.3

[15] Lee, Y., Ra, W., & Kim, T. Robust Bearing Angle Error Estimation for Mobile Robots With a Gimballed Ultrasonic Seeker. IEEE Transactions on Industrial Electronics. 2018; 65. https://doi.org/10.1109/TIE.2017.2777411

[16] Lee, A., & Joo, Y. Iterative PID Control Design Approach for Maximizing Proportional Gain. IEEE Access. 2024; 12. https://doi.org/10.1109/ACCESS.2024.3444925

[17] Ang, K., Chong, G., & Li, Y. PID control system analysis, design, and technology. IEEE Transactions on Control Systems Technology. 2005; 13. https://doi.org/10.1109/TCST.2005.847331

[18] Somefun, O., Akingbade, K., & Dahunsi, F. The dilemma of PID tuning. Annu. Rev. Control. 2021; 52. https://doi.org/10.1016/j.arcontrol.2021.05.002

[19] Zhang, J., & Guo, L. Theory and Design of PID Controller for Nonlinear Uncertain Systems. IEEE Control Systems Letters. 2019; 3. https://doi.org/10.1109/LCSYS.2019.2915306

[20] Yamamoto, T., Takao, K., & Yamada, T. Design of a Data-Driven PID Controller. IEEE Transactions on Control Systems Technology. 2009; 17. https://doi.org/10.1109/TCST.2008.921808

[21] Verma, B., & Padhy, P. Robust Fine Tuning of Optimal PID Controller With Guaranteed Robustness. IEEE Transactions on Industrial Electronics. 2020; 67. https://doi.org/10.1109/TIE.2019.2924603

[22] Ren, Y., & , W. Proportional-derivative control and motion stability analysis of a 16-pole legs rotor-active magnetic bearings system. Journal of Vibration and Control. 2024 https://doi.org/10.1177/10775463241276712

[23] Zhang, Z., Ling, Z., & Sarlette, A. Modified Integral Control Globally Counters Symmetry-Breaking Biases. Symmetry. 2019; 11. https://doi.org/10.3390/SYM11050639

[24] Liu, D., Gibaru, O., & Perruquetti, W. Error analysis of Jacobi derivative estimators for noisy signals. Numerical Algorithms. 2011; 58. https://doi.org/10.1007/s11075-011-9447-8

[25] Wang, C., Wang, T., Chen, G., & Pan, J. Automatic Detection and Self-Adjustment Compensation for Mechanical Oscillations and Disturbances in Servo Systems. IEEE Transactions on Systems, Man, and Cybernetics: Systems. 2024; 54. https://doi.org/10.1109/TSMC.2023.3325804

[26] Hägglund, T., & Åström, K. Revisiting the Ziegler-Nichols step response method for PID control. Journal of Process Control. 2004; 14. https://doi.org/10.1016/J.JPROCONT.2004.01.002

[27] He, S., Tan, S., Xu, F., & Wang, P. Fuzzy self-tuning of PID controllers. Fuzzy Sets and Systems. 1993; 56. https://doi.org/10.1016/0165-0114(93)90183-I

[28] Stradner, J., Thenius, R., Zahadat, P., Hamann, H., Crailsheim, K., & Schmickl, T. Algorithmic requirements for swarm intelligence in differently coupled collective systems. Chaos, Solitons, and Fractals. 2013; 50. https://doi.org/10.1016/J.CHAOS.2013.01.011

[29] Cordón, O., Triguero, F., & Stützle, T. A Review on the Ant Colony Optimization Metaheuristic: Basis, Models and New Trends. . 2002; 9.

[30] Dorigo, M. Ant Colony Optimization. IEEE Transactions on Evolutionary Computation. 2001; 8. https://doi.org/10.1109/TEVC.2004.827005

[31] J. K. and R. Eberhart, “Particle Swarm Optimisation,” IEEE Int. Conf. Neural Networks, pp. 1942–1948, 1995, doi: 10.1007/978-3-030-61111-8_2.

[32] R. Rajesh, “Optimal tuning of FOPID controller based on PSO algorithm with reference model for a single conical tank system,” SN Appl. Sci., vol. 1, no. 7, pp. 1–14, 2019, doi: 10.1007/s42452-019-0754-3

[33] Muftah, M. N., Athif, A., Faudzi, M., Sahlan, S. and Shouran, M. (2022) ‘Modeling and Fuzzy FOPID Controller Tuned by PSO for Pneumatic Positioning System’, Energies, 15(3757), pp. 1–19.

[34] M. Shouran and A. Alsseid, “Particle Swarm Optimization Algorithm-Tuned Fuzzy Cascade Fractional Order PI-Fractional Order PD for Frequency Regulation of Dual-Area Power System,” Processes, vol. 10, no. 3, 2022, doi: 10.3390/pr10030477

[35] Vicky Mudeng, Barokatun Hassanah, Yun Tonce Kusuma Priyanto, Okcy Saputra, “Design and Simulation of Two-Wheeled Balancing Mobile Robot with PID Controller,” International Journal of Sustainable Transportation Technology, no. 1, April 2020, 12-1912 http://dx.doi.org/10.31427/IJSTT.2020.3.1.3

[36] Y. Zhang, Q. Fei, J. Lu, W. Lei, and Q. Wu, “Performance criteria research on PSO-PID control systems,” Proc. - 2010 Int. Conf. Intell. Comput. Cogn. Informatics, ICICCI 2010, no. 2, pp. 316–320, 2010, doi: 10.1109/ICICCI.2010.51.

Downloads

Published

01-12-2025

How to Cite

[1]
A. Shaeban Alfirjani, M. Naji Muftah, and A. Zargoun, “Modelling, control and simulation for a Two-Wheeled Balancing Mobile Robot System”, JEEEIT, vol. 2, no. 01, pp. 14–27, Dec. 2025, Accessed: Jul. 18, 2026. [Online]. Available: https://jeeeit.com/index.php/jeeeit/article/view/82

Similar Articles

21-21 of 21

You may also start an advanced similarity search for this article.