Two-wheeled self-balancing robots exhibit nonlinear and inherently unstable dynamics due to their inverted-pendulum structure, making control design challenging under terrain variations and external disturbances. This paper proposes a hybrid master–slave fuzzy cascade controller with an additional wheel-synchronization loop to improve tracking performance and robustness. The architecture combines a master velocity PI loop with fuzzy-tuned integral action and a slave balance PD loop with fuzzy proportional control, while a differential synchronization mechanism compensates for motor mismatches without affecting the global balance dynamics. Local stability is analyzed through linearization and equivalent gain approximation within a sector-bounded framework. Experimental validation was conducted on an ESP32-based TWSBR under flat, uphill, and downhill conditions at reference velocities of 0.15, 0.20, and 0.30ms, including payload tests with additional masses of 0.279 and 0.375kg. For each scenario, 30 independent trials were performed to compute the reported metrics. Compared with a conventional PID controller, the proposed strategy reduced the flat-terrain velocity RMSE from 0.0108 to 0.0057ms, while also improving angular stabilization and robustness under slope and payload disturbances.
Mora-González et al. (Sun,) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: