基于AT89C51单片机的PWM直流调速系统 联系客服

发布时间 : 星期五 文章基于AT89C51单片机的PWM直流调速系统更新完毕开始阅读a9d6c47feffdc8d376eeaeaad1f34693dbef106c

摘 要

本文基于对PWM控制技术和AT89C51单片机直流调速系统的研究,设计了应用于直流电动机的单片机控制的PWM电流转速双闭环直流调速系统,该系统能够实现对电机的正转、反转、急停、加速、减速的控制以及恒速调节。

论文以直流电机调速系统为控制对象,主要介绍了PWM控制技术的理论以及用单片机实现PWM控制电机转速的基本原理,绘制出了系统的程序流程图,设计出了系统的硬件电路和软件电路,编写了KeilC51汇编语言,进行了Proteus软件的调试与仿真,仿真结果表明系统满足各项性能指标要求。

关键词:PWM技术 ;单片机 ;双闭环 ;直流电机 ;调速控制

ABSTRACT

Based on the study of PWM technology and DC governor system controlled by AT89C51 microprocessor control unit, that applied to DC motorspeed contml governor system which is controlled by microprocessor control unit is designed. This system can make motorspeed contml speed up or slow down or stop rapidly even rotate positively and negatively. One more thing is that DC motorspeed contml controlled by this system can adjust its rotate speed smoothly.

The article mainly concentrates on the DC governor system. The theory of PWM technology and basic theory of system controlled by AT89C51 and PWM technology which adjusts the speed of DC motorspeed contml are introduced. The chat of process is drawn out, so as the circuits of system. The KeilC51 language is operated on the simulation platform debugging after it's written out. The consult indicates that the system meets all conditions which are needed.

Keywords: PWM technology ;microprocessor control unit ;Double-loop ;DC motorspeed contml ;digital control

目 录

1. 绪论................................................................1

1.1 概况................................................................1 1.2 国内外发展概况....................................................2 1.3 设计目的和意义....................................................2

2. 直流调速系统概述.................................................4

2.1 直流电机的工作原理...............................................4 2.2 直流电机的调速方法...............................................5 2.3 H桥电机驱动的概述...............................................8

3. 方案论证和选择...................................................10

3.1 稳压电源的选择...................................................10 3.2 电机调速控制模块.................................................11 3.3 PWM调速工作方式.................................................12 3.4 PWM调脉宽方式....................................................12 3.5 PWM软件实现方式.................................................12

4. 系统硬件电路设计................................................13

4.1 时钟电路..........................................................13 4.2 复位电路..........................................................15 4.3 稳压电源电路.....................................................13 4.4 信号输入电路.....................................................16

4.5 电机PWM驱动模块的电路..........................................17

5. 系统的软件设计...................................................18

5.1 单片机选择........................................................18 5.2 系统软件设计分析.................................................19

6. 单片机系统综合调试..............................................25

6.1 PROTEUS设计与仿真平台..........................................25 6.2 PROTEUS设计与单片机传统开发过程比较..........................26 6.3 仿真结果与分析...................................................27

参考文献..............................................................31 附录...................................................................32

附录一 程序清单......................................................32 附录二 硬件原理图....................................................38

致谢...................................................................39