1、 I 摘 要 本文在对了解转速测量理论与掌握单片机原理的基础上,根据硬件设计,提 出系统程序设计方案,构建软件系统,以实现智能转速测量与显示的功能。 本设计根据基于 STC89C52 单片机的转速测量电路,设计出一种以半导体激 光二极管作为传感器的激光测速仪,可同时实现数据的实时采集、处理和显示; 并详细叙述了测速原理、单片机系统和测速误差。对所设计的软件系统通过编译 软件 keil C51 Vision4 对其进行程序调试。最后,对构建的系统利用设计的 电路进行调试,对测量指标进行了分析、比较并提出改进方案。在设计中测量方 法采用 M 法进行测量,单片机采用 C 语言编程。 关键词:关键词:
2、激光;转速测量;手持;非接触式;单片机 Abstract In this paper, the understanding of the theory and master of rotational speed measurement based on the principle of MCU, the system program design, to build software systems, compiler, in order to achieve intelligent Rotational speed measurement and display functions. In
3、 this paper, according to the tachometric survey system based on the MCU of STC89C52, I designed the laser velocity meter which using laser diode as sensor. The velocity features real-time data acquisition, data processing and display functions. The principle of velocity measurement and them measure
4、ment error of the single chip computer are described. I set up them using the software of The Keil Vision4. At last, the builded system is setted up through circuit. The measured index were analysed and compared and the improved programmes were proposed. M method was adopt in the measuring and the l
5、anguage of C was adopt to computer. Key words: Laser, Rotational speed measurement, Hand-held, Non-contact, MCU II 目录 摘 要.I Abstract .I 1 绪论. 1 1.1 课题研究的目的及意义 1 1.2 转速测量在国内的研究情况 1 1.3 主要内容与问题 2 1.3.1 研究的主要内容. 2 1.3.2 阐明的问题. 3 2 系统设计的方案 4 2.1 电源方案的选择与论证 4 2.2 显示方案的选择与论证 5 2.3 传感器方案的选择和论证 6 3 基于单片机的转速
6、测量方法及原理 7 3.1 半导体激光二极管的工作原理和特点 7 3.1.1 半导体激光二极管的工作原理. 7 3.1.2 半导体激光二极管的常用参数. 9 3.1.3 半导体激光二极管的特点. 9 3.2 单片机测量转速的方法 10 3.3 转速测量原理 11 3.3.1 测周期法“T 法” . 11 3.3.2 测频率法“M 法” 12 3.3.3 测频测周期法“M/T 法” 13 4 智能转速测量系统的硬件结构. 16 4.1 系统的硬件结构 16 4.1.1 转速信号发射与拾取的结构. 16 4.1.2.显示部分的结构. 18 4.1.3 复位功能的实现. 19 III 4.2 硬件电路中主要部件的介绍. 20 4.2.1 STC89C52 介绍 20 4.2.2 1602 液晶显示屏介绍 21 5 智能转速测量系统的软件设计 23 5.1 程序设计 23 5.1.1 工作方式及控制字设置. 23 5.1.2 变量分配及程序的初始化. 25 5.1.3 显示功能的实现. 25 5.1.2 液晶的显示. 27 5.3 主程序流程 28 5.4 开发平台介绍 29 5.4.1