1、 基于基于 AT89C51 的步进电机控制的步进电机控制 摘摘 要要 本设计采用 ATMEL 系列的单片机对步进电机进行控制, 实现以下功能: 开机后, 电机不转,按下启动键,电机旋转;按下正转键,电机正转;按下反转键,电机反转。 实现这一功能,系统的硬件部分应由四模块构成:输入模块、单片机控制模块、步进 电机驱动模块、步进电机模块。通过键盘输入,单片机编程控制,输出信号给步进电 机驱动电路 ULN2003A,最后由 ULN2003A 驱动步进电机按规定的方向运转。 用单片机控制步进电机,可以简化硬件电路,可同时实现各种功能,如步进电机 的加减速, 步进电机正反转等, 当功能要求改变时, 只需
2、改变程序, 而硬件电路不变, 实现功能的方式简单便捷。 关键词关键词: 单片机 ;步进电机 The Control Of Stepping Motor Based On AT89C51 Abstract Stepping motor is controlled by the microcontroller , a sort of ATMEL series ,in the design. The function can be realized as follows:When the start button is pressed, motor begins to run;When the fo
3、reward button is pressed,motor begins to run in the positive direction;When the reversional button is pressed,motor begins to run in the opposite direction. To realize the features described above,the circuits should consist of four modules: input circuit, microcontroller, drive circuit of stepping
4、motor and stepping motor. After the input of keyboard and programming of microcontroller,stepping motor is driven in the direction set by ULN2003A circuit which accepts output signal. The control of stepping motor by :microcontroller can simplify the circuit and can realize many functions,e.g. it can change the operation mode of stepping motor and speed,and so on. When the function need to be changed,the same circuit can be used and the only thing that you should do is to modify program .