文档介绍:图书分类号:
密级:
摘要
电机是生产过程中应用十分广泛的装置,对其转速进行准确测量就显得十分必要。
本文介绍了电机转速测量常用的方法,给出了基于单片机STC89C52的直流电机转速测量系统的设计方案,完成了电机转速测量系统的硬件和软件的设计。该系统以A44E开关型霍尔传感器作为产生脉冲信号的主要元件,并利用所设计的信号调理电路对霍尔传感器输出的脉冲信号进行放大整形,将得到的方波信号送给单片机进行处理,把所得到的计数脉冲转化为电机的转速值,并在LCD液晶显示器上直观的显示电机的转速值。同时利用矩阵键盘对预先设定的高速值和低速值进行相关设置,超过高速或低于低速值时,实现声光报警功能。
关键词电动机;转速测量;STC89C52;霍尔传感器
Abstract
Motor is very important in manufacturing, measuring its rotational speed es very essential and necessary.
This article describes mon method of motor speed measurement ,it gives the DC motor speed measurement system design scheme,which based on STC89C52 single-chip puter .The motor speed measurement pletes the hardware and software design. The system uses A44E Hall Switch Sensor as a ponent of the pulse signal acquisition and uses the design of the signal conditioning circuit to amplify the output Hall sensor pulse , the square-wave signal is sent to single chip puter . the count the pulses gets into the motor speed value, and the LCD display motor speed value intuitively. At the same time,the system uses the matrix keyboard to set pre-set high and low value ,when the measured value over high-speed or lower than the low value, realize the acousto-optic alarm function.
Keywords Motor Speed Measurement STC89C52 Hall Sensor
目录
1 绪论 1
课题研究的目的和意义 1
转速测量在国内外的研究 1
主要研究内容 2
2 电机转速测量常用方法 3
测频法(“M法”) 3
测周期法(“T法”) 3
本设计系统中采用的方法 4
3 系统总体方案设计 5
各模块方案论证与选择 5
传感器论证与选择 5
单片机模块论证与选择 6
显示模块论证与选择 6
报警模块论证与选择 7
总体设计方案 7
4 硬件电路设计 8
单片机最小系统设计 8
时钟电路 8
复位电路 8
电源电路 10
稳压可调直流电源电路设计 10
霍尔传感器测量电路设计 11
霍尔传感器原理 11
开关型霍尔传感器 12
信号处理电路设计 13
显示电路设计 15
LCD1602简介 15
LCD显示电路 16
按键电路设计 16
蜂鸣器报警电路设计 17
5 软件设计 20
系统开发环境 20
系统开发语言 20
软件总体设计 21
定时/计数中断程序 23
定时/计数器介绍 23
中断控制 24
定时/计数器初值计算 25
定时中断流程图 25
按键扫描程序流程图 26
速度计算及显示程序 28
速度计算 28
速度值显示处理程序 28