Method and system for detecting liquid level heights of different water bodies
By using the combination of capacitance measurement matrix and pressure sensor in the liquid level detection system, the liquid level height measurement error problem caused by the difference in density of different water bodies is solved, and the effect of automatically adapting to changes in liquid density and improving measurement accuracy is achieved.
Patent Information
- Application Number
- CN202311592368.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2025-05-27
AI Technical Summary
Different water bodies have different density differences, and the liquid level height values are inconsistent by pressure measurement, which have high installation requirements, high debugging difficulty, low measurement accuracy, and inability to adapt to changes in liquid density.
The detection device including up and down pressure sensors and multiple capacitance position sensors is adopted to measure the liquid level height through the capacitance measurement matrix, combine the pressure data collected by the pressure sensor to automatically calculate the liquid level height, and adapt to the density changes of different liquids through density correction.
It realizes automatic adaptation to different liquid height detection, reduces the difficulty of using and maintaining the water level measuring device, solves the problem of increasing liquid level height measurement error, and improves the measurement accuracy.
Smart Images

Figure CN120043601A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of water level detection, and particularly relates to a method and system for detecting the liquid level height of different water bodies. Background Art
[0002] The measurement of the height of open liquids can be roughly divided into radar type, pressure type, induction type, etc. For places with relatively small range requirements and high precision requirements, the pressure type liquid level detection method is usually used. By detecting the pressure value at the bottom of the liquid and the air pressure value, the differential pressure is the pressure value of the liquid itself, and then the height h of the liquid surface is calculated according to the pressure calculation formula.
[0003] For the differential pressure type liquid level height detection method, the sensor is connected to the detection device through a special cable and put into the liquid. The liquid height is calculated by detecting the differential pressure between the sensor and the air. It is necessary to preset the density coefficient of the liquid, and the accurate liquid height value can be calculated only when the input height value is known. There are problems such as high installation requirements, large debugging difficulty, low measurement accuracy, and inability to adapt to changes in liquid density. Summary of the Invention
[0004] In order to solve the problem that the liquid level height values measured by pressure are inconsistent due to density differences in different water bodies, the present invention proposes a method and system for detecting the liquid level height of different water bodies.
[0005] The first aspect of the present invention discloses a method for detecting the liquid level height of different water bodies. The method is implemented by a detection device, and the detection device includes an upper pressure sensor, a lower pressure sensor, and a plurality of capacitance position sensors; wherein, the plurality of capacitance position sensors are arranged at intervals between the upper pressure sensor and the lower pressure sensor to form a capacitance measurement matrix.
[0006] The method includes:
[0007] Step S1, measuring the first liquid level height through the capacitance measurement matrix;
[0008] Step S2, determining whether the first liquid level height is lower than the position of the detection port of the upper pressure sensor;
[0009] Step S3, when the judgment result is negative, jointly measure through the upper and lower pressure sensors, and then calculate the second liquid level height.
[0010] According to the method of the first aspect of the present invention, in the step S1, it specifically includes:
[0011] Monitoring the positions of the capacitance position sensors with capacitance value changes in the capacitance measurement matrix, and representing the first liquid level height with the height of the capacitance position sensors with capacitance value changes.
[0012] The method according to the first aspect of the present invention, in the step S2, specifically includes:
[0013] If the position of the capacitance position sensor with a capacitance value change is located at the far end of the capacitance measurement matrix, it is determined that the first liquid level height is not lower than the position of the detection port of the upper pressure sensor;
[0014] If the position of the capacitance position sensor with a capacitance value change is located between the near end and the far end of the capacitance measurement matrix, it is determined that the first liquid level height is between the detection ports of the upper and lower pressure sensors;
[0015] If no capacitance value change of the capacitance position sensor in the capacitance measurement matrix is detected, it is determined that the first liquid level height is lower than the lower pressure sensor.
[0016] The method according to the first aspect of the present invention, in the step S3, specifically includes:
[0017] Obtain the pressure P2 collected by the upper pressure sensor and the pressure P1 collected by the lower pressure sensor;
[0018] Based on the atmospheric pressure value P0, the distance H1 from the lower pressure sensor to the ground, and the distance H2 between the upper and lower pressure sensors, calculate the second liquid level height according to the pressure P1 and the pressure P2.
[0019] The method according to the first aspect of the present invention, the method further includes:
[0020] S4, if the first liquid level height is lower than the position of the detection port of the upper pressure sensor, determine whether the first liquid level height is between the detection ports of the upper and lower pressure sensors;
[0021] S5, when the judgment result is yes, obtain the pressure P1 collected by the lower pressure sensor and perform linear correction on the density coefficient ρ;
[0022] S6, based on the atmospheric pressure value P0, calculate the height of the liquid level to the lower pressure sensor according to the pressure P1 and the corrected density coefficient ρ, and then calculate the second liquid level height.
[0023] The step of performing linear correction on the density coefficient ρ according to the method of the first aspect of the present invention includes:
[0024] Measure the first liquid level height multiple times through the capacitance measurement matrix, and obtain the pressure P2 collected by the upper pressure sensor and the pressure P1 collected by the lower pressure sensor, thereby triggering multiple density calculations;
[0025] Obtain the average value of the multiple density calculations as the density coefficient ρ.
[0026] According to the method of the first aspect of the present invention, if the first liquid level height is lower than the lower pressure sensor, it is determined that the liquid level has not reached the detection threshold.
[0027] The second aspect of the present invention discloses a liquid level height detection system for different water bodies. The system includes an upper pressure sensor, a lower pressure sensor, a plurality of capacitance position sensors, a judgment module, and a control module. Among them,
[0028] The plurality of capacitance position sensors are arranged at intervals between the upper pressure sensor and the lower pressure sensor to form a capacitance measurement matrix.
[0029] The capacitance measurement matrix is configured to measure the first height of the liquid level.
[0030] The judgment module is configured to judge whether the first height of the liquid level is lower than the position of the detection port of the upper pressure sensor.
[0031] The control module is configured to, when the judgment result is negative, control the upper and lower pressure sensors to perform combined measurement, and then calculate the second height of the liquid level.
[0032] The third aspect of the present invention discloses an electronic device. The electronic device includes a memory and a processor. When the processor executes the computer program stored in the memory, the steps in any one of the liquid level height detection methods for different water bodies in the first aspect of the present disclosure are implemented.
[0033] The fourth aspect of the present invention discloses a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, the steps in any one of the liquid level height detection methods for different water bodies in the first aspect of the present disclosure are implemented.
[0034] In summary, the solution proposed by the present invention has the following technical effects: According to different positions of the liquid level height, multiple sensors are combined for measurement. Pressure data at different points are collected by two pressure sensors, which can automatically adapt to the height detection of different liquids, solve the problem of increased measurement error of the liquid level height caused by the density difference of different water bodies, and greatly reduce the usage difficulty and maintenance difficulty of the water level measurement device. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0036] Figure 1 It is a flowchart of a liquid level height detection method for different water bodies according to an embodiment of the present invention.
[0037] Figure 2 Schematic diagram when the liquid level is lower than the lower pressure sensor according to an embodiment of the present invention;
[0038] Figure 3 Schematic diagram when the liquid level is between the upper pressure sensor and the lower pressure sensor according to an embodiment of the present invention;
[0039] Figure 4 Schematic diagram when the liquid level is higher than the upper pressure sensor according to an embodiment of the present invention;
[0040] Figure 5 Structural diagram of an electronic device according to an embodiment of the present invention.
[0041] Explanation of the reference numerals in the drawings
[0042] Upper pressure sensor 10; lower pressure sensor 20; capacitance position sensor 30. Specific embodiments
[0043] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions 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. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0044] It can be understood that the terms "first", "second", etc. used in the present application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of the present application, the first image may be referred to as the second image, and similarly, the second image may be referred to as the first image. Both the first image and the second image are images, but they are not the same image.
[0045] For existing pressure-type water level detection devices, it is necessary to measure the density of different liquids and then input the density value as a correction coefficient manually into the detection device. Once the measured liquid changes, the correction coefficient needs to be re-measured and input, which is cumbersome and error-prone. The present invention provides a height detection method that can automatically adapt to different liquids. By collecting pressure data at different points through two pressure sensors, it can automatically adapt to the height detection of different liquids, greatly reducing the usage difficulty and maintenance difficulty of the water level measurement device.
[0046] Please refer to Figure 1, a schematic flow chart of a method for detecting the liquid level height of different water bodies is disclosed in the first aspect of the present invention. The method is implemented by a detection device, and the detection device includes an upper pressure sensor 10, a lower pressure sensor 20, and a plurality of capacitance position sensors 30; wherein, the plurality of capacitance position sensors 30 are arranged at intervals between the upper pressure sensor 10 and the lower pressure sensor 20 to form a capacitance measurement matrix. As an implementation manner, the plurality of capacitance position sensors 30 can be arranged at equal intervals with a spacing of 0.5 cm. At this time, the measurement error of the capacitance measurement matrix is 0.5 cm.
[0047] The method includes:
[0048] Step S1, measuring the first liquid level height through the capacitance measurement matrix;
[0049] In the step S1, it specifically includes:
[0050] Monitoring the positions of the capacitance position sensors 30 with capacitance value changes in the capacitance measurement matrix, and representing the first liquid level height with the height of the capacitance position sensors 30 with capacitance value changes.
[0051] Step S2, determining whether the first liquid level height is lower than the position of the detection port of the upper pressure sensor 10;
[0052] In the step S2, it specifically includes:
[0053] If the position of the capacitance position sensor 30 with capacitance value changes is located at the far end of the capacitance measurement matrix, and the far end refers to the position flush with the upper sensor 10, it is determined that the first liquid level height is not lower than the position of the detection port of the upper pressure sensor 10, that is, the liquid surface is higher than the upper pressure sensor 10.
[0054] Please refer to Figure 4 together. If the liquid surface is higher than the upper pressure sensor 10, the upper and lower pressure sensors 20 are used for joint measurement, and then the second liquid level height is calculated. Among them, since the measurement accuracy of the capacitance measurement matrix is lower than that of the pressure sensor, the first liquid level height can be understood as the approximate height of the liquid level, and the second liquid level height is a liquid level measurement value with a smaller measurement error than the first liquid level height.
[0055] Specifically, obtaining the pressure P2 collected by the upper pressure sensor 10 and the pressure P1 collected by the lower pressure sensor 20; calculating the height from the liquid level to the upper sensor, h = (P2 - P0) * H2 / (P1 - P2 - P0), and then the second liquid level height H = H1 + H2 + h.
[0056] If the position of the capacitance position sensor 30 with a changed capacitance value is located between the near-ground end and the far-ground end of the capacitance measurement matrix, and the near-ground end refers to the position flush with the lower sensor 20, it is determined that the first liquid level height is between the detection ports of the upper and lower pressure sensors 20. For details, please refer to Figure 3 ; if the first liquid level height is between the detection ports of the upper and lower pressure sensors 20, perform linear correction on the density coefficient ρ; then obtain the pressure P1 collected by the lower pressure sensor 20; based on the atmospheric pressure value P0, calculate the height of the liquid level to the lower pressure sensor 20 according to the pressure P1 and the corrected density coefficient ρ, and further calculate the second liquid level height.
[0057] The steps for performing linear correction on the density coefficient ρ include:
[0058] Measure the first liquid level height multiple times through the capacitance measurement matrix, and obtain the pressure P2 collected by the upper pressure sensor 10 and the pressure P1 collected by the lower pressure sensor 20, thereby triggering multiple density calculations;
[0059] Obtain the average value of the multiple density calculations as the density coefficient ρ.
[0060] Specifically, since the accuracy of the pressure sensor is higher than that of the capacitance position sensor 30, the density coefficient ρ can be calibrated first through the multiple measurement results of the capacitance measurement matrix, and then the second liquid level height can be calculated according to the pressure P1 detected by the lower pressure sensor 20. Specifically, the density calculation formula is:
[0061]
[0062] where ρ i is the density coefficient obtained during the i-th density calculation; H 水 is the first liquid level height measured by the capacitance measurement matrix.
[0063] When the density coefficient ρ is obtained, the pressure P1 collected by the lower pressure sensor 20 can be used to calculate the height h of the liquid surface to the lower pressure sensor 20, h = (P1 - P0) / (ρg), and further calculate the second liquid level height H, H = H1 + h.
[0064] If no capacitance value change of the capacitance position sensor 30 in the capacitance measurement matrix is detected, it is determined that the first liquid level height is lower than the lower pressure sensor 20. For details, please refer to Figure 2 . If the first liquid level height is lower than the lower pressure sensor 20, it is determined that the liquid level has not reached the detection threshold, and at this time the second liquid level height H = 0.
[0065] The second aspect of the present invention discloses a liquid level height detection system for different water bodies. The system includes an upper pressure sensor 10, a lower pressure sensor 20, a plurality of capacitance position sensors 30, a judgment module, and a control module; wherein,
[0066] The multiple capacitance position sensors 30 are arranged at intervals between the upper pressure sensor 10 and the lower pressure sensor 20 to form a capacitance measurement matrix;
[0067] The capacitance measurement matrix is configured to measure the first height of the liquid level;
[0068] The judgment module is configured to judge whether the first height of the liquid level is lower than the position of the detection port of the upper pressure sensor 10;
[0069] The control module is configured to, when the judgment result is negative, control the upper and lower pressure sensors 20 to perform combined measurement, and then calculate the second height of the liquid level.
[0070] A third aspect of the present invention discloses an electronic device. The electronic device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps in a method for detecting the liquid level height of different water bodies according to any one of the first aspects of the present disclosure are implemented.
[0071] Figure 5 FIG. is a structural diagram of an electronic device according to an embodiment of the present invention. As Figure 5 shown, the electronic device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner. The wireless manner can be implemented through WIFI, a carrier network, near field communication (NFC), or other technologies. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen. The input device of the electronic device can be a touch layer covered on the display screen, or a button, a trackball, or a touchpad provided on the housing of the electronic device, or an external keyboard, a touchpad, or a mouse, etc.
[0072] Those skilled in the art can understand that Figure 5 the structure shown in is only a structural diagram of a part related to the technical solution of the present disclosure, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.
[0073] The fourth aspect of the present invention discloses a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps in a liquid level height detection method for different water bodies according to any one of the first aspect of the present disclosure are implemented.
[0074] In summary, the solution proposed by the present invention has the following technical effects: According to different positions of the liquid level height, multiple sensors are combined for measurement. Pressure data at different points are collected by two pressure sensors, automatically adapting to the height detection of different liquids, solving the problem of increased measurement error of the liquid level height caused by the density difference of different water bodies, and greatly reducing the usage difficulty and maintenance difficulty of the water level measurement device.
[0075] Please note that the technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification. The above embodiments only represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but should not be construed as limiting the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present application, several deformations and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A method for detecting the liquid level height of different water bodies, characterized in that, the method is implemented by a detection device, and the detection device includes an upper pressure sensor, a lower pressure sensor, and a plurality of capacitance position sensors; wherein, the plurality of capacitance position sensors are arranged at intervals between the upper pressure sensor and the lower pressure sensor to form a capacitance measurement matrix; the method includes: Step S1, measuring the first liquid level height through the capacitance measurement matrix; Step S2, determining whether the first liquid level height is lower than the position of the detection port of the upper pressure sensor; Step S3, when the judgment result is negative, jointly measure through the upper and lower pressure sensors, and then calculate the second liquid level height.
2. The method according to claim 1, characterized in that, in the step S1, it specifically includes: monitoring the positions of the capacitance position sensors with capacitance value changes in the capacitance measurement matrix, and representing the first liquid level height with the height of the capacitance position sensors with capacitance value changes.
3. The method according to claim 2, characterized in that, in the step S2, it specifically includes: if the position of the capacitance position sensor with capacitance value change is located at the far end of the capacitance measurement matrix, it is determined that the first liquid level height is not lower than the position of the detection port of the upper pressure sensor; if the position of the capacitance position sensor with capacitance value change is located between the near end and the far end of the capacitance measurement matrix, it is determined that the first liquid level height is between the detection ports of the upper and lower pressure sensors; if no capacitance value change of the capacitance position sensor in the capacitance measurement matrix is detected, it is determined that the first liquid level height is lower than the lower pressure sensor.
4. The method according to claim 1, characterized in that, in the step S3, it specifically includes: acquiring the pressure P2 collected by the upper pressure sensor and the pressure P1 collected by the lower pressure sensor; based on the atmospheric pressure value P0, the distance H1 from the lower pressure sensor to the ground, and the distance H2 between the upper and lower pressure sensors, calculating the second liquid level height according to the pressure P1 and the pressure P2.
5. The method according to claim 1, characterized in that, the method further includes: S4, if the first liquid level height is lower than the position of the detection port of the upper pressure sensor, determining whether the first liquid level height is between the detection ports of the upper and lower pressure sensors; S5, when the judgment result is positive, acquiring the pressure P1 collected by the lower pressure sensor and performing linear correction on the density coefficient ρ; S6, based on the atmospheric pressure value P0, calculating the height of the liquid level to the lower pressure sensor according to the pressure P1 and the corrected density coefficient ρ, and then calculating the second liquid level height.
6. The method according to claim 5, characterized in that, the steps of performing linear correction on the density coefficient ρ include: measuring the first liquid level height multiple times through the capacitance measurement matrix, and acquiring the pressure P2 collected by the upper pressure sensor and the pressure P1 collected by the lower pressure sensor, thereby triggering multiple density calculations; acquiring the average value of the multiple density calculations as the density coefficient ρ.
7. The method according to claim 5, characterized in that, if the first liquid level height is lower than the lower pressure sensor, it is determined that the liquid level has not reached the detection threshold.
8. A liquid level height detection system for different water bodies, characterized in that, The system includes an upper pressure sensor, a lower pressure sensor, a plurality of capacitance position sensors, a judgment module, and a control module; wherein, The plurality of capacitance position sensors are arranged at intervals between the upper pressure sensor and the lower pressure sensor to form a capacitance measurement matrix; The capacitance measurement matrix is configured to measure a first height of the liquid level; The judgment module is configured to judge whether the first height of the liquid level is lower than the position of the detection port of the upper pressure sensor; The control module is configured to, when the judgment result is negative, control the upper and lower pressure sensors to perform combined measurement, and then calculate a second height of the liquid level.
9. An electronic device, characterized in that, the electronic device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps in the method for detecting the liquid level height of any one of different water bodies described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method for detecting the liquid level height of any one of different water bodies described in any one of claims 1 to 7 are implemented.