Submitted:
25 June 2025
Posted:
02 July 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Modeling of the EV3BRS in the Simscape™ Environment
2.1. SOLIDWORKS® Assembly of the EV3BRS
2.2. Simscape™ Model of the EV3BRS
2.2.1. Configuration Blocks
2.2.2. Floor Blocks
2.2.3. Ball Blocks
2.2.4. Outputs of the Model
2.2.5. Body, Wheels, Motors and Inputs to the Model
2.2.6. Collision Blocks
2.2.7. Body’s DoF
3. Mathematical Model and Control Design
3.1. Mathematical Model
- The EV3BRS is composed of two parts: a rigid body on top of a rigid ball.
- The movement of the roll and pitch planes are uncoupled and the equations of motion between the two planes are identical (See Figure 8b).
- The control torques are applied between the body and the ball using the wheels.
- Only viscous friction is considered.
- There is no slip between the ball and the wheels.
3.1.1. Dynamic Model
3.1.2. Dynamic of the Motor
3.1.3. State Space Representation
3.2. Takagi-Sugeno Fuzzy Model (TSFM)
3.2.1. Linearization of the EV3BRS’s Model
3.2.2. EV3BRS’s TSFM
3.3. Takagi-Sugeno Fuzzy Control (TSFC)
3.3.1. Stable TSFC
3.3.2. TSFC with Attenuation
4. Results
4.1. TSFC on Simscape™
4.2. TSFC with Attenuation
5. Discussion
6. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| 3-D | three-dimensional |
| BRS | Ball Robotic System |
| CAD | Computer-Aided Design |
| DoF | Degrees of Freedom |
| EV3BRS | EV3 Ballbot Robotic System |
| LMI | Linear Matrix Inequality |
| LQR | Linear Quadratic Regulator |
| NXTBRS | NXT Ballbot Robotic System |
| PDC | Parallel Distributed Compensation |
| TSFC | Takagi-Sugeno Fuzzy Controller |
| TSFM | Takagi-Sugeno Fuzzy Model |
References
- Fong, J.; Uppill, S. 899: Ballbot. Bachelor’s Thesis, University of Adelaide, Adelaide, Australia, 2009.
- Parker, B. GrabCAD Community. Available online: https://grabcad.com/library/lego-the-don-open-rescue-1 (accessed on 19 March 2025).
- Zdelarec, I. GrabCAD Community. Available online: https://grabcad.com/library/lego-wheels-1 (accessed on 19 March 2025).
- Downs, A. GrabCAD Community. Available online: https://grabcad.com/library/lego-nxt-light-sensor (accessed on 19 March 2025).
- Enemegio, R.; Jurado, F.; Villanueva-Tavira, J. Experimental Evaluation of a Takagi-Sugeno Fuzzy Controller for an EV3 Ballbot System. Appl. Sci. 2024, 14, 4103. [CrossRef]
- Akmal, M. A.; Jamin, N. F.; Ghani, N. M. A. Fuzzy logic controller for two wheeled EV3 LEGO robot. In Proceedings of 2017 IEEE Conference on Systems, Process and Control (ICSPC), Meleka, Malaysia, 15-17 December 2017; IEEE, 2018; pp 135-139. [CrossRef]
- Maxim Blogger. Available online: https://nxt-unroller.blogspot.com/2015/03/mathematical-model-of-lego-ev3-motor.html (accessed on 19 March 2025).
- Hernandez, R.; Jurado. F. Adaptive Neural Sliding Mode Control of an Inverted Pendulum Mounted on a Ball System. In Proceedings of 2018 15th International Conference on Electrical Engineering, Computing Science and Automatic Control (CCE), Mexico City, Mexico, 5-7 September 2018; IEEE, 2018. [CrossRef]
- Ortiz, I.; Jurado,, F.; Ollervides-Vazquez, E. J. Discrete–Time Linear Quadratic Regulator for a NXT Ballbot System. In Proceedings of 2022 International Conference on Mechatronics, Electronics and Automotive Engineering (ICMEAE), Cuernavaca, Mexico, 5-9 December 2022; IEEE, 2024. [CrossRef]
- Lauwers, T.; Kantor, G.; Hollis, R. One Is Enough! In Robotics Research. Springer Tracts in Advanced Robotics; Thrun, S., Brooks, R., Durrant-Whyte, H., Eds.; Springer Berlin Heidelberg: Berlin, Heidelberg, 2007; pp 327–336. [CrossRef]
- Schearer, E. M. Modeling Dynamics and Exploring Control of a Single-Wheeled Dynamically Stable Mobile Robot with Arms. Master’s Thesis, Carnegie Mellon University, Pittsburgh, U.S.A., 2006.
- Yamamoto, Y. NXT Ballbot Model–Based Design–Control of a Self–Balancing Robot on a Ball, Built with LEGO Mindstorm NXT, 1st ed.; Cybernet Systems: Tokyo, Japan, 2009.
- Wang, L. X. A Course in Fuzzy Systems and Control; Prentice-Hall International: Englewood Cliffs, 1997; pp. 265–275.
- Tanaka, K.; Wang, H. O. Fuzzy Control Systems Design and Analysis: A Linear Matrix Inequality Approach; John Wiley & Sons: New York, U.S.A., 2001; pp. 5–81.
- Lendek, Z.; Guerra, T. M.; Babuška, R.; De Schutter, B. Stability Analysis and Nonlinear Observer Design Using Takagi-Sugeno Fuzzy Models; Springer: Berlin-Heidelberg, Germany, 2010; pp. 5–41.
- Hollis, R. BALLBOTS. Sci. AM. 2006, 18, (1), 58–63. [CrossRef]
- Kumagai, M.; Ochiai, T. Development of a robot balancing on a ball. In Proceedings of 2008 International Conference on Control, Automation and Systems, Seoul, Korea , 14-17 October 2008; IEEE, 2008; pp 433-438. [CrossRef]
- Pham, D. B.; Kim, H.; Kim, J.; Lee, S. G. Balancing and Transferring Control of a Ball Segway Using a Double-Loop Approach [Applications of Control]. IEEE Control Systems Magazine 2018, 38, (2), 15–37. [CrossRef]
- Sanchez-Prieto, S.; Arribas-Navarro, T.; Gomez-Plaza, M.; Rodriguez-Polo, O. A Monoball Robot Based on LEGO Mindstorms [Focus on Education]. IEEE Control Systems Magazine 2012, 32, (2), 71–83. [CrossRef]
- Maly, J. Usage of the LEGO Mindstorms EV3 Robot- Design and Realization of the “Ball riding robot” for the Promotion of the Faculty. Bachelor’s Thesis, Czech Technical University in Prague, Prague, Czech Republic , 2018.
- Iemolo, R. Considerations about the development of a Ballbot system. Master’s Thesis, Politecnico di Torino, Turín, Italy , 2018.
- García-Luengo, O. Diseño, implementación y control de un prototipo de BallBot. Master’s Thesis, Universitat Politècnica de València, Valencia, Spain, 2022.



















| Parameter | Notation | Value | Units |
|---|---|---|---|
| Armature inductance | mH | ||
| Armature resistance | |||
| Body-Motor friction coefficient | |||
| Back EMF constant | |||
| Torque constant | |||
| Moment of inertia |
| Parameter | Notation | Value | Units |
|---|---|---|---|
| Body mass | Kg | ||
| Ball mass | Kg | ||
| Ball radius | m | ||
| Wheel radius | m | ||
| Distance to the center of mass | L | m | |
| Body moment of inertia | |||
| Ball moment of inertia | |||
| Gear ratio | N | - | |
| Body-Ball friction coefficient | |||
| Body-Floor friction coefficient | 0 | ||
| Gravity acceleration | g |
| Index* | TSFC | TSFC with attenuation | |||
|---|---|---|---|---|---|
| plane | plane | plane | plane | ||
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).