文档介绍:摘要
本文研究了利用at89c51单片机控制PWM信号从而实现对直流伺服电机转速进行控制的方法。文中对PWM信号的调速原理做了详细的论述。此外,系统中采用了芯片L298作为直流伺服电机的驱动模块,完成了在主电路中对直流电机的控制。另外,文中介绍了Proteus的使用,并对该调速系统做了仿真。,采用了Keil生成了Hex文件,并导入到Protues工程中进行仿真。最后,文中详细给出了电路图和相应的C程序。
关键词:PWM调速;单片机;直流伺服电机
Abstract
This article mainly introduce the method to generate the PWM signal by using AT89C51 single-puter to control the speed of a DC servo motor. In this works, we will detail discuss the principle of speed control in PWM signals. In addition, the chip L298 is used as the DC servo motor drive modules in the system, and to control DC motor in the main circuit will pleted. Additionally, we will introduce the use of Proteus, and make a simulation to the speed governing system. In the light of Proteus version can’t directly use the C language to be simulated. Therefore, we will use the Keil to generate the hex file, and import it into the projects to be simulated. Finally, we will give a detailed circuit diagram and the corresponding C program.
Key words: PWM Speed Regulation;Single Chip puter;DC servo motor
目录
第一章概述…………………………………………………………………………… 1
PWM调速系统的组成和功能………………………………………………… 1
PWM信号发生与调节模块…………………………………………… 1
PWM信号放大与电机驱动模块……………………………………… 1
负载模块………………………………………………………………… 1
单片机概述……………………………………………………………………… 2
单片机及其发展历程…………………………………………………… 2
单片机的应用领域及发展趋势………………………………………… 2
计算机仿真概述………………………………………………………………… 2
第二章 PWM调速技术…………………………………………………………… 4
PWM的基本原理……………………………………………………………… 4
PWM信号简介………………………………………………………… 4
PWM调速原理………………………………………………………… 5
系统设计方案…………………………………………………………………… 6
系统总体设计思想……………………………………………………… 6
系统总体设计框图……………………………………………………… 6
第三章 PWM调速系统设计……………………………………………………… 7
系统硬件设计…………………………………………………………………… 7
主电路设计……………………………………………………………… 7
AT89C51单片机简介…………………………………………………… 7
功率放大驱动芯片介绍……………………………………………… 10
伺服电机介绍………………………………………………………… 12
系统软件设计………………………………………………………………… 13
程序流程图