单片机控制的PWM直流电机调速系统

随着时代的发展,数字电子技术已经蔓延到我们的生活,工作和研究的各个领域。及各种电器和机械系统中,由于直流电动机具有一个良好的启动,制动和调速性能,直流电动机速度控制系统已广泛地应用于各行各业,直流技术是最常用的脉冲宽度调制(PWM)DC转换技术,具有许多优良的特点,数字控制系统的硬件电路有着高度标准化,控制软件可以执行复杂的计算,可以从一般的线性稳压器优化。

设计引入了AT89S51单片机的直流电动机调速系统。本文介绍了直流电机调速系统的意义,基于PWM直流电机调速的方法和单片机控制的基本工作原理,占空比的计算,实现的精确速度控制。主电路使用四个主键盘控制的AT89S51单片机将数据传输到微控制器,并产生一个脉宽调制信号,然后由L298传输至小型直流电动机。通过调试键就可以控制直流电机的启动,停止,方向和速度。整个系统的设计中,用大量的集成电路模块,大大简化了硬件电路,提高了系统的可靠性和稳定性。

 

 

关键词  单片机AT89S51;直流电机;脉宽调制;

 

The Design of PWM Controlled DC Motor Speed Control System Based On Single Chip

With the development of the times, digital electronic technology has spread to all areas of our life, work and study. And various electrical and mechanical systems, since the DC motor has a good start, braking and speed performance, DC motor speed control system has been widely used in various industries, DC technology is the most commonly used pulse width modulation (PWM ) DC conversion technology, has many excellent features, hardware circuit digital control system with a high degree of standardization, control software can perform complex calculations, can be optimized from the general linear regulator.

Design introduces AT89S51 MCU DC motor speed control system. This article describes the significance of DC motor speed control system, based on PWM DC motor speed control method and SCM basic working principle, the exact speed of the duty ratio is calculated to achieve control. The main circuit uses four main keyboard control AT89S51 microcontroller to transfer data to the microcontroller and generates a pulse width modulated signal is then transmitted to the L298 small DC motor. Through debugging keys can control the DC motor start, stop, direction and speed. Design of the entire system, with a large number of integrated circuit module, greatly simplifying the hardware circuit to improve the reliability and stability of the system.

 

Keywords  SCM AT89S51, DC motor, PWM,

 

 

目录

 

第1章 绪论……………………………………………….. 1

1.1 课题研究的背景……………………………………… 1

1.2 课题研究的目的和意义………………………………… 1

1.3 国内外电机控制的发展及研究现状……………………….. 2

1.4 课题研究内容及目标………………………………….. 3

第2章 系统总体方案设计…………………………………….. 5

2.1 基本原理分析……………………………………….. 5

2.1.1 直流电机的调速原理……………………………… 5

2.1.2 直流电机PWM调速原理……………………………. 6

2.1.3 霍尔效应和原理简介……………………………… 6

2.2 设计思路…………………………………………… 8

2.3 总体方案比较与选择………………………………….. 8

2.4 电机调速控制模块方案比较与选择………………………. 10

2.5 系统各模块方案的比较与选择………………………….. 10

2.5.1 键盘的选择……………………………………. 10

2.5.2 显示方式的选择………………………………… 11

2.5.3 电机驱动芯片的选择…………………………….. 12

2.5.4 测速传感器的选择………………………………. 13

2.6 系统方框图………………………………………… 14

第3章 系统硬件设计……………………………………….. 15

3.1 直流电源部分………………………………………. 15

3.2电机驱动电路……………………………………….. 16

3.3 键盘部分………………………………………….. 18

3.4 LED显示部分……………………………………….. 19

3.5 测速部分………………………………………….. 20

3.6 复位电路和时钟电路…………………………………. 21

第4章 系统软件设计……………………………………….. 22

4.1 主程序……………………………………………. 22

4.2 键盘扫描子程序…………………………………….. 23

4.3 PWM信号发生程序……………………………………. 25

4.4 测速子程序………………………………………… 26

4.5 显示子程序………………………………………… 27

结  论……………………………………………………. 2

致  谢……………………………………………………. 3

参 考 文 献……………………………………………….. 4

附录……………………………………………………… 5

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。

最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。 若排除这种情况,可在对应资源底部留言,或联络我们。

对于会员专享、整站源码、程序插件、网站模板、网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。

如果您已经成功付款但是网站没有弹出成功提示,请联系站长提供付款信息为您处理

源码素材属于虚拟商品,具有可复制性,可传播性,一旦授予,不接受任何形式的退款、换货要求。请您在购买获取之前确认好 是您所需要的资源