基于89C51的直流电机转速的测量与控制
1.无需注册登录,支付后按照提示操作即可获取该资料.
2.资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用.
密 惠 保
基于AT
摘 要:转速是直流电机运行中的一个重要物理量,如何准确、快速而又方便地测量电机转速,极为重要。本文阐述了基于单片机的直流电动机转速控制系统的特点和优势,介绍了在ZY15MCU12BC2单片机实验开发平台上,对直流电动机进行测速和控制的相关算法及软、硬件实现。设计中软件设计采用C语言编程,硬件设计采用PWM方式和DAC方式驱动电动机,利用霍尔元器件测量电动机的转速,在液晶显示屏(LCD)上实时显示电机的转速值。另外还可以通过2×8矩阵键盘输入电动机转速的设定值,在电动机转速的可控范围内控制电动机转速,使电动机的实际转速值等于设定值,并在液晶显示屏(LCD)上同时显示设定值与实际转速值,便于比较。最后对实验数据进行了分析。
关键词:直流电动机,PWM,液晶显示屏(LCD),转速测量
[来源:http://www.think58.com]
Abstract: Speed is an important physical quantity in the operation of the DC-motor. How to measure the speed of DC-motor exactly, rapidly and conveniently is highly significant. The design expatiates on the advantages of SCM in the DC-motor speed modification system. The algorithm about the measurement and the control of the DC-motor, as well as the software and hardware methods to realize the requirement based on the ZY15MC12BC2 SCM experiment development platform is introduced. In this design, the PWM manner and the DAC manner are used to drive the motor, while the Hall device is utilized to measure the speed of the motor. The numerical value will have a real-time display on the LCD screen. In addition, the setting value of the speed can be inputted through the 2×8 matrix keyboard. It can control the speed of the DC-motor in its controllable bounds, which makes the actual speed value equal to the setting value. The LCD screen will display the setting value and the actual speed value simultaneously that is convenient for the comparison between the two values. In conclusion, the data got from the experiment have been analyzed.
Keywords: DC-motor, PWM, LCD, speed measurement