Hardware in the Loop (HIL) Analysis of Fuzzy Controller for Ball and Beam System

  • Abbas Rasaienia Department of Electrical and Computer, Islamic Azad University North tehran, Tehran
Keywords: , ball and beam, fuzzy control, hardware in the loop, HIL, classic control


Ball and beam system is a nonlinear and unstable system which is used as an applied sample in research laboratories as a tool to represent the performance of different control algorithms. The present study utilizes hardware in the loop realization of classic (PID type) and fuzzy controllers by Sugeno fuzzy inference approach in order to evaluate their performances. All activities for design and simulation of controller were performed by MATLAB and Simulink software. Then, the simulation environment of MATLAB was linked to the operator interface as well as actuators and sensors in hardware in the loop structure by writing a real time kernel through DAQ interface cards. Simulation results show the appropriate performance of fuzzy controller in comparison to PD and PID controllers. By using fast processors for implementation of fuzzy controller, settling time, overshoot percentage and steady state error of the closed loop system were significantly improved in comparison to the common classic structure. Also, all simulation results were verified by hardware in the loop test.


[1]Barbu, C , Sepulchre, R., Kokotovic, P. V., Lin, W“Global asymptotic stabilization of the ball-and-beam model”, Proc. IEEE Conf. Decision Contr., San Diego, USA, 2351-2355, 1997.
[2] Sepulch ,” Slow peaking and low-gain designs forglobal stabilization of nonlinear systems”, IEEETransactions on Automatic Control, 45(3): 453-461, 2000.
[3] Lin, W., and Li, X.,” Synthesis of upper-triangularnonlinear systems with marginally unstable free dynamics using state-dependent saturation”, Int. J. Control, 72(12): 1078-1086, 1999.
[4] Mohammad Kashmiri , " Modeling And Control Of Ball And Beam System Using Model Based And Non-Model Based Control" , International Journal On Smart Sensing And Intelligent Systems, VOL. 5, NO. 1, 2012.
[5] Wen Yu and Floriberto Ortiz, “Stability analysis of PDregulation for ball and beam system,” Proc. IEEE Conf. Control Applications, Toronto, Canada, pp. 517–522, 2005.
[6]Z. Gao, “Active disturbance rejection control: Aparadigm shift in feedback control system “, Proc. American Control Conf. Minneapolis, Minnesota, USA, June 14-16, 2006
[7] TZENG Shian-Tang. “GA Approach for Designing Fuzzy Control with Nonlinear Ball-and-Beam System” The International Conference on Electrical Engineering, 2008.
[8] Ting-Li Chien, Chung-Cheng Chen, Ming-Chun Tsai and Ying-Chen Chen. “Control of AMIRA’s ball and beam system via improved fuzzy feedback linearization approach” Applied Mathematical Modeling, Vol. 34, pp. 3791-3804, 2010.
[9] JanuszKacprzyk. “First Course on Fuzzy Theory and Applications”, Advances in Soft Computing, ISBN 3-540-22988-4 Springer Berlin Heidelberg New York, 2005.

[10] Product Information Sheet R2-1, Rotary Ball & Beam Experiment, Quanser Inc.,Markham, ON, Canada.
[11] Sharp sensor, GP2Y0D Series Application note; Sheet No.: OP14030EN.
How to Cite
Rasaienia, A. (2017). Hardware in the Loop (HIL) Analysis of Fuzzy Controller for Ball and Beam System. Majlesi Journal of Mechatronic Systems, 5(3). Retrieved from http://journals.iaumajlesi.ac.ir/ms/index/index.php/ms/article/view/313