1、 目目 录录 前 言 . 1 1 选题背景 2 1.1 课题背景 . 2 1.2 研究的目的和意义 . 3 1.3 课题研究的内容 . 4 2 方案论证 4 2.1 单片机的介绍 . 4 2.2 步进电机的介绍 10 2.3 仿真软件的介绍 15 2.4 驱动电路的选择 16 2.5 显示电路的选择 16 3 设计或实验过程论述 . 17 3.1 硬件电路的设计 17 3.2 软件部分 22 4 基于 AT89C51 的步进电机控制系统的实现 . 26 4.1 系统的故障及调试 26 4.2 设计结果 26 5 总结与展望 . 28 5.1 总结 28 5.2 展望 28 参考文献 . 29
2、基于单片机的步进电机控制系统设计 摘 要:步进电机是将电脉冲信号转变为角位移或线位移的开环控制元件,在非超载的 情况下,电机的转速、停止的位置只取决于脉冲信号的频率和脉冲数,而不受负 载变化的影响,广泛应用在各种自动化控制系统。本设计以 AT89C51 单片机为 核心,对步进电机进行控制,通过按键实现步进电机正转、反转、加速、减速, 并使用 LED 显示电机速度。经过 PROTEUS 仿真和硬件焊接,结果表明,系统 实现了要求。该电路简单,可靠性强,运行稳定。 关键词:AT89C51;ULN2003;LED;步进电机 中图分类号: :TM356 Design of Mcu-based Cont
3、rol System for Stepping Motor Abstract :Stepping motor is the open loop control device changing the electrical pulse signal into angular displacement or linear displacement.In the overload situation, the speed of motor, stop position depends only on the pulse signal frequency and pulse number, regar
4、dless of load changes,and it is widely used in all kinds of automatic control system.This design is based on AT89C51 microcontroller as the core to control stepping motor.Through the keys,the foreward,reversal,acceleration,deceleration functions are implemented and use LED to show speed of motor.After the simulation results by Proteus software and the hardware is welded,the results show that the require has come true by the system.This circuit is simple,its reliability,stable operation1. Key