Skip to main content
Log in

Real-time Mamdani-like fuzzy and fusion-based fuzzy controllers for balancing two-wheeled inverted pendulum

  • Original Research
  • Published:
Journal of Ambient Intelligence and Humanized Computing Aims and scope Submit manuscript

Abstract

Two wheeled inverted pendulum (TWIP) resembles many industrial as well as real life applications. TWIP is underactuated, nonlinear and unstable system. Therefore, it is widely used as benchmark for illustrating control concepts, theories, and algorithms that deal with these challenges. The main motivations of this paper are designing controllers that deal with lack of information that accompanying an inexpensive cheap TWIP and verified its stability, proper speed, robustness and smooth tracking. Consequently, intelligent technique instead of conventional ones that depends on mathematical models should be used. In this article hybrid controllers, consisting of fuzzy controllers and three mode controllers’ (PID), are developed. Two major techniques are used, Mamdani-Like Fuzzy and Fusion-Based function, to design five controllers. Moreover, dynamic indices and steady state indices are implemented to choose the most proper controllers among various designed ones. A new criterion is defined to measure steady state performance of oscillation. All controllers were tested in real-time to control the angle of the TWIP for stability and disturbance rejection. The experimental results showed that both strategies of Mamdani-Like Fuzzy and Fusion-Based fuzzy can control and balance adequately the TWIP, but the PD-Like fuzzy yielded more better performance.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19
Fig. 20
Fig. 21
Fig. 22
Fig. 23
Fig. 24
Fig. 25

Similar content being viewed by others

References

  • Abut T, Soyguder S (2019) Real-time control and application with self-tuning PID-type fuzzy adaptive controller of an inverted pendulum. Ind Robot Int J Robot Res Appl 46:159–170

    Article  Google Scholar 

  • Akmal M, Jamin N, Ghani NA (2017) Fuzzy logic controller for two wheeled EV3 LEGO robot. In: IEEE conference on systems, process and control (ICSPC), pp 134–139

  • Arani MS, Ebrahimi Orimi H, Xie WF, Hong H (2019) Sliding mode control design of a two-wheel inverted pendulum robot: simulation, design and experiments. Cham, pp 93–107

  • Balanbot Studio M (2014) Arduino UNO based self-balancing robot. https://makerstudio.cc/index.php?main_page=product_info&products_id=347

  • Chen L, Wang H, Huang Y, Ping Z, Yu M, Zheng X et al (2020) Robust hierarchical sliding mode control of a two-wheeled self-balancing vehicle using perturbation estimation. Mech Syst Signal Process 139:106584

    Article  Google Scholar 

  • Chiu CH, Chang CC (2012) Design and development of Mamdani-like fuzzy control algorithm for a wheeled human-conveyance vehicle control. IEEE Trans Industr Electron 59(12):4774–4783

    Article  Google Scholar 

  • Choi BJ, Wak KSW, Kim BK (2000) Design and stability analysis of single-input fuzzy logic controller. IEEE Trans Syst Man Cybern Part B (Cybernetics) 30(2):303–309

    Article  Google Scholar 

  • Evans AK, Jones A, Preece A, Quevedo F, Rogers D, Spasić I et al (2015) Dynamically reconfigurable workflows for time-critical applications. In: Presented at the proceedings of the 10th workshop on workflows in support of large-scale science, Austin, Texas

  • Gao Y, Er MJ, Yang S (2001) Adaptive control of robot manipulators using Fuzzy neural network. IEEE Trans Ind Electron 48(6):1274–1278

    Article  Google Scholar 

  • Gong Y, Wu X, Ma H (2015) Research on control strategy of two-wheeled self-balancing robot. In: International conference on computer science and mechanical automation (CSMA), pp 281–284

  • Goher KM, Fadlallah SO (2017) Bacterial foraging-optimized PID control of a two-wheeled machine with a two-directional handling mechanism. Robot Biomimet 4:1

    Article  Google Scholar 

  • Han Y, Liu Y(2010) Reduced-dimensional fuzzy controller design based on fusion function and application in double inverted pendulum. In: The 2nd international conference on industrial mechatronics and automation, pp 337–340

  • Hao Q, Li P, Chang YZ, Yang F (2011) The fuzzy controller designing of the self-balancing robot. In: Proceedings of international conference on electronics and optoelectronics, pp V3-16–V3-19

  • Huang C-H, Wang W-J, Chiu C-H (2011) Design and implementation of fuzzy control on a two-wheel inverted pendulum. IEEE Trans Industr Electron 58(7):2988–3001

    Article  Google Scholar 

  • Huang J, Ri M, Wu D, Ri S (2018) type-2 fuzzy logic modeling and control of a mobile two-wheeled inverted pendulum. IEEE Trans Fuzzy Syst 26(4):2030–2038

    Article  Google Scholar 

  • Jamin F, Ghani NMA, Ibrahim Z, Marsom MF, Razali NAA (2018) Stabilization of two-wheeled wheelchair with movable payload based on type-2 fuzzy logic controller. In: Proceeding of the 10th national technical seminar on underwater system technology, pp 137–149

  • Huang J, Zhang M, Ri S, Xiong C, Li Z, Kang Y (2020) High-order disturbance-observer-based sliding mode control for mobile wheeled inverted pendulum systems. IEEE Trans Ind Electron 67:2030–2041

    Article  Google Scholar 

  • Junfeng W, Yuxin L, Zhe W (2011) A robust control method of two-wheeled self-balancing robot. In: Proceeding of 6th international forum on strategic technology, pp 1031–1035

  • Kang Y, She J, Xu W, Li Q, Jin H (2018) Drsign of three-ring testing cascade PID controller of full-auto two-wheel balancing vechile. In: IEEE international conference on mechanical and automation (ICMA), pp 364–369

  • Liu XH, Chen XH, Zheng XH, Li SP, Wang ZB (2014) Development of a GA-fuzzy-immune pid controller with incomplete derivation for robot dexterous hand. Sci World J 2014:564137

    Google Scholar 

  • Liu T, Wang X, Zhou H, Che X, Liu H, Wang Q (2018) Design and control of a two-wheeled self-balancing robot made in 3D printing. In: Chinese automaton congress (CAC), pp 1211–1216

  • Lhee CG, Jae-Sam P, Hyun-Sik A, Do-Hyun K (2001) Sliding mode-like fuzzy logic control with self-tuning the dead zone parameters. IEEE Trans Fuzzy Syst 9:343–348

    Article  Google Scholar 

  • Mai TA, Anisimov DN, Dang TS, Dinh VN (2018) Development of a microcontroller-based adaptive fuzzy controller for a two-wheeled self-balancing robot. Microsyst Technol 24:3677–3687

    Article  Google Scholar 

  • Moness M, Moustafa A (2020) Hybrid modelling and predictive control of utility-scale variable-speed variable-pitch wind turbines. Trans Inst Meas Control

  • Moness M, Moustafa A (2019) Real-time switched model predictive control for a cyber-physical wind turbine emulator. IEEE Trans Ind Inf 16(6):3807–3817

    Article  Google Scholar 

  • Nabil H, Abd-Elaziz D M (2018) Pattern search for closed-loop parameter estimation of two wheel inverted pendulum system. In: 14th international computer engineering conference (ICENCO), pp 113–118

  • Nakpong N, Yamamoto S (2012) Just-in-time predictive control for a two-wheeled robot. In: 10th international conference on ICT and knowledge engineering, pp 95–98

  • Nasir ANK, Ahmad MA, Ghazali R, Pakheri NS (2011) Performance comparison between fuzzy logic controller (FLC) and PID controller for a highly nonlinear two-wheels balancing robot. In: First international conference on informatics and computational intelligence, pp 176–181

  • Nise NS (2019) Control systems engineering, 8th edn. Wiley, Hoboken

    MATH  Google Scholar 

  • Nguyen Gia Minh T, Duong Hoai N, Nguyen Huu P (2010), A PID backstepping controller for two-wheeled self-balancing robot. In: International forum on strategic technology, pp 76–81

  • Odry Á, Fullér R (2018) Comparison of optimized PID and fuzzy control strategies on a mobile pendulum robot. In: IEEE 12th international symposium on applied computational intelligence and informatics (SACI), pp 000207–000212

  • Omatu S, Ide T (1994) Stabilization of inverted pendulum by neuro-control. In: Proceedings of 1994 IEEE international conference on neural networks (ICNN'94), pp 2367–2372

  • Osuský J, Cigánek J (2018) Trajectory tracking robust control for two wheels robot. Cybern Inf 1:1–4

    Google Scholar 

  • Peng K, Ruan X, Zuo G (2012) Dynamic model and balancing control for two-wheeled self-balancing mobile robot on the slopes. In: Proceedings of the 10th world congress on intelligent control and automation, pp 3681–3685

  • Qingcheng W, Jian F (2014) Fuzzy immune PD algorithm applied in the self-balancing two-wheeled robot. In: 8th international conference on future generation communication and networking, pp 112–115

  • Sadeghian R, Masoule MT (2016) An experimental study on the PID and fuzzy-PID controllers on a designed two-wheeled self-balancing autonomous robot. In: 4th international conference on control, instrumentation, and automation (ICCIA), pp 313–318

  • Sayidmarie OK, Tokhi MO, Almeshal AM, Agouri SA (2012) Design and real-time implementation of a fuzzy logic control system for a two-wheeled robot. In: 17th international conference on methods and models in automation and robotics (MMAR), pp 569–572

  • Sayidmarie OK (2016) Design and real-time control of a new structure two-wheeled robot. PhD Thesis, University of Sheffield UK

  • Seul J, Song DH (2004) Neural network compensation technique for standard PD-like fuzzy controlled nonlinear systems. In: 43rd IEEE conference on decision and control (CDC) (IEEE Cat. No.04CH37601), vol 1, pp 698–703

  • Wang J, Huang C, Hung J (2017) Intelligent algorithm design by using fuzzy inference on two-wheeled self-balancing vehicle. In: International conference on applied system innovation (ICASI), pp 1825–1828

  • Wasif A, Raza D, Rasheed W, Farooq Z, Ali S Q (2013) Design and implementation of a two wheel self balancing robot with a two level adaptive control. In: 8th international conference on digital information management (ICDIM), pp 187–193

  • Wu X, Jin P, Zou T, Qi Z, Xiao H, Lou P (2019) Backstepping trajectory tracking based on fuzzy sliding mode control for differential mobile robots. J Intell Rob Syst 96(1):109–121

    Article  Google Scholar 

  • Wu J, Zhang W (2011) Design of fuzzy logic controller for two-wheeled self-balancing robot. In: Proceedings of 2011 6th international forum on strategic technology, pp 1266–1270

  • Xu C, Li M, Pan F (2011) The system design and LQR control of a two-wheels self-balancing mobile robot. In: International conference on electrical and control engineering, pp 2786–2789

  • Xu J-X, Guo Z-Q, Lee TH (2013) Design and implementation of a Takagi–Sugeno-type fuzzy logic controller on a two-wheeled mobile robot. IEEE Trans Ind Electron 60(12):5717–5728

    Article  Google Scholar 

  • Ye K, Lim L-H (2016) Every matrix is a product of Toeplitz matrices. Found Comput Math 16:577–598

    Article  MathSciNet  Google Scholar 

  • Yong Q, Yanlong L, Xizhe Z, Ji L (2011) Balance control of two-wheeled self-balancing mobile robot based on TS fuzzy model. In: Proceedings of 6th international forum on strategic technology, pp 406–409

  • Yue M, Wang S, Sun J-Z (2016) Simultaneous balancing and trajectory tracking control for two-wheeled inverted pendulum vehicles: a composite control approach. Neurocomputing 191:44–54

    Article  Google Scholar 

  • Yu G, Leu Y, Huang H (2017) PSO-based fuzzy control of a self-balancing two-wheeled robot. In: Joint 17th world congress of international fuzzy systems association and 9th international conference on soft computing and intelligent systems (IFSA-SCIS), pp 1–5

  • Zhang S, Zhang Z, Jin K, Yang C (2012) Fuzzy control of double inverted pendulum by using state varieties fusion function. In: 24th chinese control and decision conference (CCDC), pp 2696–2699

  • Zavala SR (2020) Morante XXXI international summer meeting on power and industrial applications (RVP-AI), pp 81–85

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Aziza Hussein.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Moness, M., Mahmoud, D. & Hussein, A. Real-time Mamdani-like fuzzy and fusion-based fuzzy controllers for balancing two-wheeled inverted pendulum. J Ambient Intell Human Comput 13, 3577–3593 (2022). https://doi.org/10.1007/s12652-020-01991-3

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s12652-020-01991-3

Keywords

Navigation