(完整版)基于单片机和PID算法的直流电机调速设计原创毕业设计

  • 格式:doc
  • 大小:301.50 KB
  • 文档页数:69
关键词:数字PID;PWM脉冲;占空比;无静差调节
Abstract
In the motion control system,the control of electromotor's 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 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 achieve the analog PID's control tasks and consists of many advantages like flexible control arithmetics and is based on the digital PID mentioned above as basic control arithmetic and AT89S51 SCM as control core,the system produces PWM impulse whose duty ratio is controlled by digital PID arithmetic to make sure the running of direct current machine's rotate speed.Meanwhile,the design uses photoelectric sensor to transduce the electromotor speed into impulse frequency and feed it back to SCM,this process implements rotate speed's closed loop control to attain the purpose of rotate speed's astatic modulation.In this system, the 128×64LCD is used as display unit , the 4×4 keyboard sets those four parameters P、I、D、V and obverse and reverse control,after starting up,the display unit shows the electromotor's current rotate speed and runtime.The system and anti-jamming capability.
以下文档格式全部为word格式,下载后您可以任意修改编辑。
摘要
在运动控制系统中,电机转速控制占有至关重要的作用,其控制算法和手段有很多,模拟PID控制是最早发展起来的控制策略之一,长期以来形成了典型的结构,并且参数整定方便,能够满足一般控制的要求,但由于在模拟PID控制系统中,参数一旦整定好后,在整个控制过程中都是固定不变的,而在实际中,由于现场的系统参数、温度等条件发生变化,使系统很难达到最佳的控制效果,因此采用模拟PID控制器难以获得满意的控制效果。随着计算机技术与智能控制理论的发展,数字PID技术渐渐发展起来,它不仅能够实现模拟PID所完成的控制任务,而且具备控制算法灵活、可靠性高等优点,应用面越来越广。
本设计以上面提到的数字PID为基本控制算法,以AT89S51单片机为控制核心,产生占空比受数字PID算法控制的PWM脉冲实现对直流电机转速的控制。同时利用光电传感器将电机速度转换成脉冲频率反馈到单片机中,实现转速闭环控制,达到转速无静差调节的目的。在系统中采128×64LCD启动后可以通过显示部件了解电机当前的转速和运行时间。该系统控制精度高,具有很强的抗干扰能力。
Keywords
21世纪,科学技术日新月异,科技的进步带动了控制技术的发展,现代控制设备的性能和结构发生了翻天覆地的变化。我们已进入高速发展的信息时代,控制技术成为当今科技的主流之一,广泛深入到研究和应用工程等各个领域。
控制理论的发展经历了古典控制理论、现代控制理论和智能控制理论三个阶段。其控制系统包括控制器﹑传感器﹑变送器﹑执行机构﹑输入输出接口。控制器的输出经过输出接口﹑执行机构、加到被控系统上;控制系统的被控量、经过传感器、变送器、通过输入接口送到控制器。不同的控制系统、传感器﹑变送器﹑执行机构是不一样的。比如压力控制系统要采用压力传感器。电加热控制系统的传感器是温度传感器。目前,PID控制及其控制器或智能PID控制器已经很多,产品已在工程实际中得到了广泛的应用。
受益于数十年来全球经济高速成长所获得的PID控制成果,在中国市场,一大批机器设备制造商正处于蓬勃发展阶段,除满足本土市场庞大的机器设备需求外,走向国际市场,参与国际竞争也成为现实需求。在应用方面,这种控制技术已经渗透到了医疗、汽车制造、铁道运输、航天航空、钢铁生产、物流配送、饮料生产等多个方面。但是由于中国科技落后,为此,我们需要更进一步的学习、掌握与应用先进的控制技术与解决方案,以提升设备性能、档次与市场竞争力。在国外,尤其在运动控制及过程控制方面PID控制技术的应用更是越来越广泛和深入。随着科技的进步,人们对生活舒适性的追求将越来越高,PID控制技术作为一项具有发展前景和影响力的新技术,正越来越受到国内外各行业的高度重视。