基于单片机的超声波油位测量仪的研究和实现
2014-07-24黄四青冯学军
黄四青+冯学军
摘 要: 针对采油厂油位实时检测难度大的问题,开发一种基于单片机的超声波油位测量仪。测量仪以单片机系统为核心,利用超声波作为信息检测手段,以实现采油厂储油罐中的油位检测,并使用最小二乘法对测量数据进行分析处理。利用计算机技术和超声波检测技术研制出来的超声波油位测量仪,具有非接触性、自动控制、测量精度高、成本低廉、功能强大等优点。
关键词: 超声波; 油位测量; 储油罐; 最小二乘法
中图分类号: TN98?34 文献标识码: A 文章编号: 1004?373X(2014)14?0150?03
Research and implementation of ultrasonic wave oil?level measurement device
based on single?chip microcomputer
HUANG Si?qing1, FENG Xue?jun2
(1. Zhongbei College, Nanjing Normal University, Nanjing 210046, China;
2. College of Computer Science and Technology, Nanjing Normal University, Nanjing 210046, China)
Abstract: An ultrasonic wave oil?level measurement device based on single?chip microcomputer was developed to overcome the difficulty of real?time oil level detection for oil production plant. The single?chip microcomputer system is the core of ultrasonic oil level detection instrument, which utilizes ultrasonic wave as information detecting means to realize oil level detection of oil tank, and adopts the least square method to analyze and process the measured data. The ultrasonic wave oil level measurement instrument based on computer technology and ultrasonic detecting technology has the advantages of non?contact, automatic control, high?precision measurement, low cost, powerful function, etc. It has a wide application prospect and use value.
Keywords: ultrasonic wave; oil?level measurement; least square method
本文所讨论的超声波油位测量仪,传感器不直接接触被测原油,这种测量方法有很高的应用价值,特别是在中小型油田开采企业。安装投入低,采油场的每一口储油罐上都要安装一套超声波探测器,储油罐的总数量很大,所以,投入低对于油田来说是很有吸引力的。其次是安全可靠,原油有很强的挥发性,其挥发出的有很多是可燃性气体。测量精度高,储油罐横截面大,测量精度低,就会引起很大的测量误差。安装方便,超声波油位测量仪体积小,现场安装很方便[1]。
1 超声波油位测量仪的设计
超声波油位测量仪是根据“脉冲?回波测距”的原理设计的[2?3]。由超声波的发射器发射超声波,声波遇到障碍物后反射,由超声波接收器接收回波。测出从超声波发出脉冲串至接收到回波信号的传输时间,由于超声波在同一种介质中的传输速度是不变的,所以根据时间和声速,就可算出测量距离[4?6]。……
