[摘要] 本文介绍了一种基于MCS-51单片机的直流电机调速系统,该系统以小型直流电机为控制对象,由MCS-51单片机控制输出PMW信号,经功率放大后驱动直流电机,用按键实现电动机的正向加减速、反向加减速、速度设定功能。该系统成本低廉且容易实现。本系统利用MCS-51单片机控制PWM信号从而实现对直流电机转速进行控制的方法。文章中采用了专门的芯片组成了PWM信号的发生系统,并且对PWM信号的原理、产生方法以及如何通过软件编程对PWM信号占空比进行调节,从而控制其输入信号波形等均作了详细的阐述。此外,本文中还采用了芯IR2110作为直流电机正转调速功率放大电路的驱动模块,并且把它与延时电路相结合完成了在主电路中对直流电机的控制。本系统中使用了测速发电机对直流电机的转速进行测量,经过滤波电路后,将测量值送到A/D转换器,并且最终作为反馈值输入到单片机进行PI运算,从而实现了对直流电机速度的控制。在软件方面,文章中详细介绍了PI运算程序,初始化程序等的编写思路和具体的程序实现。
[关键词] MCS-51单片机, PWM, 芯片
PWM dc motor speed control system design based on 51 single chip microcomputer
[Abstract] In this paper, a dc motor speed control system based on MCS – 51 single chip microcomputer, the system with small dc motors as control object, by the MCS – 51 single chip microcomputer control output PWM signals, after power amplifier drive dc motor, the key is used to implement the positive deceleration of the motor, set the reverse, speed, acceleration and deceleration function. The system is low cost and easy to implement. This system by using MCS – 51 single chip microcomputer control PWM signal so as to realize the dc motor speed control method. Article adopted the special chip is made up of a PWM signal generation system, and in this paper, the principle of the PWM signal generation method and how to through the software programming of the PWM signal adjusted duty ratio, to control the input signal waveform are expounded in detail. In addition, this article is a core IR2110 is adopted as the dc motor speed regulation drive module, power amplification circuit and combining it with delay circuit completed in the main circuit of dc motor control. This system USES the tachogenerator for dc motor speed measurement, after filter circuit, the measured value to the A/D converter, and finally as A feedback input to the MCU PI arithmetic, so as to realize the control of the dc motor speed. In the aspect of software, the article introduces in detail PI algorithm, initialization program, writing ideas and specific program implementation.
[Key words] The MCS – 51 single chip microcomputer, PWM, chip
目录
第二章 系统总体方案论证…………………………………….. 6
3.2.1驱动电路方案、参数描述………………………….. 9
3.2.2 IR2110驱动电路中IGBT抗干扰设计………………… 10
3.2.2 IR2110功率驱动介绍……………………………. 11
3.3.1 TLP250光耦隔离……………………………….. 15
3.3.2 PC817数据采集隔离…………………………….. 16
3.4数据采集、过压反馈保护………………………………. 17
3.4.1数据采集、过压反馈方案设计……………………… 17
3.4.2 TL431介绍……………………………………. 18
4.1 PWM实现方式方案论证………………………………… 20
第五章 调试结果描述……………………………………….. 24