第二代双轮自平衡车控制部分的设计与制作

 2021-12-22 09:12

论文总字数:21607字

摘 要

本文的主要研究内容如下:

首先,总结了国内外对双轮自平衡车的研究现状,并对双轮自平衡车存在的问题进行归纳。

其次,根据新的控制系统要求,设计并制作了新的机械结构。并根据现有条件对电机、车轮、把手等部件进行选取。

然后,设计了控制系统,主控部分以STM32F103ZE微处理器为核心,详细介绍了传感器电路、驱动模块的设计。

最后,根据动态平衡原理,设计了控制系统软件。该软件通过卡尔曼滤波对MPU6050信号进行处理,通过PID算法调整PWM占空比,控制电机的运动,实现小车的自平衡。

结论,第二代双轮自平衡车与第一代相比,稳定性性更高,调速性能更优异,驾驶舒适性更好。

关键词:自平衡;STM32;MPU6050;PID控制

Design and manufacture of control part for the second generation of two-wheeled self-balancing vehicle

02011305 Rui Song

Supervised by Min Dai

Abstract: As science and technology and people's living standards continue to improve,modern transportation is developing towards the trend of intelligent, small, energy saving and environmental protection. Convenient means of transport becomes more and more important in the fast pace of social life. Two-wheeled self-balancing electric vehicle as a new vehicle has many advantages, such as small footprint, flexible movement, simple structure, easy to operate. It can be applied to many areas of modern society. In this paper, the design of mechanical structure, control circuit and program algorithm are improved basing on the first generation two-wheeled self-balancing vehicle.

Following work is being discussed in the paper:

First, the paper summarizes the research status of the two-wheeled self-balancing vehicle at home and abroad and existing problems.

Second, according to new control system, the paper designs a new mechanical structure and select the motor, wheel, handle and other components.

Then, a modular control circuit is installed. The paper introduces the master chip STM32F103ZE, the sensor circuit and driver module in detail.

Finally, according to the dynamic balance principle, the software of the control system is designed. We use the Kalman filter to process the information picked by MPU6050, and then we make the PID to adjust the PWM duty rate to control the motor, so as to achieve self-balancing.

In conclusion, the second generation of two-wheeled self-balancing vehicle has better stability, speed performance, and driving performance.

Key words: self-balancing; STM32; MPU6050; PID control

目录

1、绪论 1

1.1课题背景与研究意义 1

1.2双轮自平衡车研究现状 1

1.2.1双轮自平衡车国外研究现状 1

1.2.2双轮自平衡车国内研究现状 3

1.3典型双轮自平衡车相关比较 4

1.4双轮自平衡车存在的问题 5

1.5本课题研究的主要内容 5

1.6本章小结 5

2、双轮自平衡车系统总体设计 6

2.1双轮自平衡车动态平衡原理 6

2.2双轮自平衡车的数学模型 7

2.3 新老两代自平衡车比较 8

2.4双轮自平衡车总体设计方案 8

2.4.1机械结构设计 8

2.4.2硬件系统设计 9

2.4.3程序算法设计 9

3、双轮自平衡车机械结构设计 11

3.1车体结构设计 11

3.1.1车体框架设计 11

3.1.2上下层板设计 12

3.2动力系统设计 15

3.2.1电机选型 15

3.2.2电机固定 15

3.2.3车轮 16

3.3其他辅助部分 17

3.4本章小结 17

4、双轮自平衡车硬件电路设计 18

4.1硬件电路基本原理 18

4.2 MCU模块 18

4.3传感器模块 19

4.4电机驱动模块 20

4.5电源模块 21

4.6本章小结 22

5、双轮自平衡车软件系统设计 23

5.1 RealView MDK 23

5.2卡尔曼滤波 24

5.3 PID控制与参数整定 24

5.3.1PID控制基本原理 24

5.3.2两闭环PID控制算法 25

5.3.3 PID参数调节经验 26

5.4成果展示 26

6、总结与展望 29

6.1总结 29

6.2展望 29

致 谢 30

参考文献: 31

第二代双轮自平衡车控制部分的设计与制作

1、绪论

1.1课题背景与研究意义

近年来,随着科学和人民生活水平的提高,各种运输车辆在我们的生活中出现。然而,在一些地方(如,广场,公园,大型会议地方和校园),汽车是不可用的。两轮自平衡电动车在这种情况下,它的设计可以成功解决这个问题。双轮自平衡车作为一种电动车,既能够节省能源,又能够缓解交通压力,同时还不会引发一系列的环境问题,所以是一种十分理想的交通工具。

在国外,用于大范围场地内工作人员的代步电动车已经实现;在国内,双轮自平衡的研究方兴未艾,已经有少数科研团队设计出了实用的车型,并投入商业开发。2008年奥运会时,该车作为执勤人员的代步工具,方便实用,体现了平衡车不同寻常的价值。

剩余内容已隐藏,请支付后下载全文,论文总字数:21607字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;