资源预览内容
第1页 / 共53页
第2页 / 共53页
第3页 / 共53页
第4页 / 共53页
第5页 / 共53页
第6页 / 共53页
第7页 / 共53页
第8页 / 共53页
第9页 / 共53页
第10页 / 共53页
亲,该文档总共53页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
I编号: 毕业设计论文题 目: 直流电机转速检测系统设计 摘要直流电机是控制系统中常用的一个执行部件,其中电机速度是控制对象的一个重要参数,单片机通过定时器产生 PWM 脉冲,对直流电机进行调速。本设计是基于 AT89S52 单片机的光电开关转速测量系统,系统采用对射式光电开关产生与齿轮相对应的脉冲信号,反馈给单片机计算单位时间内的脉冲数,计算电机转速,通过在单片机内部进行 PID 运算,实现闭环控制,达到电机的平滑调速,并用 LCD1602 液晶显示器显示数值。关键词:单片机;PWM 脉冲;PID 控制;LCD 显示IIABSTRACTDC motor is an execution unit used in control system,The motor speed is an important parameter of the control object. The microcontroller produces PWM pulse by timer to control the speed of DC motor. The design is based on AT89S52 microcontroller photoelectric switch speed measurement system. The system uses the opposite type photoelectric switch and gear corresponding to the pulse signal, and feedback to the microcontroller to calculate the unit of time pulse number and to calculate the speed of DC motor . Then we can achieve closed-loop control and achieve the stepless speed regulation motor by the design of the PID operation, and display value by the LCD1602 liquid crystal display.Key words: microcontroller; PWM pulse; PID controller ;LCD displyIII目录1 绪论 .11.1 直流电动机的发展情况 .11.2 直流电机调速 .21.3 本设计的意义 .22 总体方案论述 .32.1 方案的选择 .32.1.1 液晶显示模块电路方案设计 .32.1.2 键盘模块电路方案设计 .32.1.3 测速模块电路方案设计 .42.2 脉冲宽度调制(PWM)技术 .42.3 PID 控制 .52.3.1 模拟 PID .62.3.2 数字 PID .82.3.3 PID 参数整定 .92.4 系统组成 .103 硬件系统设计 .113.1 主控系统 .113.1.1 AT89S52 基本组成 .113.1.2 定时/计数器的结构 .123.1.3 时钟电路 .133.1.4 复位电路 .143.1.5 按键电路 .143.1.6 显示电路 .143.2 驱动系统 .163.2.1 L298N 电机驱动芯片 .163.2.2 光电耦合器 TLP521-2 电路 .163.3 测速系统 .173.3.1 光电开关的工作原理 .173.3.2 光电开关特点: .183.3.3 槽式光电开关的特点 .183.3.4 LM358 运算放大器 .183.3.5 测速齿盘 .193.3.6 电机速度采集算法 .194 软件设计 .214.1 主程序的设计 .214.2 子程序的设计 .
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号