CN113358169B - Automatic calibration compensation method and device for Hall flow sensor - Google Patents

Automatic calibration compensation method and device for Hall flow sensor Download PDF

Info

Publication number
CN113358169B
CN113358169B CN202110605468.3A CN202110605468A CN113358169B CN 113358169 B CN113358169 B CN 113358169B CN 202110605468 A CN202110605468 A CN 202110605468A CN 113358169 B CN113358169 B CN 113358169B
Authority
CN
China
Prior art keywords
sensor
weight
calibration
storage container
calibrated
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.)
Active
Application number
CN202110605468.3A
Other languages
Chinese (zh)
Other versions
CN113358169A (en
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.)
Chengdu Longraise Technology Development Co ltd
Original Assignee
Chengdu Longraise Technology Development 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 Chengdu Longraise Technology Development Co ltd filed Critical Chengdu Longraise Technology Development Co ltd
Priority to CN202110605468.3A priority Critical patent/CN113358169B/en
Publication of CN113358169A publication Critical patent/CN113358169A/en
Application granted granted Critical
Publication of CN113358169B publication Critical patent/CN113358169B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/56Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using electric or magnetic effects
    • G01F1/58Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using electric or magnetic effects by electromagnetic flowmeters
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F25/00Testing or calibration of apparatus for measuring volume, volume flow or liquid level or for metering by volume

Landscapes

  • Physics & Mathematics (AREA)
  • Fluid Mechanics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Measuring Volume Flow (AREA)

Abstract

The invention relates to the field of flowmeter calibration, in particular to an automatic calibration compensation method and device of a Hall flow sensor. Based on the weight measurement principle, the invention synchronously completes accurate flow calibration by weighing the weight of the liquid and cooperating with the Hall sensor. The compensation value of each calibration point is calculated by searching the deviation of the calibration point, and the volume obtained by weight conversion is used as the reference for calculation through a density conversion formula.

Description

Automatic calibration compensation method and device for Hall flow sensor
Technical Field
The invention relates to the field of flowmeter calibration, in particular to an automatic calibration compensation method and device of a Hall flow sensor.
Background
The Hall flowmeter is based on displacement sensing, and the operating principle of the Hall flowmeter is that an impeller rotates under the push of fluid to drive a screw rod to rotate, so that a magnetic system moves up and down, and the displacement is large when the flow rate is high. Further, the displacement is detected by a Hall device to obtain the flow speed and the flow. At present, a large number of Hall flowmeters are applied to various terminal devices such as public tap water taps, milk machines, coffee machines and the like, the flow can be counted in real time, and various applications are completed through a matched control algorithm. These applications generally have high requirements on the accuracy of the flow, but in practical applications, the detection curve of the hall flowmeter changes according to individual difference and time aging, so that the measurement is distorted. Therefore, it is often necessary to periodically perform calibration compensation.
Hall flow sensor manufacturers on the market are very many, and parameters are different. Meanwhile, some small devices are widely distributed and scattered, and the use environments have great difference. The liquids detected by such devices also vary widely, such as water and wine, which have different densities, which also results in variations in the flow meter. Such devices often require manual calibration at regular intervals to correct certain calibration points in a particular range with human intervention to meet the accuracy required by the application. However, the method is difficult to be used for calibrating the flow meter in the scenes of batch production, variable liquid density and the like. There is a need for an automatic calibration compensation method and apparatus for hall flow sensors that can be used for multiple fluid density situations in batches.
Disclosure of Invention
The invention aims to overcome the defect that the flow meter calibration with variable liquid density in batches cannot be automatically carried out in the prior art, and provides an automatic calibration compensation method and device of a Hall flow sensor.
In order to achieve the above purpose, the invention provides the following technical scheme:
an automatic calibration compensation method of a Hall flow sensor comprises the following steps:
s1: initializing a calibration device;
s2: performing a liquid outlet action, and conveying the measuring liquid from the first storage container to the second storage container through the sensor to be calibrated;
s3: when the weight of the measured liquid is increased by Xml in the second storage container, recording the weight as a calibration point, and sending a command signal to the control module;
s4: after the control module receives the instruction signal, recording the number of pulses output by the sensor to be calibrated at the moment, calculating a compensation value corresponding to the calibration point according to the volume of the measured liquid in the second storage container at the moment, and storing the compensation value into the control module;
s5: and performing compensation correction on each calibration point according to the stored compensation value. Based on the weight measurement principle, the invention synchronously completes accurate flow calibration by weighing the weight of the liquid and cooperating with the Hall sensor. The compensation value of each calibration point is calculated by searching the deviation of the calibration point, and the volume obtained by weight conversion is used as the reference for calculation through a density conversion formula.
In a preferred embodiment of the present invention, the volume of the measurement liquid is equal to the maximum measurement range of the sensor to be calibrated + the transport loss value, and the transport loss value is a preset value.
As a preferred embodiment of the present invention, the calculation formula of the compensation value is as follows:
Figure BDA0003093942350000021
where Op is a compensation value, l is an accumulated flow rate when the command signal is received, p is a number of pulses when the sensor to be calibrated measures XmL the measured liquid, and p "is a number of pulses actually output by the sensor to be calibrated when the accumulated flow rate is l. The invention obtains the compensation value by subtracting the theoretical pulse value from the actual pulse value, so that the compensation value is more accurate and real, and the calibration precision is greatly improved.
As a preferred embodiment of the invention, the number e of calibration points [1,255 ]. The present invention evenly distributes the calibration points over a range of one byte, i.e., 1-255. This can be expressed as uniformly distributing up to 255 calibration points over a given range of measurement, and the device can quickly find the deviation of the sensor pulse to be calibrated after receiving the sensed calibration position. The design has good expansibility, and even if one byte is added, the delay of not exceeding 1ms is avoided when the number of the calibration points is increased to 65535, so that the method can be applied to calibration scenes with larger measuring range and more fineness.
As a preferred embodiment of the present invention, the initialization in step S1 includes performing weight calibration and peeling operations.
An automatic calibration compensation device of a Hall flow sensor comprises a control module, a workbench and a weighing assembly electrically connected with the control module, wherein the compensation device implements the automatic calibration compensation method of the Hall flow sensor in any one of the above schemes;
the weighing component comprises a weight sensor and a liquid outlet module; the liquid outlet module comprises a first storage container, a second storage container and a liquid outlet pipe, and the first storage container transfers liquid to the second storage container through the sensor to be calibrated and the liquid outlet pipe; the weight sensor is used for detecting the weight of the second storage container;
the workbench is used for installing a sensor to be calibrated, the control module and the weighing assembly;
the control module is electrically connected with the sensor to be calibrated.
As a preferred scheme of the present invention, the weight sensor collects weight data through an AD sampling module.
As a preferable aspect of the present invention, the control module averages the weight data by a moving average filtering method. According to the invention, the collected weight data is filtered by a moving average filtering method, so that the fluctuation of the weight data due to the response time of the weight sensor is avoided, the weight data is more accurate, and the calibration precision is greatly improved.
As a preferred embodiment of the present invention, the calculation formula of the moving average filtering method is:
Figure BDA0003093942350000041
y[i]is the average weight at the ith sampling point, x is the weight data at the ith + j sampling point, M is a preset parameter, j belongs to [0, M-3]]。
As a preferred embodiment of the present invention, M.epsilon.5, 10.
As a preferable scheme of the invention, the weight sensor adopts an AT8509 type weight sensor.
Compared with the prior art, the invention has the beneficial effects that:
1. based on the weight measurement principle, the invention synchronously completes accurate flow calibration by weighing the weight of the liquid and cooperating with the Hall sensor. The compensation value of each calibration point is calculated by searching the deviation of the calibration point, and the volume obtained by weight conversion is used as the reference for calculation through a density conversion formula.
2. The invention obtains the compensation value by subtracting the theoretical pulse value from the actual pulse value, so that the compensation value is more accurate and real, and the calibration precision is greatly improved.
3. The present invention evenly distributes the calibration points over a range of one byte, i.e., 1-255. This can be expressed as uniformly distributing up to 255 calibration points over a given range of measurement, and the device can quickly find the deviation of the sensor pulse to be calibrated after receiving the sensed calibration position. The design has good expansibility, and even if one byte is added, the delay of not exceeding 1ms is avoided when the number of the calibration points is increased to 65535, so that the method can be applied to calibration scenes with larger measuring range and more fineness.
4. According to the invention, the collected weight data is filtered by a moving average filtering method, so that the fluctuation of the weight data due to the response time of the weight sensor is avoided, the weight data is more accurate, and the calibration precision is greatly improved.
Drawings
Fig. 1 is a schematic flowchart of an automatic calibration compensation method for a hall flow sensor according to embodiment 1 of the present invention;
fig. 2 is a schematic structural diagram of an automatic calibration compensation device of a hall flow sensor according to embodiment 2 of the present invention;
fig. 3 is a calibration timing diagram of an automatic calibration compensation method for a hall flow sensor according to embodiment 3 of the present invention;
the labels in the figure are: 1-a control module, 2-a workbench, 3-a weight sensor, 4-a first storage container, 5-a second storage container, 6-a liquid outlet pipe and 7-a sensor to be calibrated.
Detailed Description
The present invention will be described in further detail with reference to test examples and specific embodiments. It should be understood that the scope of the above-described subject matter is not limited to the following examples, and any techniques implemented based on the disclosure of the present invention are within the scope of the present invention.
Example 1
As shown in fig. 1, an automatic calibration compensation method for a hall flow sensor includes the following steps:
s1: initializing a calibration device; the initialization includes performing weight calibration and a skinning operation. The weight calibration step is only executed before the first use, and repeated calibration is not needed after calibration.
S2: performing a liquid outlet action, and conveying the measuring liquid from the first storage container to the second storage container through the sensor to be calibrated; the volume of the measuring liquid is equal to the maximum measuring range of the sensor to be calibrated plus the conveying loss value, and the conveying loss value is preset according to the type and the volume of the measuring liquid.
S3: and recording the weight of each Xml of the measured liquid in the second storage container as a calibration point, and sending a command signal to the control module once. Wherein,
Figure BDA0003093942350000061
m is the weight of Xml of the measuring liquid, p is the density of the measuring liquid, and the number e of the calibration points is [1,255]]。
S4: after the control module receives the instruction signal, recording the number of pulses output by the sensor to be calibrated at the moment, calculating a compensation value corresponding to the calibration point according to the volume of the measured liquid in the second storage container at the moment, and storing the compensation value into the control module;
the calculation formula of the compensation value is as follows:
Figure BDA0003093942350000062
where Op is a compensation value, l is an accumulated flow rate when the command signal is received, p is a number of pulses when the sensor to be calibrated measures XmL the measurement liquid, p' is a theoretical number of pulses when the accumulated flow rate is l (i.e., when the command signal is received), and p "is a number of pulses actually output by the sensor to be calibrated at the l-th calibration point.
S5: and performing compensation correction on each calibration point according to the stored compensation value.
Example 2
As shown in fig. 2, the automatic calibration compensation device for the hall flow sensor comprises a control module 1, a workbench 2 and a weighing assembly electrically connected with the control module 1.
The weighing component comprises a weight sensor 3 and a liquid outlet module; the liquid outlet module comprises a first storage container 4, a second storage container 5 and a liquid outlet pipe 6, wherein the first storage container 4 transfers liquid to the second storage container 5 through the sensor 7 to be calibrated and the liquid outlet pipe 6; the weight sensor 3 is used to detect the weight of the second storage container 5.
The worktable 2 is used for installing a sensor 7 to be calibrated, the control module 1 and the weighing assembly.
The control module 1 is electrically connected with the sensor 7 to be calibrated. Weight sensor 3 gathers weight data through AD sampling module. The weight sensor adopts an AT 8509I-shaped weight sensor, the measuring range is 1kg, the measuring precision is 0.1g, and the response time is less than 50 ms. The AD sampling module adopts a Sigma-delta (Sigma delta) ADC chip which adjusts the sampling rate of ADI company to be 4.8K as a main chip. After the AD sampling module collects the weight data, the control module 1 calculates an average value of the weight data by a moving average filtering method (as shown in the following formula).
Figure BDA0003093942350000071
Wherein y [ i ] is the average weight at the ith sampling point, x is the weight data at the ith + j sampling point, M is a preset parameter, and M belongs to [5,10], and j belongs to [0, M-3 ].
The control module 1 employs a microprocessor (such as a raspberry zero embedded board) and/or a PC to execute the automatic calibration compensation method of the hall flow sensor described in embodiment 1.
Example 3
This example is a specific application example of the method of embodiment 1 implemented by using the apparatus described in embodiment 2.
Through practical tests, the method can accurately measure the number of pulse deviations of each calibration point after one full-scale liquid discharge, and the sensor to be calibrated after correction and compensation is obtained on the basis of the method. Then, quantitative liquid outlet verification is carried out on the calibration points, the error range of the flow measured at each calibration point is less than 2ml, the calibration points are randomly selected and checked, and the measured error is less than 3 ml.
In addition, as shown in fig. 3, the liquid outlet time of 500ml liquid is 26 seconds according to the liquid outlet speed of the sensor to be calibrated, the whole calibration process takes about 30 seconds, and the whole calibration process does not increase with the increase of the number of calibration points.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (9)

1. An automatic calibration compensation method of a Hall flow sensor is characterized by comprising the following steps:
s1: initializing a calibration device;
s2: performing a liquid outlet action, and conveying the measuring liquid from the first storage container to the second storage container through the sensor to be calibrated;
s3: when the weight of the measured liquid is increased by Xml in the second storage container, recording the weight as a calibration point, and sending a command signal to the control module;
s4: after the control module receives the instruction signal, recording the number of pulses output by the sensor to be calibrated at the moment, calculating a compensation value corresponding to the calibration point according to the volume of the measured liquid in the second storage container at the moment, and storing the compensation value into the control module;
s5: performing compensation correction on each calibration point according to the stored compensation value;
the calculation formula of the compensation value is as follows:
Figure FDA0003357321040000011
where Op is a compensation value, l is an accumulated flow rate when the command signal is received, p is a number of pulses when the sensor to be calibrated measures XmL the measured liquid, and p "is a number of pulses actually output by the sensor to be calibrated when the accumulated flow rate is l.
2. The method of claim 1, wherein the number of calibration points e [1,255 ].
3. The method as claimed in claim 1, wherein the initialization step S1 includes performing weight calibration and peeling operation, the volume of the measuring liquid is the maximum measurement range + the transport loss value of the sensor to be calibrated, and the transport loss value is a preset value.
4. An automatic calibration compensation device of a Hall flow sensor, which comprises a control module (1), a workbench (2) and a weighing assembly electrically connected with the control module (1), wherein the workbench (2) is used for installing a sensor (7) to be calibrated, the control module (1) and the weighing assembly, and is characterized in that the compensation device implements the automatic calibration compensation method of the Hall flow sensor according to any one of claims 1-3;
the weighing component comprises a weight sensor (3) and a liquid outlet module; the liquid outlet module comprises a first storage container (4), a second storage container (5) and a liquid outlet pipe (6), wherein the first storage container (4) transfers liquid to the second storage container (5) through the sensor (7) to be calibrated and the liquid outlet pipe (6); the weight sensor (3) is used for detecting the weight of the second storage container (5);
the control module (1) is electrically connected with the sensor (7) to be calibrated.
5. The automatic calibration compensation device of the Hall flow sensor according to claim 4, wherein the weight sensor (3) collects weight data through an AD sampling module.
6. The automatic calibration compensation device of the Hall flow sensor according to claim 5, wherein the control module (1) averages the weight data by a moving average filtering method.
7. The automatic calibration compensation device of the hall flow sensor according to claim 6, wherein the calculation formula of the moving average filtering method is:
Figure FDA0003357321040000021
y[i]is the average weight at the ith sampling point, x is the weight data at the ith + j sampling point, M is a preset parameter, j belongs to [0, M-3]]。
8. The automatic calibration compensation apparatus for a Hall flow sensor according to claim 7, wherein M e [5,10 ].
9. The automatic calibration compensation device of the Hall flow sensor according to claim 4, wherein said weight sensor (3) is an AT8509 type weight sensor.
CN202110605468.3A 2021-05-31 2021-05-31 Automatic calibration compensation method and device for Hall flow sensor Active CN113358169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110605468.3A CN113358169B (en) 2021-05-31 2021-05-31 Automatic calibration compensation method and device for Hall flow sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110605468.3A CN113358169B (en) 2021-05-31 2021-05-31 Automatic calibration compensation method and device for Hall flow sensor

Publications (2)

Publication Number Publication Date
CN113358169A CN113358169A (en) 2021-09-07
CN113358169B true CN113358169B (en) 2022-02-01

Family

ID=77530614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110605468.3A Active CN113358169B (en) 2021-05-31 2021-05-31 Automatic calibration compensation method and device for Hall flow sensor

Country Status (1)

Country Link
CN (1) CN113358169B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1184483C (en) * 2002-12-24 2005-01-12 上海大学 Integrated in-situ measuring method and system of slurry density and flow rate
JP4398848B2 (en) * 2004-10-28 2010-01-13 新日本製鐵株式会社 Steel continuous casting mold flow velocity measuring apparatus and detection method
CN201373757Y (en) * 2009-02-13 2009-12-30 宣兆康 Intelligent electromagnetic flow meter with magnetic field strength compensation function
CN102032167B (en) * 2010-12-10 2012-07-04 浙江工业大学 Flow compensation technology of digital frequency conversion metering pump
CN204007738U (en) * 2014-08-08 2014-12-10 孙高峰 A kind of New DSP technology electromagnetic flowmeter
CN106643469B (en) * 2016-12-07 2018-11-23 上海交通大学 The in-orbit comprehensive compensation implementation method that inductosyn calibrates for error
CN112577555B (en) * 2019-09-29 2024-02-20 新天科技股份有限公司 Non-magnetic sampling forward and backward metering intelligent water meter
CN111580074B (en) * 2020-05-26 2021-08-20 深圳市灵明光子科技有限公司 Time precision calibration method and device and electronic equipment

Also Published As

Publication number Publication date
CN113358169A (en) 2021-09-07

Similar Documents

Publication Publication Date Title
EP3032230B1 (en) Flow meter and a method of calibration
US5827963A (en) System and method for determining a density of a fluid
KR101228427B1 (en) Digital meter capable of modifying flow and automatic modifying system for the same digital meter
CN111413371A (en) Self-calibration device and method for seawater conductivity sensor
CN102405446A (en) Field device with measurement accuracy reporting
CN102538914A (en) Electronic water meter with correction function
CN111272985B (en) Temperature compensation type high-precision calibration method for soil salinity sensor
WO2009109756A1 (en) Weight observer for mass metering and inventory management
CN108508270A (en) A kind of resistance measuring circuit
WO2006076141A1 (en) Automatic thermal conductivity compensation for fluid flow sensing using chemometrics
CN113358169B (en) Automatic calibration compensation method and device for Hall flow sensor
CN114777887A (en) Zero drift elimination method for ultrasonic water meter
CN116208152B (en) High-precision analog quantity acquisition device and method
CN201145606Y (en) Automatic detecting device of bell cover multiple flowmeters
CN104964729B (en) A kind of calibrating installation of fluid metering instrument
CN111609902A (en) Production testing device and method for non-full pipe flowmeter
CN211824647U (en) Automatic calibration device for wet gas flowmeter
CN104596612A (en) Method and device for detecting liquid level and liquid capacity
CN109470325A (en) Gas flow measurement method, apparatus and control system and gaseous mass flowmeter
CN108344465A (en) Method and device for measuring liquid level based on liquid temperature
CN111780835A (en) Calibration method for high-efficiency liquid phase transfer liquid flowmeter
CN113932889A (en) Intelligent fuel metering and correcting device based on turbine flowmeter
CN211477328U (en) Automatic detection system and production line for flow of viscous sauce
CN110199178B (en) Method for compensating for the Venturi effect on a pressure sensor in a flowing water
CN110081943B (en) Temperature compensation method for Coriolis mass flowmeter

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
GR01 Patent grant
GR01 Patent grant