CN103499375A - High-precision ultrasonic level gauge measuring distance based on time delay method - Google Patents
High-precision ultrasonic level gauge measuring distance based on time delay method Download PDFInfo
- Publication number
- CN103499375A CN103499375A CN201310471425.6A CN201310471425A CN103499375A CN 103499375 A CN103499375 A CN 103499375A CN 201310471425 A CN201310471425 A CN 201310471425A CN 103499375 A CN103499375 A CN 103499375A
- Authority
- CN
- China
- Prior art keywords
- module
- liquid level
- ultrasonic
- level gauge
- time delay
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)
Abstract
Description
技术领域 technical field
本发明涉及一种测距装置,特别是一种基于时延法测距的高精度超声波液位计。 The present invention relates to a ranging device, in particular to a high-precision ultrasonic liquid level gauge based on time-delay method ranging. the
背景技术 Background technique
在科技日益发达的今天,随着超声波技术的飞速发展和广泛应用,超声波在日常生活以及工业等领域中得到了广泛地应用,例如雷达探测、室外工地测距、测量水库水位、测量容器深度等。液位测量在工业生产中扮演着一个相当重要的角色,通过测量容器内液位能确定液体原料的数量,对容器内液面高度的实时测量和监视可以保障工业生产的连续性、可靠性和安全性,为生产环节的物料平衡和生产预算提供依据。同时液位测量与我们日常生活也息息相关,不仅用于各种容器管道内的液体测量,甚至还用于江河湖海和水库等的水位测量。 Today, with the development of science and technology, with the rapid development and wide application of ultrasonic technology, ultrasonic has been widely used in daily life and industrial fields, such as radar detection, outdoor site distance measurement, measurement of reservoir water level, measurement of container depth, etc. . Liquid level measurement plays a very important role in industrial production. The quantity of liquid raw materials can be determined by measuring the liquid level in the container. Real-time measurement and monitoring of the liquid level in the container can ensure the continuity, reliability and reliability of industrial production. Safety provides a basis for material balance and production budget in the production process. At the same time, liquid level measurement is also closely related to our daily life. It is not only used for liquid measurement in various container pipes, but also for water level measurement in rivers, lakes, seas and reservoirs.
目前无论是水库水位的测量、大型油罐液位的测量,还是小型容器液位的测量或者其它液位测量,都对其测量精度提出了越来越高的要求。例如石化部门使用的大型储油罐容量一般在1000~100000m3之间,则很小的液位测量误差都会造成很大的绝对误差。因此,高精度的液位测量在日常生活和工业生产中具有重要的地位。 At present, whether it is the measurement of the water level of the reservoir, the measurement of the liquid level of the large oil tank, or the measurement of the liquid level of the small container or other liquid level measurements, the requirements for the measurement accuracy are getting higher and higher. For example, the capacity of large oil storage tanks used in the petrochemical sector is generally between 1,000 and 100,000m3, and a small liquid level measurement error will cause a large absolute error. Therefore, high-precision liquid level measurement plays an important role in daily life and industrial production.
超声波液位计能够通过非接触方式测量液面高度,因此无需接触液面就能达到液位测量的目的,特别适合于冶金和化工等工业中带有强腐蚀、强辐射、强污染以及强酸强碱等恶劣条件下的液位测量。超声波在不同介质中的传播速度是不一样的,即使是在同一介质,速度也受各种各样的因素影响,例如温度、压力、湿度、成分和粘度等。为了提高超声波液位计的测量精度,就必须设法获取超声波在工作环境中的精确传播速度。在传统的超声波液位系统中,大多采用通过测量温度来校正声速,从而提高液位测量精度,一般在系统中加入测温模块以获取超声波传播环境的温度T后,通过公式 来对声速进行校正。但是该方法只考虑了温度的影响而忽略了其他因素如湿度、压力等对超声波的传播速度的影响,而且温度测量也存在一定程度的误差,导致利用该方法的超声波液位仪的测量精度仍较低。而另一种采用自校准技术对声速补偿的方法是在系统中设置参考挡板,并使参考探头与挡板距离保持一定值,且此挡板不能挡住另一个探头到液面的超声波,超声波从参考探头发出,经参考挡板发射后回至探头而被接收,由于参考探头与挡板之间距离是精确已知的,因此利用参考探头能计算出在工作环境中的声速,这种方法可以补偿任何因素如温度、湿度和压力等引起的声速变化。但是在容器内安装挡板不仅增加了施工难度,而且挡板过小减弱了挡板反射的超声波,而挡板过大影响另一个探头到液面的超声波,因此挡板过小和过大都会对此类超声波液位计的正常工作产生一定的影响。本发明提出了一种新的自校准技术来对声速进行校正,从而实现超声波液位的精确测量。 The ultrasonic liquid level gauge can measure the height of the liquid level through a non-contact method, so the purpose of liquid level measurement can be achieved without touching the liquid level, especially suitable for metallurgy and chemical industries with strong corrosion, strong radiation, strong pollution and strong acid. Liquid level measurement under harsh conditions such as alkali. The propagation speed of ultrasonic waves in different media is different. Even in the same medium, the speed is affected by various factors, such as temperature, pressure, humidity, composition and viscosity. In order to improve the measurement accuracy of the ultrasonic liquid level gauge, it is necessary to try to obtain the accurate propagation speed of the ultrasonic wave in the working environment. In the traditional ultrasonic liquid level system, the sound velocity is mostly corrected by measuring the temperature, so as to improve the accuracy of liquid level measurement. Generally, after adding a temperature measurement module to the system to obtain the temperature T of the ultrasonic propagation environment, use the formula to correct for the speed of sound. However, this method only considers the influence of temperature and ignores the influence of other factors such as humidity, pressure, etc. lower. Another way to use self-calibration technology to compensate the sound velocity is to set a reference baffle in the system, and keep the distance between the reference probe and the baffle at a certain value, and this baffle cannot block the ultrasonic wave from another probe to the liquid surface. It is emitted from the reference probe, transmitted by the reference baffle and returned to the probe to be received. Since the distance between the reference probe and the baffle is accurately known, the sound velocity in the working environment can be calculated by using the reference probe. This method It can compensate the change of sound velocity caused by any factors such as temperature, humidity and pressure. However, installing a baffle in the container not only increases the difficulty of construction, but too small a baffle weakens the ultrasonic waves reflected by the baffle, and too large a baffle affects the ultrasonic waves from another probe to the liquid surface, so too small and too large a baffle will cause problems It has a certain impact on the normal operation of this type of ultrasonic liquid level gauge. The invention proposes a new self-calibration technology to correct the sound velocity, so as to realize the accurate measurement of the ultrasonic liquid level.
发明内容 Contents of the invention
为解决上述问题,本发明公开了一种基于时延法测距的高精度超声波液位计。 In order to solve the above problems, the present invention discloses a high-precision ultrasonic liquid level gauge based on time-delay method for distance measurement.
为了达到上述目的,本发明提供如下技术方案:一种基于时延法测距的高精度超声波液位计,包括单片机控制器、键盘模块、存储模块、报警模块、显示模块、超声波收发模块、串口通信模块,所述的键盘模块、存储模块、报警模块、显示模块、超声波收发模块、串口通信模块分别与所述的单片机控制器相连接,串口通信模块还连接有PC机,所述的超声波收发模块设置有两个,所述的两个超声波收发模块设置在液面的上方,且两个超声波收发模块距液面的高度不相同。 In order to achieve the above object, the present invention provides the following technical solutions: a high-precision ultrasonic liquid level gauge based on time-delay method distance measurement, including a single-chip controller, a keyboard module, a storage module, an alarm module, a display module, an ultrasonic transceiver module, a serial port Communication module, described keyboard module, storage module, alarm module, display module, ultrasonic transceiver module, serial port communication module are connected with described single-chip controller respectively, and serial port communication module is also connected with PC, and described ultrasonic transceiver There are two modules, and the two ultrasonic transceiver modules are arranged above the liquid surface, and the heights of the two ultrasonic transceiver modules from the liquid surface are different.
作为本发明的一种改进,所述的单片机控制器采用的型号为STC89C52。 As an improvement of the present invention, the model of the single-chip microcomputer controller adopted is STC89C52.
作为本发明的一种改进,所述的超声波收发模块采用的型号为HC-SR04。 As an improvement of the present invention, the model used for the ultrasonic transceiver module is HC-SR04.
作为本发明的一种改进,所述的存储模块采用存储器AT24C02。 As an improvement of the present invention, the memory module adopts memory AT24C02.
作为本发明的一种改进,所述显示模块包括1602LCD显示屏。 As an improvement of the present invention, the display module includes a 1602LCD display screen.
作为本发明的一种改进,所述报警模块主要由蜂鸣器、三极管以及电阻构成。 As an improvement of the present invention, the alarm module is mainly composed of a buzzer, a triode and a resistor.
本发明的有益效果: Beneficial effects of the present invention:
本发明设计的超声波液位计无需增加测温单元或安装挡板,就能补偿任何因素如温度、湿度和压力等引起的声速变化,而且也不存在挡板安装施工难以及挡板大小选择不当影响液位测量的问题。该超声液位计利用两个布置在不同高度上的超声探头的测量结果来修正声速并消除单片机内部的硬件延时误差,并采用算术平均滤波的方法降低由于外部环境原因造成液面不够平稳而产生的误差,从而实现超声波液位的精确测量。本系统能实现对测量数据的保存,以方便后续的制表以及测量曲线图的绘制,报警电路可以全天候地进行有效预警,并设计了串口通信模块,使得操作人员可以通过PC机对液位计进行远程监控,为操作人员在室外的测量工作带来了极大的便利。 The ultrasonic liquid level gauge designed in the present invention does not need to add a temperature measuring unit or install a baffle, and can compensate for any factors such as temperature, humidity and pressure. Problems affecting level measurement. The ultrasonic liquid level gauge uses the measurement results of two ultrasonic probes arranged at different heights to correct the sound velocity and eliminate the hardware delay error inside the single-chip microcomputer, and uses the arithmetic mean filtering method to reduce the liquid level caused by the external environment. The error generated, so as to realize the accurate measurement of ultrasonic liquid level. This system can realize the storage of measurement data to facilitate subsequent tabulation and measurement curve drawing. The alarm circuit can provide effective early warning around the clock, and a serial communication module is designed so that the operator can monitor the liquid level gauge through a PC. Remote monitoring brings great convenience to the operator's outdoor measurement work.
附图说明 Description of drawings
图1为本发明的系统结构框图; Fig. 1 is a system structure block diagram of the present invention;
图2为本发明的系统原理图; Fig. 2 is a system schematic diagram of the present invention;
图3为本发明的单片机控制器的电路图; Fig. 3 is the circuit diagram of the single-chip microcomputer controller of the present invention;
图4为本发明的超声波收发模块电路图; Fig. 4 is the ultrasonic transceiver module circuit diagram of the present invention;
图5为存储模块电路图; Fig. 5 is a memory module circuit diagram;
图6为显示模块电路图; Figure 6 is a circuit diagram of the display module;
图7为串口通信模块电路图; Fig. 7 is a serial port communication module circuit diagram;
图8为键盘模块电路图; Fig. 8 is a keyboard module circuit diagram;
图9为报警电路电路图。 Figure 9 is a circuit diagram of the alarm circuit.
具体实施方式 Detailed ways
以下将结合具体实施例对本发明提供的技术方案进行详细说明,应理解下述具体实施方式仅用于说明本发明而不用于限制本发明的范围。 The technical solutions provided by the present invention will be described in detail below in conjunction with specific examples. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention.
如图1所示为本发明的一种基于时延法测距的高精度超声波液位计结构框图,包括单片机控制器、键盘模块、存储模块、报警模块、显示模块、超声波收发模块、串口通信模块,所述的键盘模块、存储模块、报警模块、显示模块、超声波收发模块、串口通信模块分别与所述的单片机控制器相连接,串口通信模块还连接有PC机,所述的超声波收发模块设置有两个,所述的两个超声波收发模块设置在液面的上方,且两个超声波收发模块距液面的高度不相同。 As shown in Figure 1, it is a structural block diagram of a high-precision ultrasonic liquid level gauge based on the time-delay method for distance measurement of the present invention, including a single-chip controller, a keyboard module, a storage module, an alarm module, a display module, an ultrasonic transceiver module, and serial communication Module, described keyboard module, memory module, alarm module, display module, ultrasonic transceiver module, serial port communication module are connected with described single-chip controller respectively, and serial port communication module is also connected with PC, and described ultrasonic transceiver module Two ultrasonic transceiver modules are provided, and the two ultrasonic transceiver modules are arranged above the liquid surface, and the heights of the two ultrasonic transceiver modules from the liquid surface are different.
图3为本发明的单片机控制器的电路图,选择单片机中低功耗的STC89C52单片机,它是一种低功耗、高性能且系统内带有8KB可编程Flash存储器的8位CMOS微处理器,具有速度快、可靠性高、功耗低、价格低等优点。单片机STC89C52控制超声波收发电路发射超声波信号,并接收经超声波模块传输来的回波信号,在其内部进行声速校正和硬件延时误差补偿以实现液面高度的测量,同时也负责控制键盘电路、存储电路、报警电路、LCD显示电路以及串口通信电路等。单片机主控模块电路如图3所示,主要包括单片机时钟电路和复位电路。当单片机加电,振荡器就会一直工作,产生持续的振荡时钟。复位电路具有上电自动复位和手动复位两种功能,当晶振工作时,RST脚持续2个机器周期高电平将使单片机复位。 Fig. 3 is the circuit diagram of single-chip controller of the present invention, selects the STC89C52 single-chip microcomputer of low power consumption in the single-chip microcomputer, it is a kind of low power consumption, high performance and 8 CMOS microprocessors with 8KB programmable Flash memory in the system, It has the advantages of fast speed, high reliability, low power consumption and low price. The single-chip microcomputer STC89C52 controls the ultrasonic transceiver circuit to transmit ultrasonic signals, and receives the echo signals transmitted by the ultrasonic module, and performs sound velocity correction and hardware delay error compensation to realize the measurement of the liquid level, and is also responsible for controlling the keyboard circuit, storage circuit, alarm circuit, LCD display circuit and serial port communication circuit, etc. The main control module circuit of the single-chip microcomputer is shown in Figure 3, mainly including the clock circuit and reset circuit of the single-chip microcomputer. When the microcontroller is powered on, the oscillator will always work and generate a continuous oscillation clock. The reset circuit has two functions of power-on automatic reset and manual reset. When the crystal oscillator is working, the RST pin will continue to be high for 2 machine cycles to reset the microcontroller.
图4为本发明的超声波收发模块电路图,为了提高液位测量值的精度,超声波收发模块采用了两个一体化超声波模块HC-SR04,分别安装在高度相差为的位置上。HC-SR04一体化超声波模块是集发送、接收、放大和解调为一体的超声波收发器。通过单片机内部定时器给出一个10us以上的脉冲触发信号给HC-SR04的TRIG引脚,则该模块内部循环发出8个40kHz 周期电平,并自动检测是否有信号返回。当检测到信号返回时,该模块把接收信号经过放大和解调后通过该模块的ECHO引脚送到单片机的IO口。 Fig. 4 is the circuit diagram of the ultrasonic transceiver module of the present invention. In order to improve the accuracy of the liquid level measurement value, the ultrasonic transceiver module adopts two integrated ultrasonic modules HC-SR04, which are respectively installed at heights with a difference of position. HC-SR04 integrated ultrasonic module is an ultrasonic transceiver integrating sending, receiving, amplification and demodulation. A pulse trigger signal of more than 10us is given to the TRIG pin of HC-SR04 through the internal timer of the single-chip microcomputer, and then the module internally sends out 8 40kHz cycle levels, and automatically detects whether there is a signal return. When the return signal is detected, the module sends the received signal to the IO port of the microcontroller through the ECHO pin of the module after amplification and demodulation.
图5为存储模块电路图,要实现液位高度测量值的实时记录,本系统增加了一个串行EEPROM存储器AT24C02,将不同时刻的液面高度测量值保存在存储器中,方便使用者随时查看相应的信息,并进行数据分析。同时为了降低因液面不够平稳而产生的误差的影响,单片机可以将该存储电路保存的同一液面的测量数据每N个取一次平均值,显然有了存储电路可以更方便的实现这个功能。 Figure 5 is the circuit diagram of the storage module. In order to realize the real-time recording of the measured value of the liquid level, a serial EEPROM memory AT24C02 is added to this system, and the measured value of the liquid level at different times is stored in the memory, so that the user can check the corresponding information and data analysis. At the same time, in order to reduce the influence of the error caused by the insufficient stability of the liquid level, the single-chip microcomputer can take the average value every N of the measurement data of the same liquid level saved by the storage circuit. Obviously, the storage circuit can realize this function more conveniently.
图6为显示模块电路图,显示模块电路采用1602LCD显示屏,当系统刚上电或复位时显示屏显示“Ultrasonic level measuring system”,通过外部中断设定报警高度时显示屏显示“Set Alarm”,当测量到液面高度时显示“Height”并显示在当时环境下的液面高度,当液面高度超出报警高度导致蜂鸣器报警时显示屏显示“Warning!”,当串口传送数据时显示屏显示“Sending”。 Figure 6 is the circuit diagram of the display module. The display module circuit uses a 1602LCD display screen. When the system is just powered on or reset, the display screen displays "Ultrasonic level measuring system". When the alarm height is set through an external interrupt, the display screen displays "Set Alarm". When the liquid level is measured, it will display "Height" and display the liquid level height in the current environment. When the liquid level exceeds the alarm height and the buzzer alarms, the display will display "Warning!". When the serial port transmits data, the display will display "Sending".
图7为串口通信模块电路图,本系统具有单片机与PC机远程通讯的功能,操作人员可以进行远程监控和操作。单片机通过串口把液位测量数据传输给PC机,并保存在PC机内,可以进一步分析和打印。由于单片机与计算机所提供的电平不同,单片机提供的是TTL电平,而计算机提供的是TS232电平,两者要实现通信的话需要采用MAX232芯片来进行转换。 Figure 7 is a circuit diagram of the serial port communication module. This system has the function of remote communication between the single-chip microcomputer and the PC, and the operator can perform remote monitoring and operation. The single-chip microcomputer transmits the liquid level measurement data to the PC through the serial port, and saves it in the PC, which can be further analyzed and printed. Because the levels provided by the single-chip microcomputer and the computer are different, the single-chip microcomputer provides the TTL level, while the computer provides the TS232 level, and the MAX232 chip is required to convert the two to achieve communication.
图8为键盘模块电路图,键盘电路主要负责设定警戒液位报警高度以及查看存储数据等操作,采用独立式键盘,每个键盘的一端与单片机的IO口相连,而另一端则接地。 Figure 8 is the circuit diagram of the keyboard module. The keyboard circuit is mainly responsible for setting the warning level alarm height and viewing the stored data. Independent keyboards are used. One end of each keyboard is connected to the IO port of the microcontroller, and the other end is grounded.
图9为报警电路电路图,报警电路主要由蜂鸣器、三极管以及电阻构成,当液位达到警戒高度时,单片机的P3.5口输出高电平,驱动蜂鸣器发出警报,提醒使用者注意液面的高度。 Figure 9 is the circuit diagram of the alarm circuit. The alarm circuit is mainly composed of a buzzer, a triode and a resistor. When the liquid level reaches the warning height, the P3.5 port of the single chip microcomputer outputs a high level, drives the buzzer to issue an alarm, and reminds the user to pay attention The height of the liquid level.
本发明的工作原理如下: The working principle of the present invention is as follows:
单片机是整个系统的核心控制部分,负责控制外围电路以及计算输出。首先,单片机通过发射电路将信号传输给两个放置在不同高度的超声波探头发射超声波信号,两个探头的超声波信号遇到液面反射回来,并被各自的换能器接收并转换成电信号,经过放大、滤波、整形等处理后传输给单片机,由于两个探头的高度差是精确已知的,因此在单片机内利用两个安装在不同位置上的超声探头的回波延时测量结果,能计算出在当时工作环境下的声速,并能消除单片机内部的硬件延时误差,经过声速校正和硬件延时误差补偿之后,可由单片机利用某个探头的时延测量结果计算出液面高度,并通过显示电路显示,若当液位达到警戒高度时可以自动报警,还可以由通信接口与PC机实现远程通讯功能,从而实现对液面的远程监控。存储模块可以保存不同时刻的液位测量值,方便使用者查阅和记录分析相关数据,键盘模块主要负责设定警戒液位报警高度以及查看存储数据等操作。 The single-chip microcomputer is the core control part of the whole system, which is responsible for controlling the peripheral circuits and calculating the output. First, the single-chip microcomputer transmits the signal to two ultrasonic probes placed at different heights to transmit ultrasonic signals through the transmitting circuit. The ultrasonic signals of the two probes meet the liquid surface and reflect back, and are received by their respective transducers and converted into electrical signals. After amplification, filtering, shaping and other processing, it is transmitted to the single-chip microcomputer. Since the height difference between the two probes is known accurately, the echo delay measurement results of two ultrasonic probes installed in different positions can be used in the single-chip microcomputer. Calculate the sound velocity in the working environment at that time, and can eliminate the hardware delay error inside the single-chip microcomputer. After the sound velocity correction and hardware delay error compensation, the liquid level can be calculated by the single-chip microcomputer using the delay measurement result of a certain probe, and then Through the display circuit, if the liquid level reaches the warning height, it can automatically alarm, and can also realize the remote communication function with the PC through the communication interface, so as to realize the remote monitoring of the liquid level. The storage module can save the liquid level measurement values at different times, which is convenient for users to consult and record and analyze relevant data. The keyboard module is mainly responsible for setting the warning height of the liquid level and viewing the stored data.
本方明的声速校正和硬件延时误差补偿原理:如图2所示,探头1和探头2分别安装在两个不同高度的位置上,两探头的高度差为,为了保证两个探头能够独立进行超声的发射和接收,而互不干扰各自工作,则要求两个探头在横向上也要相距一段距离。在工作时,两个探头同时发射超声波并独立接收各自的回波信号,假设测量得到探头1从发射超声波到接收到回波所经历的时间为t 1,探头2从发射超声波到接收到回波所经历的时间为t 2。由于硬件电路处理存在一定延时的,这是因为在使用时延法测距时,需要使用单片机的外部中断来检测回波信号,中断响应需要一定处理时间,而在进入中断子程序后还要执行若干条指令,因此单片机内部的硬件延时也是不可忽略的,即回波时延测量值t 1和t 2中包含了硬件延时误差,由于两个探头的时延测量方法相同,因此在两者测量过程中的硬件延时误差也可近似认为相同,假设硬件延时误差为Δt以及在系统工作时的声速为c,那么根据时延测距原理,探头1到液面的垂直距离为
The principle of sound velocity correction and hardware delay error compensation proposed by Fang Ming: As shown in Figure 2,
(1) (1)
探头2到液面的垂直距离为
The vertical distance from
(2) (2)
式(2)和式(1)相减,可以得到: Subtracting formula (2) and formula (1), we can get:
(3) (3)
由于式(3)中、t 1和t 2是已知的,因此可以求得声速c为 Since in formula (3) , t 1 and t 2 are known, so the speed of sound c can be obtained as
(4) (4)
在式(4)中,两个探头的高度差是精确已知的,而时延测量值t 2 和 t 1 本来是包含了单片机内部的硬件延时误差的,但两者相减后,硬件延时误差Δt能够相互抵消,因此根据公式(4)计算得到的声速c是非常精确的。 In formula (4), the height difference of the two probes is known accurately, and the delay measurement values t 2 and t 1 originally included the hardware delay error inside the microcontroller, but after subtracting the two, the hardware delay error Δt can cancel each other out, so according to the formula ( 4) The calculated sound velocity c is very accurate.
液位测量值不仅与声速有关,而且还与时延测量值有关,因此要获得高精度的液位测量值,需要消除时延测量值中的硬件延时误差Δt,可通过下面的方法来对这个固有的硬件延时误差进行修正:在本超声液位计的两个探头可以用于测量一个已知的固定位置,假设和分别为探头1和探头2从发射超声波到接收到从已知的固定位置反射的回波所经历的时间,那么根据式(4)可以计算此时超声波的传播速度,由于在此场合中探头1和探头2分别离固定位置的距离和也是已知的,因此液位计的固定硬件延时误差为
The liquid level measurement value is not only related to the sound velocity, but also related to the time delay measurement value. Therefore, in order to obtain a high-precision liquid level measurement value, it is necessary to eliminate the hardware delay error Δt in the time delay measurement value, which can be obtained by the following method Correct this inherent hardware delay error: the two probes in this ultrasonic level gauge can be used to measure a known fixed position, assuming and are respectively the time elapsed by
(5) (5)
在实际测量中,把探头1的时延测量值t 1 减去硬件固有延时误差,就能消除延时误差,再结合由式(4)计算的声速c就可以得到高精度的液位测量值,则容器内液位H的计算公式为
In the actual measurement, the delay measurement value t 1 of the
(6) (6)
式中,为超声波换能器探头1到液面底部的距离。
In the formula, is the distance from the
在实际的测量过程中,特别是在室外测量,由于受天气条件限制,很难保证液面达到完全静止的状态。当液面上下波动时,测量结果会在某一个数值的附近上下波动,仅测量一次的话随机干扰太大,所以本液位计通过数字平均滤波的方法来进一步提高精度,通过对同一液面连续进行N次的测量并求其平均值,把平均值作为最后的有效测量值。 In the actual measurement process, especially outdoor measurement, it is difficult to ensure that the liquid level reaches a completely static state due to weather conditions. When the liquid level fluctuates up and down, the measurement result will fluctuate around a certain value. If the measurement is only performed once, the random interference is too large. Therefore, this liquid level gauge further improves the accuracy by means of digital average filtering. Carry out N times of measurement and calculate the average value, and take the average value as the final effective measurement value.
本发明设计的超声波液位计无需增加测温单元或安装挡板,就能补偿任何因素如温度、湿度和压力等引起的声速变化,而且也不存在挡板安装施工难以及挡板大小选择不当影响液位测量的问题。该超声液位计利用两个布置在不同高度上的超声探头的测量结果来修正声速并消除单片机内部的硬件延时误差,并采用算术平均滤波的方法降低由于外部环境原因造成液面不够平稳而产生的误差,从而实现超声波液位的精确测量。本系统能实现对测量数据的保存,以方便后续的制表以及测量曲线图的绘制,报警电路可以全天候地进行有效预警,并设计了串口通信模块,使得操作人员可以通过PC机对液位计进行远程监控,为操作人员在室外的测量工作带来了极大的便利。 The ultrasonic liquid level gauge designed in the present invention does not need to add a temperature measuring unit or install a baffle, and can compensate for any factors such as temperature, humidity and pressure. Problems affecting level measurement. The ultrasonic liquid level gauge uses the measurement results of two ultrasonic probes arranged at different heights to correct the sound velocity and eliminate the hardware delay error inside the single-chip microcomputer, and uses the arithmetic mean filtering method to reduce the liquid level caused by the external environment. The error generated, so as to realize the accurate measurement of ultrasonic liquid level. This system can realize the storage of measurement data to facilitate subsequent tabulation and measurement curve drawing. The alarm circuit can provide effective early warning around the clock, and a serial communication module is designed so that the operator can monitor the liquid level gauge through a PC. Remote monitoring brings great convenience to the operator's outdoor measurement work.
本发明方案所公开的技术手段不仅限于上述实施方式所公开的技术手段,还包括由以上技术特征任意组合所组成的技术方案。 The technical means disclosed in the solutions of the present invention are not limited to the technical means disclosed in the above embodiments, but also include technical solutions composed of any combination of the above technical features.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310471425.6A CN103499375A (en) | 2013-10-11 | 2013-10-11 | High-precision ultrasonic level gauge measuring distance based on time delay method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310471425.6A CN103499375A (en) | 2013-10-11 | 2013-10-11 | High-precision ultrasonic level gauge measuring distance based on time delay method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103499375A true CN103499375A (en) | 2014-01-08 |
Family
ID=49864606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310471425.6A Pending CN103499375A (en) | 2013-10-11 | 2013-10-11 | High-precision ultrasonic level gauge measuring distance based on time delay method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103499375A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104020661A (en) * | 2014-06-25 | 2014-09-03 | 熊浩仁 | Multifunctional digital clock |
CN104864938A (en) * | 2014-02-26 | 2015-08-26 | 江南大学 | Ultrasonic liquid level monitoring human-computer interaction technique |
CN106168504A (en) * | 2016-06-28 | 2016-11-30 | 安徽埃克森科技集团有限公司 | A kind of liquidometer |
CN106441510A (en) * | 2016-10-21 | 2017-02-22 | 窦朝海 | Liquid level monitoring and alarming device based on ultrasonic distance measuring |
CN108827424A (en) * | 2018-04-23 | 2018-11-16 | 四川长虹网络科技有限责任公司 | The container spill-over detection system of two-shipper combination ranging |
CN109634314A (en) * | 2019-01-11 | 2019-04-16 | 中铁隧道集团二处有限公司 | Intelligent water level measure and control device |
CN110161507A (en) * | 2019-05-07 | 2019-08-23 | 生态环境部华南环境科学研究所 | A kind of siltation on-line monitoring system and method |
CN111157065A (en) * | 2019-12-31 | 2020-05-15 | 上海中核维思仪器仪表有限公司 | Acoustic time delay measuring method in ultrasonic signal transmission loop of gas ultrasonic flowmeter |
CN111736635A (en) * | 2020-07-05 | 2020-10-02 | 余姚市第二职业技术学校 | Ultrasonic water and fertilizer liquid level measurement system based on least square method and control method thereof |
CN111913416A (en) * | 2020-06-30 | 2020-11-10 | 上海电机学院 | A kind of intelligent water saver and water saving method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10122844A (en) * | 1996-10-22 | 1998-05-15 | Ueda Nippon Musen Kk | Ultrasonic measuring device and its temperature correction method |
CN200962051Y (en) * | 2006-11-03 | 2007-10-17 | 河海大学常州校区 | Smart Liquid Level Sensor |
CN201110972Y (en) * | 2007-01-16 | 2008-09-03 | 王汉澎 | Ultrasonic wave remote sense liquid level display controller |
CN101769777A (en) * | 2008-12-30 | 2010-07-07 | 广州昉时工业自动控制系统有限公司 | Ultrasonic liquid level meter owning gas sound speed real-time correction |
CN201619291U (en) * | 2010-03-04 | 2010-11-03 | 黎云汉 | Liquid level automatic detecting and liquid adding system of polishing machine |
CN203519112U (en) * | 2013-10-11 | 2014-04-02 | 南京信息工程大学 | High-precision distance-measurement ultrasonic liquid level gauge based on time delay method |
-
2013
- 2013-10-11 CN CN201310471425.6A patent/CN103499375A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10122844A (en) * | 1996-10-22 | 1998-05-15 | Ueda Nippon Musen Kk | Ultrasonic measuring device and its temperature correction method |
CN200962051Y (en) * | 2006-11-03 | 2007-10-17 | 河海大学常州校区 | Smart Liquid Level Sensor |
CN201110972Y (en) * | 2007-01-16 | 2008-09-03 | 王汉澎 | Ultrasonic wave remote sense liquid level display controller |
CN101769777A (en) * | 2008-12-30 | 2010-07-07 | 广州昉时工业自动控制系统有限公司 | Ultrasonic liquid level meter owning gas sound speed real-time correction |
CN201619291U (en) * | 2010-03-04 | 2010-11-03 | 黎云汉 | Liquid level automatic detecting and liquid adding system of polishing machine |
CN203519112U (en) * | 2013-10-11 | 2014-04-02 | 南京信息工程大学 | High-precision distance-measurement ultrasonic liquid level gauge based on time delay method |
Non-Patent Citations (1)
Title |
---|
马伟: "超声波液位计的误差分析与校正", 《电子科技》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104864938A (en) * | 2014-02-26 | 2015-08-26 | 江南大学 | Ultrasonic liquid level monitoring human-computer interaction technique |
CN104020661A (en) * | 2014-06-25 | 2014-09-03 | 熊浩仁 | Multifunctional digital clock |
CN106168504A (en) * | 2016-06-28 | 2016-11-30 | 安徽埃克森科技集团有限公司 | A kind of liquidometer |
CN106441510A (en) * | 2016-10-21 | 2017-02-22 | 窦朝海 | Liquid level monitoring and alarming device based on ultrasonic distance measuring |
CN108827424A (en) * | 2018-04-23 | 2018-11-16 | 四川长虹网络科技有限责任公司 | The container spill-over detection system of two-shipper combination ranging |
CN109634314A (en) * | 2019-01-11 | 2019-04-16 | 中铁隧道集团二处有限公司 | Intelligent water level measure and control device |
CN110161507A (en) * | 2019-05-07 | 2019-08-23 | 生态环境部华南环境科学研究所 | A kind of siltation on-line monitoring system and method |
CN111157065A (en) * | 2019-12-31 | 2020-05-15 | 上海中核维思仪器仪表有限公司 | Acoustic time delay measuring method in ultrasonic signal transmission loop of gas ultrasonic flowmeter |
CN111913416A (en) * | 2020-06-30 | 2020-11-10 | 上海电机学院 | A kind of intelligent water saver and water saving method |
CN111736635A (en) * | 2020-07-05 | 2020-10-02 | 余姚市第二职业技术学校 | Ultrasonic water and fertilizer liquid level measurement system based on least square method and control method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103499375A (en) | High-precision ultrasonic level gauge measuring distance based on time delay method | |
CN100565241C (en) | Ultrasonic Echo Frontier Detection Method Based on Modulation Domain Measurement | |
CN207215243U (en) | A kind of liquid level emasuring device based on ultrasonic wave | |
CN201133828Y (en) | Open channel ultrasound flow measurement system | |
CN203519112U (en) | High-precision distance-measurement ultrasonic liquid level gauge based on time delay method | |
CN106706050A (en) | Method for measuring gas flow through ultrasonic flowmeter | |
CN105651349A (en) | Drilling fluid flow quantitative detection while drilling system and application thereof | |
CN105333925A (en) | Supersonic liquid level measuring instrument based on single-chip microcomputer | |
CN203502085U (en) | Ultrasonic oil amount detector | |
CN203908632U (en) | Liquid level measuring and alarming device | |
CN102704874A (en) | Device and method for detecting drilling fluid return flow | |
CN105784069A (en) | Large liquid storage tank liquid level measuring device based on wireless transmission | |
CN103389138A (en) | Weighing type liquid level meter system based on MSP430 (Mixed Signal Processor 430) single chip microcomputer | |
CN107270993A (en) | It is a kind of while measuring the device of propellant liquid level and density | |
CN206132178U (en) | Liquid level monitoring system based on infrared ray and ultrasonic sensor | |
CN111367210A (en) | An embedded intelligent liquid level detection control system | |
CN105242063A (en) | Reservoir flow velocity measurement method based on pressure sensor | |
CN106841674B (en) | Flow velocity measuring device and method based on ultrasonic reflection signals | |
CN209802410U (en) | A Doppler flow meter application device | |
CN201392255Y (en) | Ultrasonic-wave calorimeter integrating measurement of flow rate and temperature | |
CN210105925U (en) | A mine collapse alarm system | |
CN205228682U (en) | Ultrasonic wave calorimeter based on pressure gauge | |
TWI651517B (en) | Serial ultrasonic water level detection module and water level gauge | |
CN104864938A (en) | Ultrasonic liquid level monitoring human-computer interaction technique | |
CN202102109U (en) | Displacement detection device for piston of oil cylinder and engineering machinery |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140108 |
|
RJ01 | Rejection of invention patent application after publication |