1、 1 摘要 在运动控制系统中,电机转速控制占有至关重要的作用,其控制算法和手段有很 多,模拟PID控制是最早发展起来的控制策略之一,长期以来形成了典型的结构, 并且参数整定方便,能够满足一般控制的要求,但由于在模拟PID 控制系统中,参 数一旦整定好后,在整个控制过程中都是固定不变的,而在实际中,由于现场的系统 参数、温度等条件发生变化,使系统很难达到最佳的控制效果,因此采用模拟PID 控制器难以获得满意的控制效果。 随着计算机技术与智能控制理论的发展, 数字PID 技术渐渐发展起来,它不仅能够实现模拟PID所完成的控制任务,而且具备控制算 法灵活、可靠性高等优点,应用面越来越广。 本设计以上
2、面提到的数字PID为基本控制算法,以AT89S51单片机为控制核 心,产生占空比受数字PID算法控制的PWM脉冲实现对直流电机转速的控制。同 时利用光电传感器将电机速度转换成脉冲频率反馈到单片机中,实现转速闭环控制, 达到转速无静差调节的目的。在系统中采128 64LCD显示器作为显示部件,通过 4 4键盘设置P、I、D、V四个参数和正反转控制,启动后可以通过显示部件了解 电机当前的转速和运行时间。该系统控制精度高,具有很强的抗干扰能力。 关键词:数字PID;PWM脉冲;占空比;无静差调节 2 Abstract In the motion control system,the control
3、of electromotors rotate speed is of great importance,there are a lot of speed control arithmetics and methods ,the analog PID control is one of the earliest developed control policies which has formed typical structure ,its parametric setting is convenient and its easy to meet normal controls demand
4、,but as the whole control process is fixed once the parameter has been set while practically the changes of those conditions like the system parameters and temperature of the environment prohibit the system from reaching its best control effect,so the analog PID controller barely has satisfied effect.With the development of computer technology and intelligent control theory ,the digital PID technology is thriving which can achieve the analog PIDs control tasks and consists of many advant