1、 I 摘 要 本文介绍了单片机控制步进电机的系统。在电气时代的今天,电动机一直在现代化 的生产和生活中起着十分重要的作用。 步进电机是机电控制中一种常用的执行机构, 其 原理是通过对它每相线圈中的电流和顺序切换来使电机作步进式旋转。本系统的硬件组 成主要有:51 系列单片机、L298N 驱动电路、直流电压源等。同时对系统设计中所用 到的一些软件都进行了介绍。本系统用 51 系列单片机和 L298N 电机驱动芯片并加入了 键盘来控制步进电机实现转向、转速等。系统中使用的是永磁式二相步进电机,相应的 驱动和控制电路对于其整体性能起着非常重要的作用。 经系统调试,能够很好的控制步进电机的正反转、加减
2、速、急停,从而达到预期目 的。整个系统具有结构简单、可靠性高、成本低和实用性强等特点,具有较高的通用性 和应用推广价值。 关键词:51 系列单片机;L298N 驱动电路;正反转;急停 II Abstract This paper, we introduces a stepper motor system which controlled by SCM. In the Electrical era today, Motor has been playing a very important role in the modernization of production and life. Ste
3、pper motor is a common used implementing agency in motor control. The principle is by switching the coil current and the order in its each phase to make a step-by-step rotary motor. The hardware of the system including: 51 series SCM, L298N driving circuit, DC voltage source , etc. At the same time
4、some of the software that used in system designing are introduced. The system used 51 SCM and L298N motor drive chip and joined the keyboard to control the stepper motor to achieve the direction and speed of rotation, etc. A Permanent Magnet two-phase stepper motor is used in the system. The corresponding drive and control circuit plays a very important role to its overall performance. Though system testing, it can be very convenient to control the stepper motor, such as acceleration , deceler