CN117213570A - Flow measurement equipment and method based on CMUT device - Google Patents
Flow measurement equipment and method based on CMUT device Download PDFInfo
- Publication number
- CN117213570A CN117213570A CN202311189019.0A CN202311189019A CN117213570A CN 117213570 A CN117213570 A CN 117213570A CN 202311189019 A CN202311189019 A CN 202311189019A CN 117213570 A CN117213570 A CN 117213570A
- Authority
- CN
- China
- Prior art keywords
- flow measurement
- signal
- module
- ultrasonic
- flow
- 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
- 238000005259 measurement Methods 0.000 title claims abstract description 57
- 238000000034 method Methods 0.000 title claims abstract description 28
- 239000012530 fluid Substances 0.000 claims abstract description 25
- 239000000523 sample Substances 0.000 claims abstract description 23
- 238000001514 detection method Methods 0.000 claims abstract description 12
- XUIMIQQOPSSXEZ-UHFFFAOYSA-N Silicon Chemical compound [Si] XUIMIQQOPSSXEZ-UHFFFAOYSA-N 0.000 claims abstract description 4
- 229910052710 silicon Inorganic materials 0.000 claims abstract description 4
- 239000010703 silicon Substances 0.000 claims abstract description 4
- 239000000758 substrate Substances 0.000 claims abstract description 4
- 230000032258 transport Effects 0.000 claims abstract description 4
- 238000012545 processing Methods 0.000 claims description 29
- 230000003750 conditioning effect Effects 0.000 claims description 16
- 238000011144 upstream manufacturing Methods 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 claims description 9
- 238000000691 measurement method Methods 0.000 claims description 9
- 230000008569 process Effects 0.000 claims description 9
- 230000009466 transformation Effects 0.000 claims description 6
- 230000001143 conditioned effect Effects 0.000 claims description 3
- 230000008054 signal transmission Effects 0.000 claims description 3
- 238000012937 correction Methods 0.000 claims description 2
- 238000005516 engineering process Methods 0.000 abstract description 11
- 238000005070 sampling Methods 0.000 description 18
- 230000006870 function Effects 0.000 description 15
- 238000006243 chemical reaction Methods 0.000 description 14
- 238000004364 calculation method Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 12
- 230000005284 excitation Effects 0.000 description 12
- 239000003990 capacitor Substances 0.000 description 8
- 238000001914 filtration Methods 0.000 description 7
- 230000008901 benefit Effects 0.000 description 5
- 238000013461 design Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 5
- 230000035945 sensitivity Effects 0.000 description 4
- 101100434411 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) ADH1 gene Proteins 0.000 description 3
- 230000009471 action Effects 0.000 description 3
- 101150102866 adc1 gene Proteins 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 101001068136 Homo sapiens Hepatitis A virus cellular receptor 1 Proteins 0.000 description 2
- 101000831286 Homo sapiens Protein timeless homolog Proteins 0.000 description 2
- 101000752245 Homo sapiens Rho guanine nucleotide exchange factor 5 Proteins 0.000 description 2
- 102100021688 Rho guanine nucleotide exchange factor 5 Human genes 0.000 description 2
- 101710176296 Switch 2 Proteins 0.000 description 2
- 101150074789 Timd2 gene Proteins 0.000 description 2
- 230000003321 amplification Effects 0.000 description 2
- 238000013480 data collection Methods 0.000 description 2
- 238000009776 industrial production Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 239000007788 liquid Substances 0.000 description 2
- 238000003199 nucleic acid amplification method Methods 0.000 description 2
- 238000007789 sealing Methods 0.000 description 2
- 239000006096 absorbing agent Substances 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000001174 ascending effect Effects 0.000 description 1
- 230000000739 chaotic effect Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000009413 insulation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000035939 shock Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000002604 ultrasonography Methods 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Landscapes
- Measuring Volume Flow (AREA)
Abstract
本发明公开了一种基于CMUT器件的流量测量设备及方法,涉及流量测量技术领域,其结构包括沿第一方向输送介质的流体传导部件,所述流体传导部件包括至少二处流量测量点,不同所述流量测量点位于第一方向的不同位置,所述流量测量点位置处布置有传感器系统,所述传感器系统包括超声波探头模块,超声波探头模块由上电极﹑振动薄膜﹑绝缘层、硅衬底和下电极依次层叠组成,所述绝缘层靠近所述上电极一侧开设有第一腔体,相比于现有技术,本发明中的流量检测设备结构相对简单,且所使用的方法灵敏度更高。
The invention discloses a flow measurement device and method based on a CMUT device, which relates to the technical field of flow measurement. Its structure includes a fluid conduction component that transports media along a first direction. The fluid conduction component includes at least two flow measurement points, with different flow measurement points. The flow measurement points are located at different positions in the first direction, and a sensor system is arranged at the position of the flow measurement point. The sensor system includes an ultrasonic probe module. The ultrasonic probe module consists of an upper electrode, a vibrating film, an insulating layer, and a silicon substrate. It is composed of a lower electrode stacked in sequence, and a first cavity is opened on the side of the insulating layer close to the upper electrode. Compared with the existing technology, the structure of the flow detection device in the present invention is relatively simple, and the method used is more sensitive. high.
Description
技术领域Technical field
本发明涉及流量测量技术领域,尤其涉及到一种基于CMUT器件的流量测量设备及方法。The present invention relates to the technical field of flow measurement, and in particular to a flow measurement equipment and method based on a CMUT device.
背景技术Background technique
随着我国工业社会的快速发展和经济技术的不断腾飞,各行各业逐步引入高精度、高安全性、高可靠性以及智能化和数字化的自动化仪器仪表设备,为我国工业生产和经济效益的提升奠定了重要基础。流量测量作为工程领域的重要技术,流量也是工业生产过程的重要参数,在统计结算、平衡分析、能源量观察、利用和监控等诸多方面都有着不可忽视的重要价值。所以流量计作为测量流体流速及流量的仪器设备,在石油化工、灾难预警、民用测量仪表等领域得到了广泛运用,在确保产品质量、提高生产效率、促进科学科技发展方面发挥了重要作用。With the rapid development of my country's industrial society and the continuous development of economy and technology, various industries have gradually introduced high-precision, high-security, high-reliability, intelligent and digital automated instrumentation and equipment to improve my country's industrial production and economic benefits. An important foundation was laid. As an important technology in the engineering field, flow measurement is also an important parameter in the industrial production process. It has important value that cannot be ignored in many aspects such as statistical settlement, balance analysis, energy observation, utilization and monitoring. Therefore, flowmeters, as instruments and equipment for measuring fluid flow velocity and flow, have been widely used in petrochemical industry, disaster warning, civil measuring instruments and other fields, and have played an important role in ensuring product quality, improving production efficiency, and promoting the development of science and technology.
超声波流量计作为新型流量计,相较于传统流量计有以无压损、无机械部件、非接触式、精度高、智能化的优点。与国外同类产品相比,国产的超声波流量计价格便宜,但在测量精度、安装环境适用性以及结果可靠性等方面都有着一定的差距。超声换能器是超声检测技术的关键部件,目前基于压电式原理的超声换能器被广泛使用。但压电式超声换能器有带宽窄、灵敏度低发等缺点,存在发展瓶颈。As a new type of flow meter, ultrasonic flow meters have the advantages of no pressure loss, no mechanical parts, non-contact, high precision, and intelligence compared to traditional flow meters. Compared with similar foreign products, domestic ultrasonic flowmeters are cheaper, but there are certain gaps in measurement accuracy, installation environment applicability, and result reliability. Ultrasonic transducers are key components of ultrasonic detection technology. Ultrasonic transducers based on the piezoelectric principle are currently widely used. However, piezoelectric ultrasonic transducers have shortcomings such as narrow bandwidth and low sensitivity, and there are development bottlenecks.
发明内容Contents of the invention
本发明的目的在于克服现有技术的不足,提供了一种基于CMUT器件的流量测量设备及方法,相比于现有技术,本发明中的流量检测设备结构相对简单,且所使用的方法灵敏度更高。The purpose of the present invention is to overcome the shortcomings of the existing technology and provide a flow measurement device and method based on a CMUT device. Compared with the existing technology, the structure of the flow detection device in the present invention is relatively simple, and the method used is sensitive. higher.
本发明是通过以下技术方案实现的:本发明公开一种基于CMUT器件的流量测量设备,包括沿第一方向输送介质的流体传导部件,所述流体传导部件包括至少二处流量测量点,不同所述流量测量点位于第一方向的不同位置,所述流量测量点位置处布置有传感器系统,所述传感器系统包括超声波探头模块,超声波探头模块由上电极﹑振动薄膜﹑绝缘层、硅衬底和下电极依次层叠组成,所述绝缘层靠近所述上电极一侧开设有第一腔体。The present invention is realized through the following technical solutions: The present invention discloses a flow measurement device based on a CMUT device, which includes a fluid conduction component that transports media along a first direction. The fluid conduction component includes at least two flow measurement points, with different flow measurement points. The flow measurement points are located at different positions in the first direction, and a sensor system is arranged at the position of the flow measurement point. The sensor system includes an ultrasonic probe module. The ultrasonic probe module consists of an upper electrode, a vibrating film, an insulating layer, a silicon substrate and a The lower electrodes are stacked in sequence, and a first cavity is opened on the side of the insulation layer close to the upper electrode.
优选地,所述传感器系统还包括:Preferably, the sensor system further includes:
电源模块,所述电源模块对直流电进行升降压以及反向变压,满足传感器系统各个模块的电源要求;A power module, which performs step-up, step-down and reverse voltage transformation of DC power to meet the power requirements of each module of the sensor system;
CMUT驱动模块,所述CMUT驱动模块接收控制信号,发射和接受第一声波;CMUT drive module, the CMUT drive module receives the control signal, emits and receives the first sound wave;
所述超声波探头模块接收到的第二声波,将第二声波输送至信号调理模块;The second sound wave received by the ultrasonic probe module transmits the second sound wave to the signal conditioning module;
信号调理模块,所述信号调理模块对第二声波进行信号处理,得到调理信号;A signal conditioning module, which performs signal processing on the second acoustic wave to obtain a conditioned signal;
控制与数据处理模块,所述控制与处理信号处理模块处理调理信号;Control and data processing module, the control and processing signal processing module processes the conditioning signal;
其中,所述控制与数据处理模块包括互相关算法模块、计时模块和控制器模块。Wherein, the control and data processing module includes a cross-correlation algorithm module, a timing module and a controller module.
本申请还公开一种基于超声换能器的流量测量方法,对流量测量设备进行执行,所述测量方法包括步骤:This application also discloses a flow measurement method based on an ultrasonic transducer, which is executed on a flow measurement device. The measurement method includes the steps:
读取解析限制配置信息,产生PWM方波控制模拟开关,产生所需的驱动方波;Read the parsing limit configuration information, generate a PWM square wave to control the analog switch, and generate the required driving square wave;
发送驱动方波作用于传感器系统,完成超声信号发射;Send a driving square wave to act on the sensor system to complete the ultrasonic signal transmission;
对传感器系统接收到的信号进行ADC采集,由DMA传输后并滤波;The signals received by the sensor system are collected by ADC, transmitted and filtered by DMA;
收到一对超声信号后,对2个信号进行插值和互相关运算,计算飞行时间差;After receiving a pair of ultrasonic signals, interpolation and cross-correlation operations are performed on the two signals to calculate the time of flight difference;
当达到测量周期后,对所有得到的数据进行处理,计算流速和体积流量;When the measurement period is reached, all the obtained data are processed to calculate the flow rate and volumetric flow rate;
一段时间延时后,系统再次开始测量,完成流量测量。After a delay, the system starts measuring again and completes the flow measurement.
优选地,发送驱动方波包括步骤:Preferably, sending the driving square wave includes the steps:
进行定时器级联设置,通过定时器产生PWM脉冲信号;Perform timer cascade settings and generate PWM pulse signals through the timer;
PWM脉冲作为模拟开关的控制端;PWM pulse serves as the control end of the analog switch;
模拟开关的NO和NC端分别接0V和24V电压;The NO and NC terminals of the analog switch are connected to 0V and 24V voltages respectively;
通过COM端产生指定数量的24V至0V驱动方波;Generate a specified number of 24V to 0V driving square waves through the COM terminal;
24V至0V的驱动方波通过模拟开关作用于传感器系统,完成驱动方波发送。The driving square wave from 24V to 0V acts on the sensor system through the analog switch to complete the driving square wave transmission.
本发明公开了一种基于CMUT器件的流量测量设备及方法及方法,与现有技术相比:The invention discloses a flow measurement equipment and method based on a CMUT device. Compared with the existing technology:
本发明超声波探头模块实现流量的精确测量,基于超声波探头模块在发射模式时开关闭合,振动薄膜在直流偏置电压和交流激励电压的作用下产生振动,从而导致声场中介质振动,实现电信号到声波信号的转换;CMUT工作在接收模式时开关断开,直流偏置电压使电容器充满电荷,超声波信号作用在振动薄膜上使其振动,导致在振动薄膜表面的电极也发生振动,引起电容器电荷的变化从而产生电流,实现声波信号到电信号的转换术,本发明通过CMUT传感器进行流量测量,实现了小型化、低成本,提升了仪表的一致性水平。此外,CMUT传感器本身的激励方法和传统的压电超声不同,电路设计上也有一定区别。传统方法是正弦波激励,而CMUT传感器需要在正弦和方波激励上加上直流电压的偏置,因此本发明的CMUT驱动模块需要产生PWM方波控制模拟开关,完成驱动方波的发送。总之,本发明旨在提供一种基于CMUT传感器的流量测量方法和装置,具有精度高、稳定性好、可靠性高等优点,在流量检测领域具有广泛的应用前景。The ultrasonic probe module of the present invention realizes accurate measurement of flow. Based on the fact that the switch of the ultrasonic probe module is closed in the transmitting mode, the vibrating film vibrates under the action of DC bias voltage and AC excitation voltage, thereby causing the medium in the sound field to vibrate and realizing the arrival of electrical signals. Conversion of acoustic wave signals; when the CMUT works in the receiving mode, the switch is turned off, the DC bias voltage fills the capacitor with charge, and the ultrasonic signal acts on the vibrating film to vibrate, causing the electrodes on the surface of the vibrating film to also vibrate, causing the charge of the capacitor to change. The change generates current and realizes the conversion technology of acoustic signal to electrical signal. The present invention measures flow through CMUT sensor, achieves miniaturization and low cost, and improves the consistency level of the instrument. In addition, the excitation method of the CMUT sensor itself is different from that of traditional piezoelectric ultrasound, and there are also certain differences in circuit design. The traditional method is sine wave excitation, but the CMUT sensor needs to add a DC voltage bias to the sine and square wave excitation. Therefore, the CMUT drive module of the present invention needs to generate a PWM square wave to control the analog switch to complete the transmission of the driving square wave. In short, the present invention aims to provide a flow measurement method and device based on a CMUT sensor, which has the advantages of high accuracy, good stability, and high reliability, and has broad application prospects in the field of flow detection.
附图说明Description of the drawings
图1为本发明中流量测量设备的结构示意图;Figure 1 is a schematic structural diagram of the flow measurement device in the present invention;
图2为一实施例中超声波探头模块的结构示意图;Figure 2 is a schematic structural diagram of an ultrasonic probe module in an embodiment;
图3为一实施例中管壁和超声波探头模块布局示意图;Figure 3 is a schematic diagram of the layout of the pipe wall and ultrasonic probe module in one embodiment;
图4为一实施例中驱动模块电路图;Figure 4 is a circuit diagram of a driving module in an embodiment;
图5为一实施例中信号调理电路图;Figure 5 is a signal conditioning circuit diagram in an embodiment;
图6为一实施例中系统设计思路框图;Figure 6 is a block diagram of system design ideas in an embodiment;
图7为一实施例中系统软件控制流程;Figure 7 is a system software control flow in an embodiment;
图8为一实施例中信号波形图;Figure 8 is a signal waveform diagram in an embodiment;
图9为一实施例中信号插值后信号波形图;Figure 9 is a signal waveform diagram after signal interpolation in an embodiment;
图10为一实施例中飞行时间计算原理图。Figure 10 is a schematic diagram of flight time calculation in an embodiment.
具体实施方式Detailed ways
下面对本发明的实施例作详细说明,本实施例在以本发明技术方案为前提下进行实施,给出了详细的实施方式和具体的操作过程,但本发明的保护范围不限于下述的实施例。The following is a detailed description of the embodiments of the present invention. This embodiment is implemented based on the technical solution of the present invention and provides detailed implementation modes and specific operating processes. However, the protection scope of the present invention is not limited to the following implementations. example.
如图1所示,本发明是通过以下技术方案实现的:本发明公开一种基于CMUT器件的流量测量设备,包括沿第一方向输送介质的流体传导部件1,所述流体传导部件1包括至少二处流量测量点,不同所述流量测量点位于第一方向的不同位置,所述流量测量点位置处布置有传感器系统2,如图2所示,所述传感器系统2包括超声波探头模块,超声波探头模块由上电极26﹑振动薄膜25﹑绝缘层23、硅衬底22和下电极21依次层叠组成,所述绝缘层23靠近所述上电极26一侧开设有第一腔体24。As shown in Figure 1, the present invention is implemented through the following technical solutions: The present invention discloses a flow measurement device based on a CMUT device, including a fluid conduction component 1 that transports media along a first direction. The fluid conduction component 1 includes at least There are two flow measurement points. The different flow measurement points are located at different positions in the first direction. A sensor system 2 is arranged at the position of the flow measurement point. As shown in Figure 2, the sensor system 2 includes an ultrasonic probe module. The probe module is composed of an upper electrode 26, a vibrating film 25, an insulating layer 23, a silicon substrate 22 and a lower electrode 21 stacked in sequence. The insulating layer 23 has a first cavity 24 on a side close to the upper electrode 26.
根据超声波探头模块工作时激励信号的不同,其工作模式可分为发射模式和接收模式,超声波探头模块为CMUT(Capacitive micromachined ultrasonic transducers),CMUT工作在发射模式时开关闭合,振动薄膜在直流偏置电压和交流激励电压的作用下产生振动,从而导致声场中介质振动,实现电信号到声波信号的转换;CMUT工作在接收模式时开关断开,直流偏置电压使电容器充满电荷,超声波信号作用在振动薄膜上使其振动,导致在振动薄膜表面的电极也发生振动,引起电容器电荷的变化从而产生电流,实现声波信号到电信号的转换。其中,本发明中的CMUT传感器用于流量检测的MEMS(微机电系统)传感器。它是一种非接触式的传感器,采用电容式微机械减震器识别流体的流速,以及湍流、压力,从而使测量精度提高,使产品小型化,费用低廉。CMUT传感器激励方法比压电超声激励具有更高的频率调制度。它将低频和高频放在一个信号中,在被激励振荡时,它将具有较大的发射能量,从而可以有效检测到微小的流体变化。CMUT激励电路设计对比传统的正弦和方波激励加入直流电压偏置,使得被激励振荡增加电压偏置,进而使超声波发射有更大的能量,从而提高流量的检测准确性,对于CMUT传感器的工作原理是基于超声波的反射原理。当CMUT传感器发射超声波时,它会产生一定的幅度和频率的振动。这些振动会向前传导并触发被测物体表面的反射回来的超声波。传感器接收反射的超声波,并将其转换为电信号。然后,电信号被处理并解析,以确定被测物体的距离、速度、形态等参数,本发明中的CMUT传感器具有许多优点,如灵敏、精确、易于制造和集成、体积小、功耗低且成本较低。According to the different excitation signals when the ultrasonic probe module works, its working mode can be divided into transmitting mode and receiving mode. The ultrasonic probe module is CMUT (Capacitive micromachined ultrasonic transducers). When the CMUT works in the transmitting mode, the switch is closed and the vibrating film is biased in DC. Vibration is generated under the action of voltage and AC excitation voltage, which causes the vibration of the medium in the sound field and realizes the conversion of electrical signals to acoustic signals; when the CMUT works in the receiving mode, the switch is turned off, the DC bias voltage fills the capacitor with charge, and the ultrasonic signal acts on The vibrating film vibrates, causing the electrodes on the surface of the vibrating film to also vibrate, causing changes in the charge of the capacitor to generate current, thereby converting acoustic signals into electrical signals. Among them, the CMUT sensor in the present invention is used as a MEMS (micro-electromechanical system) sensor for flow detection. It is a non-contact sensor that uses capacitive micro-mechanical shock absorbers to identify the flow rate, turbulence and pressure of the fluid, thereby improving the measurement accuracy, miniaturizing the product and making the cost low. The CMUT sensor excitation method has a higher degree of frequency modulation than piezoelectric ultrasonic excitation. It puts low frequency and high frequency in one signal, and when it is excited to oscillate, it will have larger emission energy, so that small fluid changes can be effectively detected. Compared with the traditional sine and square wave excitation, the CMUT excitation circuit design adds a DC voltage bias, so that the excited oscillation increases the voltage bias, which in turn makes the ultrasonic emission have greater energy, thereby improving the flow detection accuracy. For the work of the CMUT sensor The principle is based on the reflection principle of ultrasonic waves. When the CMUT sensor emits ultrasonic waves, it produces vibrations of a certain amplitude and frequency. These vibrations are transmitted forward and trigger ultrasonic waves that are reflected back from the surface of the object being measured. The sensor receives the reflected ultrasonic waves and converts them into electrical signals. Then, the electrical signal is processed and analyzed to determine the distance, speed, shape and other parameters of the measured object. The CMUT sensor in the present invention has many advantages, such as sensitivity, accuracy, easy manufacturing and integration, small size, low power consumption and Lower cost.
基于CMUT的超声波流量计采用时差法作为测量的基本原理,当超声波束在流体中传播时,由于超声波速和流体流速在速度场上的叠加,导致超声波束在相同的距离内顺着流体流动方向传播与逆着流体流动方向传播所用的时间长度不一样,顺流时时间短,逆流时时间长。时差法超声波流量计正是通过测量超声波束顺流和逆流时的时间差从而计算出流体的瞬时流动速度。The CMUT-based ultrasonic flowmeter uses the transit time method as the basic principle of measurement. When the ultrasonic beam propagates in the fluid, due to the superposition of the ultrasonic speed and the fluid flow speed in the velocity field, the ultrasonic beam follows the fluid flow direction within the same distance. The length of time it takes to propagate is different from that of propagation against the direction of fluid flow. It takes a shorter time to propagate with the flow and a longer time to propagate against the flow. The transit-time ultrasonic flowmeter calculates the instantaneous flow velocity of the fluid by measuring the time difference between the downstream and counterflow of the ultrasonic beam.
举例而言,如图3所示,在管壁的上游和下游安装了两个超声波探头模块来轮流发射和接受超声波脉冲信号,声道长度为L,管径为D,声道角为0°。可以得到以下公式:For example, as shown in Figure 3, two ultrasonic probe modules are installed upstream and downstream of the pipe wall to take turns transmitting and receiving ultrasonic pulse signals. The channel length is L, the pipe diameter is D, and the channel angle is 0°. . The following formula can be obtained:
其中Q为瞬时流量,v为流体在声道线上的平均速度,Δt为飞行时间差,t1、t2分别代表上下有飞行时间,k为流量修正系数。上述计算方式不会再与超声波传播速度c相关联,可以避免超声波流量测量精度受到被测液体温度变化的影响。Among them, Q is the instantaneous flow rate, v is the average velocity of the fluid on the vocal tract line, Δt is the flight time difference, t 1 and t 2 represent the flight time up and down respectively, and k is the flow correction coefficient. The above calculation method is no longer associated with the ultrasonic propagation speed c, which can avoid the ultrasonic flow measurement accuracy being affected by changes in the temperature of the liquid being measured.
对于本发明中的CMUT器件,CMUT器件相对于传统的压电超声波传感器具有更多的优点,首先,CMUT器件的频率响应范围更广,这是因为CMUT器件的结构和工作原理与传统的压电超声波传感器不同。CMUT器件是一种基于微机电系统(MEMS)技术制造的超声波传感器,它是由一组微小的电容器组成的,当电容器受到外部的超声波信号时,会产生微小的振动,从而将超声波信号转换为电信号。由于CMUT器件的结构和工作原理不同于传统的压电超声波传感器,因此它可以在更高的频率范围内工作,可以实现更高的分辨率和灵敏度。其次,CMUT器件具有更高的能量转换效率。传统的压电超声波传感器是通过压电效应将机械能转换为电能,因此其能量转换效率较低。而CMUT器件是通过电容变化将机械能转换为电能,因此其能量转换效率更高,可以实现更高的信噪比和检测灵敏度。第三,CMUT器件具有更小的尺寸和重量。由于CMUT器件是基于微机电系统(MEMS)技术制造的,因此可以在微米级别上制造,具有更小的尺寸和重量,可以方便地集成到各种设备中。第四,CMUT器件具有更低的功耗。由于CMUT器件的能量转换效率更高,因此其功耗比传统的压电超声波传感器更低,可以实现更长的电池寿命和更低的能耗。第五,CMUT器件具有更高的可靠性和稳定性。由于CMUT器件的制造过程比传统的压电超声波传感器更加精密和可控,因此可以实现更高的可靠性和稳定性。For the CMUT device in the present invention, the CMUT device has more advantages than the traditional piezoelectric ultrasonic sensor. First, the frequency response range of the CMUT device is wider. This is because the structure and working principle of the CMUT device are different from those of traditional piezoelectric ultrasonic sensors. Ultrasonic sensors are different. The CMUT device is an ultrasonic sensor based on microelectromechanical systems (MEMS) technology. It is composed of a set of tiny capacitors. When the capacitor is exposed to an external ultrasonic signal, it will produce tiny vibrations, thereby converting the ultrasonic signal into electric signal. Since the structure and working principle of the CMUT device are different from traditional piezoelectric ultrasonic sensors, it can operate in a higher frequency range and achieve higher resolution and sensitivity. Secondly, CMUT devices have higher energy conversion efficiency. Traditional piezoelectric ultrasonic sensors convert mechanical energy into electrical energy through the piezoelectric effect, so their energy conversion efficiency is low. The CMUT device converts mechanical energy into electrical energy through capacitance changes, so its energy conversion efficiency is higher and it can achieve higher signal-to-noise ratio and detection sensitivity. Third, CMUT devices have smaller size and weight. Since CMUT devices are manufactured based on microelectromechanical systems (MEMS) technology, they can be manufactured at the micron level, have smaller size and weight, and can be easily integrated into various devices. Fourth, CMUT devices have lower power consumption. Because the energy conversion efficiency of CMUT devices is higher, its power consumption is lower than traditional piezoelectric ultrasonic sensors, which can achieve longer battery life and lower energy consumption. Fifth, CMUT devices have higher reliability and stability. Because the manufacturing process of CMUT devices is more precise and controllable than traditional piezoelectric ultrasonic sensors, higher reliability and stability can be achieved.
一实施例中,管道的管径使用小管径,超声换能器采用口型安装方式。将一对超声换能器分别放置在管道的两端,换能器与流体直接接触,使用密封圈来保证管道与换能器之间的密封性,实物安装图1所示;In one embodiment, the pipe diameter is small, and the ultrasonic transducer is installed in a mouth shape. Place a pair of ultrasonic transducers at both ends of the pipeline. The transducers are in direct contact with the fluid. Use sealing rings to ensure the sealing between the pipeline and the transducers. The actual installation is shown in Figure 1;
其中,如图2所示,所述传感器系统2还包括:电源模块,所述电源模块对直流电进行升降压以及反向变压,满足传感器系统2各个模块的电源要求;CMUT驱动模块,所述CMUT驱动模块接收控制信号,发射和接受第一声波;所述超声波探头模块接收到的第二声波,将第二声波输送至信号调理模块;信号调理模块,所述信号调理模块对第二声波进行信号处理,得到调理信号;控制与数据处理模块,所述控制与处理信号处理模块处理调理信号;其中,所述控制与数据处理模块包括互相关算法模块、计时模块和控制器模块。Among them, as shown in Figure 2, the sensor system 2 also includes: a power module, which performs step-up, step-down and reverse voltage transformation of DC power to meet the power requirements of each module of the sensor system 2; a CMUT drive module, so The CMUT drive module receives the control signal, transmits and receives the first sound wave; the second sound wave received by the ultrasonic probe module transmits the second sound wave to the signal conditioning module; the signal conditioning module, the signal conditioning module controls the second sound wave. The sound wave performs signal processing to obtain a conditioning signal; a control and data processing module processes the conditioning signal; wherein the control and data processing module includes a cross-correlation algorithm module, a timing module and a controller module.
一实施例中系统采用模块化的设计理念,如图6所示,将系统整体分为四大模块。每个模块都有分工职能,由核心控制器完成信息的收集和处理,系统结构如下图所示。其中电源模块对直流电进行升降压以及反向变压等操作,满足系统各个模块的电源要求;CMUT驱动模块在激励脉冲信号的控制下,完成声波的发射与接收。超声波探头接收到的声波会在信号调理模块中进行信号转换、滤波等操作;经过调理的信号进入控制与数据处理模块中,由其中的互相关算法模块进行互相关运算,得出信号匹配度最大点,计时模块停止计时,完成超声波渡越时间测量;单片机读出时间信息,单片机记录并计算渡越时间差值,然后进行液体流量计算,并在屏幕中显示。In one embodiment, the system adopts a modular design concept. As shown in Figure 6, the system is divided into four major modules. Each module has division of labor functions, and the core controller completes the collection and processing of information. The system structure is shown in the figure below. The power module performs operations such as step-up, step-down and reverse transformation of DC power to meet the power requirements of each module of the system; the CMUT drive module completes the transmission and reception of sound waves under the control of the excitation pulse signal. The sound waves received by the ultrasonic probe will undergo signal conversion, filtering and other operations in the signal conditioning module; the conditioned signal enters the control and data processing module, where the cross-correlation algorithm module performs cross-correlation operations to obtain the maximum signal matching. point, the timing module stops timing and completes the ultrasonic transit time measurement; the microcontroller reads the time information, the microcontroller records and calculates the transit time difference, and then calculates the liquid flow rate and displays it on the screen.
具体而言,检测系统使用的核心控制芯片为STM32F407ZGT6微控制器,使用的CMUT超声探头的中心频率为1MHz,该芯片的配置强大,内部资源丰富,集成了FPU和DSP指令,并具有192KB SRAM、1024KB FLASH、12个16位定时器、2个32位定时器、2个DMA控制器、3个SPI、3个IIC、6个串口、3个12位ADC等等,能够满足系统的功能要求。Specifically, the core control chip used in the detection system is the STM32F407ZGT6 microcontroller, and the center frequency of the CMUT ultrasonic probe used is 1MHz. The chip has a powerful configuration, rich internal resources, integrates FPU and DSP instructions, and has 192KB SRAM, 1024KB FLASH, 12 16-bit timers, 2 32-bit timers, 2 DMA controllers, 3 SPIs, 3 IICs, 6 serial ports, 3 12-bit ADCs, etc., which can meet the functional requirements of the system.
对于电源模块对直流电进行升、降压以及反向变压等操作,具体要实现的供电需求有:单片机供电电源3.3V、CMUT的驱动电压24V和信号调理电路供电电压±2.5V;CMUT的驱动方波为一定数量的方波,低电平为0V,高电平为24V。使用2个模拟开关产生2组驱动方波,使用2个模拟开关来切换2组信号的收发模式,模拟开关型号为MAX4649EKA,该模拟开关能够承受最大电压为44V,能够满足使用要求。如图4所示,模拟开关的控制信号皆由单片机产生,U1或U2在未得到单片机产生驱动信号的命令时,模拟开关输出高电平,让超声换能器处于24V的直流偏置电压下,反之则输出方波信号。U4和U5负责对超声探头发射/接收超声信号进行切换,使用单片机控制Switch1和Switch2的高低电平实现,当Switch1或Switch2为低电平时,对应的超声探头处于发射状态,反之则处于接收状态,CMUT驱动模块的电路图如图4所示,对于信号调理模块,使用GS8092芯片为核心的放大电路,将接收到超声信号进行放大等操作,使信号能够满足单片机的处理要求。反向放大器电路,放大倍数为10k/100=100倍,信号调理电路图如图5所示。For the power module to perform operations such as boosting, bucking, and reverse transformation of DC power, the specific power supply requirements to be realized are: 3.3V power supply for the microcontroller, 24V driving voltage for the CMUT, and ±2.5V supply voltage for the signal conditioning circuit; CMUT driving A square wave is a certain number of square waves, with a low level of 0V and a high level of 24V. Use 2 analog switches to generate 2 sets of driving square waves, and use 2 analog switches to switch the sending and receiving modes of the 2 sets of signals. The analog switch model is MAX4649EKA. The analog switch can withstand a maximum voltage of 44V, which can meet the usage requirements. As shown in Figure 4, the control signals of the analog switches are all generated by the microcontroller. When U1 or U2 does not receive the command from the microcontroller to generate a drive signal, the analog switch outputs a high level, so that the ultrasonic transducer is under a DC bias voltage of 24V. , otherwise it will output a square wave signal. U4 and U5 are responsible for switching the ultrasonic probe's transmission/reception of ultrasonic signals. They are implemented by using a microcontroller to control the high and low levels of Switch1 and Switch2. When Switch1 or Switch2 is low level, the corresponding ultrasonic probe is in the transmitting state, and vice versa. The circuit diagram of the CMUT driver module is shown in Figure 4. For the signal conditioning module, the GS8092 chip is used as the core amplification circuit to amplify the received ultrasonic signal so that the signal can meet the processing requirements of the microcontroller. The reverse amplifier circuit has an amplification factor of 10k/100 = 100 times. The signal conditioning circuit diagram is shown in Figure 5.
控制与数据处理模块Control and data processing module
使用单片机STM32F407实现控制与运算,STM32F407带有能够进行信号处理的DSP库,能够快速的完成数字信号的滤波、插值和傅里叶变换等操作。单片机需要计算的量包括飞行时间、飞行时间差、流体流速、体积流量等,并完成相关信息在屏幕上的显示功能。The control and operation are realized using the microcontroller STM32F407. The STM32F407 has a DSP library capable of signal processing, which can quickly complete operations such as filtering, interpolation and Fourier transform of digital signals. The quantities that the microcontroller needs to calculate include flight time, flight time difference, fluid flow rate, volume flow, etc., and complete the display function of relevant information on the screen.
一实施例中,为了使超声波流量测量系统满足功能要求,不仅需要合理的硬件基础,还要有能够对信号数据进行实时处理的软件控制系统。由于超声波流量测量系统所选用的核心控制器是STM32F407单片机,因此软件控制系统也是此硬件平台设计的。系统软件使用C语言开发,开发环境为Keil uVision5,软件基于ARM所提供的库函数。In one embodiment, in order for the ultrasonic flow measurement system to meet the functional requirements, not only a reasonable hardware foundation is required, but also a software control system capable of processing signal data in real time. Since the core controller selected for the ultrasonic flow measurement system is the STM32F407 microcontroller, the software control system is also designed on this hardware platform. The system software is developed using C language, the development environment is Keil uVision5, and the software is based on the library functions provided by ARM.
对测量系统所要实现的功能进行分析,为提高程序设计效率,提高程序的运行的可靠性,采用模块化的设计理念,将系统软件分为为主程序模块、驱动脉冲发送模块、信号采集与处理模块、人机交互模块。主控模块是对程序进行初始化配置,包括系统时钟配置、定时器配置、I/O引脚配置、中断配置、初始化系统参数等操作;驱动模块实现驱动脉冲的配置和收发模式转换;信号采集与处理模块主要完成对信号的采集、传输、滤波、运算和存储等功能;人机交互模块实现按键和显示等交互功能,如表格一所示。Analyze the functions to be realized by the measurement system. In order to improve the efficiency of program design and the reliability of program operation, the modular design concept is adopted and the system software is divided into main program module, drive pulse sending module, signal acquisition and processing module, human-computer interaction module. The main control module initializes and configures the program, including system clock configuration, timer configuration, I/O pin configuration, interrupt configuration, initialization of system parameters and other operations; the driver module implements the configuration of drive pulses and conversion of transceiver modes; signal acquisition and The processing module mainly completes functions such as signal collection, transmission, filtering, calculation and storage; the human-computer interaction module implements interactive functions such as buttons and display, as shown in Table 1.
表格一Form 1
本申请还公开一种基于超声换能器的流量测量方法,对流量测量设备进行执行,所述测量方法包括步骤:This application also discloses a flow measurement method based on an ultrasonic transducer, which is executed on a flow measurement device. The measurement method includes the steps:
读取解析限制配置信息,产生PWM方波控制模拟开关,产生所需的驱动方波;Read the parsing limit configuration information, generate a PWM square wave to control the analog switch, and generate the required driving square wave;
发送驱动方波作用于传感器系统2,完成超声信号发射;Send a driving square wave to act on the sensor system 2 to complete the ultrasonic signal transmission;
对传感器系统2接收到的信号进行ADC采集,由DMA传输后并滤波;The signals received by the sensor system 2 are collected by ADC, transmitted by DMA and filtered;
收到一对超声信号后,对2个信号进行插值和互相关运算,计算飞行时间差;After receiving a pair of ultrasonic signals, interpolation and cross-correlation operations are performed on the two signals to calculate the time of flight difference;
当达到测量周期后,对所有得到的数据进行处理,计算流速和体积流量;When the measurement period is reached, all the obtained data are processed to calculate the flow rate and volumetric flow rate;
一段时间延时后,系统再次开始测量,完成流量测量。After a delay, the system starts measuring again and completes the flow measurement.
一实施例中,系统软件控制流程如图7所示,系统开始运行时,首先进行初始化操作,软件程序命令单片机读取解析限制配置信息,例如脉冲数量、测量周期等。然后开始进行测量,由定时器产生PWM方波控制模拟开关,从而产生所需的驱动方波,驱动方波作用于超声换能器,已完成单侧的超声信号发射;再对另一端超声换能器接收到的信号进行ADC采集,由DMA传输后并滤波;收到一对超声信号后,对2个信号进行插值和互相关运算,可求得飞行时间差,用阈值比较法可求得单侧的飞行时间;当达到测量周期后,对所有得到的数据进行处理,计算流速和体积流量,并将计算结果显示在屏幕上。一段时间延时后,系统再次开始测量,最后将测量结果在屏幕上刷新。In one embodiment, the system software control flow is shown in Figure 7. When the system starts running, it first performs an initialization operation. The software program instructs the microcontroller to read and parse limit configuration information, such as the number of pulses, measurement period, etc. Then start the measurement, and the timer generates a PWM square wave to control the analog switch, thereby generating the required driving square wave. The driving square wave acts on the ultrasonic transducer, and the ultrasonic signal emission on one side has been completed; then the ultrasonic transducer on the other end is The signal received by the transducer is collected by ADC, transmitted and filtered by DMA; after receiving a pair of ultrasonic signals, interpolation and cross-correlation operations are performed on the two signals to obtain the flight time difference, and the threshold comparison method can be used to obtain the single side flight time; when the measurement period is reached, all the obtained data are processed, the flow rate and volume flow rate are calculated, and the calculation results are displayed on the screen. After a delay, the system starts measuring again, and finally refreshes the measurement results on the screen.
对于对单片机进行定时器级联的设置,配置高级定时器TIM1为主触发模式,利用TIM1产生1MHz的PWM脉冲;配置通用TIM2为从触发模式,通过TIM2进行设定脉冲数量,这样就能精准控制脉冲的频率和数量。PWM脉冲输出的通道为CH1,对应的引脚为PA11。产生的脉冲作为模拟开关的控制端,而模拟开关的NO和NC端分别接的是0V和24V,因此在COM端能产生指定数量的24V~0V驱动方波,此驱动方波通过控制收发模式的模拟开关作用于超声换能器,就能完成超声波的发射。For the timer cascade setting of the microcontroller, configure the advanced timer TIM1 as the master trigger mode, and use TIM1 to generate a 1MHz PWM pulse; configure the general TIM2 as the slave trigger mode, and set the number of pulses through TIM2, so that precise control can be achieved frequency and number of pulses. The channel of PWM pulse output is CH1, and the corresponding pin is PA11. The generated pulse serves as the control end of the analog switch, and the NO and NC ends of the analog switch are connected to 0V and 24V respectively. Therefore, a specified number of 24V ~ 0V driving square waves can be generated at the COM end. This driving square wave controls the transceiver mode. The analog switch acts on the ultrasonic transducer to complete the emission of ultrasonic waves.
超声波信号原始数据的采集使用STM32F407内置的高速ADC来实现,由于所采集的超声波信号频率为1MHz,根据采样定理可知ADC采样频率至少为2MHz。为了方便对数字信号的处理和提高测量的精度,需要提高在单个信号周期内的采样点数。如1MHz信号在2MHz采样频率采集下,单个信号周期可以采集到2个数据点;而在7MHz采样频率采集下,则单个信号周期可采集7个数据点,采集结果更加接近真实的信号波形。本文采用STM32F407单片机内的3个ADC对超声波信号进行交替采集,采样频率最大可达7.2MHz。当STM32F407的ADC时钟为36MHz,ADC的采集周期为3个ADC时钟周期时,单个ADC的采样频率达到最大值2.4MHz。因此要保证ADC的采样频率为2.4MHZ,首先要对单片机的系统时钟和ADC时钟进行配置。The original data of the ultrasonic signal is collected using the high-speed ADC built into the STM32F407. Since the frequency of the ultrasonic signal collected is 1MHz, according to the sampling theorem, the ADC sampling frequency is at least 2MHz. In order to facilitate the processing of digital signals and improve the accuracy of measurement, the number of sampling points within a single signal cycle needs to be increased. For example, if a 1MHz signal is collected at a sampling frequency of 2MHz, 2 data points can be collected in a single signal cycle; while in a sampling frequency of 7MHz, 7 data points can be collected in a single signal cycle, and the collection results are closer to the real signal waveform. This article uses three ADCs in the STM32F407 microcontroller to alternately collect ultrasonic signals, with a maximum sampling frequency of 7.2MHz. When the ADC clock of STM32F407 is 36MHz and the ADC acquisition cycle is 3 ADC clock cycles, the sampling frequency of a single ADC reaches the maximum value of 2.4MHz. Therefore, to ensure that the sampling frequency of the ADC is 2.4MHZ, the system clock and ADC clock of the microcontroller must first be configured.
首先配置单片机系统时钟为144MHz,进行2分频后得到APB2时钟为72MHz,再进行2分频后得到ADC时钟为36MHz。而ADC一次完整的采集包括采样阶段和数据转换阶段,设置采样阶段为3个ADC时钟周期,转换阶段为12个ADC时钟周期,一共需要15个ADC时钟周期。因此单个ADC的采样频率f为:First, configure the microcontroller system clock to 144MHz. After dividing by 2, the APB2 clock is 72MHz. After dividing by 2, the ADC clock is 36MHz. A complete ADC acquisition includes a sampling phase and a data conversion phase. The sampling phase is set to 3 ADC clock cycles, and the conversion phase is 12 ADC clock cycles. A total of 15 ADC clock cycles are required. Therefore, the sampling frequency f of a single ADC is:
在配置三重ADC交替采集模式后,ADC采样频率达到7.2MHz,对1MHz超声波信号的单个周期内能采集到7~8个点,满足系统的采样要求。After configuring the triple ADC alternate acquisition mode, the ADC sampling frequency reaches 7.2MHz, and 7 to 8 points can be collected in a single cycle of the 1MHz ultrasonic signal, meeting the sampling requirements of the system.
其中,发送驱动方波包括步骤:Among them, sending a driving square wave includes the steps:
步骤一:进行定时器级联设置,通过定时器产生PWM脉冲信号;Step 1: Perform timer cascade settings and generate PWM pulse signals through the timer;
步骤二:PWM脉冲作为模拟开关的控制端;Step 2: PWM pulse serves as the control end of the analog switch;
步骤三:模拟开关的NO和NC端分别接0V和24V电压;Step 3: Connect the NO and NC terminals of the analog switch to 0V and 24V respectively;
步骤四:通过COM端产生指定数量的24V至0V驱动方波;Step 4: Generate a specified number of 24V to 0V driving square waves through the COM terminal;
步骤五:24V至0V的驱动方波通过模拟开关作用于传感器系统2,完成驱动方波发送。Step 5: The driving square wave from 24V to 0V acts on the sensor system 2 through the analog switch to complete the driving square wave transmission.
对于数据处理与计算For data processing and calculations
数据处理主要是为了求得上游飞行时间tup、下游飞行时间tdn、飞行时间差Δt等三个重要参数,以及间接计算流体的流速、瞬时流量。主要步骤包括信号滤波、样条插值、飞行时间计算、互相关运算、流速和流量计算。The data processing is mainly to obtain three important parameters such as the upstream flight time t up , the downstream flight time t dn , and the flight time difference Δt, and to indirectly calculate the flow rate and instantaneous flow rate of the fluid. The main steps include signal filtering, spline interpolation, time-of-flight calculation, cross-correlation operation, flow velocity and flow calculation.
(1)信号滤波(1) Signal filtering
在实际中使用单片机对信号进行采样,并使用匿名上位机软件对采集的数据进行实时显示,从图8左边的图像中可以看到,信号波形较乱,存在较大干扰。对采集到的接收信号进行波形分析,可以发现1MHz主频的幅值不突出,所以为方便锁定目标信号的波形,在进行数据处理之前需要对原始的采集信号进行带通滤波。使用STM32F407自带的DSP库,设置滤波参数中的截止频率为0.95MHz和1.05MHz,利用MATLAB软件生成滤波的参数,调用滤波函数arm_fir_f32_bp对原始数据进行滤波,滤波之后的接收信号更有利于进行数据处理。图8中右边图像为单片机进行软件滤波后的信号,滤波之后的信号幅值最大为700mV。In practice, a microcontroller is used to sample the signal, and anonymous host computer software is used to display the collected data in real time. As can be seen from the image on the left side of Figure 8, the signal waveform is chaotic and there is great interference. By analyzing the waveform of the collected received signal, it can be found that the amplitude of the 1MHz main frequency is not prominent. Therefore, in order to conveniently lock the waveform of the target signal, the original collected signal needs to be band-pass filtered before data processing. Use the DSP library that comes with STM32F407, set the cutoff frequencies in the filter parameters to 0.95MHz and 1.05MHz, use MATLAB software to generate filter parameters, and call the filter function arm_fir_f32_bp to filter the original data. The filtered received signal is more conducive to data processing. deal with. The image on the right in Figure 8 is the signal after software filtering by the microcontroller. The maximum signal amplitude after filtering is 700mV.
(2)三次样条插值(2) Cubic spline interpolation
从滤波之后的信号可以看到,信号的大部分干扰已经消除,一个信号约有10个波,中共有200个数据采集点,采集点之间的时间间隔为0.1389us。为方便后续对信号的处理,采用三次样条插值对200个数据点进行插值,使数据点数量增加到1024。具体方法是使用STM32F407自带的DSP库,先调用函数arm_spline_init_f32对样条函数进行初始化,再调用函数arm_spline_f32进行样条函数计算。由于插值后数据点个数约为原来的5倍,那么插值后的信号数据点之间的时间间隔约为原来的1/5。信号插值后信号波形图如图9所示。It can be seen from the filtered signal that most of the interference of the signal has been eliminated. There are about 10 waves in a signal, and there are 200 data collection points in total. The time interval between collection points is 0.1389us. In order to facilitate subsequent signal processing, cubic spline interpolation is used to interpolate 200 data points, increasing the number of data points to 1024. The specific method is to use the DSP library that comes with STM32F407, first call the function arm_spline_init_f32 to initialize the spline function, and then call the function arm_spline_f32 to calculate the spline function. Since the number of data points after interpolation is approximately 5 times the original, the time interval between signal data points after interpolation is approximately 1/5 of the original. The signal waveform diagram after signal interpolation is shown in Figure 9.
本申请文件通过判断ADC所采集数据是否过零点来计算上游飞行时间tfly。This application document calculates the upstream flight time t fly by judging whether the data collected by the ADC crosses zero.
对于飞行时间的计算,在图10中,t0表示信号发送时刻;t1表示ADC开始采样时刻,t2表示回波信号第二个波到达时刻。为了减少干扰信号对原始采集信号的影响,使信号采集过程更加稳定,所以要使ADC开始采样的时刻尽可能接近回波信号首波到达的时刻。根据飞行时间的计算公式,可以推算出静态时(即流体流速为零)的飞行时间t,如式4.1所示,由此可以估算出ADC1开始工作的时刻。For the calculation of flight time, in Figure 10, t0 represents the signal sending time; t1 represents the ADC starting sampling time, and t2 represents the arrival time of the second wave of the echo signal. In order to reduce the impact of interference signals on the original acquisition signal and make the signal acquisition process more stable, the time when the ADC starts sampling should be as close as possible to the time when the first wave of the echo signal arrives. According to the calculation formula of flight time, the flight time t at static state (that is, the fluid flow rate is zero) can be calculated, as shown in Equation 4.1, from which the time when ADC1 starts working can be estimated.
根据上式可知,上游飞行时间tup小于流速为零时的飞行时间t,因此启动ADC1采样的时刻t应比回波信号首波到达时刻提前3us-5us。当确定ADC1采样时刻t1后,利用定时器从时刻t0开始定时,当定时时间到,即可从t1时刻开始三重ADC交替采样,所采集数据由DMA传输至内存,从而进行数据处理。在数据采集的过程中,得到原始信号各采集点的电压,进而当发现连续两点电压为负且之后连续两点电压为正,则程序认为出现由负到正的过零点,且过零点一定位于两个极性相反的相邻采集点之间。在此相邻两点之间,进一步采用三次样条插值进行拟合,即可获得回波信号由负到正的过零点。根据图10可知,由于首波之前信号为零,因此所采集数据不会出现由负到正的变化,程序所判断出的由负到正过零点,必然对应的是第二个波由负到正的过零点。在图10中,回波信号第二个波的到达时刻为t2。由于回波信号频率为1MHz,因此每个波形周期为1us,由此可计算出飞行时间:According to the above formula, it can be seen that the upstream flight time t up is less than the flight time t when the flow rate is zero, so the time t when starting ADC1 sampling should be 3us-5us earlier than the arrival time of the first wave of the echo signal. After the ADC1 sampling time t 1 is determined, a timer is used to start timing from time t0. When the timing time is up, triple ADC alternate sampling can be started from time t1, and the collected data is transferred to the memory by DMA for data processing. In the process of data collection, the voltage of each collection point of the original signal is obtained. When it is found that the voltage of two consecutive points is negative and then the voltage of two consecutive points is positive, the program considers that there is a zero-crossing point from negative to positive, and the zero-crossing point Must be located between two adjacent collection points with opposite polarity. Between these two adjacent points, cubic spline interpolation is further used for fitting, and the zero-crossing point of the echo signal from negative to positive can be obtained. According to Figure 10, it can be seen that since the signal before the first wave is zero, the collected data will not change from negative to positive. The zero crossing point from negative to positive judged by the program must correspond to the second wave from negative to positive. Positive zero crossing. In Figure 10, the arrival time of the second wave of the echo signal is t2. Since the echo signal frequency is 1MHz, each waveform period is 1us, from which the flight time can be calculated:
tfly=t2-t1-1t fly =t 2 -t 1 -1
按照此方法可以算出上游飞行时间tup和下游飞行时间tdn。由于飞行时间差对计算结果影响很大,所以使用互相关算法来精确计算飞行时间差。According to this method, the upstream flight time t up and the downstream flight time t dn can be calculated. Since the flight time difference has a great influence on the calculation results, the cross-correlation algorithm is used to accurately calculate the flight time difference.
(4)飞行时间差计算(4)Flight time difference calculation
当求得上游、下游飞行时间后,为了精确求取飞行时间差,对两组滤波信号数据使用离散互相关算法。首先将上游与下游对应的两组滤波信号进行FFT变换,将时域信号转换到频域;再将下游滤波频域信号取共轭,其结果与上游滤波频域信号做乘积运算,就得到了离散互相函数的频域输出;再使用IFFT将离散互相函数的频域输出转换成时域输出。为了更加精确计算结果,在计算出离散互相关函数后,使用三次样条插值方法对最大值点附近区域进行插值,求取真实的最大值点所对应的横坐标,即为飞行时间差。After obtaining the upstream and downstream flight times, in order to accurately obtain the flight time difference, the discrete cross-correlation algorithm is used for the two sets of filtered signal data. First, perform FFT transformation on the two sets of filtered signals corresponding to the upstream and downstream to convert the time domain signal into the frequency domain; then conjugate the downstream filtered frequency domain signal, and multiply the result with the upstream filtered frequency domain signal to get The frequency domain output of the discrete mutual function; then use IFFT to convert the frequency domain output of the discrete mutual function into a time domain output. In order to calculate the results more accurately, after calculating the discrete cross-correlation function, the cubic spline interpolation method is used to interpolate the area near the maximum point, and the abscissa corresponding to the true maximum point is obtained, which is the time of flight difference.
(5)流速、流量计算(5) Calculation of flow rate and flow rate
由于飞行时间差微小偏差对计算结果的影响较大,所以为了减小测量误差,本申请文件中一次测量周期中包含对飞行时间差的多次测量。将多次测量的结果由小到大排序存放在数组中,去除数值元素中的最大值和最小值,求得剩余数组元素的标准偏差,然后将数组中对标准偏差影响较大的元素去除,对剩余数组元素求平均值,即为一个测量周期内的平均飞行时间差Δt。同理将一个测量周期内的平均上游飞行时间tup和平均下游飞行时间tdn求出,算出流体平均流速v和瞬时流量Q。Since the small deviation of the flight time difference has a great impact on the calculation results, in order to reduce the measurement error, one measurement cycle in this application document includes multiple measurements of the flight time difference. Store the results of multiple measurements in an array in ascending order, remove the maximum and minimum values from the numerical elements, find the standard deviation of the remaining array elements, and then remove the elements in the array that have a greater impact on the standard deviation. The remaining array elements are averaged, which is the average flight time difference Δt within a measurement period. In the same way, the average upstream flight time t up and the average downstream flight time t dn within a measurement period are calculated, and the average flow velocity v and instantaneous flow rate Q of the fluid are calculated.
综上,对于本发明超声波探头模块实现流量的精确测量,基于超声波探头模块在发射模式时开关闭合,振动薄膜在直流偏置电压和交流激励电压的作用下产生振动,从而导致声场中介质振动,实现电信号到声波信号的转换;CMUT工作在接收模式时开关断开,直流偏置电压使电容器充满电荷,超声波信号作用在振动薄膜上使其振动,导致在振动薄膜表面的电极也发生振动,引起电容器电荷的变化从而产生电流,实现声波信号到电信号的转换术。In summary, for the ultrasonic probe module of the present invention to achieve accurate flow measurement, based on the fact that the switch of the ultrasonic probe module is closed in the transmitting mode, the vibrating film vibrates under the action of DC bias voltage and AC excitation voltage, thereby causing the medium in the sound field to vibrate. Realize the conversion of electrical signals to acoustic signals; when the CMUT works in the receiving mode, the switch is turned off, the DC bias voltage fills the capacitor with charge, and the ultrasonic signal acts on the vibrating film to vibrate, causing the electrodes on the surface of the vibrating film to also vibrate. Causes changes in the charge of the capacitor to generate current, realizing the conversion of acoustic signals into electrical signals.
以上,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,根据本发明的技术方案及其发明构思加以等同替换或改变,都应涵盖在本发明的保护范围之内。The above are only preferred specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can, within the technical scope disclosed in the present invention, use the technical solutions of the present invention and its Equivalent substitutions or changes of the inventive concept shall be included in the protection scope of the present invention.
需要要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or sequence between them. Furthermore, the terms "comprises," "comprises," or any other variations thereof are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also those not expressly listed other elements, or elements inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311189019.0A CN117213570A (en) | 2023-09-15 | 2023-09-15 | Flow measurement equipment and method based on CMUT device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311189019.0A CN117213570A (en) | 2023-09-15 | 2023-09-15 | Flow measurement equipment and method based on CMUT device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117213570A true CN117213570A (en) | 2023-12-12 |
Family
ID=89047569
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311189019.0A Pending CN117213570A (en) | 2023-09-15 | 2023-09-15 | Flow measurement equipment and method based on CMUT device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117213570A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118817829A (en) * | 2024-09-18 | 2024-10-22 | 西安交通大学 | A tea polyphenols concentration measurement device and method based on CMUT |
-
2023
- 2023-09-15 CN CN202311189019.0A patent/CN117213570A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118817829A (en) * | 2024-09-18 | 2024-10-22 | 西安交通大学 | A tea polyphenols concentration measurement device and method based on CMUT |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109579950B (en) | An error-proof wave detection device for a gas ultrasonic flowmeter | |
CN105333911A (en) | Low-power-consumption middle-low-pressure gas ultrasonic flow measuring circuit | |
CN201837420U (en) | Device for precisely measuring ultrasonic wave transmission time | |
CN101813528B (en) | Method for precisely measuring temperature by using ultrasonic technology and measuring instrument | |
CN106153173B (en) | Method and device for measuring sound velocity in water | |
CN209745322U (en) | multi-parameter measuring instrument for fluid | |
Zhu et al. | Non-contact ultrasonic flow measurement for small pipes based on AlN piezoelectric micromachined ultrasonic transducer arrays | |
CN113916719A (en) | Fluid density and flow rate online synchronous detection system and detection method | |
CN113340363A (en) | High-precision wide-range ultrasonic flow measurement device and measurement method | |
CN117213570A (en) | Flow measurement equipment and method based on CMUT device | |
CN104535140B (en) | The resonant frequency method of testing of ultrasonic flowmeter transducer | |
CN116990543A (en) | Multichannel ultrasonic speed measuring device and speed measuring method | |
CN114001804A (en) | Calibration method and system of ultrasonic metering device based on time difference method | |
CN201637503U (en) | Reflection Ultrasonic Thermometer | |
CN101813515B (en) | Method and device for precisely measuring ultrasonic wave transmission time | |
CN116295149A (en) | Pipeline bubble size measurement system based on time difference type ultrasonic flowmeter | |
CN214583449U (en) | A high-precision and wide-range ultrasonic flow measurement device | |
CN104897219A (en) | High-accuracy low-power consumption ultrasonic flowmeter | |
CN203758642U (en) | High precision and wide measuring range split type multiple sound track supersonic wave thermometer | |
CN201637504U (en) | A High Sensitivity Ultrasonic Thermometer | |
CN207742153U (en) | A kind of ultrasonic wave methane concentration detection device with time-to-digital converter chip | |
Chandran et al. | Time of flight measurement system for an ultrasonic anemometer | |
CN202101788U (en) | Ultrasonic thermometer based on FPGA | |
CN208968601U (en) | Multichannel ultrasonoscope measuring device | |
CN207036218U (en) | Ultrasonic level gage |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |