基于单片机的智能测速仪毕业设计
摘要
在工程实际中,电机在运行过程中,需要对其监控,转速是一个必不可少的参数,需要对其进行测量。测量转速的方法分为模拟式和数字式两种。模拟式采用测速发电机为检测元件,得到的信号是模拟量。数字式通常采用光电传感器等为检测元件,得到的信号是脉冲信号。随着微型计算机的广泛应用,特别是高性能价格比的单片机的出现,转速测量普遍采用以单片机为核心的测量方法。 本文设计的是运用AT89C51单片机控制的智能化转速测量仪。本设计基于AT89C51单片机平台,采用光电传感器实施电机转速测量的方法,硬件系统包括脉冲信号产生,脉冲信号放大、波形变换、波行整形和显示模块,以及PC机与单片机之间的串行通讯。充分发挥了单片机的性能。本文的软件重点是采用C语言编程,测量速度并显示在4位LED数码管上。
本设计的优点是具有硬件电路简单,软件功能完善,测量速度快、精度高、控制系统可靠,性价比较高等特点。
[关键词] 转速测量;单片机;光电传感器;电机,LED。
Abstract
In engineering practice, the motor needs to monitor when it is working. Because the speed is an essential parameter to the motor, the speed of the motor must be measured. The methods of speed measurement are classified into two kinds: analog and digital. The former adopt tachometer generator as the components of detection, the result of it is an analog signal. The later adopt photoelectric sensors as the components of detection, the result of it is a pulse signal. With the wide development of micro-computer, especially the emergence of high-performance and cheap MCU, the measurement of speed commonly based on the MCU. The design of this article is using AT89C51 Microcontroller to control the speed of monitor. This design is based on AT89C51 microcontroller platform, using photoelectric sensors as the main method of the motor speed measure.
The hardware system, including pulse generation, pulse amplification, waveform conversion, wave-line shaping and display modules, the communication between PC and MCU . The performance of micro-computer is perfect. The software of this article mainly adopt C language program, the measured speed displayed on four LED digital tube.
The advantages of this design is the hardware circuit very simple , software function very perfect ,react very fast , high precision ,control system reliable and good performance.