Intelligent parameter checking method and system of water level sensor, medium and equipment

Through the non-contact space-separating capacitor change detection structure and polynomial fitting calculation, the problems of vulnerability and insufficient accuracy of traditional water level detection equipment are solved, and high-precision intelligent parameter verification of water level sensors is achieved.

CN120232494AActive Publication Date: 2025-07-01ZHUHAI SEPSTAR ELECTRONICS
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510716741.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-07-01
Estimated Expiration
2045-05-30

AI Technical Summary

Technical Problem

Traditional water level detection methods require the water detection probe or sensor to be placed in water, with high structural requirements, high cost and easy to damage, and the lack of effective parameter verification methods, which makes it difficult to ensure monitoring accuracy.

Method used

The non-contact space-separating capacitor change detection structure is adopted, and the air gap, plastic thickness and insulator thickness are input online by setting the information collection module, and the equivalent capacitance value is calculated using polynomial fitting to form multiple corrected equivalent capacitance coefficients, and the final output water level height is output.

Benefits of technology

It improves the accuracy and stability of water level detection, reduces the risk of equipment damage, and realizes efficient intelligent parameter verification of water level sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120232494A_ABST
    Figure CN120232494A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of water level detection, in particular to an intelligent parameter checking method and system of a water level sensor, a medium and equipment. The scheme comprises the following steps: arranging a non-contact distance capacitance change detection structure; an information collection module is arranged in advance, air gaps, plastic thickness data and insulator thickness are input online, and equivalent capacitance at the current moment is obtained online; correcting the equivalent capacitance according to a preset air gap to form a first corrected equivalent capacitance coefficient; correcting the equivalent capacitance according to a preset plastic thickness to form a second corrected equivalent capacitance; correcting the equivalent capacitance according to a preset insulator thickness to form a third corrected equivalent capacitance; and performing correction output according to the first correction equivalent capacitance, the second correction equivalent capacitance and the third correction equivalent capacitance, and outputting the water level height. According to the scheme, a built-in special capacitive sensing water level detection hardware circuit and a corresponding intelligent parameter checking algorithm are provided, and the detection precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water level detection, and more specifically, to an intelligent parameter verification method, system, medium, and device for a water level sensor. Background Art

[0002] The Jieyuan non-contact water level sensor is applied to various household appliances, such as ovens, water tanks, coffee machines, soybean milk machines, fructose machines, etc. for related liquid detection and fluid detection categories. In addition, intelligent detection of the non-contact water level sensor can be added to intelligent devices involving water or liquid in industries, agriculture, environmental protection, etc. With the rapid development of science and technology, the water level detection technology is also constantly advancing. From traditional mechanical types, such as lever float balls, electromagnetic types, dry reed tube signal detection, etc., to current new detection technologies such as capacitive sensing, the performance and application convenience of water level detection have been greatly improved.

[0003] Before the technology of the present invention, traditional water level detection methods required placing the water detection probe or sensor in water, or achieving the purpose of water level detection by the float ball pushing different contact points of the dry reed tube as the water level rises and falls. These have relatively high requirements for the product structure, high costs, the water detection equipment is easily damaged, and the service life is short. If the Jieyuan non-contact water level sensor is used, there is a lack of an effective parameter verification method, making it difficult to guarantee the monitoring accuracy. Summary of the Invention

[0004] In view of the above problems, the present invention proposes an intelligent parameter verification method, system, medium, and device for a water level sensor, providing an MCU dedicated capacitive sensing water level detection hardware circuit and a corresponding intelligent parameter verification algorithm built-in, which improves the detection accuracy of the system.

[0005] According to the first aspect of an embodiment of the present invention, an intelligent parameter verification method for a water level sensor is provided.

[0006] In one or more embodiments, preferably, the intelligent parameter verification method for the water level sensor includes: Setting up a non-contact air gap capacitance change detection structure; Pre-setting an information collection module, inputting air gap, plastic thickness data, and insulator thickness online, and obtaining the equivalent capacitance at the current moment online; Correcting the equivalent capacitance according to the pre-set air gap to form a first corrected equivalent capacitance coefficient, including: first obtaining the equivalent capacitance value through polynomial fitting calculation based on the air gap or plastic thickness and insulator thickness, and then calculating the first corrected equivalent capacitance coefficient with the standard equivalent capacitance; The equivalent capacitance is corrected according to the preset plastic thickness to form a second corrected equivalent capacitance, including: first, performing polynomial fitting to obtain a polynomial curve of the change in the relative value of capacitance with respect to the plastic thickness, and then obtaining historical analysis data of the plastic thickness and the equivalent capacitance, and finally calculating the second corrected equivalent capacitance from the standard equivalent capacitance; The equivalent capacitance is corrected according to the preset insulator thickness to form a third corrected equivalent capacitance, including: first, performing polynomial fitting to obtain a polynomial curve of the change in the relative value of capacitance with respect to the insulator thickness, and then obtaining historical analysis data of the insulator thickness and the equivalent capacitance, and finally calculating the third corrected equivalent capacitance from the standard equivalent capacitance; Based on the first corrected equivalent capacitance, the second corrected equivalent capacitance, and the third corrected equivalent capacitance, a correction output is performed to output the water level height.

[0007] In one or more embodiments, preferably, the non-contact capacitive change detection structure is provided, which specifically includes: The non-contact capacitive change detection structure 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 to prevent the introduction of capacitance and cause the capacitance detection of the measured object water to fail; There may 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 to the distance of the air gap; The copper sampling induction square is used to sense the formation of capacitance; 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, where the setting data includes the period of data monitoring, the maximum and minimum values of various real-time sampling data, and the protection action setting value of the protection device.

[0008] In one or more embodiments, preferably, the preset information collection module inputs the air gap, plastic thickness data, and insulator thickness online and obtains the equivalent capacitance at the current moment, which specifically includes: Inputting the air gap online is specifically the distance between the non-conductive material cup and the plastic-like partition made of PVC material; Inputting the plastic thickness online is specifically the thickness of the plastic-like partition made of PVC material; Inputting the insulator thickness online is specifically the thickness of the non-conductive material cup; Realtime reading of the standard equivalent capacitance calculated by the single-chip microcomputer at the current moment through a preset formula.

[0009] In one or more embodiments, preferably, the equivalent capacitance is corrected according to a preset air gap to form a first corrected equivalent capacitance coefficient, which specifically includes: Performing polynomial fitting using a first calculation formula; The capacitance change amount after correction using a second calculation formula; The first calculation formula is: ; Wherein, is the sum of polynomials, used to represent the equivalent capacitance value, The polynomial coefficients of can be obtained after taking the nth derivative, and x 1, x2,..., x n are the 1st, 2nd,..., nth powers of the air gap or the plastic thickness insulator thickness; The second calculation formula is: ; Wherein, BL1 is the first corrected equivalent capacitance coefficient, and P n(J1) is the sum of polynomials corresponding to the current air gap J1, and B is the standard equivalent capacitance.

[0010] In one or more embodiments, preferably, the equivalent capacitance is corrected according to a preset plastic thickness to form a second corrected equivalent capacitance, which specifically includes: Obtaining a polynomial curve of the relative change in capacitance with respect to the plastic thickness through polynomial fitting Obtaining historical analysis data of the plastic thickness and the equivalent capacitance; Calculating the second corrected equivalent capacitance using a third calculation formula; The third calculation formula is: ; Wherein, BL2 is the second corrected equivalent capacitance, B is the standard equivalent capacitance, and E2 is the equivalent capacitance corresponding to the current plastic thickness.

[0011] In one or more embodiments, preferably, the equivalent capacitance is corrected according to a preset insulator thickness to form a third corrected equivalent capacitance, which specifically includes: Obtaining a polynomial curve of the relative change in capacitance with respect to the insulator thickness through polynomial fitting Obtaining historical analysis data of the insulator thickness and the equivalent capacitance; Calculating the third corrected equivalent capacitance using a fourth calculation formula; The fourth calculation formula is: ; Among them, BL3 is the third corrected equivalent capacitance, B is the standard equivalent capacitance, and F2 is the equivalent capacitance corresponding to the current insulator thickness.

[0012] In one or more embodiments, preferably, the correction output is performed according to the first corrected equivalent capacitance, the second corrected equivalent capacitance, and the third corrected equivalent capacitance to output the water level height, which specifically includes: Obtain the first corrected equivalent capacitance, the second corrected equivalent capacitance, and the third corrected equivalent capacitance; Use the fifth calculation to calculate the water level height online; The fifth calculation formula is: ; Among them, H is the water level height, and F() is a preset function that maps from the equivalent capacitance to the water level height.

[0013] According to the second aspect of the embodiments of the present invention, an intelligent parameter verification system for a water level sensor is provided.

[0014] In one or more embodiments, preferably, the intelligent parameter verification system of the water level sensor includes: A water level non-contact measurement module for setting a non-contact air-capacitance change detection structure; An information acquisition module for pre-setting an information collection module, inputting air gap, plastic thickness data, and insulator thickness online, and obtaining the equivalent capacitance at the current moment online; An air gap correction module for correcting the equivalent capacitance according to the pre-set air gap to form a first corrected equivalent capacitance coefficient; A plastic thickness correction module for correcting the equivalent capacitance according to the pre-set plastic thickness to form a second corrected equivalent capacitance; An insulator thickness correction module for correcting the equivalent capacitance according to the pre-set insulator thickness to form a third corrected equivalent capacitance; A correction output module for performing correction output according to the first corrected equivalent capacitance, the second corrected equivalent capacitance, and the third corrected equivalent capacitance, and outputting the water level height.

[0015] According to the third aspect of the embodiments of the present invention, a computer-readable storage medium is provided, on which computer program instructions are stored, 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, an electronic device is provided, including a memory and a processor, where the memory is used to store one or more computer program instructions, and among them, 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: In the solution of the present invention, an automatic parameter calibration method for non-contact water level detection is proposed. By polynomial fitting, a polynomial curve of the change in the relative value of capacitance with the plastic thickness is obtained, realizing intelligent parameter calibration of an efficient water level sensor.

[0018] In the solution of the present invention, based on the built-in MCU dedicated capacitive sensing water level detection hardware circuit, an AI intelligent algorithm is used, plus a visual and user-friendly simple human-machine interface.

[0019] Other features and advantages of the present invention will be described in the following specification, and part of them will be obvious from the specification, or understood by implementing the present invention. The objectives and other advantages of the present invention can be realized and obtained through the structures specifically pointed out in the written specification, claims, and drawings.

[0020] The following will further describe the technical solutions of the present invention in detail through the drawings and embodiments. Description of the Drawings

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative efforts.

[0022] Figure 1 It is a flowchart of the intelligent parameter calibration method for the water level sensor according to an embodiment of the present invention.

[0023] Figure 2 It is a schematic diagram of the principle of the actual capacitance detection circuit.

[0024] Figure 3 It is a composition diagram of a non-contact water level sensing system.

[0025] Figure 4 It is a relationship diagram between the air gap and the change in capacitance.

[0026] Figure 5 It is a relationship diagram between the shown plastic thickness and the change in the relative value of capacitance.

[0027] Figure 6 It is a relationship diagram between the maximum air gap and the maximum insulator thickness.

[0028] Figure 7It is a flowchart of correcting the output according to the first corrected equivalent capacitance, the second corrected equivalent capacitance, and the third corrected equivalent capacitance in the intelligent parameter verification method of the water level sensor in an embodiment of the present invention, and outputting the water level height.

[0029] Figure 8 It is a structural diagram of the intelligent parameter verification system of the water level sensor in an embodiment of the present invention.

[0030] Figure 9 It is a structural diagram of an electronic device in an embodiment of the present invention. Detailed implementation manners

[0031] 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" and "second" in this article are used to distinguish different messages, devices, modules, etc., do not represent a sequence, and do not limit that "first" and "second" are of different types.

[0032] 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 work belong to the scope of protection of the present invention.

[0033] The Jieyuan non-contact water level sensor is applied to various household appliances, such as ovens, water tanks, coffee machines, soybean milk machines, fructose machines, etc. for related liquid detection and fluid detection categories. In addition, intelligent detection of non-contact water level sensors can be added to intelligent devices involving water or liquid in industries, agriculture, environmental protection, etc. With the rapid development of science and technology, water level detection technology is also constantly progressing. From traditional mechanical types, such as lever floats, electromagnetic types, reed switch signal detections, etc., to current new detection technologies such as capacitance sensing, the performance and application convenience of water level detection have been greatly improved.

[0034] Before the technology of the present invention, traditional water level detection methods require placing a water detection probe or sensor in water, or achieving the purpose of water level detection by a float pushing different contact points of a reed switch as the water level rises or falls. These methods have high requirements for the product structure and high costs. The water detection equipment is easily damaged and has a short service life. If a Jieyuan non-contact water level sensor is used, there is a lack of an effective parameter calibration method, making it difficult to guarantee the monitoring accuracy.

[0035] In an embodiment of the present invention, there are provided an intelligent parameter calibration method, system, medium, and device for a water level sensor. This solution provides a dedicated capacitive sensing water level detection hardware circuit based on an embedded MCU and a corresponding intelligent parameter calibration algorithm, improving the detection accuracy of the system.

[0036] According to the first aspect of the embodiment of the present invention, there is provided an intelligent parameter calibration method for a water level sensor.

[0037] Figure 1 It is a flowchart of the intelligent parameter calibration method for a water level sensor according to an embodiment of the present invention.

[0038] In one or more embodiments, preferably, the intelligent parameter calibration method for the water level sensor includes: S101. Set up a non-contact capacitive change detection structure; S102. Preset an information collection module, input air gap, plastic thickness data, and insulator thickness online, and obtain the equivalent capacitance at the current moment online; S103. Correct the equivalent capacitance according to the preset air gap to form a first corrected equivalent capacitance coefficient, including: first obtaining the equivalent capacitance value through polynomial fitting calculation based on the air gap or plastic thickness and insulator thickness, and then calculating the first corrected equivalent capacitance coefficient with the standard equivalent capacitance; S104. Correct the equivalent capacitance according to the preset plastic thickness to form a second corrected equivalent capacitance, including: first obtaining the change polynomial curve of the plastic thickness and the relative value of the capacitance through polynomial fitting, and then obtaining the historical analysis data of the plastic thickness and the equivalent capacitance, and finally calculating the second corrected equivalent capacitance with the standard equivalent capacitance; S105. Correct the equivalent capacitance according to the preset insulator thickness to form a third corrected equivalent capacitance, including: first obtaining the change polynomial curve of the insulator thickness and the relative value of the capacitance through polynomial fitting, and then obtaining the historical analysis data of the insulator thickness and the equivalent capacitance, and finally calculating the third corrected equivalent capacitance with the standard equivalent capacitance; S106. Perform correction output according to the first corrected equivalent capacitance, the second corrected equivalent capacitance, and the third corrected equivalent capacitance, and output the water level height.

[0039] In the embodiment of the present invention, first, a non-contact capacitive change detection structure is set up, which consists of a non-conductive material cup, a plastic partition made of PVC material, a copper sampling induction square, a detection circuit, a communication link, and a computer. Then, through a pre-set information collection module, the air gap distance between the non-conductive material cup and the PVC plastic partition, the plastic thickness of the PVC plastic partition, and the insulator thickness of the non-conductive material cup are input online, and the standard equivalent capacitance calculated by the single-chip microcomputer according to the preset formula is read in real time. Next, specific calculation formulas are used to correct the equivalent capacitance according to the air gap, plastic thickness, and insulator thickness respectively: based on the first and second calculation formulas, the first corrected equivalent capacitance coefficient is obtained through polynomial fitting and calculation; with the help of the third calculation formula, the second corrected equivalent capacitance is calculated according to the polynomial curve of the plastic thickness and the relative capacitance value change and historical analysis data; using the fourth calculation formula, the third corrected equivalent capacitance is obtained through the polynomial curve of the insulator thickness and the relative capacitance value change and historical analysis data. Finally, the above three corrected capacitances are obtained, and the fifth calculation formula is used to calculate and output the water level height. During the whole process, when the plastic thickness reaches 10 mm, considering the high sensitivity characteristic of capacitance detection affected by the environment, the error value is multiplied by 1.5 to 2 times as the error cache. Only when the measured change value is greater than 1.5 times the dynamic error of environmental interference can the sampling be stable and the test result be accurate.

[0040] In one or more embodiments, preferably, the setting of the non-contact capacitive change detection structure specifically includes: S201. The non-contact capacitive change detection structure includes a non-conductive material cup, a plastic partition made of PVC material, a copper sampling induction square, a detection circuit, a communication link, and a computer; S202. The non-conductive material cup is used to prevent the introduction of capacitance and cause the capacitance detection of the measured object water to fail; S203. There can be an air gap between the plastic partition made of PVC material and the non-conductive material cup, and the air gap distance has an upper limit; S204. The copper sampling induction square is used to sense the formation of 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, where the setting data includes the period of data monitoring, the maximum and minimum values of various real-time sampling data, and the protection action setting value of the protection device.

[0041] In the embodiment of the present invention, there is an induced capacitance between any two conductive objects. A button, that is, 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 exampleFigure 2 It is a schematic diagram of the finger touch principle. When a human finger approaches the touch button, the induction capacitance formed by the human finger and the ground in parallel with the induction capacitance formed by the pad and the ground will increase the total induction capacitance value. When the finger touches the touch panel, it will cause a slight change in the panel capacitance (about 8 - 16 pF), and the signal is amplified and then processed by the MCU.

[0042] There is an induction capacitance between any two conductive objects. A button, that is, a pad and the ground, can also form an induction capacitance. Under the condition of an unchanged surrounding environment, the value of this induction capacitance is a fixed and tiny value. When a human finger approaches the touch button, the induction capacitance formed by the human finger and the ground in parallel with the induction capacitance formed by the pad and the ground will increase the total induction capacitance value. When the finger touches the touch panel, it will cause a slight change in the panel capacitance (about 8 - 16 pF), and the signal is amplified and then processed by the MCU.

[0043] Figure 2 It 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 an RC oscillator, it is output to the frequency comparator of FC at a certain frequency. When the frequency is compared with the reference frequency, the frequency difference is amplified and then through F / V and given to the MCU for processing, obtaining the change range value of the voltage, so as to obtain the induction principle of whether the human hand touches the PAD.

[0044] Based on the above monitoring principle, the present invention designs a non - contact air - spaced capacitance change detection structure to form a system. As Figure 3 Shown is the non - contact air - spaced capacitance change detection structure forming a system. The PCBA board is installed on the mold groove made of PVC material, with an air gap of a certain distance in the middle. In addition, the water - filled container is made of non - conductive material and has a thickness of about 1 mm. There is a capacitance water - level detection system composed of three PADs on the PCBA board, which can test the water - level points within its installation dimension range. The water - level sensor can continuously test up to 100 points at the vertical positions within the range. For example, it tests 10 - gear water levels, with 10 points as one gear of water level. The water - level state information detected by the PCBA board can be transmitted to the upper - computer in real time through the communication line, and the computer displays the useful data collected in real time.

[0045] In Figure 3Among them, the PCBA is an electronic board with electronic components already assembled, the PAD is a copper sampling induction square with surface paint for detecting the water level, the PVC board is a plastic-like partition made of PVC material, the non-conductive material cup is a water cup made of non-conductive material, and the air gap is a space with no material separating it except air. In the capacitance water level detection system composed of three PADs on the PCBA board, each PAD senses the water level by detecting the change in the induction capacitance formed with the ground. For example, when the water level rises, the capacitance change formed by the water and the surrounding environment will affect the induction capacitance between the PAD and the ground. By pre-calibrating the capacitance change values at different water levels, the corresponding relationship between the water level and the capacitance change value is established. When the PCBA board detects the capacitance change value, according to this corresponding relationship, the position of the current water level point within its installation dimension range can be determined. For example, in the 10-level water level of the example test, when the detected capacitance change value falls within a certain specific range, it can be determined that the water level is at the corresponding level.

[0046] In one or more embodiments, preferably, the pre-set information collection module inputs the air gap, plastic thickness data, and insulator thickness online and obtains the equivalent capacitance at the current moment. Specifically, it includes: S301. Input the air gap online, specifically the distance between the non-conductive material cup and the plastic-like partition made of PVC material; S302. Input the plastic thickness online, specifically the thickness of the plastic-like partition made of PVC material; S303. Input the insulator thickness online, specifically the thickness of the non-conductive material cup; S304. Read in real-time the standard equivalent capacitance calculated by the single-chip microcomputer at the current moment through a preset formula.

[0047] In the embodiment of the present invention, an information collection module is preset. When it is necessary to obtain the equivalent capacitance at the current moment, the user starts to perform data input operations. For online input of the air gap, a practical example is given here. There is a cup made of a non-conductive material (such as ceramic), and a plastic-like partition made of PVC material is placed outside it. The air gap refers to the distance between the non-conductive cup and the PVC plastic-like partition. The user inputs the value of this distance in the corresponding input box through the touch display screen of the information collection module. Suppose the input is 5 millimeters. Then the plastic thickness is input, that is, the thickness of the plastic-like partition made of PVC material. For example, the thickness of this partition is measured to be 3 millimeters, and the user accurately inputs this value in the corresponding input box of the information collection module. Then the insulator thickness is input, that is, the thickness of the non-conductive cup. Suppose the thickness of this ceramic cup is 2 millimeters, and the user also inputs this data in the designated input box of the information collection module. The device internally integrates a single-chip microcomputer. For example, a common STM32 series single-chip microcomputer is selected. It pre-stores a formula for calculating the equivalent capacitance. This formula is established based on the basic principle of capacitance and considering the influence of factors such as the air gap, plastic thickness, and insulator thickness on the capacitance. When the user completes the input of the above three data, the information collection module will transmit these data to the single-chip microcomputer. After receiving the data, the single-chip microcomputer immediately calculates according to the preset formula. After a complex calculation process, for example, the calculation of parameters such as permittivity, distance, and area involved in the formula, the standard equivalent capacitance value at the current moment is finally calculated. Suppose the calculated equivalent capacitance value is 10 microfarads. The single-chip microcomputer stores this calculation result in a specific register inside it for subsequent calls or transmission to other associated devices, thus realizing the preset information collection module, online input of air gap, plastic thickness data, and insulator thickness, and online obtaining the equivalent capacitance at the current moment. The formula stored inside the single-chip microcomputer for calculating the equivalent capacitance is based on the parallel plate capacitance formula C = εS / d (where C is capacitance, ε is permittivity, S is the plate area, and d is the distance between the plates). Considering the influence of factors such as air gap, plastic thickness, and insulator thickness on the capacitance in actual situations, the formula is corrected. For example, the air gap, plastic thickness, and insulator thickness are respectively incorporated into the formula as different variables to reflect their comprehensive effects on the capacitance. Let the air gap be d1, the plastic thickness be d2, and the insulator thickness be d3. The corrected formula may be C = ε(S1 / (d1 + d2 + d3)), where S1 is the effective plate area considering the actual structure. This formula is solidified in the single-chip microcomputer. When the information collection module transmits the air gap, plastic thickness, and insulator thickness data to the single-chip microcomputer, the single-chip microcomputer calculates the equivalent capacitance according to this formula.

[0048] In one or more embodiments, preferably, the equivalent capacitance is corrected according to a preset air gap to form a first corrected equivalent capacitance coefficient, which specifically includes: S401. Perform polynomial fitting using a first calculation formula; S402. Correct the capacitance change amount using a second calculation formula; The first calculation formula is:

[0049] Wherein, is the sum of polynomials, used to characterize the equivalent capacitance value, The polynomial coefficients of can be obtained by taking the nth derivative, and x 1, x2,..., x n are the 1st, 2nd,..., nth powers of the air gap or the plastic thickness insulator thickness; The second calculation formula is:

[0050] Wherein, BL1 is the first corrected equivalent capacitance coefficient, and P n(J1) is the sum of polynomials corresponding to the current air gap J1, and B is the standard equivalent capacitance.

[0051] In the embodiments of the present invention, as Figure 4 shown is the relationship between the air gap and the capacitance change amount. The air gap on the abscissa is 0.25 mm. After the curve is at a distance of more than 2 mm, it is almost close to a linear equation straight line. When the air gap is within 2 mm, the curve equation is close to an exponential change. The change of capacitance induction is obvious. The whole curve cannot be fitted with a linear equation, so polynomial fitting is considered. Fitting is performed using the first calculation formula, and the specific first calculation formula is:

[0052] Wherein, is the sum of polynomials, The polynomial coefficients of can be obtained by taking the nth derivative; Approximate fitting is performed using the Taylor expansion formula. According to the Taylor formula: ; wherein, is the nth order derivative of the equation, a is the value at a certain point on the x-axis of the curve, n! is the nth order factorial, is the sum of the expansion terms, is the function corresponding to the sum of polynomials in the first calculation formula, the input is x, and the output is ; is an nth degree polynomial, is the polynomial After the coefficients are obtained and the curve is fitted 4 times, the curve polynomial approaches 99.28%. The curve fitting polynomial of the above image is expressed as follows: ;

[0053] Among them, is the function corresponding to the sum of the polynomials, and x is the air gap.

[0054] In one or more embodiments, preferably, the equivalent capacitance is corrected according to the preset plastic thickness to form a second corrected equivalent capacitance, which specifically includes: S501. Obtain the polynomial curve of the relative change of the plastic thickness and the capacitance through polynomial fitting S502. Obtain the historical analysis data of the plastic thickness and the equivalent capacitance; S503. Calculate the second corrected equivalent capacitance using the third calculation formula; The third calculation formula is:

[0055] Among them, BL2 is the second corrected equivalent capacitance, B is the standard equivalent capacitance, and E2 is the equivalent capacitance corresponding to the current plastic thickness.

[0056] In the embodiments of the present invention, according to historical data, Figure 5 the relationship diagram of the relative change of the plastic thickness and the capacitance shown in the figure can be obtained. It can be seen that when the plastic thickness is 2, there is a deviation, and the deviation value is within 10. When the thickness is 3 mm, the deviation of the fitting function is approximately between 10 and 15, and this deviation is also within the allowable range. The fitting function curve basically conforms to the law of capacitance change and plastic change; when the curve is expanded and fitted 5 times, the accuracy of the curve polynomial approaches 97.71%. The curve fitting polynomial of the above image is expressed as follows: .

[0057] When the plastic thickness reaches 10 mm, the change value of the capacitance enters within 100. Since the capacitance detection is highly sensitive, the change in the surrounding environment has a certain impact on this detection, and the capacitance value changes between approximately 10 and 30. To accurately test the relationship of the water level. Generally, this error value is multiplied by 1.5 to 2 times as the error buffer. When the measured change value is greater than 1.5 times the dynamic error generated by environmental interference, the test result can be accurately expressed. This error buffer does not refer to the error in the curve expression, but the error that will occur during actual measurement. And this requirement plays an important role in maintaining the stability and accuracy of sampling in actual applications. When obtaining the historical data of the relationship between the plastic thickness and the relative change value of the capacitance, the experimental measurement method is adopted. Prepare multiple plastic-like partitions made of PVC materials with different thicknesses, and the thickness range covers the common thickness values in actual applications. Assemble these partitions with different thicknesses and non-conductive material cups according to the actual use scenario, keep other conditions unchanged, and use the capacitance detection device to measure the relative capacitance values corresponding to different plastic thicknesses. Record the plastic thickness value and the corresponding relative capacitance value for each measurement. After organizing these data, use a drawing software (such as Origin, etc.) to draw a scatter plot, and then use the curve fitting function of the drawing software to select an appropriate polynomial fitting method to fit the scatter plot, so as to obtain the relationship diagram between the plastic thickness and the relative change value of the capacitance.

[0058] In one or more embodiments, preferably, the equivalent capacitance is corrected according to the preset insulator thickness to form a third corrected equivalent capacitance, which specifically includes: S601. Obtain the polynomial curve of the change of the insulator thickness and the relative capacitance value through polynomial fitting S602. Obtain the historical analysis data of the insulator thickness and the equivalent capacitance; S603. Calculate the third corrected equivalent capacitance using the fourth calculation formula; The fourth calculation formula is:

[0059] Among them, BL3 is the third corrected equivalent capacitance, B is the standard equivalent capacitance, and F2 is the equivalent capacitance corresponding to the current insulator thickness.

[0060] In an embodiment of the present invention, when installing a circuit board with a detection PAD, it should be noted that when the circuit board PAD is installed at the position of the water tank to be detected, there are limitations on the material thickness and air gap at this position. Specifically, the maximum air gap is 5 mm plus the PVC thickness of 0.5 mm, or the maximum plastic thickness of 10 mm plus the maximum air gap of 0.01 mm. Next, fix the minimum capacitance change value at the test position. This value is based on being able to accurately distinguish the water level change at the minimum resolution to test the maximum insulator thickness corresponding to the maximum air gap. The minimum relative capacitance change value is fixed at 100 - 130 (note: this data is the relative capacitance value of the water level, and this value is the result of being detected by hardware and then processed by software). If the change amount is lower than this value, it means that it exceeds the test range, and it also means that the previous test value is the maximum value (the maximum air gap or the maximum insulating material interval). Figure 6 It is a graph showing the relationship between the maximum air gap and the maximum insulator thickness.

[0061] When determining the combined application of the maximum air gap and the maximum PVC plastic thickness, first install the circuit board with a detection PAD as required to ensure that the maximum air gap condition of 5 mm plus the PVC thickness of 0.5 mm, or the maximum plastic thickness of 10 mm plus the maximum air gap of 0.01 mm is met. Then, fix the minimum capacitance change value at the test position to 100 - 130 (this value is the relative capacitance value of the water level, obtained through hardware detection and software processing). Starting from the minimum air gap, gradually increase the air gap while measuring the corresponding relative capacitance change value. When the relative capacitance change value is lower than 100, record the previous air gap value at this time as the maximum air gap. By referring to the drawn graph showing the relationship between the maximum air gap and the maximum insulator thickness ( Figure 6 ), find the intersection point of the vertical line corresponding to this maximum air gap and the orange curve (PVC plastic thickness curve). The ordinate value corresponding to this intersection point is the maximum PVC plastic thickness. Using this maximum air gap and the maximum PVC plastic thickness, combine with the fourth calculation formula BL3 = Pn(F2)÷B to calculate the third corrected equivalent capacitance.

[0062] From Figure 6 it can be seen that the blue curve is the air gap interval, and the orange curve is the thickness of the PVC plastic. As long as a straight line parallel to the Y-axis (perpendicular to the X-axis) is drawn, intersecting the two curves at two points, they are respectively the combined application of the maximum air gap and the maximum PVC plastic thickness.

[0063] Figure 7 It is a flowchart of correcting and outputting the water level height according to the first corrected equivalent capacitance, the second corrected equivalent capacitance, and the third corrected equivalent capacitance in the intelligent parameter verification method of the water level sensor in an embodiment of the present invention.

[0064] AsFigure 7 As shown, in one or more embodiments, preferably, the correction output is performed according to the first corrected equivalent capacitance, the second corrected equivalent capacitance, and the third corrected equivalent capacitance, and the water level height is output, specifically including: Obtain the first corrected equivalent capacitance, the second corrected equivalent capacitance, and the third corrected equivalent capacitance; Use the fifth calculation to calculate the water level height online; The fifth calculation formula is:

[0065] Where H is the water level height, and F() is a preset function that maps the equivalent capacitance to the water level height.

[0066] In the embodiments of the present invention, first, the first corrected equivalent capacitance obtained by correcting the equivalent capacitance based on a preset air gap is obtained. It is obtained by polynomial fitting using the first calculation formula (Pn(x)=a0+a1x1+a2x2+…+anxn, where P_(n(x)) is the sum of polynomials, and the polynomial coefficients of α0, α1, α2, …αn can be obtained after taking the nth derivative), and then calculated using the second calculation formula (BL1=Pn(J1)÷B, where BL1 is the first corrected equivalent capacitance coefficient, Pn(J1) is the sum of polynomials corresponding to the current air gap J1, and B is the standard equivalent capacitance); then, the second corrected equivalent capacitance formed by correcting the equivalent capacitance according to the preset plastic thickness is obtained. By obtaining the historical analysis data of the plastic thickness and the equivalent capacitance, the polynomial curve of the relative change of the plastic thickness and the capacitance is obtained through polynomial fitting, and then calculated using the third calculation formula (BL2=Pn(E2)÷B, where BL2 is the second corrected equivalent capacitance, B is the standard equivalent capacitance, and E2 is the equivalent capacitance corresponding to the current plastic thickness); then, the third corrected equivalent capacitance formed by correcting the equivalent capacitance according to the preset insulator thickness is obtained. By obtaining the historical analysis data of the insulator thickness and the equivalent capacitance, the polynomial curve of the relative change of the insulator thickness and the capacitance is obtained through polynomial fitting, and then calculated using the fourth calculation formula (BL3=Pn(F2)÷B, where BL3 is the third corrected equivalent capacitance, B is the standard equivalent capacitance, and F2 is the equivalent capacitance corresponding to the current insulator thickness). After obtaining these three corrected equivalent capacitances, the fifth calculation formula H=F(BL1×BL2×BL3×B) is used to calculate the water level height online, where H is the water level height, and F() is a preset function that maps the equivalent capacitance to the water level height. For example, when the first corrected equivalent capacitance BL1 is 0.8, the second corrected equivalent capacitance BL2 is 0.9, the third corrected equivalent capacitance BL3 is 0.7, and the standard equivalent capacitance B is 10 microfarads, substituting these values into the fifth calculation formula and performing the operation of the preset function F(), the value of the corresponding water level height H can be obtained.

[0067] According to a second aspect of an embodiment of the present invention, there is provided an intelligent parameter verification system for a water level sensor.

[0068] Figure 8 It is a structural diagram of an intelligent parameter verification system for a water level sensor according to an embodiment of the present invention.

[0069] In one or more embodiments, preferably, the intelligent parameter verification system for the water level sensor includes: A water level non-contact measurement module 801, configured to set a non-contact air capacitance change detection structure; An information acquisition module 802, configured to preset an information collection module, input air gap, plastic thickness data, and insulator thickness online, and obtain an equivalent capacitance at the current moment online; An air gap correction module 803, configured to correct the equivalent capacitance according to a preset air gap to form a first corrected equivalent capacitance coefficient; A plastic thickness correction module 804, configured to correct the equivalent capacitance according to a preset plastic thickness to form a second corrected equivalent capacitance; An insulator thickness correction module 805, configured to correct the equivalent capacitance according to a preset insulator thickness to form a third corrected equivalent capacitance; A correction output module 806, configured to perform correction output according to the first corrected equivalent capacitance, the second corrected equivalent capacitance, and the third corrected equivalent capacitance, and output the water level height.

[0070] In an embodiment of the present invention, through a series of modular designs, a system applicable to different structures is realized. This system can achieve closed-loop, reliable, and efficient execution through acquisition, analysis, and control.

[0071] According to a third aspect of an embodiment of the present invention, there is provided a computer-readable storage medium, on which computer program instructions are stored. 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.

[0072] According to a fourth aspect of an embodiment 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 9The electronic device shown is an intelligent parameter verification device for a general water level sensor. The electronic device can be a device such as a smart phone or a tablet computer. As shown, the electronic device 900 includes a processor 901 and a memory 902. Among them, the processor 901 is electrically connected to the memory 902. The processor 901 is the control center of the electronic device 900, connecting various parts of the entire electronic device through various interfaces and lines, and by running or calling the computer programs stored in the memory 902 and the data stored in the memory 902, performing various functions of the electronic device and processing data, so as to monitor the electronic device as a whole.

[0073] In this embodiment, the processor 901 in the electronic device 900 will load the instructions corresponding to the processes of one or more computer programs into the memory 902 according to the following steps, and the processor 901 will run the computer programs stored in the memory 902 to achieve various functions: set up a non-contact air-gap capacitance change detection structure; preset an information collection module, input the air gap, plastic thickness data and insulator thickness online, and obtain the equivalent capacitance at the current moment online; correct the equivalent capacitance according to the preset air gap to form a first corrected equivalent capacitance coefficient; correct the equivalent capacitance according to the preset plastic thickness to form a second corrected equivalent capacitance; correct the equivalent capacitance according to the preset insulator thickness to form a third corrected equivalent capacitance; perform correction output according to the first corrected equivalent capacitance, the second corrected equivalent capacitance and the third corrected equivalent capacitance, and output the water level height.

[0074] The memory 902 can be used to store computer programs and data. The computer programs stored in the memory 902 contain instructions that can be executed in the processor. The computer programs can form various functional modules. The processor 901 executes various functional applications and data processing by calling the computer programs stored in the memory 902.

[0075] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects: In the solution of the present invention, an automatic parameter verification method for non-contact water level detection is proposed. By polynomial fitting, a polynomial curve of the change of the relative value of capacitance with the plastic thickness is obtained, realizing intelligent parameter verification of an efficient water level sensor.

[0076] In the solution of the present invention, based on the built-in MCU dedicated capacitance sensing water level detection hardware circuit, an AI intelligent algorithm is used, plus a visual and user-friendly simple human-machine interface.

[0077] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a completely hardware embodiment, a completely 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 storage and optical storage, etc.) that contain computer-usable program code.

[0078] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to 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 realized 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, so 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.

[0079] 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, so 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.

[0080] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so 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.

[0081] 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 is also intended to include these modifications and variations.

Claims

1. An intelligent parameter calibration method for a water level sensor, characterized in that, The method includes: Setting up a non-contact air-gap capacitance change detection structure; Pre-setting an information collection module, inputting air gap, plastic thickness data, and insulator thickness online, and obtaining the equivalent capacitance at the current moment online; Correcting the equivalent capacitance according to the pre-set air gap to form a first corrected equivalent capacitance coefficient, including: first performing polynomial fitting calculations based on the air gap or plastic thickness and insulator thickness to obtain the equivalent capacitance value, and then calculating the first corrected equivalent capacitance coefficient with the standard equivalent capacitance; Correcting the equivalent capacitance according to the pre-set plastic thickness to form a second corrected equivalent capacitance, including: first performing polynomial fitting to obtain the change polynomial curve of the plastic thickness and the relative capacitance value, then obtaining the historical analysis data of the plastic thickness and the equivalent capacitance, and finally calculating the second corrected equivalent capacitance with the standard equivalent capacitance; Correcting the equivalent capacitance according to the pre-set insulator thickness to form a third corrected equivalent capacitance, including: first performing polynomial fitting to obtain the change polynomial curve of the insulator thickness and the relative capacitance value, then obtaining the historical analysis data of the insulator thickness and the equivalent capacitance, and finally calculating the third corrected equivalent capacitance with the standard equivalent capacitance; Performing correction output according to the first corrected equivalent capacitance, the second corrected equivalent capacitance, and the third corrected equivalent capacitance, and outputting the water level height.

2. The intelligent parameter verification method of the water level sensor according to claim 1, characterized in that, The setting of the non-contact air-gap capacitance change detection structure specifically includes: The non-contact air-gap capacitance change detection structure 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 to prevent the introduction of capacitance and cause the capacitance detection of the measured object water to fail; There can be an air gap between the plastic-like partition made of PVC material and the non-conductive material cup, and the distance of the air gap has an upper limit; The copper sampling induction square is used to sense the formation of capacitance; 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, where the setting data includes the period of data monitoring, the maximum and minimum values of various real-time sampling data, and the protection action setting value of the protection device.

3. The intelligent parameter verification method of the water level sensor according to claim 1, characterized in that, The pre-set information collection module, inputting air gap, plastic thickness data, and insulator thickness online, and obtaining the equivalent capacitance at the current moment online, specifically includes: Inputting the air gap online, specifically the distance between the non-conductive material cup and the plastic-like partition made of PVC material; Inputting the plastic thickness online, specifically the thickness of the plastic-like partition made of PVC material; Inputting the insulator thickness online, specifically the thickness of the non-conductive material cup; Real-time reading of the standard equivalent capacitance calculated by the single-chip microcomputer at the current moment through a preset formula.

4. The intelligent parameter verification method of the water level sensor according to claim 1, characterized in that, The correction of the equivalent capacitance according to the pre-set air gap to form a first corrected equivalent capacitance coefficient specifically includes: Performing polynomial fitting using the first calculation formula; The capacitance change amount after correction using the second calculation formula; The first calculation formula is: ; Among them, is the sum of polynomials, used to characterize the equivalent capacitance value, The polynomial coefficients of can be obtained after taking the nth derivative, where x 1, x2, …, x n are the 1st, 2nd, …, nth powers of the air gap or the plastic thickness insulator thickness; The second calculation formula is: ; Among them, BL1 is the first corrected equivalent capacitance coefficient, P n(J1) is the sum of polynomials corresponding to the current air gap J1, and B is the standard equivalent capacitance.

5. The intelligent parameter verification method of the water level sensor according to claim 4, characterized in that, The correction of the equivalent capacitance according to the pre-set plastic thickness to form a second corrected equivalent capacitance, specifically includes: Obtain the polynomial curve of the relative change value of capacitance with the plastic thickness through polynomial fitting Obtain the historical analysis data of the plastic thickness and the equivalent capacitance; Calculate the second corrected equivalent capacitance using the third calculation formula; The third calculation formula is: ; Wherein, BL2 is the second corrected equivalent capacitance, B is the standard equivalent capacitance, and E2 is the equivalent capacitance corresponding to the current plastic thickness.

6. The intelligent parameter verification method of the water level sensor according to claim 4, characterized in that The correction of the equivalent capacitance according to the preset insulator thickness to form the third corrected equivalent capacitance specifically includes: Obtain the polynomial curve of the relative change value of capacitance with the insulator thickness through polynomial fitting Obtain the historical analysis data of the insulator thickness and the equivalent capacitance; Calculate the third corrected equivalent capacitance using the fourth calculation formula; The fourth calculation formula is: ; Wherein, BL3 is the third corrected equivalent capacitance, B is the standard equivalent capacitance, and F2 is the equivalent capacitance corresponding to the current insulator thickness.

7. The intelligent parameter verification method of the water level sensor according to claim 1, characterized in that, The correction output according to the first corrected equivalent capacitance, the second corrected equivalent capacitance and the third corrected equivalent capacitance to output the water level height specifically includes: Obtain the first corrected equivalent capacitance, the second corrected equivalent capacitance and the third corrected equivalent capacitance; Calculate the water level height online using the fifth calculation; The fifth calculation formula is: ; Wherein, H is the water level height, and F() is a preset function that maps from the equivalent capacitance to the water level height.

8. The intelligent parameter verification system of a water level sensor, characterized in that, The system is used to implement the method described in any one of claims 1-7, and the system includes: A non-contact water level measurement module for setting a non-contact air-gap capacitance change detection structure; An information collection module for presetting an information collection module, inputting the air gap, plastic thickness data and insulator thickness online, and obtaining the equivalent capacitance at the current moment online; An air-gap correction module for correcting the equivalent capacitance according to the preset air gap to form a first corrected equivalent capacitance coefficient; A plastic thickness correction module for correcting the equivalent capacitance according to the preset plastic thickness to form a second corrected equivalent capacitance; An insulator thickness correction module for correcting the equivalent capacitance according to the preset insulator thickness to form a third corrected equivalent capacitance; A correction output module for performing correction output according to the first corrected equivalent capacitance, the second corrected equivalent capacitance and the third corrected equivalent capacitance, and outputting 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

  • Water-level measuring device for water box and method therefore and steam oven

    CN108387294A

  • Water level detection device and method

    CN116147732A

  • Liquid level sensor, liquid level detection method, computer storage medium and electronic equipment

    CN119984441A

  • Over-the-air detection method and system of water level sensor, medium and equipment

    CN120403807A

  • Correction device, radio sensor tag, data collection system and program

    JP2013088222A