1、 毕业设计(论文)报告毕业设计(论文)报告 题 目 基于基于 PSoCPSoC 单片机的电动自行车单片机的电动自行车 控制器的设计控制器的设计 系 别 专 业 班 级 学生姓名 学 号 指导教师 i 基于基于 PSoC 单片机的电动自行车控制器的设计单片机的电动自行车控制器的设计 摘要:摘要:本文从无刷直流电机的结构和工作原理出发,详细阐述了无刷直流电机 在导通、 续流和换相三种不同状态下的电压方程以及无刷直流电机的转矩特性与 其动态数学模型,建立了无刷直流电机的传递函数。 本文在分析无刷直流电机电流和速度调节原理的基础上, 提出了电流和速度 控制方案, 引入了经典控制理论中的 PID 控制。
2、 针对模拟控制系统理论进行了数 字化的转换,完成了系统软件的设计,完善了控制系统 PID。分别在 PWM 中断 和 1KHZ 中断实现了电流环和速度环,同时完成了两个环路的传递。根据功能需 求,完善了程序实现的功能。 最后,对控制器的性能和各项功能进行了严格的测试,给出了测试的图形、 数据和结果,测试表明,该控制器可靠性好,成本低,符合产品的开发要求。 关键词:关键词:无刷直流电机,可编程片上系统,控制器,模拟控制 ii Design of electric bicycle controller based on the programmable chip system PSoC Abstra
3、ct:This paper brushless dc motor from the structure and the working principle, a detailed explanation of brushless dc motor in the conduction, free-wheeling and commutation three different state equation and the voltage of brushless dc motor of the torque characteristics and its dynamic mathematical
4、 model to establish of brushless dc motor transfer function. Based on the analysis of brushless dc motor current and speed adjustment principle was put forward on the basis of current and speed control scheme, introduced the theory of classical control PID control. According to the simulation contro
5、l system theory to the digital conversion, completed the design of the system software, perfect the PID control system. PWM interrupt and respectively in 1 KHZ interrupt realized the current loop and speed loop, finish at the same time two loop transfer. According to the function demand, perfect the
6、 function of the realization of the program. Finally, the performance of the controller and various functions of the strict test, the test are the graphics, data and results, test show that the controller good reliability, low cost, in line with the development of the product requirements Key Words:Brushless dc motor, Programmable chip system, Controller, simulation control iii 目录目录 前言 1 第 1 章 电动自行车的简介 2 1.1 电动自行车的构成. 2 1.2 电动自行车控制器的研究现状及难