CN112179428A - Ultrasonic water meter measurement model based on line-correlation algorithm - Google Patents

Ultrasonic water meter measurement model based on line-correlation algorithm Download PDF

Info

Publication number
CN112179428A
CN112179428A CN202010968317.XA CN202010968317A CN112179428A CN 112179428 A CN112179428 A CN 112179428A CN 202010968317 A CN202010968317 A CN 202010968317A CN 112179428 A CN112179428 A CN 112179428A
Authority
CN
China
Prior art keywords
water meter
temperature
ultrasonic
time
measurement model
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
Application number
CN202010968317.XA
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.)
Jinan Richens Electronic Co ltd
Original Assignee
Jinan Richens Electronic Co ltd
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 Jinan Richens Electronic Co ltd filed Critical Jinan Richens Electronic Co ltd
Priority to CN202010968317.XA priority Critical patent/CN112179428A/en
Publication of CN112179428A publication Critical patent/CN112179428A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F1/00Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow
    • G01F1/66Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by measuring frequency, phase shift or propagation time of electromagnetic or other waves, e.g. using ultrasonic flowmeters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F15/00Details of, or accessories for, apparatus of groups G01F1/00 - G01F13/00 insofar as such details or appliances are not adapted to particular types of such apparatus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Fluid Mechanics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Measuring Volume Flow (AREA)

Abstract

The invention relates to the technical field of water meter measurement, in particular to an ultrasonic water meter measurement model based on a line-correlation algorithm. The invention has the beneficial effects that: the influence of temperature on ultrasonic measurement is greatly reduced, the measurement time can be saved, the hardware cost is saved, the production process flow is reduced, and the production efficiency and the measurement precision are improved.

Description

Ultrasonic water meter measurement model based on line-correlation algorithm
Technical Field
The invention relates to the technical field of water meter measurement, in particular to an ultrasonic water meter measurement model based on a line-correlation algorithm.
Background
In the prior art, most of ultrasonic water meters use a zero-crossing comparison method for measurement, temperature has great influence on the zero-crossing comparison method, and if the shielding time is set unreasonably, a wave error phenomenon is easily generated.
Therefore, the invention provides a line-correlation algorithm for calculating the time difference according to the phase difference, and the influence of the temperature on the ultrasonic measurement is greatly reduced.
Disclosure of Invention
The invention provides an ultrasonic water meter measurement model based on a line-correlation algorithm in order to make up the defect that the ultrasonic water meter measurement in the prior art is greatly influenced by temperature.
The invention is realized by the following technical scheme:
an ultrasonic water meter measurement model based on a line-correlation algorithm is characterized by comprising the following steps:
s1, detecting the propagation time of the ultrasonic wave in the base meter pipe section through a high-speed ADC in the time measuring module, and calculating the current temperature of the fluid through one-way time;
s2, measuring a relation formula of the fitting temperature and the ultrasonic wave sound wave transmission time through an oscilloscope;
s3, compensating USS _ ACOUSTIC _ LENGTH by using a relational formula to shield clutter in the period from sending to receiving to obtain accurate propagation time;
s4, calculating the volume flowing through the round tube in unit time by using a line-correlation algorithm;
and S5, carrying out interpolation calculation on the temperature and the flow rate, and integrating to obtain an accurate accumulated flow rate.
Further, in order to better implement the present invention, the time measurement module is an sdhs (sigma Delta High Speed adc) module in the MSP430FR 6047.
Further, in order to better implement the present invention, in S1, specifically, the waveform of the ultrasonic wave detected by the high-speed ADC in the SDHS module is input into the DTC module to obtain the flight time of the ultrasonic wave, and the temperature of the current fluid in the circular tube is obtained by calling the "USS _ computeTemperature" method in the "ussSWLib" library function.
Further, in order to better implement the present invention, the relational formula in S2 is: t = K12.365T-K156.3T +45, in which: t is the shielding time, T is the fluid temperature, and K is the temperature correction coefficient.
Further, in order to better implement the present invention, in S3, the USS _ ACOUSTIC _ LENGTH is a value of the ussSwLib _ userconfig.h file, which is a key parameter in the ultrasonic measurement process, and the value is corrected by a relational formula to optimize the sampling timing and obtain an accurate propagation time.
Further, in order to better implement the present invention, the S4 specifically is to perform a line-correlation operation through a "USS _ runalcorithms" function in a "ussSWLib" library function, so as to obtain a flow volume flowing through the circular tube per second.
Further, in order to better implement the present invention, in S5, the intensive test is performed on the entire flow rate interval by adjusting the temperature of the water in the detection platform, and the errors of different flow rate points from 0 ℃ to 35 ℃ are recorded; since all temperatures and flows cannot be tested, the intermediate temperature and flow points are blurred by interpolation.
The invention has the beneficial effects that:
the invention adopts a line-correlation algorithm to calculate the time difference according to the phase difference, thereby greatly reducing the influence of temperature on ultrasonic measurement, saving measurement time and hardware cost, reducing production process flow and improving production efficiency and measurement precision.
Drawings
FIG. 1 is a flow chart of an ultrasonic water meter measurement model based on a line-correlation algorithm according to the present invention;
fig. 2 is a structural diagram of an ultrasonic water meter measurement model based on a line-correlation algorithm according to the invention.
In the figure, a and b are ultrasonic transducers, and L is the center distance of the ultrasonic transducers.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that the terms "middle", "upper", "lower", "horizontal", "inner", "outer", and the like indicate orientations or positional relationships based on orientations or positional relationships shown in the drawings or orientations or positional relationships conventionally laid out when products of the present invention are used, and are only used for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like are used merely to distinguish one description from another, and are not to be construed as indicating or implying relative importance.
Furthermore, the terms "horizontal", "vertical" and the like do not imply that the components are required to be absolutely horizontal or pendant, but rather may be slightly inclined. For example, "horizontal" merely means that the direction is more horizontal than "vertical" and does not mean that the structure must be perfectly horizontal, but may be slightly inclined.
In the description of the present invention, it is to be noted that the terms "disposed", "connected" and "connected" are to be construed broadly and may be, for example, a fixed connection, an adjustable connection or an integral connection unless expressly stated or limited otherwise. Either mechanically or electrically. They may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Fig. 1-2 show an embodiment of the present invention, which is an ultrasonic water meter measurement model based on a line-correlation algorithm, and specifically includes the following steps:
firstly, transmitting the ultrasonic flight time T measured by the SDHS module into a USS _ computertemperature method to obtain the temperature T; wherein, the position of the method of "USS _ computeTemperature" is positioned in a file of "ussSwLibTemperature.c" in the library function "ussSWLib";
secondly, designing a temperature-adjustable device, pouring water into a base table with an ultrasonic transducer, freezing the temperature of the device at 0 ℃, monitoring the flight time of ultrasonic waves by using an oscilloscope, and then gradually increasing the temperature with the beat of 1 ℃ until the temperature reaches 35 ℃; a quadratic curve relation between the ultrasonic flight T and the temperature T is obtained.
Through a large amount of experimental data, the following formula is obtained:
t=K*12.365T²-K*156.3T+45-------------(1.1)
in the formula: t is the shielding time, T is the fluid temperature, and K is the correction coefficient;
thirdly, correcting the value of 'USS _ ACOUSTIC _ LENGTH' in the 'usSwLib _ userConfig.h' file by using a formula (1.1) to optimize the sampling time and obtain accurate propagation time, wherein 'USS _ ACOUSTIC _ LENGTH' is a key parameter in the ultrasonic measurement process;
and fourthly, performing line-correlation operation through a USS _ runAlgorithms function in the USS SWLib library function to obtain the volume of the flow flowing through the circular tube per second. The algorithm of the USS _ runAlgorithms function in the USS SWLib library function is modified according to the characteristics of the base table, and the specific modification method comprises the following steps: adjusting values OF a "PEAK-to-threshold RATIO (USS _ ALG _ RATIO _ OF _ TRACK _ loop)" in a "ussSwLib _ userconfig.h" file, a "number OF CYCLES OF a relevant PEAK (USS _ ALG _ NUM _ CYCLES _ SEARCH _ CORR)" and a "maximum PEAK variation RATIO (USS _ ALG _ MAX _ RATIO _ PEAK _2_ PEAK _ VAR)", wherein algorithm optimization can improve a range OF a maximum flow OF Q4, improve a range RATIO and accuracy, effectively offset an influence OF temperature variation on a static time difference, and further improve accuracy and robustness OF flow measurement; by this method, a stable time difference can be obtained;
and fifthly, calculating the flow by an interpolation algorithm. Carrying out intensive test on the whole flow interval by adjusting the temperature of water in the detection table, and recording errors of different flow points from 0 ℃ to 35 ℃; since it is not possible to test all temperatures and flows, the intermediate temperature and flow points are blurred out here by interpolation algorithms.
Finally, the above embodiments are only used for illustrating the technical solutions of the present invention and not for limiting, and other modifications or equivalent substitutions made by the technical solutions of the present invention by those of ordinary skill in the art should be covered within the scope of the claims of the present invention as long as they do not depart from the spirit and scope of the technical solutions of the present invention.

Claims (7)

1. An ultrasonic water meter measurement model based on a line-correlation algorithm is characterized by comprising the following steps:
s1, detecting the propagation time of the ultrasonic wave in the base meter pipe section through a high-speed ADC in the time measuring module, and calculating the current temperature of the fluid through one-way time;
s2, measuring a relation formula of the fitting temperature and the ultrasonic wave sound wave transmission time through an oscilloscope;
s3, compensating USS _ ACOUSTIC _ LENGTH by using a relational formula to shield clutter in the period from sending to receiving to obtain accurate propagation time;
s4, calculating the volume flowing through the round tube in unit time by using a line-correlation algorithm;
and S5, carrying out interpolation calculation on the temperature and the flow rate, and integrating to obtain an accurate accumulated flow rate.
2. An ultrasonic water meter flow measurement model according to claim 1, characterized in that:
the time measurement module is an SDHS module in MSP430FR 6047.
3. An ultrasonic water meter flow measurement model according to claim 1, characterized in that:
the S1 is specifically that the waveform of the ultrasonic wave detected by the high-speed ADC in the SDHS module is input to the DTC module to obtain the flight time of the ultrasonic wave, and the temperature of the current fluid in the circular tube is obtained by calling the "USS _ computeTemperature" method in the "ussSWLib" library function.
4. An ultrasonic water meter flow measurement model according to claim 1, characterized in that:
the relational formula in S2 is: t = K12.365T-K156.3T +45, in which: t is the shielding time, T is the fluid temperature, and K is the temperature correction coefficient.
5. An ultrasonic water meter flow measurement model according to claim 1, characterized in that:
in S3, the USS _ ACOUSTIC _ LENGTH is a value of the ussSwLib _ userconfig.h file, which is a key parameter in the ultrasonic measurement process, and the value is corrected by a relational formula to optimize sampling timing and obtain accurate propagation time.
6. An ultrasonic water meter flow measurement model according to claim 1, characterized in that:
the S4 is specifically that a row-related operation is performed through a "USS _ runalcorithms" function in a "ussSWLib" library function, and a flow volume flowing through the circular tube per second is obtained.
7. An ultrasonic water meter flow measurement model according to claim 1, characterized in that:
the S5 concrete method comprises the steps of carrying out intensive test on the whole flow interval by adjusting the temperature of water in a detection table, and recording errors of different flow points from 0 ℃ to 35 ℃; since all temperatures and flows cannot be tested, the intermediate temperature and flow points are blurred by interpolation.
CN202010968317.XA 2020-09-15 2020-09-15 Ultrasonic water meter measurement model based on line-correlation algorithm Pending CN112179428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010968317.XA CN112179428A (en) 2020-09-15 2020-09-15 Ultrasonic water meter measurement model based on line-correlation algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010968317.XA CN112179428A (en) 2020-09-15 2020-09-15 Ultrasonic water meter measurement model based on line-correlation algorithm

Publications (1)

Publication Number Publication Date
CN112179428A true CN112179428A (en) 2021-01-05

Family

ID=73921087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010968317.XA Pending CN112179428A (en) 2020-09-15 2020-09-15 Ultrasonic water meter measurement model based on line-correlation algorithm

Country Status (1)

Country Link
CN (1) CN112179428A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001026068A1 (en) * 1999-10-06 2001-04-12 Sensoria Corporation Wireless networked sensors
CN106441520A (en) * 2016-10-26 2017-02-22 齐鲁工业大学 Method for calibrating precision of small-caliber ultrasonic water meter and calibration system thereof
CN106706056A (en) * 2017-03-07 2017-05-24 济南瑞泉电子有限公司 Compensation method for flow rate measuring of large-caliber ultrasonic water meter
CN109855692A (en) * 2019-01-28 2019-06-07 江苏商贸职业学院 A kind of method of computer metering fluid flow
CN110426090A (en) * 2019-08-05 2019-11-08 山东汘沄智能科技有限公司 A kind of Intelligent water meter of Internet of things
EP3617678A1 (en) * 2018-08-30 2020-03-04 Nxp B.V. Apparatus for determination of temperature

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001026068A1 (en) * 1999-10-06 2001-04-12 Sensoria Corporation Wireless networked sensors
CN106441520A (en) * 2016-10-26 2017-02-22 齐鲁工业大学 Method for calibrating precision of small-caliber ultrasonic water meter and calibration system thereof
CN106706056A (en) * 2017-03-07 2017-05-24 济南瑞泉电子有限公司 Compensation method for flow rate measuring of large-caliber ultrasonic water meter
EP3617678A1 (en) * 2018-08-30 2020-03-04 Nxp B.V. Apparatus for determination of temperature
CN109855692A (en) * 2019-01-28 2019-06-07 江苏商贸职业学院 A kind of method of computer metering fluid flow
CN110426090A (en) * 2019-08-05 2019-11-08 山东汘沄智能科技有限公司 A kind of Intelligent water meter of Internet of things

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
TEXAS INSTRUMENTS: "Application Software (SW) Architecture for MSP430FR6047-Based Ultrasonic Water Flow Meter", 《HTTPS://WWW.BAIDU.COM/LINK?URL=6ALUTO_1YZQUMLP31RYF5SAOH9QR_T1EP1TWJOPWH5O0QQSQJN4XDZK1B6LQ78DXJ_SJ27E2TAVSVEIKV0SRCZCVZ4OZFDMDKGY_PBOQ7&WD=&EQID=E0E96F44000AFE1B000000026231F337》 *
TEXAS INSTRUMENTS: "USS-SWLIB-WATER 用于水计量的超声波传感解决方案(USS)软件库", 《HTTPS://WWW.TI.COM.CN/TOOL/CN/DOWNLOAD/USS-SWLIB-WATER/02.30.00.03》 *
TEXAS INSTRUMENTS: "Waveform Capture Based Ultrasonic Sensing Water Flow Metering Technology", 《HTTPS://WWW.BAIDU.COM/LINK?URL=DIY9JHQDBTHIDT77ASE4IJMRAAPQESREUVK1MQG1ZCKM9VI9A-4IS5VXSN-5JS&WD=&EQID=8C6E0E68000B0707000000026231F2D3》 *

Similar Documents

Publication Publication Date Title
US6226598B1 (en) Method of measuring the propagation time of a sound signal in a fluid by means of a zero-crossing of said sound signal
CN114001804B (en) Calibration method and system of ultrasonic metering device based on time difference method
CN107727176B (en) Ultrasonic gas flowmeter and flow measurement method thereof
US10564017B2 (en) Ultrasonic flowmeter and method using partial flow measurements
CN105698886A (en) Gas flow detection method based on ultrasonic detection technique
CN111157065A (en) Acoustic time delay measuring method in ultrasonic signal transmission loop of gas ultrasonic flowmeter
CN110081806A (en) A kind of magnetostrictive displacement sensor device, system and calibration method
CN111238587A (en) Ultrasonic transducer transmission time calibration method
CN104748704A (en) Thin-walled structure ultrasonic resonance thickness measurement frequency spectrum analysis interpolation correction method
CN202066962U (en) Multifunctional ultrasonic wave measuring instrument
CN115236465A (en) Partial discharge positioning ultrahigh frequency signal time difference extraction method and system
CN214583449U (en) High-precision wide-range ultrasonic flow measuring device
CN114442078A (en) Method for detecting flight time, ultrasonic flowmeter and optical equipment
CN112179428A (en) Ultrasonic water meter measurement model based on line-correlation algorithm
CN116878599B (en) Flow metering method of ultrasonic water meter
CN115655423B (en) Calibration method of ultrasonic gas meter
CN116046116A (en) Ultrasonic water meter flow calibration method based on Lobe algorithm
CN117073823A (en) Ultrasonic water meter sound velocity measurement method and system
CN115808213A (en) Improved gas metering method based on TDC scheme
CN108981857B (en) Acoustic resonance liquid level measurement method based on iterative weighted fusion
CN108957174B (en) Voltage sag detection device and method
CN113740856B (en) Distance measurement method and device based on ultrasonic wave waveform vibration starting characteristics
CN114740260A (en) Special synchronous acquisition method for detecting and adjusting crystal oscillator output frequency in real time
CN106802367B (en) Vibrating string type sensor signal period measurement method and device based on overlapping grouping
CN111561888A (en) Correction method for ultrasonic thickness measurement value

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210105