[go: up one dir, main page]

CN201837420U - Device for precisely measuring ultrasonic wave transmission time - Google Patents

Device for precisely measuring ultrasonic wave transmission time Download PDF

Info

Publication number
CN201837420U
CN201837420U CN2010201777876U CN201020177787U CN201837420U CN 201837420 U CN201837420 U CN 201837420U CN 2010201777876 U CN2010201777876 U CN 2010201777876U CN 201020177787 U CN201020177787 U CN 201020177787U CN 201837420 U CN201837420 U CN 201837420U
Authority
CN
China
Prior art keywords
ultrasonic
signal
circuit
ultrasonic transducer
transducer
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.)
Expired - Fee Related
Application number
CN2010201777876U
Other languages
Chinese (zh)
Inventor
张兴红
王先全
陈锡侯
冯济琴
杨继森
万文略
高忠华
刘小康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing University of Technology
Original Assignee
Chongqing University of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Chongqing University of Technology filed Critical Chongqing University of Technology
Priority to CN2010201777876U priority Critical patent/CN201837420U/en
Application granted granted Critical
Publication of CN201837420U publication Critical patent/CN201837420U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Abstract

本实用新型涉及一种用于精密测量超声波传输时间的装置,采用A、B两个超声波换能器、硬件电路和软件细分算法。硬件电路主要包括超声波换能器驱动电路、超声波回波信号滤波电路、放大电路和信号处理电路。信号处理电路有模数转换器、FPGA和CPU。CPU控制FPGA启动超声波换能器驱动电路驱动换能器A发出超声波信号,滤波电路对超声波换能器B接收到的超声波回波信号进行滤波,再放大后,A/D对回波信号进行采样,采样数据先存储在构造于FPGA内的存储区内,采样完成后CPU从FPGA内读取采样数据,采用软件细分算法精确计算出超声波在两个换能器A、B之间的传输时间。本装置由于采用了基于FPGA的硬件电路和特殊的软件细分算法,可以实现纳秒级精度的超声波传输时间的测量,并保证很好的实时性。

The utility model relates to a device for precise measurement of ultrasonic transmission time, which adopts two ultrasonic transducers A and B, a hardware circuit and a software subdivision algorithm. The hardware circuit mainly includes an ultrasonic transducer driving circuit, an ultrasonic echo signal filtering circuit, an amplifying circuit and a signal processing circuit. Signal processing circuits include analog-to-digital converters, FPGAs, and CPUs. The CPU controls the FPGA to start the ultrasonic transducer driving circuit to drive transducer A to send out ultrasonic signals, and the filter circuit filters the ultrasonic echo signals received by ultrasonic transducer B, and after amplification, A/D samples the echo signals , the sampling data is first stored in the storage area constructed in the FPGA. After the sampling is completed, the CPU reads the sampling data from the FPGA, and uses the software subdivision algorithm to accurately calculate the transmission time of the ultrasonic wave between the two transducers A and B. . Due to the adoption of FPGA-based hardware circuit and special software subdivision algorithm, the device can realize the measurement of ultrasonic transmission time with nanosecond precision and ensure good real-time performance.

Description

一种精密测量超声波传输时间的装置 A device for precise measurement of ultrasonic transmission time

技术领域technical field

本实用新型属于精密传感器和检测技术领域,具体涉及一种超声波传输时间的精密测量技术。The utility model belongs to the technical field of precision sensors and detection, in particular to a precision measurement technology of ultrasonic transmission time.

背景技术Background technique

超声波的显著特征是频率高,因而波长短,绕射现象小,方向性好,能够定向传播。在液体,固体中衰减小、穿透能力强,遇到杂质或分界面就会有显著的反射。随着电子技术的发展,超声波技术越来越多的应用于距离、流量等的精密测量。The salient features of ultrasonic waves are high frequency, thus short wavelength, small diffraction phenomenon, good directionality, and directional propagation. In liquids and solids, the attenuation is small and the penetrating ability is strong. When encountering impurities or interfaces, there will be significant reflection. With the development of electronic technology, ultrasonic technology is more and more used in the precise measurement of distance and flow.

超声波在流体中传播时,在顺流方向和逆流方向传输时间的不同,顺、逆流时间差和流速有关,因此可以通过测量超声波在流体中传播时的顺、逆流时间差来测量流量。例如,超声波在洁净水中的传播速度约为1450m/s,在管径D=300mm,流体流速v=1.33m/s的条件下,顺逆流时间差约为1微秒,要保证测量达到0.5%的测量精度,要求测量的时间差的分辨率要达到1~2纳秒才能实现,顺、逆流传播时间的测量分辨率也应该在纳秒,乃至皮秒级。如果用常规的定时计数电路,时钟电路的频率至少要达到1G,这对于仪器开发来讲显然很难实现。When the ultrasonic wave propagates in the fluid, the time difference between the forward flow direction and the reverse flow direction is different. For example, the propagation speed of ultrasonic waves in clean water is about 1450m/s. Under the conditions of pipe diameter D=300mm and fluid velocity v=1.33m/s, the time difference between forward and reverse flow is about 1 microsecond, and the measurement must be guaranteed to reach 0.5%. The measurement accuracy requires that the resolution of the measured time difference should reach 1 to 2 nanoseconds, and the measurement resolution of forward and countercurrent propagation time should also be in nanoseconds, or even picoseconds. If a conventional timing and counting circuit is used, the frequency of the clock circuit must reach at least 1G, which is obviously difficult to achieve in terms of instrument development.

发明内容Contents of the invention

本实用新型针对上述问题,公开了一种精密测量超声波传输时间的方法及装置,采用FPGA电路和软件细分插补算法,可以在保证测量实时性的前提下实现纳秒级,乃至皮秒级测量。Aiming at the above problems, the utility model discloses a method and device for precisely measuring the transmission time of ultrasonic waves. Using FPGA circuit and software subdivision and interpolation algorithm, it can realize nanosecond level or even picosecond level under the premise of ensuring real-time measurement. Measurement.

本实用新型采用的技术方案是:The technical scheme that the utility model adopts is:

本实用新型提出的装置包括超声波换能器A、超声波换能器B、功率放大电路、放大电路、滤波电路、A/D转换电路、D/A转换电路、现场可编程门阵列FPGA和中央处理单元CPU;The device proposed by the utility model includes ultrasonic transducer A, ultrasonic transducer B, power amplifier circuit, amplifier circuit, filter circuit, A/D conversion circuit, D/A conversion circuit, field programmable gate array FPGA and central processing Unit CPU;

所述超声波换能器A与超声波换能器B间隔一定距离相对设置,两个换能器之间存在可以传播超声波的介质;The ultrasonic transducer A is arranged opposite to the ultrasonic transducer B at a certain distance, and there is a medium capable of propagating ultrasonic waves between the two transducers;

所述中央处理单元CPU连接现场可编程门阵列FPGA,控制现场可编程门阵列FPGA输出正弦波驱动信号,现场可编程门阵列FPGA的一路输出连接D/A转换电路,由过D/A转换电路对所述正弦波驱动信号进行转换,D/A转换电路再连接功率放大电路,对信号进行放大,功率放大电路与超声波换能器A连接,将信号输入至所述超声波换能器A,该超声波换能器A将所述该输入信号转换成机械振动产生超声波信号;The central processing unit CPU is connected to a field programmable gate array FPGA to control the field programmable gate array FPGA to output a sine wave drive signal, and one output of the field programmable gate array FPGA is connected to a D/A conversion circuit, and is passed through the D/A conversion circuit The sine wave drive signal is converted, the D/A conversion circuit is connected to the power amplifier circuit to amplify the signal, the power amplifier circuit is connected to the ultrasonic transducer A, and the signal is input to the ultrasonic transducer A, the The ultrasonic transducer A converts the input signal into a mechanical vibration to generate an ultrasonic signal;

所述超声波换能器B接收所述超声波换能器A发出的超声波信号,把机械振动转换为电信号,输出超声波回波信号,并通过与其依次连接的放大电路、滤波电路和A/D转换电路,使所述超声波回波信号依次经放大、滤波和A/D转换后输入至现场可编程门阵列FPGA;The ultrasonic transducer B receives the ultrasonic signal sent by the ultrasonic transducer A, converts the mechanical vibration into an electrical signal, outputs an ultrasonic echo signal, and passes through the amplification circuit, filter circuit and A/D conversion connected in sequence with it. A circuit, so that the ultrasonic echo signal is sequentially amplified, filtered and A/D converted and then input to the Field Programmable Gate Array FPGA;

所述现场可编程门阵列FPGA同时采样输出的正弦波驱动信号和输入的超声波回波信号,并将采样数据存放在内存中;The field programmable gate array FPGA simultaneously samples the output sine wave drive signal and the input ultrasonic echo signal, and stores the sampling data in the memory;

所述中央处理单元CPU从现场可编程门阵列FPGA内存中读取采样数据,根据输出的正弦波驱动信号确定超声波传播时间起点所对应的时刻,根据输入的超声波回波信号,采用通过细分插补算法精确计算出超声波传播时间终点所对应的时刻,进而精确计算超声波在超声波换能器A与超声波换能器B之间的传输时间。The central processing unit CPU reads the sampling data from the field programmable gate array FPGA memory, determines the corresponding moment of the ultrasonic propagation time starting point according to the output sine wave driving signal, and adopts subdivision and interpolation according to the input ultrasonic echo signal. The complementary algorithm accurately calculates the moment corresponding to the end point of the ultrasonic propagation time, and then accurately calculates the transmission time of the ultrasonic wave between the ultrasonic transducer A and the ultrasonic transducer B.

所述换能器A是压电式传感器,可以把具有一定能量的电信号转换为机械振动,当信号的频率在超声波的频率范围内时,换能器A把电信号转换为超声波信号。换能器B也是压电式传感器,把机械振动转换为电信号,当超声波信号作用到超声波换能器B上时,它把超声波信号转换为电信号,该信号可以称之为超声波回波信号。The transducer A is a piezoelectric sensor that can convert electrical signals with certain energy into mechanical vibrations. When the frequency of the signal is within the frequency range of ultrasonic waves, the transducer A converts the electrical signals into ultrasonic signals. Transducer B is also a piezoelectric sensor that converts mechanical vibrations into electrical signals. When the ultrasonic signal is applied to ultrasonic transducer B, it converts the ultrasonic signal into an electrical signal. This signal can be called an ultrasonic echo signal. .

所述超声波换能器驱动电路包括数模转换(D/A)和功率放大电路。D/A转换器用于把FPGA发出的数字正弦信号转换为模拟正弦信号,功率放大电路用于放大该正弦信号的功率,使之有足够的能量驱动超声波换能器A。所述A/D转换器主要用于把超声波回波模拟信号转换为数字信号,A/D转换器的位数和采样频率是影响超声波传输时间测量精度的重要因素。The driving circuit of the ultrasonic transducer includes a digital-to-analog conversion (D/A) and a power amplification circuit. The D/A converter is used to convert the digital sinusoidal signal sent by the FPGA into an analog sinusoidal signal, and the power amplifier circuit is used to amplify the power of the sinusoidal signal so that it has enough energy to drive the ultrasonic transducer A. The A/D converter is mainly used to convert the analog signal of the ultrasonic echo into a digital signal, and the number of digits and the sampling frequency of the A/D converter are important factors affecting the measurement accuracy of the ultrasonic transmission time.

所述FPGA电路主要功能有两个,第一个功能是在CPU的控制下产生数字正弦信号,第二个功能是完成超声波回波信号的采样,并把数据存在构造于FPGA内部的存储区内。There are two main functions of the FPGA circuit, the first function is to generate a digital sine signal under the control of the CPU, and the second function is to complete the sampling of the ultrasonic echo signal, and store the data in the storage area inside the FPGA .

超声波换能器A发射一定数量的周期性正弦超声波信号,该信号在介质中传播到达换能器B后,激励换能器B产生超声波回波信号,回波信号的幅值随着换能器接收到的超声波信号的连续激励而逐渐增大,当激励信号停止时,换能器的机械振动在惯性的作用下仍然会持续并逐渐衰减,回波信号的幅值也逐渐减小,因此超声波回波信号是一个变幅周期性信号,其周期对应于超声波信号的周期。回波信号幅值最大的那个周期对应于换能器A最后发出的那个超声波信号的周期。Ultrasonic transducer A emits a certain amount of periodic sinusoidal ultrasonic signals. After the signal propagates in the medium and reaches transducer B, it excites transducer B to generate an ultrasonic echo signal. The amplitude of the echo signal varies with the transducer The continuous excitation of the received ultrasonic signal increases gradually. When the excitation signal stops, the mechanical vibration of the transducer will continue and gradually attenuate under the action of inertia, and the amplitude of the echo signal will also gradually decrease. Therefore, the ultrasonic The echo signal is a periodic signal with variable amplitude, and its period corresponds to the period of the ultrasonic signal. The period with the maximum amplitude of the echo signal corresponds to the period of the ultrasonic signal sent by the transducer A last.

超声波的传播时间就是换能器A发出的超声波信号上的任意一点与换能器B接收到的回波信号上相对应的那一点之间的时间间隔。超声波传输时间测量的关键是确定传播时间的起点和终点。传播时间的起点可以是换能器A发出的超声波信号上特定所对应的时刻,时间的终点是回波信号上与超声波信号特征点相对应的那一点所对应的时刻。The ultrasonic propagation time is the time interval between any point on the ultrasonic signal sent by transducer A and the corresponding point on the echo signal received by transducer B. The key to ultrasonic transit time measurement is to determine the start and end of transit time. The starting point of the propagation time may be the moment corresponding to a certain point on the ultrasonic signal sent by the transducer A, and the end point of the time is the moment corresponding to the point corresponding to the characteristic point of the ultrasonic signal on the echo signal.

回波信号是一个变幅值周期性信号,其波形中最有特征的波是幅值最大的那个波,可以称之为特征波,特征波对应于超声波信号的最后一个波。在特征波中,最有特征的点是过零点和峰值点,可以选择过零点作为回波信号的特征点。特征点对应的时刻就是传播时间的终点,与之相对应,超声波信号波形中最后那个波的过零点所对应的时刻可以确定为传播时间的起点。The echo signal is a periodic signal with variable amplitude. The most characteristic wave in its waveform is the wave with the largest amplitude, which can be called the characteristic wave. The characteristic wave corresponds to the last wave of the ultrasonic signal. In the characteristic wave, the most characteristic points are the zero-crossing point and the peak point, and the zero-crossing point can be selected as the characteristic point of the echo signal. The moment corresponding to the feature point is the end of the propagation time, and correspondingly, the moment corresponding to the zero-crossing point of the last wave in the ultrasonic signal waveform can be determined as the starting point of the propagation time.

由于超声波信号是FPGA在CPU的控制下产生的,传播时间的起点,也就是超声波信号最后那个波的过零点对应的时刻很容易由CPU精确确定,其精度取决于FPGA的运行频率。Since the ultrasonic signal is generated by the FPGA under the control of the CPU, the starting point of the propagation time, that is, the moment corresponding to the zero-crossing point of the last wave of the ultrasonic signal is easily determined by the CPU, and its accuracy depends on the operating frequency of the FPGA.

传播时间的终点,也就是回波信号特征波中过零点所对应的时刻通过细分插补算法来确定。细分插补算法根据FPGA中存储的超声波回波的A/D采样信号首先确定回波信号中峰值幅值最大的那个周期内的波形;然后确定过零点前后两个采样点(一个比零大,一个比零小)所对应的时刻;最后以过零点前后两个采样点为基准,用拟合的方法对采样点进行细分,确定回波信号过零点所对应的时刻,即超声波传播时间终点所对应的时刻,其精度主要取决于A/D采样的分辨率。The end point of the propagation time, that is, the moment corresponding to the zero-crossing point in the characteristic wave of the echo signal, is determined by a subdivision interpolation algorithm. The subdivision interpolation algorithm first determines the waveform in the cycle with the largest peak amplitude in the echo signal according to the A/D sampling signal of the ultrasonic echo stored in the FPGA; then determines two sampling points before and after the zero crossing point (one is larger than zero , one smaller than zero) corresponds to the moment; finally, based on the two sampling points before and after the zero crossing point, the sampling points are subdivided by the fitting method to determine the time corresponding to the echo signal zero crossing point, that is, the ultrasonic propagation time The accuracy of the moment corresponding to the end point mainly depends on the resolution of A/D sampling.

本实用新型由于采用了基于FPGA的硬件电路和特殊的软件细分算法,可以实现纳秒级精度的超声波传输时间的测量,并保证很好的实时性。本实用新型可广泛的用于采用超声波技术实现流量、距离精密测量等领域。Because the utility model adopts FPGA-based hardware circuit and special software subdivision algorithm, it can realize the measurement of ultrasonic transmission time with nanosecond precision and ensure good real-time performance. The utility model can be widely used in fields such as realizing flow rate and distance precision measurement by adopting ultrasonic technology.

附图说明Description of drawings

图1是一种精密测量超声波传输时间方法的硬件结构框图;Fig. 1 is a hardware structure block diagram of a method for precision measurement of ultrasonic transit time;

图2是加在换能器A上的驱动信号示意图;Fig. 2 is the schematic diagram of the driving signal added on the transducer A;

图3是换能器B上接受到的超声波回波信号示意图;Fig. 3 is a schematic diagram of the ultrasonic echo signal received on the transducer B;

图4是一种精密测量超声波传输时间方法的硬件工作原理示意图;Fig. 4 is a schematic diagram of the hardware working principle of a method for precisely measuring ultrasonic transit time;

图5a-5b是确定超声波传播时间终点所对应时刻的示意图。5a-5b are schematic diagrams for determining the time corresponding to the end point of ultrasonic propagation time.

具体实施方式Detailed ways

下面结合说明书附图对本实用新型的技术方案作进一步详细说明。The technical solution of the utility model will be described in further detail below in conjunction with the accompanying drawings of the description.

参见图1,本方法的硬件电路主要由超声波换能器A 11、换能器B 12,中央处理单元CPU 19,现场可编程门列阵FPGA 18,A/D转换电路17,滤波电路16,放大电路15,功率放大电路14、和D/A转换电路构成。超声波换能器A 11、换能器B 12相隔一定距离置于同一条直线上,两个换能器之间存在可以传播超声波的介质,比如空气,水,钢材等。超声波换能器是压电式传感器。Referring to Fig. 1, the hardware circuit of this method is mainly by ultrasonic transducer A 11, transducer B 12, central processing unit CPU 19, field programmable gate array FPGA 18, A/D conversion circuit 17, filter circuit 16, An amplifier circuit 15, a power amplifier circuit 14, and a D/A conversion circuit are formed. Ultrasonic transducer A 11 and transducer B 12 are placed on the same straight line at a certain distance, and there is a medium that can transmit ultrasonic waves between the two transducers, such as air, water, steel, etc. Ultrasonic transducers are piezoelectric sensors.

参见图2,是超声波换能器A上的驱动信号,它是在FPGA中产生的数字正弦信号经D/A转换电路转换成模拟正弦信号,然后再经功率放大电路放大而成,图中的V代表信号的电压,t代表时间。该信号的频率为1MHz,最大电压约10V,最大电流约1.5A,具有约15瓦的电能,足以驱动超声波换能器A将电能转换为机械能,发出超声波信号。See Figure 2, it is the driving signal on the ultrasonic transducer A, which is a digital sinusoidal signal generated in the FPGA, which is converted into an analog sinusoidal signal by a D/A conversion circuit, and then amplified by a power amplifier circuit. V represents the voltage of the signal, and t represents time. The frequency of this signal is 1MHz, the maximum voltage is about 10V, the maximum current is about 1.5A, and it has about 15 watts of electrical energy, which is enough to drive the ultrasonic transducer A to convert electrical energy into mechanical energy and send out an ultrasonic signal.

参见图3,是在换能器B上输出的超声波回波信号,图中的V代表信号的电压,t代表时间。换能器A发出的超声波信号经过一定的传播时间后传播到换能器B上时,换能器B将超声波信号的机械能转换为电能,输出超声波回波信号。换能器B输出的电信号在超声波没有传播到换能器B上以前,幅值为零,换能器B接收到超声波信号后,输出的电信号幅值逐渐增加,然后逐渐减小衰减至零,是一个变幅周期信号,幅值最大的那个波对应于超声波信号的最后一个波。超声波回波信号的频率取决于超声波信号的频率,也是1MHz。Referring to Fig. 3, it is the ultrasonic echo signal output on the transducer B, V in the figure represents the voltage of the signal, and t represents the time. When the ultrasonic signal from transducer A propagates to transducer B after a certain propagation time, transducer B converts the mechanical energy of the ultrasonic signal into electrical energy and outputs an ultrasonic echo signal. Before the ultrasonic wave propagates to the transducer B, the amplitude of the electrical signal output by transducer B is zero. After the transducer B receives the ultrasonic signal, the amplitude of the output electrical signal increases gradually, and then gradually decreases and attenuates to Zero, is a periodic signal with variable amplitude, and the wave with the largest amplitude corresponds to the last wave of the ultrasonic signal. The frequency of the ultrasonic echo signal depends on the frequency of the ultrasonic signal, which is also 1MHz.

参见图4,CPU19向FPGA18中的同步电路432发出开始采样命令后,FPGA18同时启动对超声波换能器A11的驱动和对超声波换能器B12输出信号的采样。Referring to FIG. 4 , after the CPU 19 sends a start sampling command to the synchronization circuit 432 in the FPGA 18 , the FPGA 18 simultaneously starts driving the ultrasonic transducer A11 and sampling the output signal of the ultrasonic transducer B12 .

构建于FPGA内的数字正弦信号发生器431发送频率为1MHz的8个周期的正弦信号,该信号经过D/A转换电路13转换为模拟信号,再经功率放大电路14放大后,加载在换能器A11上,发出超声波信号。换能器B12输出的电信号经过运算放大电路15放大后,经过滤波电路16滤波后连接到A/D转换电路17。FPGA内部的采样电路433控制A/D转换电路443将模拟信号转换为数字信号,并把采样值逐一存入构建于FPGA内的RAM存储区434中。采样完成后,FPGA430向CPU 19发送采样结束状态信息,CPU19接收到采样结束状态信息后,结束一次采样。The digital sinusoidal signal generator 431 built in the FPGA sends a sinusoidal signal with a frequency of 8 cycles of 1 MHz, which is converted into an analog signal by the D/A conversion circuit 13, and then amplified by the power amplifier circuit 14, and loaded on the transducer On the device A11, an ultrasonic signal is sent out. The electrical signal output by the transducer B12 is amplified by the operational amplifier circuit 15 , filtered by the filter circuit 16 and then connected to the A/D conversion circuit 17 . The sampling circuit 433 inside the FPGA controls the A/D conversion circuit 443 to convert the analog signal into a digital signal, and store the sampled values into the RAM storage area 434 built in the FPGA one by one. After the sampling was completed, the FPGA430 sent the sampling end status information to the CPU 19, and after the CPU 19 received the sampling end status information, it ended a sampling.

采样结束后,CPU19首先根据FPGA内的数字正弦信号发生器431的数据精确确定超声波信号中起点所对应的时刻TQDAfter the sampling is finished, the CPU 19 first accurately determines the time T QD corresponding to the starting point in the ultrasonic signal according to the data of the digital sine signal generator 431 in the FPGA.

然后CPU19发出读数据命令,读取暂存于RAM存储区434中的数据,精确计算超声波传播时间终点所对应的时刻。Then the CPU 19 issues a read data command, reads the data temporarily stored in the RAM storage area 434, and accurately calculates the time corresponding to the end point of the ultrasonic propagation time.

超声波传输时间终点所对应的时刻是通过对回波信号所有采样数据用细分插补算法进行分析和计算而实现的。参见图5a,分析超声波换能器B输出的超声波回波信号可知,为保证测量的重复性,应该在峰值幅值最大的波形中提取超声波传输时间的终点。在这个波形的整周期内,最明显的两个特征点是峰值点和过零点,把过零点确定为回波信号的时间参考点更容易获得高精度。The moment corresponding to the end point of the ultrasonic transmission time is realized by analyzing and calculating all the sampling data of the echo signal with a subdivision and interpolation algorithm. Referring to Fig. 5a, the analysis of the ultrasonic echo signal output by the ultrasonic transducer B shows that in order to ensure the repeatability of the measurement, the end point of the ultrasonic transmission time should be extracted from the waveform with the largest peak amplitude. In the entire cycle of this waveform, the two most obvious characteristic points are the peak point and the zero crossing point. It is easier to obtain high precision by determining the zero crossing point as the time reference point of the echo signal.

参见图5a,本实用新型的超声波传输时间终点所对应的时刻的计算方法是:Referring to Fig. 5a, the calculation method of the moment corresponding to the end point of the ultrasonic transmission time of the present utility model is:

首先逐点比较A/D采样点,找出采样点的最大值就可以很容易的确定幅值最大的波形,可以把这一波形称之为特征值波形;First, compare the A/D sampling points point by point, and find out the maximum value of the sampling point to easily determine the waveform with the largest amplitude. This waveform can be called the eigenvalue waveform;

其次,参加图5b,确定超声波传输时间终点所对应的过零点P0前面一个采样点P和后面一个采样点P+1,显然在特征波内采样点P的采样值大于零,采样点P+1的采样值小于零;Secondly, referring to Figure 5b, determine the zero-crossing point P 0 corresponding to the end point of ultrasonic transmission time. The preceding sampling point P and the following sampling point P+1, obviously, the sampling value of sampling point P in the characteristic wave is greater than zero, and sampling point P+ A sample value of 1 is less than zero;

最后,以采样点P和P+1两点对应的时刻作为基准,用细分插补算法可以准确计算出过零点P0所对应的时刻,具体计算方法如下:Finally, taking the time corresponding to the sampling point P and P+1 as a benchmark, the time corresponding to the zero-crossing point P 0 can be accurately calculated by using the subdivision interpolation algorithm. The specific calculation method is as follows:

设A/D的采样频率为FA/D,相邻两个采样点之间的时间即采样周期为TA/D;从第一个采样点到采样点P之间的采样数为N,采样点P对应的采样值为V1,采样点P所对应的时刻为T1;采样点P+1对应的采样值为V2;采样点P所对应的时刻为T1,采样点P与过零点P0之间的时间为T2,过零点P0对应的时刻为TZD,超声波的传输时间为T,则:Let the sampling frequency of A/D be F A/D , and the time between two adjacent sampling points, that is, the sampling period is T A/D ; the number of samples from the first sampling point to sampling point P is N, The sampling value corresponding to sampling point P is V1, and the time corresponding to sampling point P is T1; the sampling value corresponding to sampling point P+1 is V2; the time corresponding to sampling point P is T1, and the time between sampling point P and zero crossing point P 0 The time between is T2, the moment corresponding to the zero crossing point P 0 is T ZD , and the transmission time of the ultrasonic wave is T, then:

TT AA // DD. == 11 Ff AA // DD.

TT 11 == NN ×× 11 Ff AA // DD.

在过零点附近较小的区域内,正弦波的波形接近于直线,可以根据直线插补的方法确定T2:In a small area near the zero-crossing point, the waveform of the sine wave is close to a straight line, and T2 can be determined according to the method of linear interpolation:

TT 22 == 11 VV 22 -- VV 11 ×× VV 11 ×× TT AA // DD.

则过零点所对应的时刻,即超声波传输时间终点所对应的时刻为:Then the moment corresponding to the zero-crossing point, that is, the moment corresponding to the end of the ultrasonic transmission time is:

T ZD = T 1 + T 2 = N × 1 F A / D + 1 V 2 - V 1 × T / AD × V 1 从上式可知,超声波传输时间终点所对应时刻的分辨率为: T ZD = T 1 + T 2 = N × 1 f A / D. + 1 V 2 - V 1 × T / AD × V 1 It can be seen from the above formula that the resolution of the time corresponding to the end point of ultrasonic transmission time is:

RR == 11 VV 22 -- VV 11 ×× TT // ADAD

参加图5b,假设超声波回波信号的频率为1M,则周期为1us;A/D的分辨率是12位,那么可以将信号的幅值分为4096份,设A/D的采样频率为32MHz,则在正弦波正的最大值到负的最大值的半个周期内,可以最多采16个点,如果把正弦波正的最大值到负的最大值的半个周期内的波形看作是直线,则显然可知:Referring to Figure 5b, assuming that the frequency of the ultrasonic echo signal is 1M, the period is 1us; the resolution of the A/D is 12 bits, then the amplitude of the signal can be divided into 4096 parts, and the sampling frequency of the A/D is 32MHz , then within the half period from the positive maximum value to the negative maximum value of the sine wave, a maximum of 16 points can be collected. If the waveform within the half cycle from the positive maximum value to the negative maximum value of the sine wave is regarded as straight line, it is obvious that:

VV 22 -- VV 11 == 40964096 1616 == 256256

观察正弦波正的最大值到负的最大值的半个周期内的波形可以看出,过零点附近曲线的斜率远大于峰值附近曲线的斜率,则Observing the waveform within half a cycle from the positive maximum value to the negative maximum value of the sine wave, it can be seen that the slope of the curve near the zero crossing point is much larger than the slope of the curve near the peak value, then

V2-V1>256V2-V1>256

RR == 11 VV 22 -- VV 11 &times;&times; TT // ADAD << 11 256256 &times;&times; TT // ADAD == 11 256256 &times;&times; 11 3232 &times;&times; 11 &mu;s&mu;s == 0.1220.122 nsns

参见图5,超声波的传输时间为:Referring to Figure 5, the transit time of ultrasonic waves is:

TT == TT ZDZD -- TT QDQD == NN &times;&times; 11 Ff AA // DD. ++ 11 VV 22 -- VV 11 &times;&times; TT // ADAD &times;&times; VV 11 -- TT QDQD

由于超声波传输时间起点所对应的时刻可以精确确定,则超声波传输时间测量的分辨率取决于超声波传输时间终点所对应时刻的分辨率。则超声波传输时间测量的分辨率小于0.122纳秒,如果采用更高分辨率的A/D转换电路,还可以实现更高分辨率的测量。Since the moment corresponding to the start point of the ultrasonic transmission time can be accurately determined, the resolution of the measurement of the ultrasonic transit time depends on the resolution of the time corresponding to the end point of the ultrasonic transmission time. The resolution of ultrasonic transit time measurement is less than 0.122 nanoseconds, and if a higher resolution A/D conversion circuit is used, higher resolution measurement can also be realized.

Claims (1)

1. the device in a precisely measuring ultrasonic wave transmission time, described device comprises ultrasonic transducer A, ultrasonic transducer B, power amplification circuit, amplifying circuit, filtering circuit, A/D change-over circuit, D/A change-over circuit, on-site programmable gate array FPGA and central processing unit CPU, it is characterized in that:
Described ultrasonic transducer A and ultrasonic transducer B keep at a certain distance away and are oppositely arranged, exist between two transducers can propagate ultrasound waves medium;
Described central processing unit CPU connects on-site programmable gate array FPGA, control on-site programmable gate array FPGA sine wave output drive signal, one tunnel output of on-site programmable gate array FPGA connects the D/A change-over circuit, by the D/A change-over circuit described sine wave drive signal is changed, the D/A change-over circuit connects power amplification circuit again, signal is amplified, power amplification circuit is connected with ultrasonic transducer A, signal is inputed to described ultrasonic transducer A, and this ultrasonic transducer A converts described this input signal to mechanical vibration and produces ultrasonic signal;
Described ultrasonic transducer B receives the ultrasonic signal that described ultrasonic transducer A sends, mechanical vibration are converted to electric signal, the output ultrasonic wave echoed signal, and by with its amplifying circuit that is connected successively, filtering circuit and A/D change-over circuit, make described ultrasonic echo signal after amplification, filtering and A/D conversion, input to on-site programmable gate array FPGA successively;
Described on-site programmable gate array FPGA sample simultaneously the sine wave drive signal of output and the ultrasonic echo signal of input, and sampled data left in the internal memory.
CN2010201777876U 2010-04-30 2010-04-30 Device for precisely measuring ultrasonic wave transmission time Expired - Fee Related CN201837420U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010201777876U CN201837420U (en) 2010-04-30 2010-04-30 Device for precisely measuring ultrasonic wave transmission time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010201777876U CN201837420U (en) 2010-04-30 2010-04-30 Device for precisely measuring ultrasonic wave transmission time

Publications (1)

Publication Number Publication Date
CN201837420U true CN201837420U (en) 2011-05-18

Family

ID=44007531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010201777876U Expired - Fee Related CN201837420U (en) 2010-04-30 2010-04-30 Device for precisely measuring ultrasonic wave transmission time

Country Status (1)

Country Link
CN (1) CN201837420U (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101813515A (en) * 2010-04-30 2010-08-25 重庆理工大学 Method and device for precisely measuring ultrasonic wave transmission time
CN102944288A (en) * 2012-11-05 2013-02-27 中环天仪股份有限公司 Ultrasonic liquid level meter with multi-range adaptive function
CN105606170A (en) * 2015-12-31 2016-05-25 浙江威星智能仪表股份有限公司 Ultrasonic gas metering device with self-learning template and metering method of device
CN106643937A (en) * 2016-12-28 2017-05-10 重庆多邦科技股份有限公司 Flow measuring method and device based on ultrasonic flowmeter
CN106643930A (en) * 2015-08-10 2017-05-10 杭州思筑智能设备有限公司 Improved ultrasonic flowmeter
CN108645465A (en) * 2018-05-10 2018-10-12 四川理工学院 A kind of flowmeter based on engineering mechanics
CN110542460A (en) * 2019-09-03 2019-12-06 西安安森智能仪器股份有限公司 multi-channel ultrasonic flowmeter transducer driving circuit and control method thereof
CN113124948A (en) * 2021-05-20 2021-07-16 中国计量大学 High-precision time difference measuring method based on FPGA and cross-correlation method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101813515A (en) * 2010-04-30 2010-08-25 重庆理工大学 Method and device for precisely measuring ultrasonic wave transmission time
CN102944288A (en) * 2012-11-05 2013-02-27 中环天仪股份有限公司 Ultrasonic liquid level meter with multi-range adaptive function
CN102944288B (en) * 2012-11-05 2014-07-30 中环天仪股份有限公司 Ultrasonic liquid level meter with multi-range adaptive function
CN106643930A (en) * 2015-08-10 2017-05-10 杭州思筑智能设备有限公司 Improved ultrasonic flowmeter
CN106643930B (en) * 2015-08-10 2019-03-19 杭州思筑智能设备有限公司 A kind of improved ultrasonic flowmeter
CN105606170A (en) * 2015-12-31 2016-05-25 浙江威星智能仪表股份有限公司 Ultrasonic gas metering device with self-learning template and metering method of device
CN105606170B (en) * 2015-12-31 2019-02-12 浙江威星智能仪表股份有限公司 A kind of ultrasonic gas metering device and method with self study template
CN106643937A (en) * 2016-12-28 2017-05-10 重庆多邦科技股份有限公司 Flow measuring method and device based on ultrasonic flowmeter
CN108645465A (en) * 2018-05-10 2018-10-12 四川理工学院 A kind of flowmeter based on engineering mechanics
CN110542460A (en) * 2019-09-03 2019-12-06 西安安森智能仪器股份有限公司 multi-channel ultrasonic flowmeter transducer driving circuit and control method thereof
CN110542460B (en) * 2019-09-03 2021-07-27 西安安森智能仪器股份有限公司 Multi-channel ultrasonic flowmeter transducer driving circuit and control method thereof
CN113124948A (en) * 2021-05-20 2021-07-16 中国计量大学 High-precision time difference measuring method based on FPGA and cross-correlation method

Similar Documents

Publication Publication Date Title
CN201837420U (en) Device for precisely measuring ultrasonic wave transmission time
CN101813528B (en) Method for precisely measuring temperature by using ultrasonic technology and measuring instrument
CN101464171B (en) A method of ultrasonic flow detection
CN101813515B (en) Method and device for precisely measuring ultrasonic wave transmission time
CN201145594Y (en) An ultrasonic flow detection device
CN103344288B (en) A kind of transit-time ultrasonic flow meter measuring method analyzed based on zero point
CN109579950B (en) An error-proof wave detection device for a gas ultrasonic flowmeter
CN105066918A (en) Ultrasonic underwater target thickness measuring system and thickness measuring method
CN100565241C (en) Ultrasonic Echo Frontier Detection Method Based on Modulation Domain Measurement
CN105890685B (en) A kind of device for measuring ultrasonic wave flow based on accumulated phase difference
CN106871980A (en) The excitation of gas ultrasonic flowmeter batch (-type) and signal processing method and system based on adjacent peak maximum difference
CN107290564A (en) A kind of ultrasonic flow-velocity measuring method based on phase difference
CN209745322U (en) multi-parameter measuring instrument for fluid
CN201637503U (en) Reflection Ultrasonic Thermometer
CN201637504U (en) A High Sensitivity Ultrasonic Thermometer
CN1167953C (en) Ultrasonic liquid-flow measuring device
CN110987102A (en) A kind of high anti-interference and high precision gas ultrasonic flowmeter and its measurement method
CN104535140B (en) The resonant frequency method of testing of ultrasonic flowmeter transducer
CN114254253B (en) Lightweight implementation method of cross-correlation algorithm in ultrasonic flow measurement
CN103162752A (en) Detection device and method for phase encoding synchronous time difference of ultrasonic flowmeter
CN116735072A (en) Temperature flow measurement compensation method and system for ultrasonic measurement pipeline liquid pressure
CN203069223U (en) Synchronous phase code time difference detection device for ultrasonic flowmeter
CN103499386B (en) A kind of method and apparatus of precision measurement frequency
CN203758642U (en) High precision and wide measuring range split type multiple sound track supersonic wave thermometer
CN202101788U (en) Ultrasonic thermometer based on FPGA

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110518

Termination date: 20130430