何祝青毕设2.2 (修复的)
合集下载
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
I
河南理工大学毕业设计(论文)说明书
Abstract
Motor as the main electromechanical energy conversion device, its application has been throughout all areas of the national economy and people's daily life. Both in industrial and agricultural production, national defense, medical and health, transportation and office equipment, or in the daily life of household appliances and consumer electronics products, extensive use of various motor. Motor speed control using simulation method, the motor control application more simple. The design and implementation of a closed loop speed control of DC motor speed setpoint input via the keyboard and infrared, and then return the actual speed value by the speed measuring device, after SCM treatment, making the actual motor speed and direction with the same settings. Designed by the MCU STC89C52 control module, keyboard input module, LCD liquid crystal display module, a wireless control module, motor drive module, speed measurement module, power module. When the system work, the keyboard or IR remote control and steering input speed value set by the LCD display speed value and direction, and by a Hall sensor to measure the actual speed value, and finally processed by the micro controller to control a DC motor so the actual speed set a consistent speed. Constitute a closed loop DC radio control systems. PWM modulation technique used in the design, realization of DC motor speed modulation, and through infrared transmitter and receiver modules, wireless control. System to achieve a closed-loop speed control, reversing and other functions, and can achieve real-time display, keyboard settings, wireless control, etc., has some practical value. Keywords: single-chip ; serial communication Level Translators ; Dc motor ; Wireless Control;PWM modulation
II
河南理工大学毕业设计(论文)说明书
目 录
1 绪论.................................................................................................................... 1.1 直流电机概述........................................................................................ 1.2 单片机概述............................................................................................ 1.3 脉宽调制(PWM)技术.......................................................................... 1.4 课题任务及工作内容............................................................................ 2 系统总体设计方案............................................................................................ 2.1 设计思路................................................................................................ 2.2 方案论证................................................................................................ 2.3 系统组成................................................................................................ 3 系统硬件设计.................................................................................................... 3.1 系统硬件结构........................................................................................ 3.2 系统硬件设计平台................................................................................ 3.3 系统单元电路设计................................................................................. 3.3.1 单片机最小系统........................................................................ 3.3.2 矩阵式键盘电路........................................................................ 3.3.3 液晶显示电路............................................................................ 1 1 1 2 3 4 4 4 5 6 6 -
6 6 6 8 8 3.3.4 转速测量电路............................................................................ - 9 3.3.5 电源变换电路.......................................................................... - 10 3.3.6 红外线发射电路...................................................................... - 12 3.3.7 红外线接收电路...................................................................... - 14 3.3.8 电机驱动电路.......................................................................... - 16 4 系统软件设计.................................................................................................. - 18 4.1 软件总体结构...................................................................................... - 18 4.2 软件开发平台...................................................................................... - 19 4.3 系统模块程序设计.............................................................................. - 20 4.3.1 初始化模块程序...................................................................... - 20 4.3.2 键盘扫描模块程序.................................................................. - 21 4.3.3 液晶显示模块程序.................................................................. - 24 4.3.4 红外线通信模块程序.............................................................. 4.3.5 电机调速模块程序.................................................................. 4.3.6 转速测量模块程序.................................................................. 5 实物运行.......................................................................................................... 5.1 实物的运行要求.................................................................................. 5.2 实物的运行检验.................................................................................. 6 总结和展望...................................................................................................... 6.1 设计中的优点和不足.......................................................................... -1-
河南理工大学毕业设计(论文)说明书
ቤተ መጻሕፍቲ ባይዱ
摘 要
电动机作为最主要的机电能量转换装置, 其应用范围已遍及国民经济的各个 领域和人们的日常生活。无论是在工农业生产、国防、医疗卫生、交通运输和办 公设备中, 还是在日常生活的家用电器和消费电子产品中,都大量使用着各种各 样的电动机。 电动机的调速控制一般采用模拟法,对电动机的简单控制应用比较 多。本设计实现了对直流电动机的闭环调速控制,通过键盘和红外线输入转速设 定值,再由转速测量装置返回实际转速值,经过单片机的处理,使得电机实际转 速和转向与设定值相同。 本设计由单片机 STC89C52 控制模块、键盘输入模块、LCD 液晶显示模块、 无线控制模块、电机驱动模块、转速测量模块、电源模块组成。系统工作时, 由 键盘或红外线遥控器输入设定转速值和转向,由 LCD 液晶显示转速值和方向, 并且由霍尔传感器测量实际转速值, 最后由单片机处理后控制直流电机使其实际 转速与设定转速一致。构成一台直流电机闭环无线控制系统。 设计中采用 PWM 调制技术,实现对直流电机速度的调制,并通过红外线发 射和接收模块,实现无线控制。系统实现了闭环调速、正反转等功能,并能实现 实时显示、键盘设置、无线控制等,具有一定的实际应用价值。 关键词:单片机;闭环调速;直流电机;无线控制;PWM 调制