基于单片机的电机转速测量仪设计.doc
文本预览下载声明
摘要
本文讨论了以STC89C51单片机为核心的电机转速测量的硬件设计和软件设计,硬件主要由光电传感器、信号整形、LED数码管显示几部分组成。详细介绍了利用光电传感器技术在电机转速测量中的实现及应用,以及对电机转速进行测量,并由数码管显示转速。随着汽车及电子技术的发展,转速测量技术也在不断创新,各种转速测量仪在工业得到广泛应用,对电机的转速进行测量极大的提高了自动化程度。
关键字: 单片机,光电传感器,信号整形,LED显示
Design of Motor Speed Measurement Instrument Based on MCU
Abstract
This article discussed take STC89C51 monolithic integrated circuit as the core electrical machinery tachometric survey hardware design and the software design, the hardware mainly by the photoelectric sensor, the signal shaping, the LED nixietube demonstrated that several parts compose. Introduced in detail the use photoelectric sensor technology and applies in electrical machinery tachometric surveys realization, as well as carries on the survey to the electrical machinery rotational speed, and demonstrates the rotational speed by the nixietube. Along with the automobile and electronic technologys development, the tachometric survey technology unceasingly is also innovating, each kind of rotational speed measuring instrument obtains the widespread application in the industry, carried on the survey enormous enhancement automaticity to electrical machinerys rotational speed.
Keywords: Monolithic integrated circuit,Photoelectric sensor,Signal shaping,LED demonstrated
目录
1 绪 论 1
1.1设计题目 1
1.2课题背景 1
2 转速测量系统的设计 2
2.1 转速测量方法及比较 2
2.1.1测频原理 2
2.1.2.测周原理 3
2.1.3.计数器原理 3
2.2测量方案设计 4
2.2.1 转速测量原理 4
2.2.2 系统原理 5
3 硬件电路设计 6
3.1 电源模块 6
3.1.1 LM2596开关电压调节器 6
3.1.2 单片机和显示供电电路 7
3.1.3 电机电源供电电路 7
3.2单片机模块 8
3.2.1 复位电路 8
3.2.2 晶振电路 9
3.2.3 单片机系统 10
3.3 显示模块 13
3.4 红外模块 14
4 软件设计 16
4.1 软件设计概述 16
4.2 软件设计方案 16
4.3 系统主程序 16
4.4 显示子程序 17
4.5 中断子程序 18
5 系统调试 20
5.1硬件调试 20
5.2 软件调试 21
5.3系统综合调试 22
结 论 23
附录 24
参考文献 30
致 谢 31
1 绪 论
1.1设计题目
题目:转速测量仪
要求完成技术指标:1. 测量电机转速范围0——9999转/分;
2.通电就开始测量,按键后复位;
3.八位数码管显示,误差5%;
1.2课题背景
目前,在工程实践中,经常会遇到各种需要测量转速的场合。例如在发动机、电动机、卷扬机、机床转轴等旋转设备的测试、运转和控制中,常需要分时或连续测量和显示其转速或瞬间转速。对于工业测试、水利、机械等方面,转速是重要的控制参数之一。尤其在工业测试系统中,大部分旋转仪器无法测定
显示全部