Sliding Mode Control for Ball in Tube

Quang-Thien Nguyen, Huynh-Phuc Le, Quoc-Kiet Dinh, Dieu-Minh-Thu Tran, Thi-Thanh-Hoang Le *

Ho Chi Minh City University of Technology and Education (HCMUTE)
Vo Van Ngan Str., No. 01, Ho Chi Minh City (HCMC), Vietnam
* Corresponding author. E-mail: hoangltt@hcmute.edu.vn

Robotica & Management, Vol. 30, No. 1, pp. 12-17
DOI: https://doi.org/10.24193/rm.2025.1.2

Abstract: This paper presents simulation of Sliding Mode Control (SMC) algorithm and the PID algorithm applied to the ball in tube – a single input single output (SISO) nonlinear system. The primary objective of this study is to stabilize the position of the ball at a desired location inside the tube despite disturbances or variations in initial conditions. Firstly, we focus on designing PID controller, the PID parameters are tuned using standard methods to ensure acceptable transient and steady – state performance. Thence, we proceed to design the Sliding Mode Controller and optimize it by using genetic algorithm (GA) to determine the optimal parameters for the controller, so that the system output can accurately track the desired setpoint. Through a series of simulations are carried out in Matlab/Simulink toevaluate the effectiveness of both controllers. Performance metrics such as rise time, settling time, overshoot, and steady-state error are used for comparison. The simulation results demonstrate that the GA-optimized SMC significantly outperforms the conventional PID controller in terms of tracking accuracy, robustness to disturbances, and control efficiency. These findings highlight the potential of intelligent optimization techniques like GA in enhancing the performance of advanced control algorithms such as SMC in nonlinear dynamic systems.

Keywords: PID Control; sliding mode control; ball in tube; SISO system.

Full text

References

[1] Wang Y.et al: “Test and assessment of the heating system of reflow ovens,” 2010 11th International Conference on Electronic Packaging Technology & High Density Packaging, China, pp. 798-804, 2010.

[2] Ariyansyah Q., Ma’arif A.: “DC Motor Speed Control with Proportional Integral Derivative (PID) Control on the Prototype of a Mini-Submarine”, J Fuzzy Syst Control, vol. 1, no. 1, pp. 18–24, Mar. 2023.

[3] Seto M.A., Ma’arif A.: “PID Control of Magnetic Levitation (Maglev) System”, J Fuzzy Syst Control, vol. 1, no. 1, pp. 25–27, 2023.

[4] Nguyen H.-T. et al: “Experiment Ball Levitation with Fuzzy PID and PID Implementation”, J Fuzzy Syst Control, vol. 2, no. 3, pp. 129–134, 2024.

[5] Nguyen B.-H. et al: “Application of Genetic Algorithm for Optimizing Continuous and Discrete PID to Control Antenna Azimuth Position”, J Fuzzy Syst Control, vol. 2, no. 1, pp. 1–5, 2024.

[6] Jamshed I. et al: “Nonlinear control systems – A brief overview of historical and recent advances”, Nonlinear Engineering, vol. 6, no. 4, pp. 301-312, 2017.

[7] Tootchi A. et al: “Modeling and Control of an Air Levitation Ball and Pipe Laboratory Setup”, 2019 7th International Conference on Robotics and Mechatronics, Iran, 2019, pp. 29-34, 2019.