基于-51单片机的步进电机控制系统设计.doc





《基于-51单片机的步进电机控制系统设计.doc》由会员分享,可在线阅读,更多相关《基于-51单片机的步进电机控制系统设计.doc(48页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、|基于 51 单片机的步进电机控制系统设计中文摘要步进电机是一种受 ,并且能将 相应的脉 冲 信 号 控 制 脉 冲 信 号 转 化 为或者 的 电动机。由于步进电机具有步距误差不积累、运行可角 位 移 线 位 移 数 字靠、结构简单、惯性小、成本低等优点,因此,被广泛使用于计算机外围电路、自动化控制装置以及其他的数字控制装置中,如打印机、钟表、数模转换设备等装置中。随着科学技术的快速发展,相应的控制系统也产生了很多种类,步进电机的身影在众多领域中可以看到。其中采用单片机作为控制核心的控制系统,由于其电路简单、成本低、可靠性强等优点,满足众多领域的需求,得到了大量的运用。因此,研究基于单片机的
2、步进电机控制系统, 。本设具 有 重 要 的 现 实 意 义计研究的是基于 51 单片机 。通过单片机的 I/O 端口输出对 步 进 电 机 的 控 制 系 统时序方波作为控制信号,信号经过芯片 ULN2003 驱动芯片驱动步进电机进行不同的指令进行工作。根据不同的需要,通过按键电路来控制步进电机的启停、正反转和加减速等功能,并在数码管上实时显示步进电机的工作状态。本文给出了电路各个模块的电路图,并用 Proteus 的 ISIS 软件对控制系统的各个功能进行了仿真,并给出了相应的仿真结果图像。关键词:单片机; 步进电机; 电机驱动; 控制系统|AbstractStepper motor co
3、ntrolled by a pulse signal, and a pulse signal can be converted to the corresponding angular displacement or linear displacement of the digital motor. As the stepper motor has a step error does not accumulate, reliable, simple structure, small inertia, low cost, and therefore, are widely used in com
4、puter peripheral circuits, automatic control devices and other digital control devices, such as printers, watches and clocks , digital to analog conversion equipment, and other devices. With the rapid development of science and technology, the corresponding control system also produced many types of
5、 stepper motor figure can be seen in many areas. Which uses microcontroller as the control of the control system, because of its simple circuit, low cost, high reliability, etc., to meet the needs of many fields, we get a lot of use. Therefore, based on single-chip stepper motor control system has i
6、mportant practical significance.The design study is 51 single-chip stepper motor control system. As a control signal, the signal through the chip ULN2003 stepper motor drive to work through the microcontroller I / O port output timing square wave. Depending on the need, through the key circuit to co
7、ntrol the start and stop, reversing and ramp functions such as stepper motors, stepper motors in real-time display and digital working condition. In this paper, the circuit diagram of each module, and with the ISIS Proteus software for each function control system simulation, and the simulation resu
8、lts are given corresponding image.Key words: microcontroller; stepper motor; motor drive; control system|目 录中文摘要 .IAbstract.II1 绪论 .11.1 步进电机及其发展过程 .11.2 步进电机在我国的应用及前景 .21.3 本设计的研究内容 .31.4 步进电机的性能指标及工作原理 .31.4.1 步进电机的特点 .31.4.2 步进电机的种类 .41.4.3 步进电机的主要性能指标 .51.4.4 步进电机的工作原理 .61.5 步进电机控制系统的原理 .82 总体方案
9、设计 .102.1 设计思路的选择 .102.2 单片机芯片的选择 .122.3 驱动电机芯片的选择 .122.4 显示电路的选择 .132.5 步进电机的选择 .133 控制系统的硬件电路设计 .153.1 键盘控制电路 .153.2 单片机最小系统电路 .163.3 数码管显示电路 .183.4 步进电机的驱动电路 .203.5 步进电机的其他电路 .214 控制系统的软件设计 .234.1 主程序流程图 .234.2 读按键子程序流程图 .244.3 按键处理子程序流程图 .254.4 电机控制中断程序流程图 .26|5 仿真与测试 .285.1 仿真软件介绍 .285.2 仿真的操作步
10、骤 .285.3 电路板的焊接 .295.4 电路板的测试 .306 结论与展望 .32致 谢 .34参考文献 .35附录:系统总体电路图 .36系统仿真原理图 .37PCB 打印图 .38原件清单 .39程 序 .40|1 绪论1.1 步进电机及其发展过程步进电机是一种受 ,并且能将 相应的脉 冲 信 号 控 制 脉 冲 信 号 转 化 为或者 的 电动机。由于电源每次输入电脉冲给该电机,该电机角 位 移 线 位 移 数 字就会前进一小步,转动的方式是步进式的,所以称为步进电动机。由于电源输入的是脉冲式的电压,因此,有时也被称为脉冲电动机。在步进电机驱动能力范围内,其输出的角位移或线位移与输
11、入的脉冲个数成正比,不因电源电压、负载变化和环境条件等的变化而变化。所以其输出的角速度或线速度也与输入的脉冲频率成正比,通过改变输入脉冲频率的高低就可以调节步进电机的转速,并能控制步进电机的快速启动,暂停,正反转和加减速等。由于步进电机具有步距误差不积累、运行可靠、结构简单、惯性小、成本低等优点,因此,被广泛使用于计算机外围电路、自动化控制装置以及其他的数字控制装置中,如打印机、钟表、数模转换设备等装置中。虽然步进电机近些年来才被广泛使用,但其工作原理很早就被人们研究出来。其中,最早的可以追溯到法国人佛罗曼提出了将电磁铁的吸引力转化为力矩的方法。当时,激磁相的切换是采用机械式凸轮的接触点来完成
12、,这就是步进电机最初的原理模型。后来逐步发展还出现了旋转线圈式的应用方法。二十世纪三十年代以后,步进电机的应用才逐渐开始,称为 步进电机,被 用变 磁 阻 型 英 国 海 军作 。 定 位 控 制 和 远 程 遥 控 的 装 置随着晶体管元件的快速发展,与之相结合使用的步进电机也得到了快速的发展和广泛的使用。1950 年研制出二极管半导体,1964 年开发出 MOS 半导体,特别是经过 19501965 年间半导体材料的高速发展后,由于价格低廉、可靠性高的逻辑数字电路得到广泛的应用,使步进电机的使用量也急剧增加。多年来,随着电力电子技术、自动化控制技术以及计算机技术的快速发展,步进电机系统尤其
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 51 单片机 步进 电机 控制系统 设计

限制150内