文档介绍:摘要
电机在各行各业发挥着重要的作用,而电机转速是电机重要的性能指标之一,因而测量电机的转速和电机的调速,使它满足人们的各种需要,更显得重要,而且随着科技的发展,PWM调速成为电机调速的新方式。
随着数字技术的迅速发展,微控制器在社会的各个领域得到了广泛的应用,由于数字系统有着模拟系统所没有的优势,如抗干扰性强、便于和PC机相联、系统易于升级维护。
本设计是以单片机AT89S52和L298控制的直流电机脉宽调制调速系统。利用AT89S52芯片进行低成本直流电动机控制系统的设计,能够简化系统构成、降低系统成本、增强系统性能、满足更多应用场合的需要。系统实现对电机的正转、反转、急停、加速、减速的控制,以及PWM的占空比在LED上的实时显示。
关键词直流电机;AT89S52;PWM调速;L298
Abstract
Motors play important roles in all walks of life and the rotation speed of motors is one of the vatal performance addition,it is more important to meet people’s demands by testing the rotation speed and the speed governing of ’s more ,with the development of science,a new way of speed governing turned up which called PWM.
With the rapid development of digital technology, micro-controller in all areas of society have been widely digital system has many advantages which analog system does not have,such as strong anti-interference, simple interface with the PC, easy upgrade and maintenance for system.
This project is a speed governing system of the pulse width of DC motor controlled by microcontroller AT89S52 and the use of the chip of AT89S52 ,I design a controlling system of DC motor of low can simplify the system structure reduce system cost,strengthen system performance and meet more needs from more the system can control the corotation,reversal,scraming,accelerating and slowdown of motors and display the duty ratio of PWM on LED in real time.
Keywords DC Motor AT89S52 PMW Speed Automatic L298
目录
1 绪论 1
1
1
1
2
2
2
2 系统论述 4
4
4
4
3 PWM脉宽调制原理 6
PWM调速原理 6
PWM调速方法 6
PWM实现方式 7
PWM控制流程图 7
4系统硬件设计 8
8
8
8
AT89S52的简介 9
AT89S52主要性能 9
AT89S52主要功能列举 9
AT89S52各引脚功能介绍 10
AT89S52的内部资源 12
L298电机驱动模块 12
L298电机驱动简介 13