Over-the-air detection method and system of water level sensor, medium and equipment
Through the non-contact capacitance change detection structure and linear fitting method, the problem of signal interference of water level sensors in complex environments is solved, and high-precision and stable water level monitoring is achieved, which is suitable for complex working conditions and high-risk liquid environments.
Patent Information
- Application Number
- CN202510723362.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-08-01
AI Technical Summary
Existing water level sensor air-security detection technology is susceptible to interference in complex environments and it is difficult to accurately analyze water level data, especially under severe fluctuations and interference objects, which leads to inaccurate monitoring.
The non-contact capacitance change detection structure is adopted, by calculating the dielectric constant of the insulating material and the overlap area between PAD and water level, setting the reference capacitance value by using the equivalent capacitance value change, linearly fitting the relationship between water level height change and equivalent capacitance, and collecting the capacitance size in real time to calculate the water level height.
It realizes continuous monitoring of millimeter-level liquid level accuracy, is suitable for complex working conditions and high-risk liquid environments, avoids electrode corrosion problems caused by contact detection, and improves the stability and anti-interference ability of the monitoring system.
Smart Images

Figure CN120403807A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent sensing systems, and more specifically, to a remote detection method, system, medium and equipment for a water level sensor. Background Art
[0002] In the field of intelligent sensing systems, water level sensors for water level monitoring utilize advanced non-contact technologies such as radar, laser, and ultrasound to accurately calculate the water level by emitting signals in a specific wavelength band and capturing the echoes reflected from the water surface. Based on the time or phase change of the round-trip signal, the water level can be accurately calculated. This detection method is of great significance as it overcomes the limitations of traditional contact sensors, which are subject to water erosion and interference from impurities, and greatly enhances the stability and durability of the monitoring system. In particular, it can provide real-time, reliable water level data in scenarios such as flood disaster warning, urban water supply and drainage network operation and maintenance, and industrial water use control. This provides a solid foundation for flood prevention and disaster reduction decisions, scientific water resource scheduling, and ensuring the smooth operation of various facilities. It is crucial to maintaining social security and promoting sustainable economic development.
[0003] Prior to the technology of the present invention, existing water level sensors for remote detection mainly relied on two methods: ultrasound and radar. Ultrasonic detection uses sensors to emit high-frequency ultrasonic waves. The sound waves propagate in the air and then reflect back from the water surface. The sensor receives the reflected waves and accurately calculates the water level based on the round-trip time of the sound waves and the propagation speed in the air. Radar detection emits electromagnetic waves and also relies on receiving reflected waves to measure the water level using the propagation characteristics of electromagnetic waves. However, these technologies face many challenges. In complex environments, the violent fluctuations of the water surface will cause significant changes in the intensity, phase and other characteristics of the reflected waves. A large number of interference objects such as floating debris and reflections from shore buildings will seriously affect signal reception, resulting in signal distortion, making it difficult to accurately analyze and, in turn, difficult to obtain accurate water level data. Therefore, improving the anti-interference ability of the sensor so that it can work stably in complex environments, as well as optimizing the signal processing algorithm, efficiently filtering out interference signals and accurately extracting useful information, have become the key to achieving high-precision and high-stability remote water level monitoring. Summary of the Invention
[0004] In view of the above problems, the present invention proposes a remote detection method, system, medium and equipment for a water level sensor, and designs a non-contact water level measurement method and calculation method to realize online detection and display of the water level.
[0005] According to a first aspect of an embodiment of the present invention, a method for detecting a water level sensor in the air is provided.
[0006] In one or more embodiments, preferably, the air detection method of the water level sensor includes: Setting a non-contact air capacitance change detection structure; Calculate the equivalent capacitance of the water level in the air, including first calculating the dielectric constant of the insulating material, and then calculating the equivalent capacitance based on the overlapping area corresponding to the PAD and the water level, and the distance between the PAD and the water; Setting a reference capacitance value according to a change in the equivalent capacitance, specifically: calculating a capacitance change in the water container and an equivalent capacitance change according to the equivalent capacitance, and using one of the changes as a reference capacitance value; The relationship between the change in water height and the change in equivalent capacitance is set by linear fitting according to the reference capacitance value; According to the relationship between the change of water height and the change of equivalent capacitance, the equivalent capacitance is collected in real time to calculate the water level; According to the water level height, the current water level collection value is displayed in real time.
[0007] In one or more embodiments, preferably, the provision of a non-contact air capacitance change detection structure specifically includes: The non-contact air capacitance change detection structure includes a non-conductive cup, a plastic-like partition made of PVC material, a copper sampling sensor block, a detection circuit, a communication link and a computer; The non-conductive material cup is used to prevent the introduction of capacitance, which would render the capacitance detection of the water under test ineffective; There may be an air gap between the plastic-like partition made of PVC material and the non-conductive cup, and the distance of the air gap has an upper limit; PAD is used to form the sensing capacitor. PAD is a copper sampling sensing block with a painted surface for detecting water level. The detection board is used to detect and sample the inductive capacitance and calculate the corresponding capacitance value; The communication link transmits various real-time sampling data and setting data to the computer.
[0008] In one or more embodiments, preferably, the calculating the equivalent capacitance of the inter-space water level specifically includes: Calculate the dielectric constant of insulating materials; Automatically calculate the overlapping area between PAD and water level. PAD is a copper sampling sensor block with a painted surface used to detect water level. Set the distance between the detection pad and water; Use the first calculation formula to obtain the equivalent capacitance: ; in, The dielectric constant of vacuum is 8.854187817×10 -12 F / m, ε is the dielectric constant of the insulating material, including the comprehensive dielectric constant of the PCB board material, the plastic-like partition made of PVC material, and the water tank material. S is the overlapping area corresponding to the PAD and the water level, and d is the distance between the detection PAD and the water.
[0009] In one or more embodiments, preferably, the reference capacitance value is set according to the change of the equivalent capacitance value, which specifically includes: Obtain the equivalent capacitance value; Use the fifth calculation formula to calculate the change amount of the capacitance value in the water container and the change amount of the equivalent capacitance; Take the larger one of the change amount of the capacitance value in the water container and the change amount of the equivalent capacitance as the reference capacitance value; The fifth calculation formula is: ∆C0 = Cu – Cw ∆C1 = CV – Cd Where, ∆C0 is the change amount of the capacitance value in the water container, ∆C1 is the change amount of the equivalent capacitance, Cu is the equivalent capacitance in the water container after the water level rises, CV is the equivalent capacitance between the electrodes after setting the water level to rise, Cw is the capacitance value in the water container before the water level rises, and Cd is the equivalent capacitance in the water container before the water level rises.
[0010] In one or more embodiments, preferably, the relationship between the change of the water height and the change of the equivalent capacitance is set by linear fitting according to the reference capacitance value, which specifically includes: Take the reference capacitance value as the water capacitance; According to the relationship between the height of the water and the change amount of the water capacitance by linear fitting.
[0011] In one or more embodiments, preferably, according to the relationship between the change of the water height and the change of the equivalent capacitance, the equivalent capacitance size is collected in real time, and the water level height is calculated, which specifically includes: Obtain the relationship between the change of the water height and the change of the equivalent capacitance; Collect the equivalent capacitance size in real time, and inversely deduce the water level height according to the relationship between the change of the water height and the change of the equivalent capacitance.
[0012] In one or more embodiments, preferably, according to the water level height, the currently obtained water level acquisition value is displayed in real time, which specifically includes: According to the inversely deduced water level height, the single-chip microcomputer transmits the data to the display module; The display module displays the water level acquisition value in real time through the liquid crystal screen.
[0013] According to the second aspect of the embodiments of the present invention, a non-contact detection system for a water level sensor is provided.
[0014] In one or more embodiments, preferably, the non-contact detection system for the water level sensor includes: A non-contact water level measurement module for setting up a non-contact air-gap capacitance change detection structure; An equivalent capacitance value calculation module for calculating the equivalent capacitance value of the air-gap water level; An equivalent water level relationship calculation module for setting a reference capacitance value according to the change of the equivalent capacitance value; A relationship equivalence module for setting the relationship between the change in water height and the change in equivalent capacitance through linear fitting based on the reference capacitance value; A data back-calculation module for calculating the water level height by collecting the equivalent capacitance size in real time according to the relationship between the change in water height and the change in equivalent capacitance; A visualization display module for displaying the currently obtained water level acquisition value in real time according to the water level height.
[0015] According to the third aspect of the embodiments of the present invention, there is provided a computer-readable storage medium storing computer program instructions, and when the computer program instructions are executed by a processor, the method described in any one of the first aspects of the embodiments of the present invention is implemented.
[0016] According to the fourth aspect of the embodiments of the present invention, there is provided an electronic device including a memory and a processor, the memory being used for storing one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method described in any one of the first aspects of the embodiments of the present invention.
[0017] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects: The solution of the present invention can achieve millimeter-level liquid level accuracy through linear fitting and a refined capacitance model, and is applicable to scenarios that require continuous monitoring (such as water towers, chemical containers). In contrast, the prior art is limited by discrete sensing units and threshold judgment, with low accuracy (such as only being able to detect whether the liquid level reaches a certain fixed height), and is applicable to rough monitoring (such as water level alarms in household appliances).
[0018] The dynamic reference capacitance mechanism and physical parameter decoupling (such as separating variables such as dielectric constant, spacing, etc.) of the solution of the present invention can effectively suppress environmental interference (such as material expansion caused by temperature changes, liquid impurity fluctuations), and are suitable for complex working conditions (such as high-temperature, high-humidity, corrosive liquid environments). In contrast, the prior art solutions rely on fixed reference values and are easily affected by factors such as container material changes and installation gaps, and have weak environmental adaptability.
[0019] In the solution of the present invention, the non-contact structure and the precise modeling ability enable it to be used for detecting high-risk liquids (such as acid-base solutions and flammable liquids), continuously monitoring large-capacity containers (such as reservoirs and oil tanks), and scenarios that require long-term stable operation (to avoid the problem of electrode corrosion in contact detection). In contrast, the existing technical solutions are more suitable for household small devices (such as humidifiers and coffee machines) to meet the requirements of low cost and non-continuous detection.
[0020] Other features and advantages of the present invention will be described in the following specification, and part of them will become obvious from the specification or be understood by implementing the present invention. The objectives and other advantages of the present invention can be achieved and obtained through the structures specifically pointed out in the written specification, claims, and drawings.
[0021] The technical solution of the present invention will be further described in detail below through the drawings and embodiments. Description of the Drawings
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the following drawings are only some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative efforts.
[0023] Figure 1 It is a flowchart of the non-contact detection method of the water level sensor in an embodiment of the present invention.
[0024] Figure 2 It is a schematic diagram of the finger touch principle in the non-contact detection method of the water level sensor in an embodiment of the present invention.
[0025] Figure 3 It is a schematic diagram of the principle of the actual capacitance detection circuit in the non-contact detection method of the water level sensor in an embodiment of the present invention.
[0026] Figure 4 It is a composition diagram of the non-contact water level sensing system in the non-contact detection method of the water level sensor in an embodiment of the present invention.
[0027] Figure 5 It is an electronic principle model diagram of the non-contact water level capacitance sensing in the non-contact detection method of the water level sensor in an embodiment of the present invention.
[0028] Figure 6 It is a relationship diagram of the water height change and the water capacitance change in the non-contact detection method of the water level sensor in an embodiment of the present invention.
[0029] Figure 7It is a flowchart of the water level acquisition value currently obtained in real-time according to the water level height in the non-contact detection method of the water level sensor according to an embodiment of the present invention.
[0030] Figure 8 It is a structural diagram of the non-contact detection system of the water level sensor according to an embodiment of the present invention.
[0031] Figure 9 It is a structural diagram of an electronic device according to an embodiment of the present invention. Detailed implementation manners
[0032] In some processes described in the specification, claims and above-mentioned drawings of the present invention, a plurality of operations appear in a specific order. However, it should be clearly understood that these operations may not be executed in the order in which they appear herein or may be executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions such as "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, nor do they limit that "first" and "second" are of different types.
[0033] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with 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 the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present invention.
[0034] In the field of water level monitoring, the non-contact detection of water level sensors relies on advanced non-contact technologies such as radar, laser, and ultrasonic waves. By emitting signals in a specific wavelength band and capturing the echoes reflected from the water surface, the water level height can be accurately calculated based on the time or phase change of the signal's round trip. This detection method is of great significance. It breaks through the limitations of traditional contact sensors being affected by water erosion and impurity attachment interference, and greatly enhances the stability and durability of the monitoring system. Especially in scenarios such as flood disaster warning, urban water supply and drainage network operation and maintenance, and industrial production water control, it can provide real-time and reliable water level data, laying a solid foundation for flood prevention and disaster reduction decision-making, scientific water resource scheduling, and ensuring the stable operation of various facilities, which is crucial for maintaining social security and promoting sustainable economic development.
[0035] Before the technology of the present invention, the existing non-contact detection of water level mainly relies on two methods: ultrasonic and radar. Ultrasonic detection uses the sensor to emit high-frequency ultrasonic waves. The sound waves propagate in the air to the water surface and then reflect back. The sensor receives the reflected wave and accurately calculates the water level height based on the round-trip time of the sound wave and its propagation speed in the air. Radar detection emits electromagnetic waves and also measures the water level by receiving the reflected wave and using the propagation characteristics of electromagnetic waves. However, these technologies face many challenges. In a complex environment, the violent fluctuations of the water surface will cause significant changes in the characteristics of the reflected wave, such as intensity and phase. A large number of interfering objects, such as floating debris and reflections from shore buildings, seriously affect the signal reception, resulting in signal distortion and making it difficult to accurately analyze, and thus difficult to obtain accurate water level data. Therefore, improving the anti-interference ability of the sensor to enable it to work stably in a complex environment and optimizing the signal processing algorithm to efficiently filter out interference signals and accurately extract useful information become the key to achieving high-precision and high-stability non-contact water level monitoring.
[0036] In an embodiment of the present invention, a non-contact detection method, system, medium, and device for a water level sensor are provided. This solution designs a non-contact measurement method and a calculation method for the water level to achieve online detection and display of the water level.
[0037] According to the first aspect of the embodiment of the present invention, a non-contact detection method for a water level sensor is provided.
[0038] Figure 1 It is a flowchart of the non-contact detection method for a water level sensor according to an embodiment of the present invention.
[0039] In one or more embodiments, preferably, the non-contact detection method for the water level sensor includes: S101. Set up a non-contact capacitive change detection structure for the air-gap; S102. Calculate the equivalent capacitance value of the air-gap water level, including first calculating the dielectric constant of the insulating material, and then calculating the equivalent capacitance value based on the overlapping area corresponding to the PAD and the water level and the distance between the PAD and the water; S103. Set a reference capacitance value according to the change of the equivalent capacitance value, specifically: calculate the change amount of the capacitance value in the water container and the change amount of the equivalent capacitance respectively based on the equivalent capacitance value, and use one of the change amounts as the reference capacitance value; S104. Set the relationship between the change in the height of the water and the change in the equivalent capacitance by linear fitting according to the reference capacitance value; S105. According to the relationship between the change in the height of the water and the change in the equivalent capacitance, collect the size of the equivalent capacitance in real time and calculate the water level height; S106. According to the water level height, display the currently obtained water level acquisition value in real time.
[0040] In the embodiments of the present invention, there is an induced capacitance between any two conductive objects. A button, i.e., a pad, and the ground can also form an induced capacitance. In the case of an unchanged surrounding environment, the value of this induced capacitance is a fixed and tiny value. For example, Figure 2 FIG. Figure 2 is a schematic diagram of the finger touch principle. When a human finger approaches the touch button, the induced capacitance formed by the human finger and the ground is connected in parallel with the induced capacitance formed by the pad and the ground, which will increase the total induced capacitance value. When the finger touches the touch panel, it will cause a slight change (about 8 - 16 pF) in the panel capacitance, and after being amplified, the signal is processed by the MCU.
[0041] In one or more embodiments, preferably, the non - contact air - gap capacitance change detection structure is provided, which specifically includes: S201. The non - contact air - gap capacitance change detection structure includes a non - conductor material cup, a plastic - like partition made of PVC material, a copper sampling induction square, a detection circuit, a communication link, and a computer; S202. The non - conductor material cup is to prevent the introduction of capacitance and cause the capacitance detection of the measured object, i.e., water, to fail; S203. There can be an air gap between the plastic - like partition made of PVC material and the non - conductor material cup, and there is an upper limit to the distance of the air gap; S204. The copper sampling induction square is used for the formation of the induced capacitance; S205. The detection board is used to detect and sample the induced capacitance and calculate the corresponding capacitance value; S206. The communication link transmits various real - time sampling data and setting data to the computer.
[0042] Figure 3 FIG. Figure 3 is the principle of human hand capacitance induction. The whole human body is regarded as a capacitor CBody, and this capacitor is connected to the ground. When a human finger touches the PAD, the total capacitance of the parallel - connected capacitor C will increase. After passing through the RC oscillator, it is output to the frequency comparator of the FC at a certain frequency. When the frequency is compared with the reference frequency, the frequency difference is amplified and then processed by F / V and given to the MCU to obtain the voltage change range value, thereby obtaining the induction principle of whether the human hand touches the PAD.
[0043] Based on the above monitoring principle, the present invention designs a system composed of a non - contact air - gap capacitance change detection structure. For example, Figure 4The figure shows a non-contact, air-spaced capacitance change detection system. The PCBA board is mounted on a PVC mold slot with a certain air gap in between. Furthermore, the water container is made of a non-conductive material and is approximately 1mm thick. The PCBA board comprises a capacitive water level detection system consisting of three pads, which can detect water level points within their installation dimensions. The water level sensor can continuously test up to 100 vertical points within the range. The example tests 10 water levels, with 10 points representing each level. The water level status information detected by the PCBA board is transmitted to the host computer in real time via a communication line, and the computer displays the collected useful data in real time.
[0044] exist Figure 4 In the figure, PCBA is an electronic board with assembled electronic components, PAD is a copper sampling sensor block with a painted surface used to detect water level, PVC board is a plastic-like partition made of PVC material, non-conductive cup is a water cup made of non-conductive material, and air gap is a space without any material in between except air.
[0045] In one or more embodiments, preferably, the calculating the equivalent capacitance of the inter-space water level specifically includes: S301. Calculate the dielectric constant of the insulating material; S302, automatically calculating the overlapping area corresponding to the PAD and the water level; S303, setting the distance between the detection PAD and water; S304, obtaining equivalent capacitance using a first calculation formula; The first calculation formula is: ; in, The dielectric constant of vacuum is 8.854187817×10 -12 F / m, is the dielectric constant of the insulating material, S is the overlapping area corresponding to the PAD and the water level, and d is the distance between the detection PAD and the water.
[0046] In an embodiment of the present invention, Figure 5 The electronic principle model of the air-water level capacitance sensor is shown in Figure 2. The physical meanings of the variables are as follows: Cw is the equivalent capacitance of water, Rw is the equivalent resistance of water, Ground is the equivalent ground loop of water, Cd is the equivalent capacitance of the spacer consisting of air and insulating material, d is the effective separation distance during the test, E is the equivalent electric field of the capacitor Cd composed of the PAD and water, and the vector direction is from the PAD to the water (in Figure 4Use "liquid" for the medium, where R0 and Cs are the input resistance and input capacitance of the actual peripheral circuit components of the hardware circuit respectively. 1V / 25KHz is a square wave with an amplitude of 1V and a frequency of 25KHz output from the oscillator of the MCU. Here, PAD is a copper square for detecting the water level. Therefore, the high-frequency square wave (25KHz) signal sent from the MCU is coupled to PAD through the resistor R0. Starting from the PAD position to the edge of the detected water, an electric field E is established, and the direction is from the copper PAD to the horizontal position of the water tank filled with water. Under the action of the electric field E, the PAD plate is positively charged, and the opposite overlapping surface of the PAD and the water is negatively charged, thus forming an equivalent capacitance Cd. The magnitude of this capacitance Cd is determined by the first calculation formula: ; Wherein, The vacuum permittivity, with a specific value of 8.854187817×10 -12 F / m, is the permittivity of the insulating material, including the comprehensive permittivity of the PCB board material, the plastic-like partition made of PVC material, and the water tank material. S is the overlapping area corresponding to the PAD and the water level, and d is the distance between the detected PAD and the water.
[0047] In one or more embodiments, preferably, setting the reference capacitance value according to the change of the equivalent capacitance value specifically includes: S401. Obtain the equivalent capacitance value; S402. Calculate the change amount of the capacitance value in the water container and the change amount of the equivalent capacitance by using the fifth calculation formula; S403. Take the larger one of the change amount of the capacitance value in the water container and the change amount of the equivalent capacitance as the reference capacitance value; The fifth calculation formula is: ∆C0=Cu–Cw ∆C1=CV–Cd Wherein, △C0 is the change amount of the capacitance value in the water container, △C1 is the change amount of the equivalent capacitance, Cu is the equivalent capacitance in the water container after the water level rises, CV is the equivalent capacitance between the poles after assuming the water level rises, Cw is the capacitance value in the water container before the water level rises, and Cd is the equivalent capacitance in the water container before the water level rises.
[0048] In the embodiment of the present invention, the equivalent capacitance Cw and the equivalent resistance Rw are connected in parallel and connected to the virtual ground. After being bridged by the water H2O, they are connected in series with the capacitance Cd as shown in Figure 5The connection method shown. Among them, the magnitudes of Cw and Rw are related to the concentration of impurities in water, the types of substances contained, the degree of ionization of water, the water temperature, the motion state of water, etc. There are two places where the water level changes: 1) The capacitance value of Cd. According to the first calculation formula, when the water level rises, the area S becomes larger and the Cd value becomes larger; when the water level drops, the area S becomes smaller and the Cd value becomes smaller; 2) The capacitance value of Cw and the resistance value of Rw. According to the second calculation formula C = Q / V, then Q = C×V. The change in electric charge per unit time can be expressed as the third calculation formula dQ / dt = C×dV / dt. According to the third calculation formula, when the water level rises, the number of charged ions in water increases and the conductive impurities increase, so Q increases per unit time. When V remains unchanged, C naturally increases. The capacitance value of Cw increases, the resistance value of the resistor Rw decreases, and the overall impedance decreases. According to the fourth calculation formula: Z = R / (1 + jwRC) = 1 / (1 / R + jwC), where the effective value of the denominator part is |z| 2 =(1 / R) 2 +(wC) 2 increases. After taking the reciprocal of this formula, the overall impedance Z decreases, and the overall performance shows an increase in capacitance. Let the capacitance value in the water container after the water level rises be Cu, and let the equivalent capacitance CV between the electrodes after the water level rises. Then the change in capacitance relative to the difference at the original water level satisfies the following fifth calculation formula: ∆C0 = Cu – Cw, ∆C1 = CV – Cd, where ∆C0 is the change in capacitance value in the water container, and ∆C1 is the change in equivalent capacitance. The conductivity of natural water is about 100 uS / cm, the conductivity of pure water is even lower, about 1 uS / cm, while the conductivity of copper is about 590 uS / cm. Therefore, the number of free electrons in copper is about 6 - 10 times that of natural water. The capacitance Cd between the electrode plates >> Cw. (In the embodiment of the present invention, within an air gap of 1 mm for detecting the distance of the PAD from water, with an insulating material thickness of 2 mm and medium sensitivity, the capacitance value between the electrode plates), so, ∆C1 >> ∆C0. Finally, based on the change value of ∆C1, that is, when the water level rises, Cd increases, and vice versa, Cd decreases.
[0049] In one or more embodiments, preferably, the relationship between the change in water height and the change in equivalent capacitance is set by linear fitting according to the reference capacitance value, specifically including: S501. Take the reference capacitance value as the water capacitance; S502. According to the relationship between the height of water and the change in water capacitance by linear fitting.
[0050] The change in water level will cause a change in capacitance, and this change will not be significantly affected by whether there is air or PVC plates in the middle. Different forms of intermediate isolators only affect the sensitivity of the detected capacitance. The change in capacitance and the change in water level height are basically linearly related. The relationship between them is described by data below, and their linear relationship formula is fitted. According to the formula for the mass and volume of water , where V is the volume of water, in cm 3 , M is the mass of water, in g, and ρ is the density of water, in g / cm 3 , the volume of water , where S is the bottom area of the water container and h is the change in water height. Therefore, h = M / S*ρ = k*M , where .
[0051] Furthermore, the change in capacitance and the change in water level height can be organized into a data table, as shown in Table 1, which is the data relationship table obtained in a certain experiment.
[0052] Table 1 The change in capacitance and the change in water level height are organized into a data table
[0053] Furthermore, Figure 6 a relationship graph between the water height and the change in the equivalent capacitance of water can be obtained, and the relationship between the change in capacitance and the change in water level height is fitted with a linear relationship. The formula after fitting the relationship between the change in capacitance and the change in water level height in this graph is as follows: y = 35.118x - 9.5653.
[0054] Figure 6 is a flowchart for real-time collecting the magnitude of the equivalent capacitance and calculating the water level height according to the relationship between the change in water height and the change in the equivalent capacitance in the non-contact detection method of the water level sensor in an embodiment of the present invention.
[0055] As Figure 6 shown, in one or more embodiments, preferably, the steps of real-time collecting the magnitude of the equivalent capacitance and calculating the water level height according to the relationship between the change in water height and the change in the equivalent capacitance specifically include: S601. Obtain the relationship between the change in water height and the change in the equivalent capacitance; S602. Real-time collect the magnitude of the equivalent capacitance, and reverse calculate the water level height according to the relationship between the change in water height and the change in the equivalent capacitance.
[0056] Taking a cylindrical water container with a horizontal bottom and a uniform cross-sectional area as an example for illustration. First, to obtain the relationship between the change in water height and the change in equivalent capacitance, two sets of parallel metal plates are vertically arranged inside the container. One set of plates is in direct contact with the water and is used to measure the equivalent capacitance inside the water container, and the other set of plates is isolated from the water by a specific insulating material and is used to measure the capacitance that changes due to the change in the area between the plates caused by the water level change. Under the standard laboratory environment, different volumes of water are gradually injected into the container, and the height of the water and the corresponding capacitance value are recorded each time after water injection. Through fitting a large amount of experimental data, the functional relationship between the water height h and the total equivalent capacitance is obtained. For example, after data processing, C = 2h + 5 (this is an example function, and the actual one needs to be accurately fitted according to the experimental data). Next, the operation of real-time collecting the magnitude of the equivalent capacitance and calculating the water level height is carried out. A high-precision capacitance acquisition module is installed outside the container, and this module is electrically connected to the above two sets of plates and can collect the magnitude of the current total equivalent capacitance in real time. Suppose at a certain moment, the value of the total equivalent capacitance C collected by the capacitance acquisition module is 15. According to the functional relationship C = 2h + 5 between the change in water height and the change in equivalent capacitance obtained previously, substituting C = 15 into this function, by calculating 15 = 2h + 5, the water height h at this time is obtained as 5 units (the unit can be set according to the actual measurement standard, such as centimeters), so as to realize real-time collecting the magnitude of the equivalent capacitance according to the relationship between the change in water height and the change in equivalent capacitance and accurately calculating and obtaining the water level height.
[0057] Figure 7 It is a flowchart of real-time displaying the currently obtained water level acquisition value according to the water level height in the non-contact detection method of the water level sensor in an embodiment of the present invention.
[0058] As Figure 7 shown, in one or more embodiments, preferably, the real-time displaying the currently obtained water level acquisition value according to the water level height specifically includes: S701. According to the water level height obtained by back-calculation, the single-chip microcomputer transmits the data to the display module; S702. The display module real-time displays the water level acquisition value through the liquid crystal screen.
[0059] In the embodiment of the present invention, first, through the method of calculating the water level height based on the capacitance change relationship as described above, the real-time water level height data has been inversely deduced. For example, using the capacitance measurement method of the above-mentioned cylindrical water container, the current water level height is obtained as 8 cm. The system uses a common 8-bit single-chip microcomputer, such as the STC89C52 single-chip microcomputer, which has multiple data input and output pins and can process and transmit various sensor data. The single-chip microcomputer is connected to the circuit module for calculating the water level height through its data input pin and receives the calculated water level height data. When the single-chip microcomputer receives the data of the water level height of 8 cm, it will transmit this data through its corresponding serial communication pin according to a specific communication protocol, such as the RS-232 protocol, to the display module. The display module uses a common 1602 liquid crystal display, which can intuitively display various data in character form. The control pins of the 1602 liquid crystal display are connected to the output pins of the single-chip microcomputer, and the data pins are used to receive the water level height data sent by the single-chip microcomputer. When the liquid crystal display receives the water level height data of 8 cm sent by the single-chip microcomputer, it will display the water level acquisition value in real time on its display screen. For example, it will display "Water Level is 8cm" in the middle of the first line of the liquid crystal display, so as to realize that according to the inversely deduced water level height, the single-chip microcomputer transmits the data to the display module and the water level acquisition value is displayed in real time through the liquid crystal display.
[0060] According to the second aspect of the embodiment of the present invention, a non-contact detection system for a water level sensor is provided.
[0061] Figure 8 It is a structural diagram of a non-contact detection system for a water level sensor according to an embodiment of the present invention.
[0062] In one or more embodiments, preferably, the non-contact detection system for the water level sensor includes: A water level non-contact measurement module 801 for setting a non-contact capacitive change detection structure; An equivalent capacitance value calculation module 802 for calculating the equivalent capacitance value of the non-contact water level; An equivalent water level relationship calculation module 803 for setting a reference capacitance value according to the change of the equivalent capacitance value; A relationship equivalent module 804 for setting the change relationship between the water height change and the equivalent capacitance through linear fitting according to the reference capacitance value; A data inverse deduction module 805 for calculating the water level height by collecting the equivalent capacitance size in real time according to the change relationship between the water height change and the equivalent capacitance; A visualization display module 806 for displaying the currently obtained water level acquisition value in real time according to the water level height.
[0063] In the embodiments of the present invention, through a series of modular designs, a system applicable to different structures is implemented. This system can achieve closed-loop, reliable, and efficient execution through acquisition, analysis, and control.
[0064] According to the third aspect of the embodiments of the present invention, there is provided a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the methods described in any one of the first aspects of the embodiments of the present invention are implemented.
[0065] According to the fourth aspect of the embodiments of the present invention, there is provided an electronic device. Figure 9 It is a structural diagram of an electronic device in an embodiment of the present invention. Figure 9 The shown electronic device is a non-contact detection device for a water level sensor, which includes a general computer hardware structure, and at least includes a processor 901 and a memory 902. The processor 901 and the memory 902 are connected through a bus 903. The memory 902 is suitable for storing instructions or programs executable by the processor 901. The processor 901 can be an independent microprocessor or a set of one or more microprocessors. Thus, by executing the instructions stored in the memory 902, the processor 901 executes the method flow of the embodiments of the present invention as described above to implement data processing and control of other devices. The bus 903 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to a display controller 904, a display device, and an IO device 905. The IO device 905 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a body sensing input device, a printer, and other devices well-known in the art. Typically, the IO device 905 is connected to the system through an IO controller 906.
[0066] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects: Through linear fitting and a refined capacitance model, the solution of the present invention can achieve millimeter-level liquid level accuracy and is applicable to scenarios that require continuous monitoring (such as water towers, chemical containers). In contrast, the prior art is limited by discrete sensing units and threshold judgment, with lower accuracy (such as only being able to detect whether the liquid level reaches a certain fixed height) and is applicable to rough monitoring (such as water level alarms for household appliances).
[0067] The dynamic reference capacitance mechanism and physical parameter decoupling (such as separating variables such as dielectric constant, spacing, etc.) of the solution of the present invention can effectively suppress environmental interference (such as material expansion caused by temperature changes, liquid impurity fluctuations) and are suitable for complex working conditions (such as high-temperature, high-humidity, corrosive liquid environments). In contrast, the prior art solutions rely on fixed reference values and are easily affected by factors such as changes in container materials and installation gaps, with weak environmental adaptability.
[0068] In the solution of the present invention, the non-contact structure and the precise modeling ability enable it to be used for the detection of high-risk liquids (such as acid-base solutions and flammable liquids), the continuous monitoring of large-capacity containers (such as reservoirs and oil tanks), and scenarios that require long-term stable operation (to avoid the electrode corrosion problem of contact detection). In contrast, the existing technical solutions are more suitable for household small devices (such as humidifiers and coffee machines) to meet the needs of low-cost and non-continuous detection.
[0069] Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories and optical memories, etc.) that contain computer-usable program code.
[0070] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0071] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means implements the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0072] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0073] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims
1. A method for remotely detecting a water level sensor, characterized in that, The method includes: Setting up a non-contact capacitive change detection structure for air separation; Calculating the equivalent capacitance of the water level in air separation, including first calculating the dielectric constant of the insulating material, and then obtaining the equivalent capacitance by calculating the overlapping area corresponding to the PAD and the water level, and the distance between the PAD and the water; Setting the reference capacitance value according to the change of the equivalent capacitance value. Specifically, calculate the change amount of the capacitance value in the water container and the change amount of the equivalent capacitance according to the equivalent capacitance value respectively, and use one of the change amounts as the reference capacitance value; Setting the relationship between the change of the water height and the change of the equivalent capacitance by linear fitting according to the reference capacitance value; According to the relationship between the change of the water height and the change of the equivalent capacitance, collecting the size of the equivalent capacitance in real time and calculating the water level height; According to the water level height, display the currently obtained water level acquisition value in real time.
2. The non-contact detection method of the water level sensor according to claim 1, wherein, The setting of the non-contact capacitive change detection structure for air separation specifically includes: The non-contact capacitive change detection structure for air separation includes a non-conductive material cup, a plastic-like partition made of PVC material, a copper sampling induction square, a detection circuit, a communication link, and a computer; The non-conductive material cup is used to prevent the introduction of capacitance and make the capacitance detection of the water to be measured ineffective; There can be an air gap between the plastic-like partition made of PVC material and the non-conductive material cup, and there is an upper limit for the distance of the air gap; The PAD is used for the formation of the induced capacitance, and the PAD is a copper sampling induction square with surface paint for detecting the water level; The detection board is used to detect and sample the induced capacitance and calculate the corresponding capacitance value; The communication link transmits various real-time sampling data and setting data to the computer.
3. The non-contact detection method of the water level sensor according to claim 1, characterized in that, The calculation of the equivalent capacitance of the water level in air separation specifically includes: Calculating the dielectric constant of the insulating material; Automatically calculating the overlapping area corresponding to the PAD and the water level, and the PAD is a copper sampling induction square with surface paint for detecting the water level; Setting the distance between the detection PAD and the water; Obtaining the equivalent capacitance using the first calculation formula: ; Among them, the vacuum permittivity, with a specific value of 8.854187817×10 -12 F / m, is the permittivity of the insulating material, including the comprehensive permittivity of the PCB board material, the plastic-like partition made of PVC material, and the water tank material. S is the overlapping area corresponding to the PAD and the water level, and d is the distance between the detection PAD and the water.
4. The non-contact detection method of the water level sensor according to claim 1, characterized in that, The setting of the reference capacitance value according to the change of the equivalent capacitance value specifically includes: Obtaining the equivalent capacitance value; Calculating the change amount of the capacitance value in the water container and the change amount of the equivalent capacitance using the fifth calculation formula; Taking the larger of the change amount of the capacitance value in the water container and the change amount of the equivalent capacitance as the reference capacitance value; The fifth calculation formula is: ∆C0 = Cu – Cw ∆C1 = CV – Cd Where, ∆C0 is the change amount of the capacitance value in the water container, ∆C1 is the change amount of the equivalent capacitance, Cu is the equivalent capacitance in the water container after the water level rises, CV is the equivalent capacitance between the electrodes after the assumed water level rises, Cw is the capacitance value in the water container before the water level rises, and Cd is the equivalent capacitance in the water container before the water level rises.
5. The non-contact detection method of the water level sensor according to claim 1, characterized in that, The setting of the relationship between the change of the water height and the change of the equivalent capacitance by linear fitting according to the reference capacitance value specifically includes: Taking the reference capacitance value as the water capacitance; According to the relationship between the height of the water and the change amount of the water capacitance by linear fitting.
6. The non-contact detection method of the water level sensor according to claim 1, characterized in that The collection of the size of the equivalent capacitance in real time and the calculation of the water level height according to the relationship between the change of the water height and the change of the equivalent capacitance specifically includes: Obtaining the relationship between the change of the water height and the change of the equivalent capacitance; Collecting the size of the equivalent capacitance in real time and inversely calculating the water level height according to the relationship between the change of the water height and the change of the equivalent capacitance.
7. The non-contact detection method of the water level sensor according to claim 1, wherein, According to the water level height, it is displayed in real time, and the currently obtained water level acquisition value specifically includes: Based on the water level height obtained by back-calculation, the single-chip microcomputer transmits the data to the display module; The display module displays the water level acquisition value in real time through the liquid crystal screen.
8. Wireless detection system for water level sensor, characterized in that, The system is used to implement the method described in any one of claims 1-7. The system includes: A water level non-contact measurement module for setting a non-contact capacitive change detection structure in the air; An equivalent capacitance value calculation module for calculating the equivalent capacitance value of the water level in the air; An equivalent water level relationship calculation module for setting a reference capacitance value according to the change of the equivalent capacitance value; A relationship equivalent module for setting the relationship between the change of the water height and the change of the equivalent capacitance by linear fitting according to the reference capacitance value; A data back-calculation module for calculating the water level height by collecting the equivalent capacitance size in real time according to the relationship between the change of the water height and the change of the equivalent capacitance; A visualization display module for displaying the currently obtained water level acquisition value in real time according to the water level height.
9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, The computer program instructions, when executed by the processor, implement the method described in any one of claims 1-7.
10. An electronic device, comprising a memory and a processor, characterized in that, The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method described in any one of claims 1-7.
Citation Information
Patent Citations
Non-contact liquid level detection device and non-contact liquid level detection method
CN104535135A
Water level measuring device and method for water box and steam furnace
CN108548585A
Liquid quantity detection method, device, system and household electrical appliance
CN110274660A
Non-contact container liquid level measuring device and method
CN111595413A
Steaming oven water tank liquid level detection device based on capacitive touch MCU
CN118670478A
Cited By
Intelligent parameter checking method and system of water level sensor, medium and equipment
CN120232494A
Intelligent parameter calibration method, system, medium and equipment for water level sensor
CN120232494B
Detection plate for detecting liquid level in liquid container and beverage machine
CN121007612A