首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于 STM32 控制的平衡小车系统设计
引用本文:陈 昱,沈林涛,王 凯.基于 STM32 控制的平衡小车系统设计[J].教育技术导刊,2009,19(8):117-121.
作者姓名:陈 昱  沈林涛  王 凯
作者单位:1. 上海出版印刷高等专科学校,2. 上海理工大学 光电信息与计算机工程学院,上海 200093
基金项目:国家自然科学基金项目(61074087)
摘    要:为了响应节能环保、绿色出行倡议,缓解城市交通拥挤状况,提出一种基于 STM32F103C8T6 芯片控制的两轮平衡小车设计方案。以 MPU-6050 作为小车姿态传感器获取小车车体倾角和角速度,基于卡尔曼滤波算法对姿态传感器采集到的的数据进行滤波融合,利用霍尔编码器测量小车车轮转向和转速,运用 PID 算法对控制要求和采集的数据信息进行计算分析并输出控制 PWM,经由 TB6612 电机驱动模块驱动电机,实现小车自主平衡并具备一定的抗干扰能力。另外小车通过蓝牙模块与手机 APP 通信,可通过手机端控制小车前进、后 退、转弯等动作。

关 键 词:STM32  PID  MPU-6050  卡尔曼滤波  自平衡  
收稿时间:2020-03-08

The Design of Balance Vehicle System Based on STM32 Control
CHEN Yu,SHEN Lin-tao,WANG Kai.The Design of Balance Vehicle System Based on STM32 Control[J].Introduction of Educational Technology,2009,19(8):117-121.
Authors:CHEN Yu  SHEN Lin-tao  WANG Kai
Institution:1. Shanghai Publishing and Printing College|2.School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China
Abstract:In order to response to the initiatives of energy conservation and environmental protection,green travel,and alleviate the urban traffic congestion,this paper introduces the design of self-balancing two-wheeled vehicle based on STM32F103C8T6 chip control.Sensors with MPU - 6050 is used to obtain car attitude angle and velocity of the vehicle body. The Kalman filter algorithm is used to filter and fuse the data collected by the attitude sensor. The Hall encoder is used to measure the steering and rotation speed of the trolley,and the PID algorithm is used to calculate and analyze the control requirements and collected data information and output the control PWM. The motor is driven by the TB6612 motor drive module to realize the autonomous balance of the trolley which has certain anti-interference ability. In addition,the car communicates with the mobile APP via bluetooth module,and the car’s forward and backward movements,turn and other actions can be controlled through the mobile end.
Keywords:STM32  PID  MPU-6050  Kalman filter  self-balance  
点击此处可从《教育技术导刊》浏览原始摘要信息
点击此处可从《教育技术导刊》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号