A high-precision flow measurement method and device based on Hall element

By detecting and correcting external magnetic field interference in real time in the Hall element flow measurement system, more accurate flow measurement is achieved and the problem of inaccurate measurement of Hall elements under the influence of external magnetic fields is solved.

CN118548944BActive Publication Date: 2024-10-15ANHUI HIGHWELL ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410999103.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-15
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

Hall elements are easily interfered by external magnetic fields during flow measurement, resulting in inaccurate measurement results.

Method used

Using a high-precision flow measurement method based on Hall elements, the first Hall element detects the environmental magnetic field in real time. The central control unit makes signal judgments. If abnormal, the Hall element array is activated for correction, the target correction value is calculated and the voltage signal is processed. Time alignment ensures signal correction to improve measurement accuracy.

Benefits of technology

Effectively filters external magnetic field interference, provides more reliable flow measurement data, and improves measurement accuracy and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118548944B_ABST
    Figure CN118548944B_ABST
Patent Text Reader

Abstract

The invention discloses a high-precision flow measurement method and device based on Hall elements, and relates to the technical field of flow measurement; a central control unit performs signal judgment according to an initial voltage signal and a first voltage signal; if the signal judgment result is that the voltage is continuously abnormal, the detection unit turns on the correction Hall element set in the Hall element array to detect the magnetic field of the current environment to obtain a target voltage signal set, the control calculation unit obtains a target correction value according to the target voltage signal set and the standard voltage signal set, the central control unit obtains the main measurement Hall element to detect the magnetic field of the current environment in real time to obtain a second voltage signal, corrects the second voltage by the target correction value and converts it into a pulse signal, performs flow calculation to obtain the final flow, can effectively filter out errors caused by external magnetic field interference, provide more reliable flow measurement data, and improve the accuracy of flow measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of flow measurement, and in particular relates to a high-precision flow measurement method and device based on Hall elements. Background Art

[0002] With the advancement of science and technology and the needs of social development, the development of water supply meter products is indeed gradually changing from mechanical measurement to electronic measurement, among which the Hall water meter is a representative product of this transformation; the Hall water meter detects water flow based on the Hall effect, and drives the mechanical structure inside the water meter to rotate through the water flow, thereby changing the magnetic field of the magnet; when the magnetic field line passes through the Hall element, it will generate a potential difference on both sides, and the size of the potential difference changes with the change of water flow. The Hall sensor chip converts the detected potential difference into a corresponding pulse signal, and the total amount of water flow can be calculated by measuring the frequency or number of these pulse signals.

[0003] Patent CN113325197A discloses a method for measuring the flow rate of a turbine flowmeter, which includes a turbine flowmeter with a Hall sensor, an optocoupler circuit, a trigger circuit, and an MCU; the turbine flowmeter is used to measure the fluid and generate an electrical pulse signal; the optocoupler circuit is used to filter out the noise and shape the external pulse signal; the trigger circuit is used to ensure that two counters are started at the same time; the MCU is used to receive the electrical pulse signal, use the counter to perform hard pulse counting, and operate the two counters in a cascade manner to perform hard pulse counting, and at the same time start another timer to perform clock counting; after the counting is completed, the number of pulses recorded by the counter and the time recorded by the timer are calculated to obtain the flow rate of the measured fluid. The Hall element is very sensitive to changes in the magnetic field, so it is easily disturbed by the external magnetic field; however, this scheme does not consider the influence of the external magnetic field on the potential difference measured by the Hall element, so that the measurement result is easily disturbed by the external magnetic field, resulting in inaccurate flow measurement results. Summary of the invention

[0004] The purpose of the present invention is to solve the problem of inaccurate flow measurement results caused by external magnetic field interference, and to propose a high-precision flow measurement method and device based on Hall elements.

[0005] In a first aspect of the present invention, a high-precision flow measurement method based on a Hall element is first proposed, the method comprising:

[0006] The first Hall element detects the magnetic field of the current environment in real time to obtain a first voltage signal, and sends the first voltage signal to the central control unit; so that the central control unit performs signal judgment according to the initial voltage signal and the first voltage signal; the initial voltage signal is the voltage signal obtained by the first Hall element when the water meter is installed and calibrated;

[0007] If the signal judgment result is that the voltage is continuously abnormal, the central control unit sends an opening instruction to the detection unit; so that the detection unit turns on the correction Hall element set in the Hall element array to detect the magnetic field of the current environment to obtain a target voltage signal set, and sends the target voltage signal set to the calculation unit; the Hall element array includes a correction Hall element set and a main detection Hall element;

[0008] The calculation unit obtains a target correction value according to the target voltage signal set and the standard voltage signal set, and sends the target correction value to the central control unit;

[0009] The central control unit acquires the magnetic field of the current environment detected by the main measuring Hall element in real time to obtain a second voltage signal, and after aligning the target correction value with the second voltage signal in time, performs signal correction to obtain a target voltage signal;

[0010] The voltage signal is converted into a pulse signal and then the flow rate is calculated to obtain the final flow rate.

[0011] Optionally, the central control unit performs signal judgment according to the initial voltage signal and the first voltage signal, including:

[0012] Calculating a difference between the first voltage signal and the initial voltage signal to obtain a target difference;

[0013] If the absolute value of the target difference is less than the preset threshold, the signal judgment result is that the voltage is normal;

[0014] If the absolute value of the target difference is greater than a preset threshold, the voltage signals at the current time point and the N sampling points before it are averaged to obtain a smoothed signal value at the current time point;

[0015] Calculating the standard deviation according to the smoothed signal value to obtain a target standard deviation, and if the target standard deviation is greater than a preset standard deviation, the signal judgment result is that the voltage is abnormal in timing;

[0016] If the target standard deviation is less than the preset standard deviation, the signal determination result is that the voltage is continuously abnormal.

[0017] Optionally, after the signal judgment result is that the voltage is abnormal in timing, the following steps are included:

[0018] The central control unit obtains the corresponding numbers of the first Hall element and the main measurement Hall element, and searches for the influencing factors recorded in the built-in memory according to the corresponding numbers;

[0019] Correcting the target difference according to the influencing factor to obtain a correction signal;

[0020] The second voltage signal is corrected by using the correction signal to obtain the target voltage signal.

[0021] Optionally, after the signal judgment result is that the voltage is normal, the following steps are included:

[0022] Obtaining voltage signals recorded by all Hall elements in the Hall element array, and adding and averaging all voltages to obtain a comparison voltage signal; the Hall element array includes a second Hall element, a third Hall element, a fourth Hall element, and a fifth Hall element;

[0023] For each Hall element in the Hall element array, the difference between the voltage signal corresponding to the Hall element and the comparison voltage signal is calculated to obtain a difference signal, the Hall element corresponding to the smallest difference signal is recorded as the main measurement Hall element, and the remaining Hall elements are recorded as correction Hall elements;

[0024] Sending a shutdown instruction to the detection unit so that the detection unit turns off all the correction Hall elements.

[0025] Optionally, the calculation unit obtains a target correction value according to the target voltage signal set and the standard voltage signal set; the target voltage signal includes a third voltage signal, a fourth voltage signal and a fifth voltage signal; the standard voltage signal set includes a third standard voltage signal, a fourth standard voltage signal and a fifth standard voltage signal including:

[0026] For the target voltage signal set and the standard voltage signal set, calculating the difference between the voltage signal and the standard voltage signal to obtain a first voltage difference, a second voltage difference and a third voltage difference;

[0027] For each voltage difference, a relational expression between the voltage change and the magnetic field change is generated; based on all relational expressions, the magnetic flux components of the magnetic field in the X-axis, Y-axis and Z-axis of the target coordinate system under the current environment are determined;

[0028] The target correction value is obtained according to the magnetic flux components in the X-axis, the Y-axis and the Z-axis.

[0029] In a second aspect of the present invention, a high-precision flow measurement device based on a Hall element is provided, the device comprising:

[0030] A signal judgment module, which is used for the first Hall element to detect the magnetic field of the current environment in real time to obtain a first voltage signal, and send the first voltage signal to the central control unit; so that the central control unit performs signal judgment according to the initial voltage signal and the first voltage signal; the initial voltage signal is the voltage signal obtained by the first Hall element when the water meter is installed and calibrated;

[0031] A control instruction sending module, used for, if the signal judgment result is that the voltage is continuously abnormal, the central control unit sends an opening instruction to the detection unit; so that the detection unit turns on the correction Hall element set in the Hall element array to detect the magnetic field of the current environment to obtain a target voltage signal set, and sends the target voltage signal set to the calculation unit; the Hall element array includes a correction Hall element set and a main detection Hall element;

[0032] A correction value generating module, used for the calculation unit to obtain a target correction value according to the target voltage signal set and the standard voltage signal set, and send the target correction value to the central control unit;

[0033] A signal correction module, used for the central control unit to obtain the magnetic field of the current environment detected by the main measuring Hall element in real time to obtain a second voltage signal, and to perform signal correction to obtain a target voltage signal after aligning the target correction value with the second voltage signal in time;

[0034] The flow module is used to convert the voltage signal into a pulse signal and then perform flow calculation to obtain the final flow.

[0035] Optionally, the signal determination module includes:

[0036] a target difference calculation module, configured to calculate a difference between the first voltage signal and the initial voltage signal to obtain a target difference;

[0037] A voltage normal module, used to determine that the voltage is normal if the absolute value of the target difference is less than a preset threshold;

[0038] A smooth signal value calculation module is used to average the voltage signals at the current time point and N sampling points before the current time point to obtain the smooth signal value at the current time point if the absolute value of the target difference is greater than a preset threshold value;

[0039] A voltage timing abnormality module, used for calculating a standard deviation according to the smoothed signal value to obtain a target standard deviation. If the target standard deviation is greater than a preset standard deviation, the signal judgment result is a voltage timing abnormality;

[0040] The voltage continuous abnormality module is used to determine that the signal result is a voltage continuous abnormality if the target standard deviation is less than a preset standard deviation.

[0041] Optionally, the voltage timing abnormality module includes:

[0042] An influence factor determination module is used for the central control unit to obtain the corresponding numbers of the first Hall element and the main measurement Hall element, and search the influence factor recorded in the built-in memory according to the corresponding numbers;

[0043] A correction signal determination module, used for correcting the target difference according to the influencing factor to obtain a correction signal;

[0044] The second voltage signal correction module is used to correct the second voltage signal with the correction signal to obtain the target voltage signal.

[0045] Optionally, the voltage continuous abnormality module includes:

[0046] A comparison voltage signal determination module is used to obtain the voltage signals recorded by all the Hall elements in the Hall element array, and to add and average all the voltages to obtain a comparison voltage signal; the Hall element array includes a second Hall element, a third Hall element, a fourth Hall element and a fifth Hall element;

[0047] a difference signal determination module, for each Hall element in the Hall element array, calculating the difference between the voltage signal corresponding to the Hall element and the comparison voltage signal to obtain a difference signal, recording the Hall element corresponding to the smallest difference signal as the main measurement Hall element, and recording the remaining Hall elements as correction Hall elements;

[0048] The correction Hall element closing module is used to send a closing instruction to the detection unit so that the detection unit closes all the correction Hall elements.

[0049] Optionally, the signal correction module includes:

[0050] A voltage difference calculation module, used for calculating the difference between the voltage signal and the standard voltage signal for the target voltage signal set and the standard voltage signal set to obtain a first voltage difference, a second voltage difference and a third voltage difference;

[0051] A magnetic flux component calculation module is used to generate a relational expression between voltage change and magnetic field change for each voltage difference; and determine the magnetic flux components of the magnetic field in the X-axis, Y-axis and Z-axis of the target coordinate system under the current environment according to all relational expressions;

[0052] The target correction value determination module is used to obtain the target correction value according to the magnetic flux components in the X-axis, the Y-axis and the Z-axis.

[0053] Beneficial effects of the present invention:

[0054] The present invention proposes a high-precision flow measurement method based on Hall elements, wherein a first Hall element detects the magnetic field of the current environment in real time to obtain a first voltage signal, and sends the first voltage signal to a central control unit; so that the central control unit performs signal judgment based on the initial voltage signal and the first voltage signal; if the signal judgment result is that the voltage is continuously abnormal, the central control unit sends an opening instruction to the detection unit; so that the detection unit turns on the correction Hall element set in the Hall element array to detect the magnetic field of the current environment to obtain a target voltage signal set, and sends the target voltage signal set to the calculation unit; the calculation unit obtains a target correction value based on the target voltage signal set and the standard voltage signal set, and sends the target correction value to the central control unit; the central control unit obtains the main measurement Hall element to detect the magnetic field of the current environment in real time to obtain a second voltage signal, and after time-aligning the target correction value and the second voltage signal, performs signal correction to obtain the target voltage signal; and converts the voltage signal into a pulse signal and performs flow calculation to obtain the final flow. Through the coordinated work of the first Hall element and the correction Hall element set, the interference of the external magnetic field on the Hall element can be detected and corrected in real time to ensure the accuracy of the measured potential difference; by calculating the target correction value and performing time alignment and correction on the second voltage signal, the error caused by external magnetic field interference can be effectively filtered out to provide more reliable flow measurement data, and when a voltage abnormality is detected, the correction process is automatically started to ensure the reliability and stability of the measurement data and improve the accuracy of flow measurement. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The present invention will be further described below in conjunction with the accompanying drawings.

[0056] Figure 1 A flow chart of a high-precision flow measurement method based on a Hall element is provided for an embodiment of the present invention;

[0057] Figure 2 A schematic diagram of the position of a Hall element is provided for an embodiment of the present invention;

[0058] Figure 3 A schematic structural diagram of a high-precision flow measurement device based on a Hall element is provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the present invention, the description of "first", "second", etc. is only used for descriptive purposes, and cannot be understood as indicating or implying its relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" can explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0060] Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of the present invention.

[0061] The embodiment of the present invention provides a high-precision flow measurement method based on Hall element. Figure 1 , Figure 1 A flow chart of a high-precision flow measurement method based on a Hall element provided in an embodiment of the present invention. The method comprises the following steps:

[0062] S101, the first Hall element detects the magnetic field of the current environment in real time to obtain a first voltage signal, and sends the first voltage signal to the central control unit; so that the central control unit performs signal judgment according to the initial voltage signal and the first voltage signal.

[0063] S102, if the signal judgment result is that the voltage is continuously abnormal, the central control unit sends an opening instruction to the detection unit; so that the detection unit turns on the correction Hall element set in the Hall element array to detect the magnetic field of the current environment to obtain a target voltage signal set, and sends the target voltage signal set to the calculation unit.

[0064] S103, the calculation unit obtains a target correction value according to the target voltage signal set and the standard voltage signal set, and sends the target correction value to the central control unit.

[0065] S104, the central control unit obtains the magnetic field of the current environment detected by the main measuring Hall element in real time to obtain a second voltage signal, aligns the target correction value with the second voltage signal in time, and then performs signal correction to obtain a target voltage signal.

[0066] S105, converting the voltage signal into a pulse signal and then performing flow calculation to obtain a final flow.

[0067] The initial voltage signal is a voltage signal obtained by the first Hall element when the water meter is installed and calibrated; the Hall element array includes a correction Hall element set and a main measurement Hall element.

[0068] A high-precision flow measurement method based on a Hall element provided in an embodiment of the present invention can detect and correct the interference of the external magnetic field on the Hall element in real time through the coordinated work of the first Hall element and the correction Hall element set, thereby ensuring the accuracy of measuring the potential difference; by calculating the target correction value and performing time alignment and correction on the second voltage signal, it can effectively filter out the error caused by the external magnetic field interference, provide more reliable flow measurement data, and automatically start the correction process when a voltage abnormality is detected, thereby ensuring the reliability and stability of the measurement data and improving the accuracy of the flow measurement.

[0069] In one implementation, the magnetic field of the current environment is detected in real time by the first Hall element, and a voltage signal is sent to the central control unit, so that the system can sense the changes in the external magnetic field in real time, providing a basis for subsequent signal processing.

[0070] In one implementation, when a persistent voltage abnormality is detected, the central control unit sends an on command to the detection unit to start the correction Hall element set in the Hall element array for detection, which can effectively reduce the risk of a single Hall element being interfered with by an external magnetic field.

[0071] In one implementation, the central control unit performs signal correction after time-aligning the target correction value and the second voltage signal detected by the main measuring Hall element to obtain a more accurate target voltage signal, ensuring that the system can output a stable voltage signal even in a complex external magnetic field environment.

[0072] In one implementation, the installed water meter includes 5 Hall elements, among which the first Hall element is an element far away from the magnet rotor and is installed in the water inlet direction of the water meter, and the remaining 4 Hall elements are installed around the magnet rotor. When the water meter is installed, the potential difference generated by each Hall element in the current environment will be detected and calibrated as a standard voltage signal, and the initial voltage signal is the standard voltage signal of the first Hall element.

[0073] In one implementation, after the target correction value and the second voltage signal are time-aligned, signal correction is performed to obtain the target voltage signal. Specifically, when each voltage signal is collected, an accurate timestamp is recorded, and the time difference between the target correction value and the second voltage signal is calculated based on the timestamp. Based on the time difference, the target correction value or the second voltage signal is interpolated or appropriately delayed to achieve time alignment, and the aligned signals are added to obtain the target voltage signal.

[0074] In one implementation, the flow calculation is to set a voltage threshold. When the voltage is greater than the voltage threshold, a pulse is output. A time window with a duration of 10 milliseconds is used. A pulse is generated only when the voltage signal continues to exceed the threshold during this time. The time window T=1 second is set, and the number of pulses n is counted during this time. Assuming that each pulse corresponds to 0.1 liters of water, the flow Q calculation formula within the time window is Q=n*0.1. If 50 pulses are counted within 1 second, the flow Q is, Q=50×0.1=5 liters / second; the voltage threshold is determined by the technician.

[0075] In one embodiment, the central control unit performs signal determination according to the initial voltage signal and the first voltage signal, including:

[0076] Calculating the difference between the first voltage signal and the initial voltage signal to obtain a target difference;

[0077] If the absolute value of the target difference is less than the preset threshold, the signal judgment result is that the voltage is normal;

[0078] If the absolute value of the target difference is greater than the preset threshold, the voltage signals at the current time point and the N sampling points before it are averaged to obtain the smoothed signal value at the current time point;

[0079] The target standard deviation is obtained by calculating the standard deviation according to the smoothed signal value. If the target standard deviation is greater than the preset standard deviation, the signal judgment result is that the voltage is abnormal in timing.

[0080] If the target standard deviation is less than the preset standard deviation, the signal judgment result is that the voltage is continuously abnormal.

[0081] In one implementation, if the absolute value of the target difference is less than a preset threshold, it means that the magnetic field changes normally in the current environment; if the absolute value of the target difference is greater than the preset threshold and the target standard deviation is greater than the preset standard deviation, it means that the magnetic field in the current environment changes suddenly; if the absolute value of the target difference is greater than the preset threshold and the target standard deviation is less than the preset standard deviation, it means that magnetic field interference continues to occur in the current environment.

[0082] In one implementation, by calculating the target difference and the standard deviation, the central control unit can accurately determine the state of the voltage signal. The judgment criteria for normal voltage and abnormal voltage are clear, which avoids misjudgment and improves the reliability of the system.

[0083] In one implementation, the solution can distinguish between voltage sequential anomalies and voltage continuous anomalies, and take corresponding measures for different types of anomalies, which helps to handle voltage signal problems more accurately.

[0084] In one implementation, by smoothing the voltage signal, the influence of instantaneous noise and mutation on the judgment result is reduced, and the stability and accuracy of signal processing are improved.

[0085] In one implementation, the standard deviation calculation method can be used to more comprehensively analyze the changing trend of the voltage signal, thereby enhancing the sensitivity of abnormality detection. The standard deviation, as a measure of the degree of fluctuation, can effectively reflect the stability of the voltage signal.

[0086] In one implementation, the preset threshold and the preset standard deviation are determined by a technician, and the number of N sampling points is determined by a technician within a time window.

[0087] In one embodiment, after the signal judgment result is that the voltage is abnormal in timing, the method includes:

[0088] The central control unit obtains the corresponding numbers of the first Hall element and the main measurement Hall element, and searches for the influencing factors recorded in the built-in memory according to the corresponding numbers;

[0089] The target difference is corrected according to the influencing factor to obtain a correction signal;

[0090] The second voltage signal is corrected by using the correction signal to obtain a target voltage signal.

[0091] In one implementation, when installing the Hall element, each Hall element is labeled, and for any Hall element in the Hall element array, the difference in voltage change between the first Hall element and the Hall element in different sizes is measured, and the difference average is calculated based on the difference in all voltage changes. All voltage values ​​of the Hall element are averaged to obtain a first average value, and all voltage values ​​of the first Hall element are averaged to obtain a second average value. The difference average value is divided by the first average value to obtain a first parameter, the difference average value is divided by the second average value to obtain a second parameter, and the first parameter is divided by the second parameter to obtain an influence factor.

[0092] In one implementation, the correction signal is obtained by multiplying the impact factor and the target difference.

[0093] In one implementation, the second voltage signal is corrected by the correction signal so that when the direction of the external interference magnetic field is opposite to the direction of the magnetic field measured by the main measuring Hall element, they are added, and if the directions of the magnetic fields are the same, they are subtracted.

[0094] In one implementation, the target difference is corrected by using an influencing factor, taking into account the response differences of different Hall element combinations in different environments, which can effectively improve the measurement accuracy.

[0095] In one implementation, the central control unit can dynamically find the influencing factor and make corrections based on the Hall element number measured in real time. It has strong flexibility and can adapt to changes in different measurement conditions and environments.

[0096] In one embodiment, after the signal judgment result is that the voltage is normal, the method includes:

[0097] Obtaining voltage signals recorded by all Hall elements in the Hall element array, and adding and averaging all voltages to obtain a comparison voltage signal; the Hall element array includes a second Hall element, a third Hall element, a fourth Hall element, and a fifth Hall element;

[0098] For each Hall element in the Hall element array, the difference between the voltage signal corresponding to the Hall element and the comparison voltage signal is calculated to obtain a difference signal, and the Hall element corresponding to the smallest difference signal is recorded as the main measurement Hall element, and the remaining Hall elements are recorded as correction Hall elements;

[0099] Send a shutdown command to the detection unit so that the detection unit turns off all the corrected Hall elements.

[0100] In one implementation, the voltage signals of multiple Hall elements are calculated and compared to determine the main measuring Hall element that is least disturbed by the external magnetic field, thereby reducing the influence of interference and improving measurement accuracy.

[0101] In one implementation, only one main measurement Hall element is retained for measurement, and the remaining Hall elements are turned off when not needed, thereby optimizing resource utilization and improving system efficiency.

[0102] In one implementation, see Figure 2 , Figure 2 a, b, c, d are four identical Hall elements. Figure 2Where e is a circular magnet, and the circular magnet e, Hall element b, and Hall element d are in the same plane as the first plane, and on the same straight line, the distance between each Hall element is equal, Lab=Lac=Lad=Lbc=Lbd=Lcd. For example, during initial use, Hall element a is the main measuring Hall element, and Hall elements b, c, and d are the correcting Hall elements. When continuous interference occurs, Hall elements b, c, and d are turned on and then calculated. The difference between the corresponding voltage signal of the Hall element and the comparison voltage signal is used to obtain a difference signal. If the Hall element b has the smallest difference signal at this time, Hall element b is recorded as the main measuring Hall element, and Hall elements a, c, and d are recorded as correcting Hall elements.

[0103] In one embodiment, the calculation unit obtains the target correction value according to the target voltage signal set and the standard voltage signal set; the target voltage signal includes the third voltage signal, the fourth voltage signal and the fifth voltage signal; the standard voltage signal set includes the third standard voltage signal, the fourth standard voltage signal and the fifth standard voltage signal including:

[0104] For the target voltage signal set and the standard voltage signal set, calculating the difference between the voltage signal and the standard voltage signal to obtain a first voltage difference, a second voltage difference and a third voltage difference;

[0105] For each voltage difference, a relational expression between the voltage change and the magnetic field change is generated; based on all relational expressions, the magnetic flux components of the magnetic field in the X-axis, Y-axis and Z-axis of the target coordinate system under the current environment are determined;

[0106] The target correction value is obtained according to the magnetic flux components in the X-axis, Y-axis and Z-axis.

[0107] In one implementation, by calculating the voltage difference and generating an expression for the relationship between the voltage change and the magnetic field change, the components of the magnetic field in different coordinate axes can be accurately determined, thereby achieving high-precision magnetic field correction.

[0108] In one implementation, the circular magnet e is taken as the center of the circle, the direction from the circular magnet e to the Hall element b is the X-axis, the direction perpendicular to the first plane with the circular magnet e as the starting point is the Z-axis, and the direction perpendicular to Lbd with the circular magnet e as the starting point and on the first plane is the Y-axis, thereby obtaining the target coordinate system.

[0109] In one implementation, by accurately calculating and correcting the magnetic field components, external magnetic field interference and measurement errors can be effectively reduced, ensuring the accuracy and reliability of the measurement results.

[0110] In one implementation, the difference between the voltage signal and the standard voltage signal is calculated to obtain the first voltage difference, the second voltage difference and the third voltage difference by the formula

[0111] in, , , are respectively a first voltage difference, a second voltage difference and a third voltage difference; To generate the magnetic field sensitivity of the first voltage difference Hall element, To generate the second voltage difference, the sensitivity of the Hall element, To generate the third voltage difference, the sensitivity of the Hall element is , , are the magnetic field components on the X-axis, Y-axis and Z-axis respectively, , and They are the angle components of the X-axis, Y-axis and Z-axis of the Hall element in the target coordinate system in the direction of the magnetic field that generates the first voltage difference, , and They are the angle components of the X-axis, Y-axis and Z-axis of the Hall element in the target coordinate system in the direction of the magnetic field that generates the second voltage difference, , and They are the angular components of the X-axis, Y-axis and Z-axis of the Hall element in the target coordinate system that generate the third voltage difference in the direction of the magnetic field. The initial value of the magnetic field sensitivity of each Hall element is zero, and it decreases according to the number of uses. The decrease curve is obtained by measuring the Hall element in the laboratory.

[0112] One implementation method is to determine the magnetic flux components of the magnetic field in the X-axis, Y-axis and Z-axis in the target coordinate system under the current environment according to all relationship expressions. First, combine the above equations into a matrix form to obtain

[0113] , and solving the matrix yields the magnetic flux components in the X-axis, Y-axis, and Z-axis.

[0114] One way to achieve this is through the formula

[0115] Get the target correction value; To measure the magnetic field sensitivity of the Hall element, , and They are respectively the angular components of the magnetic field direction of the main measuring Hall element in the X-axis, Y-axis and Z-axis in the target coordinate system.

[0116] Based on the same inventive concept, the present invention also provides a high-precision flow measurement device based on a Hall element. Figure 3 , Figure 3 A schematic structural diagram of a high-precision flow measurement device based on a Hall element provided in an embodiment of the present invention includes:

[0117] A signal judgment module is used for the first Hall element to detect the magnetic field of the current environment in real time to obtain a first voltage signal, and send the first voltage signal to the central control unit; so that the central control unit performs signal judgment based on the initial voltage signal and the first voltage signal; the initial voltage signal is the voltage signal obtained by the first Hall element when the water meter is installed and calibrated;

[0118] A control instruction sending module is used for, if the signal judgment result is that the voltage is continuously abnormal, the central control unit sends an opening instruction to the detection unit; so that the detection unit turns on the correction Hall element set in the Hall element array to detect the magnetic field of the current environment to obtain a target voltage signal set, and sends the target voltage signal set to the calculation unit; the Hall element array includes a correction Hall element set and a main detection Hall element;

[0119] A correction value generation module is used for the calculation unit to obtain a target correction value according to the target voltage signal set and the standard voltage signal set, and send the target correction value to the central control unit;

[0120] A signal correction module is used for the central control unit to obtain the magnetic field of the current environment detected by the main measuring Hall element in real time to obtain a second voltage signal, and after aligning the target correction value with the second voltage signal in time, perform signal correction to obtain a target voltage signal;

[0121] The flow module is used to convert the voltage signal into a pulse signal and then perform flow calculation to obtain the final flow.

[0122] A high-precision flow measurement device based on a Hall element provided in an embodiment of the present invention can detect and correct the interference of an external magnetic field on the Hall element in real time through the coordinated work of a first Hall element and a correction Hall element set, thereby ensuring the accuracy of measuring the potential difference; by calculating the target correction value and performing time alignment and correction on the second voltage signal, it can effectively filter out errors caused by external magnetic field interference, provide more reliable flow measurement data, and automatically start the correction process when a voltage abnormality is detected, thereby ensuring the reliability and stability of the measurement data and improving the accuracy of the flow measurement.

[0123] In one embodiment, the signal determination module includes:

[0124] A target difference calculation module, used for calculating the difference between the first voltage signal and the initial voltage signal to obtain a target difference;

[0125] A voltage normal module is used to determine that the voltage is normal if the absolute value of the target difference is less than a preset threshold;

[0126] A smooth signal value calculation module is used to average the voltage signals at the current time point and the N sampling points before it to obtain the smooth signal value at the current time point if the absolute value of the target difference is greater than a preset threshold value;

[0127] The voltage timing anomaly module is used to calculate the standard deviation according to the smoothed signal value to obtain the target standard deviation. If the target standard deviation is greater than the preset standard deviation, the signal judgment result is the voltage timing anomaly;

[0128] The voltage continuous abnormality module is used to judge the signal result as a voltage continuous abnormality if the target standard deviation is less than the preset standard deviation.

[0129] In one embodiment, the voltage timing abnormality module includes:

[0130] An influence factor determination module is used for the central control unit to obtain the corresponding numbers of the first Hall element and the main measurement Hall element, and to search for the influence factor recorded in the built-in memory according to the corresponding numbers;

[0131] A correction signal determination module is used to correct the target difference according to the influencing factor to obtain a correction signal;

[0132] The second voltage signal correction module is used to correct the second voltage signal with a correction signal to obtain a target voltage signal.

[0133] In one embodiment, the voltage continuous abnormality module includes:

[0134] A comparison voltage signal determination module is used to obtain the voltage signals recorded by all Hall elements in the Hall element array, and to add and average all voltages to obtain a comparison voltage signal; the Hall element array includes a second Hall element, a third Hall element, a fourth Hall element and a fifth Hall element;

[0135] The difference signal determination module is used to calculate the difference between the voltage signal corresponding to each Hall element in the Hall element array and the comparison voltage signal to obtain a difference signal, and record the Hall element corresponding to the smallest difference signal as the main measurement Hall element, and the remaining Hall elements as correction Hall elements;

[0136] The correction Hall element closing module is used to send a closing instruction to the detection unit so that the detection unit closes all the correction Hall elements.

[0137] In one embodiment, the signal correction module includes:

[0138] A voltage difference calculation module, used for calculating the difference between the voltage signal and the standard voltage signal to obtain a first voltage difference, a second voltage difference and a third voltage difference with respect to the target voltage signal set and the standard voltage signal set;

[0139] A magnetic flux component calculation module is used to generate a relational expression between voltage change and magnetic field change for each voltage difference; and determine the magnetic flux components of the magnetic field in the X-axis, Y-axis and Z-axis of the target coordinate system under the current environment according to all relational expressions;

[0140] The target correction value determination module is used to obtain the target correction value according to the magnetic flux components in the X-axis, Y-axis and Z-axis.

[0141] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A high-precision flow measurement method based on Hall elements, It is characterized in that The method comprises: The first Hall element detects the magnetic field of the current environment in real time to obtain a first voltage signal, and sends the first voltage signal to the central control unit; so that the central control unit performs signal judgment according to the initial voltage signal and the first voltage signal; the initial voltage signal is the voltage signal obtained by the first Hall element when the water meter is installed and calibrated; If the signal judgment result is that the voltage is continuously abnormal, the central control unit sends an opening instruction to the detection unit; so that the detection unit turns on the correction Hall element set in the Hall element array to detect the magnetic field of the current environment to obtain a target voltage signal set, and sends the target voltage signal set to the calculation unit; The Hall element array includes a correction Hall element set and a main measurement Hall element; The calculation unit obtains a target correction value according to the target voltage signal set and the standard voltage signal set, and sends the target correction value to the central control unit; the standard voltage signal in the standard voltage signal set is the potential difference generated by the Hall element when it is installed and calibrated in the current environment; The central control unit acquires the magnetic field of the current environment detected by the main measuring Hall element in real time to obtain a second voltage signal, and after aligning the target correction value with the second voltage signal in time, performs signal correction to obtain a target voltage signal; The target voltage signal is converted into a pulse signal and then flow calculation is performed to obtain a final flow; The central control unit performs signal judgment according to the initial voltage signal and the first voltage signal, including: Calculating a difference between the first voltage signal and the initial voltage signal to obtain a target difference; If the absolute value of the target difference is less than the preset threshold, the signal judgment result is that the voltage is normal; If the absolute value of the target difference is greater than a preset threshold, the voltage signals at the current time point and the N sampling points before it are averaged to obtain a smoothed signal value at the current time point; Calculating the standard deviation according to the smoothed signal value to obtain a target standard deviation, and if the target standard deviation is greater than a preset standard deviation, the signal judgment result is that the voltage is transiently abnormal; If the target standard deviation is less than the preset standard deviation, the signal determination result is that the voltage is continuously abnormal.

2. A high-precision flow measurement method based on Hall element according to claim 1, It is characterized in that When the signal is judged as voltage transient abnormality, the following are included: The central control unit obtains the corresponding numbers of the first Hall element and the main measurement Hall element, and searches for the influencing factors recorded in the built-in memory according to the corresponding numbers; Correcting the target difference according to the influencing factor to obtain a correction signal; The second voltage signal is corrected by using the correction signal to obtain the target voltage signal.

3. According to claim 1, a high-precision flow measurement method based on Hall element, It is characterized in that After the signal is judged to be normal voltage, the following are included: Obtaining voltage signals recorded by all Hall elements in the Hall element array, and adding and averaging all voltages to obtain a comparison voltage signal; the Hall element array includes a second Hall element, a third Hall element, a fourth Hall element, and a fifth Hall element; For each Hall element in the Hall element array, the difference between the voltage signal corresponding to the Hall element and the comparison voltage signal is calculated to obtain a difference signal, the Hall element corresponding to the smallest difference signal is recorded as the main measurement Hall element, and the remaining Hall elements are recorded as correction Hall elements; Sending a shutdown instruction to the detection unit so that the detection unit turns off all the correction Hall elements.

4. According to claim 1, a high-precision flow measurement method based on Hall element, It is characterized in that The calculation unit obtains a target correction value according to the target voltage signal set and the standard voltage signal set; the target voltage signal set includes a third voltage signal, a fourth voltage signal and a fifth voltage signal; the standard voltage signal set includes a third standard voltage signal, a fourth standard voltage signal and a fifth standard voltage signal: For the target voltage signal set and the standard voltage signal set, calculating the difference between the voltage signal and the standard voltage signal to obtain a first voltage difference, a second voltage difference and a third voltage difference; For each voltage difference, a relational expression between the voltage change and the magnetic field change is generated; based on all relational expressions, the magnetic flux components of the magnetic field in the X-axis, Y-axis and Z-axis of the target coordinate system under the current environment are determined; The target correction value is obtained according to the magnetic flux components in the X-axis, the Y-axis and the Z-axis.

5. A high-precision flow measurement device based on Hall elements, It is characterized in that The device comprises: A signal judgment module, which is used for the first Hall element to detect the magnetic field of the current environment in real time to obtain a first voltage signal, and send the first voltage signal to the central control unit; so that the central control unit performs signal judgment according to the initial voltage signal and the first voltage signal; the initial voltage signal is the voltage signal obtained by the first Hall element when the water meter is installed and calibrated; A control instruction sending module, used for, if the signal judgment result is that the voltage is continuously abnormal, the central control unit sends an opening instruction to the detection unit; so that the detection unit turns on the correction Hall element set in the Hall element array to detect the magnetic field of the current environment to obtain a target voltage signal set, and sends the target voltage signal set to the calculation unit; the Hall element array includes a correction Hall element set and a main detection Hall element; A correction value generating module, used for the calculation unit to obtain a target correction value according to the target voltage signal set and the standard voltage signal set, and send the target correction value to the central control unit; A signal correction module, used for the central control unit to obtain the magnetic field of the current environment detected by the main measuring Hall element in real time to obtain a second voltage signal, and to perform signal correction to obtain a target voltage signal after aligning the target correction value with the second voltage signal in time; A flow module, used for converting the target voltage signal into a pulse signal and then performing flow calculation to obtain a final flow; The signal determination module comprises: a target difference calculation module, configured to calculate a difference between the first voltage signal and the initial voltage signal to obtain a target difference; A voltage normal module, used to determine that the voltage is normal if the absolute value of the target difference is less than a preset threshold; A smooth signal value calculation module is used to average the voltage signals at the current time point and N sampling points before the current time point to obtain the smooth signal value at the current time point if the absolute value of the target difference is greater than a preset threshold value; A voltage transient abnormality module, used to calculate the standard deviation according to the smoothed signal value to obtain a target standard deviation. If the target standard deviation is greater than a preset standard deviation, the signal judgment result is a voltage transient abnormality; The voltage continuous abnormality module is used to determine that the signal result is a voltage continuous abnormality if the target standard deviation is less than a preset standard deviation.

6. A high-precision flow measurement device based on a Hall element according to claim 5, It is characterized in that The voltage transient abnormality module comprises: An influence factor determination module is used for the central control unit to obtain the corresponding numbers of the first Hall element and the main measurement Hall element, and search the influence factor recorded in the built-in memory according to the corresponding numbers; A correction signal determination module, used for correcting the target difference according to the influencing factor to obtain a correction signal; The second voltage signal correction module is used to correct the second voltage signal with the correction signal to obtain the target voltage signal.

7. A high-precision flow measurement device based on a Hall element according to claim 5, It is characterized in that The voltage continuous abnormality module includes: A comparison voltage signal determination module is used to obtain the voltage signals recorded by all the Hall elements in the Hall element array, and to add and average all the voltages to obtain a comparison voltage signal; the Hall element array includes a second Hall element, a third Hall element, a fourth Hall element and a fifth Hall element; a difference signal determination module, for each Hall element in the Hall element array, calculating the difference between the voltage signal corresponding to the Hall element and the comparison voltage signal to obtain a difference signal, recording the Hall element corresponding to the smallest difference signal as the main measurement Hall element, and recording the remaining Hall elements as correction Hall elements; The correction Hall element closing module is used to send a closing instruction to the detection unit so that the detection unit closes all the correction Hall elements.

8. A high-precision flow measurement device based on a Hall element according to claim 5, It is characterized in that The target voltage signal set includes a third voltage signal, a fourth voltage signal, and a fifth voltage signal; The standard voltage signal set includes a third standard voltage signal, a fourth standard voltage signal and a fifth standard voltage signal, and the signal correction module includes: A voltage difference calculation module, used for calculating the difference between the voltage signal and the standard voltage signal for the target voltage signal set and the standard voltage signal set to obtain a first voltage difference, a second voltage difference and a third voltage difference; A magnetic flux component calculation module is used to generate a relational expression between voltage change and magnetic field change for each voltage difference; and determine the magnetic flux components of the magnetic field in the X-axis, Y-axis and Z-axis of the target coordinate system under the current environment according to all relational expressions; The target correction value determination module is used to obtain the target correction value according to the magnetic flux components in the X-axis, the Y-axis and the Z-axis.