文档介绍:非接触式转速仪设计
摘要
随着工业生产技术的发展,尤其是风机等在各个领域的大量应用,旋转物体转速的测量变得更为频繁,因而对具有便携、快速、非接触、精确度高等特征转速测量仪表的需求性也越来越强。
本设计以STC89C54RD+单片机为核心,主要有硬件电路设计和软件设计两个部分。硬件电路主要包括主控制器,反射式红外传感器,按键电路,显示电路以及串口通信等。主控制器采用单片机STC89C54RD+;红外传感器用来发射和接收信号,采集数据;显示电路采用8位共阴极LED数码管动态扫描显示;串口通信传输采用标准的RS232计算机数据串行通信方式。软件设计主要包括主程序,按键子程序,显示子程序,红外传感数据采集程序以及串口通信程序等。该设计的产品能够对风机等的转速实现精确测量,具有大量程、精度高、价格低、结构简单、性能稳定、抗干扰能力强、快速测量、便于携带、用途广、可实现在线测量等优点,将为工业生产提供极大方便。
该设计所实现的功能:设置相应叶片数后,按开始按键即可通过红外传感器对风机转速进行实时测量,并将转速、叶片数等信息通过数码管显示,同时可以通过串口将相应数据信息反馈给PC机。本设计实现了所要求的功能。
关键字: STC89C54,RS-232,LED,转速
THE DESIGN OF NON-CONTACT ROTATIONAL
SPEED METER
ABSTRACT
With the development of the Technology of industrial production, Especially the large number of applications of fans in various fields, to measure the rotational speed of Rotating object es more frequent, and thus the needs of the rotational speed meter which has Features of portable, rapid, non-contact, high precision measuring and other characteristics is also growing.
The design make the STC89C54RD microcontroller as the core. hardware design and software design is the Two main parts. Hardware circuit includes a master controller, reflective infrared sensors, key circuit, display circuit, and munications etc. Main controller using SCM STC89C54RD ; Infrared sensors used to transmit and receive signals, collecting the date; Display circuit using 8-mon cathode LED digital tube dynamic scanning display; munication transmission puter data using standard RS232 munication. Software design includes the main program, the key subroutine, display routines, and the infrared sensor data acquisition program and other munication program. The product of design can achieve accurate measurement the rotational speed of fans etc, with a large range, high precision, low price, simple structure, stable performance, anti-interference ability, fast measurement, portable, versatile, can realize the advantages of online measurement will greatly facilitate industrial production.
The implementation