基于单片机的步进电机控制系统设计
基于单片机的步进电机控制系统设计(论文11000字)
摘要:步进电机是一种在生活中较为常见的控制电机,在控制领域其应用广泛,是机电一体化中不可或缺的一部分。本设计中主要包括了单片机,电机驱动电路,步进电机,霍尔元件,按键组成。主要是通过STC89C51单片机发出脉冲信号,控制信号再经过驱动电路调控达到控制步进电机运转的要求,对步进电机的控制实现正反转、加减速及暂停的基本功能,再由霍尔传感器对电机速度进行检测,把运动状态反馈给单片机,对步进电机速度进行修正后在数码管上显示。
关键词:步进电机;单片机;脉冲信号;驱动电路;速度检测
Design of Stepper Motor Control System Based on Single Chip Microcomputer
Abstract:Stepper motor is a control motor that is more common in life. It iswidely used in the field of control and it is a very important part of electromechanical integration. In this design,it mainly includedthe single-chip microcomputer, the motor drive circuit, the stepping motor, the Hall element and the key.The pulse signal is sent by the STC89C51 single-chip microcomputer.The control signal is then controlled by the drive circuit to meet the requirements for controlling the operation of the stepper motor. The control of the stepper motor realizes the basic functions of forward and reverse rotation, acceleration and deceleration, and pause,then the Hall sensor detects the motor speed, feeds the motion status back to the MCU, and corrects the speed of the stepper motor and displays it on the digital tube. [版权所有:http://DOC163.com]
Keywords: stepper motor; microcontroller; pulse signal; drive circuit; speed detection
[资料来源:http://Doc163.com]
目录
摘要 1
Abstract 2
1 引言 3
2系统方案设计 3
2.1 步进电机工作原理 3
2.2 国内外发展状况 4
2.3 系统驱动控制方案设计 4
2.4系统设计框图 5
3系统硬件设计 6
3.1 控制单元设计 6
3.2指令输入模块设计 9
3.3电机驱动电路设计 10
3.4速度检测模块设计 12
[资料来源:http://www.doc163.com]
3.5 状态显示模块设计 13
4 系统软件设计 14
4.1系统软件功能介绍 14
4.2主程序设计 15
4.3指令输入子程序流程图 16
4.4电机控制中断程序流程图 17
4.5仿真及测试结果 18
5样机试验 20
5.1样机制作 20
5.2系统测试 21
5.3测试结果与分析 23
6 结语 23
参考文献 24
致谢 26 [资料来源:https://www.doc163.com]