Abstract
The two-wheeled self-balancing robot has a simple structure, low cost and high flexibility, which is very suitable for indoor space. In this paper, we designed a self-balancing robot, by using the STM32 microprocessor as the main controller, and the attitude sensor MPU6050 is used to collect the obliquity and angular velocity. However, the gyroscope and the accelerometer make noise interference and drift error, the Kalman filter algorithm, therefore, is used to fuse the obliquity and angular velocity, in order to obtain the optimal obliquity. The PID control algorithm will combine the optimal obliquity and the real-time speed obtained by the high-precision encoder of the coaxial motor, to output the stable and reliable PWM signal, which can be sent to the motor drive chip. The motor drive chip can drive the operation of the two motors, to obtain the more ideal operation control effect. The results showed that the self-balancing robot could achieve stable self-balancing control.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Yuan, J.: The research of the two-wheel self-balancing robot on modeling, control and experimental research. Xi’an University of Electronic Science and Technology (2014)
Wang, S., Xiong, W.: The design of the two-wheel self-balancing car system based on STM32. Research and Exploration in Laboratory, no. 5 (2016)
Jun, W., Zhimin, L., Fangguo, W.: The design and implementation of the two-wheeled balancing mobile robots based on STM32. Electron. World 7, 145–147 (2016)
CSDN. http://blog.csdn.net/zhuanghe_xing/article/details/7935251
Zhang, J., Lu, B., Wu, D.: Research on angular acceleration estimation method based on Kalman filter. Ind. Control Comput. (11) (2015)
Yaxin, H., Ankun, G., Lou, C., Bing, L.: The PID control of two-wheel self-balancing car. Inf. School Yangtze Univ. 9, 3–4 (2013)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Peng, L., Zhou, C. (2018). Design and Implementation of Self-balancing Robot Based on STM32. In: Li, K., Li, W., Chen, Z., Liu, Y. (eds) Computational Intelligence and Intelligent Systems. ISICA 2017. Communications in Computer and Information Science, vol 874. Springer, Singapore. https://doi.org/10.1007/978-981-13-1651-7_33
Download citation
DOI: https://doi.org/10.1007/978-981-13-1651-7_33
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-13-1650-0
Online ISBN: 978-981-13-1651-7
eBook Packages: Computer ScienceComputer Science (R0)