两轮自平衡小车控制系统设计
Design of Control System for Two-Wheeled Self-Balancing Car
摘要: 两轮自平衡小车因其占用面积小、结构简单、灵活性高等特点,已经被应用于生活代步、安保等相关领域。本文从自平衡小车平衡性的角度出发,采用STM32F103C8T6控制器,设计出PID控制器来满足对小车自身平衡的基本控制,设计了卡尔曼滤波器来优化姿态传感器MPU6050的输出数据,以确保小车获取的姿态信息的准确性,设计了超声波测距模块实现小车的避障功能。然后完成了系统设计方案,进行了器件选型,并完成硬件设计。最后进行了软件设计,编写并测试了各模块程序,成功搭建出完整平衡小车的控制模型。整机测试结果表明该系统设计能很好地完成平衡小车的自平衡和避障功能。
Abstract:
The two-wheeled self-balancing car has been used in life mobility, security and other related fields due to its small footprint, simple structure and high flexibility. From the point of view of self-balancing car balance in this paper, the STM32F103C8T6 is adopted, a PID controller is designed to meet the basic control of the car’s own balance, a Kalman filter is designed to optimize the output data of the attitude sensor MPU6050 to ensure the accuracy of the attitude information obtained by the car, and the ultrasonic distance measuring module is designed to realize the obsta-cle avoidance function of the car. Then the system design scheme is designed, the device selection is performed, and the hardware system is designed. Finally, the software system is designed, each module program was written and tested, and the control model of the complete balance car was successfully built. The test results show that the system design can complete the self-balancing and obstacle avoidance function of the balancing car.
参考文献
|
[1]
|
王磊, 宁欣. 基于STM32的两轮自平衡小车控制系统设计[J]. 山东工业技术, 2018(13): 54.
|
|
[2]
|
吴正朕, 仝硕, 毋健. 两轮自平衡小车控制系统设计[J]. 中国科技信息, 2018(10): 65-66.
|
|
[3]
|
刘成涛, 李显鹏. 姿态检测及模糊PID算法的自平衡小车[J]. 单片机与嵌入式系统应用, 2019, 19(7): 78-80+85.
|
|
[4]
|
刘春阳, 刘幸, 杨曼. 两轮自平衡小车的系统设计与实现[J]. 测控技术, 2018, 37(2): 70-74.
|
|
[5]
|
采长涛, 赵天剑, 王林莉, 贾淼淼. 两轮自平衡小车姿态检测的研究[J]. 电子世界, 2017(24): 98.
|
|
[6]
|
占华林, 邹丽彬, 欧阳烨. 基于MPU6050六轴传感器平衡小车的设计[J]. 电子测试, 2017(21): 10-11.
|
|
[7]
|
Ha, Y.S. and Yuta, S. (1996) Trajectory Tracking Control for Navigation of the Inverse Pendulum Type Self-Contained Mobile Robot. Robotics and Autonomous Systems, 17, 65-80. [Google Scholar] [CrossRef]
|
|
[8]
|
Salerno, A. and Angeles, J. (2007) A New Family of Two-Wheeled Mobile Robots: Modeling and Controllability. IEEE Transactions on Robotics, 23, 169-173. [Google Scholar] [CrossRef]
|
|
[9]
|
李澍源, 冯奇杰, 兰家祥. 基于超声波测距式的自平衡车控制系统[J]. 内燃机与配件, 2017(2): 9-11.
|
|
[10]
|
赵磊. 基于STM32的两轮自平衡小车研究[J]. 数字技术与应用, 2017(1): 35-36.
|
|
[11]
|
路成强, 曾洁. 基于卡尔曼滤波的两轮自平衡遥控小车设计[J]. 自动化仪表, 2017, 38(9): 44-47+52.
|