1、数字式直流电机调速控制系统设计数字式直流电机调速控制系统设计 摘摘 要要 在高度现代化的今天,现代电力电子技术,计算机技术,现代控制理论的发 展,促进了直流调速技术的进步,使之成为目前活跃的调速技术。长期以来,直 流电动机因为其具有调节转速灵活、方法简单、控制性能好等特点,应用在越来 越多的领域中。 本设计是以单片机 STC12C5A60S2 和 L298 控制的直流电机脉宽调制 (PWM)调速系统。主要介绍了用单片机软件实现 PWM 调整电机转速的基本 方法,给出了程序流程图和 Keil-C51 程序。硬件电路实现了对电机的正转、反 转、急停、加速、减速的控制,以及电机速度的实时显示。 以单
2、片机为控制核心的直流电机调速系统,采用了数字化的速度给定与测 速, 扩大了调速范围, 提高了速度控制精度。 由于许多功能都是由软件来完成的, 所以使硬件得以简化,故障率比较小。单片机以数字信号来工作,其控制手段方 便灵活,抗干扰能力强。 关键词关键词:单片机;脉宽调制;直流电机;LCD 显示 Abstract At a height of the modernization of today, the development of modern power electronics, computer and modern control theory promotes the progress
3、 of DC speed regulation technology. For a long time, DC motor has made them to be used in many areas because of its neatly adjust, easy method and its control performance is very good. A kind of speed regulation system of Pulse Width Modulation (PWM) for DC motor composed of microcontroller STC12C5A
4、60S2 andL298 was designed. The basic methods of PWM regulating DC motor speed are explained. Programs in KeilC51 and program flow chart are presented. Clockwise and anticlockwise rotation, quick stop, acceleration and deceleration of the motor are achieved in hard circuit. The DC motor speed is shown. The digital speed control system for DC motor, which uses Single Chip Micro (SCM) as its processor. The speed giving and speed measuring adopt digital, the system can measure the speed accuracy