Disclosure of Invention
The invention aims to solve the problems in the prior art, and provides an isolated integrated high-precision liquid level measuring device which is integrally designed, small in size, capable of realizing the measuring precision of 1mm by adopting an isolated measuring mode without exposed contacts, capable of preventing misconduction and ensuring the measuring accuracy, and suitable for various severe environments such as urban waterlogging, underground drainage pipe networks, sewage monitoring and the like.
Another object of the present invention is to provide a level measuring method based on the above-mentioned device.
The purpose of the invention can be achieved by adopting the following technical scheme:
an isolated integrated high-precision liquid level measuring device comprises a shell, an induction panel and a single chip microcomputer, wherein the induction panel and the single chip microcomputer are arranged inside the shell;
the induction panel is provided with n induction areas, n induction capacitance conversion circuits, n-1 liquid level measurement electrodes, a liquid reference electrode, an environment reference electrode and n-1 capacitance digital converters, the n induction areas are sequentially arranged from bottom to top at equal intervals, the induction areas correspond to the induction capacitance conversion circuits one by one, each induction area is connected with the corresponding induction capacitance conversion circuit, a liquid level measurement electrode is arranged between every two adjacent induction areas, the liquid reference electrode is positioned at the bottom of the induction panel, the environment reference electrode is positioned at the top of the induction panel and is positioned at a position outside a liquid level measurement range, the liquid level measurement electrodes correspond to the capacitance digital converters one by one, each liquid level measurement electrode is connected with the corresponding capacitance digital converter, the liquid reference electrode and the environment reference electrode are respectively connected with each capacitance digital converter, the induction capacitance conversion circuit and the capacitance digital converter are respectively connected with the single chip microcomputer; wherein n is more than or equal to 2.
Further, the device also comprises a data transmission module and a power supply battery, wherein the data transmission module and the power supply battery are arranged inside the shell;
the data transmission module is used for realizing communication between the liquid level measuring equipment and the data server, so that the liquid level measuring equipment transmits measured data to the data server through a wireless network;
and the power supply battery is used for supplying power to the liquid level measuring equipment.
Furthermore, each sensing area is a conductive surface, and whether liquid covering exists or not can be distinguished according to the value of the generated sensing capacitance.
Furthermore, the induction area and the liquid level measuring electrode are not directly contacted with liquid to be measured during measurement, so that isolated measurement is realized.
Furthermore, the sensing capacitor conversion circuit comprises a sensing capacitor conversion chip, a first capacitor, a second capacitor and a third capacitor, wherein three pins of the sensing capacitor conversion chip are grounded through the first capacitor, the second capacitor and the third capacitor respectively, one pin is connected with a corresponding sensing area, and one pin is connected with the light emitting diode and is connected with the single chip microcomputer.
Further, the number of the sensing areas on the sensing panel is determined by the liquid level range.
Furthermore, the distance between the sensing area at the lowest part and the outer side of the bottom of the shell and between every two adjacent sensing areas is 1cm, and the vertical height of each sensing area is 1mm at least.
Furthermore, the shell is made of anti-corrosion materials, the color of the shell can be customized according to the field environment, for example, the shell can be customized to be a cement color, and concealed installation is achieved.
The other purpose of the invention can be achieved by adopting the following technical scheme:
a liquid level measuring method based on the liquid level measuring equipment comprises the following steps:
when the shell is totally or partially immersed in the liquid to be detected, searching from bottom to top, reading the output state of the induction area, judging and processing the output state of the induction area to obtain the induction area where the current liquid level line is located, and recording the serial number k of the induction areaiAnd taking the corresponding height of the sensing area as a first-level measurement result Z1=10*ki(ii) a Unit mm, wherein i is more than 0 and less than or equal to n;
calculating the liquid level height between the sensing area where the current liquid level line is located and the sensing area above the current liquid level line according to the relation among the liquid level measuring electrode, the liquid reference electrode and the environment reference electrode, and taking the liquid level height as a second-stage measuring result Z2;
And calculating to obtain a final liquid level value according to the first-stage measurement result and the second-stage measurement result.
Further, from up searching down, read the state of induction zone output, according to the output state of induction zone, discrimination processing obtains the induction zone at present liquid level line place, specifically includes:
searching from bottom to top, and reading the output state of the induction area; wherein, the output of the sensing area is 0 to indicate that liquid exists, and the output of the sensing area is 1 to indicate that no liquid exists;
if the output states of two adjacent sensing areas are changed from 0 to 1 and the output states of all the sensing areas behind the sensing area are 1, judging that the current liquid level line is between the two sensing areas, and taking the sensing area positioned below the two sensing areas as the sensing area where the current liquid level line is positioned;
the search considers the misleading process, which is specifically as follows:
if the output state of one or more induction areas in the middle is 1, and the output states of all the induction areas below the induction area and the continuous induction areas above the induction area are 0, judging that the current liquid level line is above the induction area, and skipping over the induction area to continue searching;
and if the output state of one or more sensing areas in the middle is 0, and the output states of a plurality of sensing areas below and above the sensing area are both 1, judging that the current liquid level line is below the sensing area.
Further, the liquid level height between the sensing area where the current liquid level line is located and the sensing area above the current liquid level line is calculated according to the relationship between the liquid level measuring electrode, the liquid reference electrode and the environment reference electrode, as follows:
wherein, CLMeasuring the electrode capacitance value for the level of the current level line, C0Measuring the capacitance of the electrodes for the liquid level in the absence of liquid, CRLFor reference to a liquid reference electrode capacitance value, CREIs an environmental reference electrode capacitance value, hrefTo convert the coefficients, Z2In mm.
Further, a final level value is calculated according to the first-stage measurement result and the second-stage measurement result, and is as follows:
ZL=Z1+Z2
wherein Z is1Corresponding to the height, Z, of the sensing area where the current liquid level line is located2Is the liquid level height, Z, between the sensing area where the current liquid level line is located and the sensing area above the current liquid level lineLAnd the final liquid level value is obtained.
Compared with the prior art, the invention has the following beneficial effects:
1. the liquid level measuring equipment provided by the invention considers the severe and complicated application environment of urban waterlogging monitoring and underground drainage pipe network water level monitoring, adopts an integrated design, and has a very small and exquisite integral structure and convenient assembly and disassembly; the method divides the measurement into two stages, realizes the first-stage measurement according to the output state of the induction area, realizes the second-stage measurement according to the relation of the liquid level measuring electrode, the liquid reference electrode and the environment reference electrode, the first-stage measurement precision is 1cm, the second-stage measurement precision is 1mm, the first-stage measurement precision of a liquid level line is firstly confirmed when the liquid level is measured, then the second-stage measurement precision is refined and solved on the basis, and finally the 1mm measurement precision is realized.
2. When the liquid level measuring equipment is used for the first-stage measurement, an intelligent judgment processing algorithm is adopted, the induction area where the current liquid level line is located is obtained through judgment processing, the false conduction can be prevented in the searching process from bottom to top, and the measuring accuracy is ensured.
3. In the liquid level measuring equipment, the induction area is not exposed as a contact, and the induction area and the liquid level measuring electrode are not directly contacted with liquid to be measured during measurement, so that isolated measurement can be realized.
4. In the liquid level measuring equipment, the shell can be made of an anticorrosive material which can resist acid and alkali and can be applied to sewage measurement, and the color of the shell can be customized according to the field environment, such as the color of cement, so that the concealed installation is realized.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the protection scope of the present invention.
Example 1:
as shown in fig. 1 and fig. 2, the present embodiment provides an isolated integrated high-precision liquid level measuring device, which includes a housing 1, an induction panel 2, and a single chip Microcomputer (MCU) 3.
The induction panel 2 and the single chip microcomputer 3 are arranged inside the shell 1 to form a measuring module of the liquid level measuring device, the induction panel 2 is attached to the inner side of the shell 1 and is not directly exposed, a data transmission module and a power supply battery are further integrated inside the shell 1, the single chip microcomputer 3, the data transmission module and the power supply battery are arranged on a circuit board, the data transmission module is a wireless network connection module, communication between the liquid level measuring device and a data server can be realized through the data transmission module, the liquid level measuring device can transmit measured data to the data server through a wireless network, the power supply battery is used for supplying power to the liquid level measuring device, a lithium battery can be adopted, and the liquid level measuring device is integrated with the lithium battery without an external power supply, namely the liquid level measuring device of the embodiment integrates the measuring module, the data transmission module and the power supply battery, the integrated liquid level measuring equipment is formed, and the whole structure is very small and exquisite and is convenient to disassemble and assemble.
In order to realize the concealed installation of the liquid level measuring equipment, the color of the shell can be customized according to the field environment, such as the color of cement; preferably, the shell 1 is made of an anti-corrosion material, the anti-corrosion material can be tetrafluoroethylene or other anti-corrosion materials, and the anti-corrosion material can be acid-base resistant and can be applied to sewage measurement; further, the cross section of the housing 1 has a trapezoidal shape.
As shown in fig. 3, ten sensing regions 201, ten sensing capacitance conversion circuits, nine liquid level measurement electrodes 202, one liquid reference electrode 203, one environment reference electrode 204, and nine capacitance digital converters 205 are disposed on the sensing panel 2, wherein the sensing regions 201 and the liquid level measurement electrodes 202 are disposed on the front surface of the sensing panel 2, the sensing capacitance conversion circuits and the capacitance digital converters 205 are disposed on the back surface of the sensing panel 2, the ten sensing regions 201 are sequentially and equidistantly arranged from bottom to top, the sensing regions 201 are not exposed as contacts, and the sensing regions 201 and the liquid level measurement electrodes 202 do not directly contact the liquid to be measured during measurement, so as to realize isolated measurement, the sensing regions 201 and the sensing capacitance conversion circuits are in one-to-one correspondence, that is, one sensing capacitance conversion circuit is disposed on each sensing region 201, and each sensing region 201 is connected to the corresponding sensing capacitance conversion circuit through a conducting wire, a liquid level measuring electrode 202 is arranged between every two adjacent sensing areas 201, a liquid reference electrode 203 is positioned at the bottom of the front surface of the sensing panel 2, an environment reference electrode 204 is positioned at the top of the front surface of the sensing panel 2 and is positioned outside a liquid level measuring range, the liquid level measuring electrodes 202 correspond to capacitance digital converters 205 one by one, each liquid level measuring electrode 202 is connected with the corresponding capacitance digital converter 205, each capacitance digital converter 205 shares the liquid reference electrode 203 and the environment reference electrode 204, namely the liquid reference electrode 203 and the environment reference electrode 204 are respectively connected with each capacitance digital converter 205, and an induction capacitance conversion circuit and the capacitance digital converter 205 are respectively connected with the single chip microcomputer 3.
In order to calculate the liquid level height conveniently, in the present embodiment, the distance between the lowest sensing region 201 and the outer side of the bottom of the housing 1 and between every two adjacent sensing regions 201 is 1cm, the height of each sensing region is 1mm, that is, the liquid level measuring range of the liquid level measuring apparatus of the present embodiment is 100 mm.
Further, each sensing region is a conductive surface, and whether there is liquid coverage can be distinguished according to the magnitude of the generated sensing capacitance value, as shown in fig. 4, each sensing capacitance conversion circuit includes a sensing capacitance conversion chip U1, a first capacitor C1, a second capacitor C2 and a third capacitor C3.
The sensing capacitor conversion chip U1 of the present embodiment has six pins, which are a first pin VDD, a second pin SYNC, a third pin CS, a fourth pin CR, a fifth pin GND and a sixth pin OUT, respectively; the first pin VDD is connected with a 3.3V power supply, the first pin VDD is also grounded through a second capacitor C2, and a resistor R200 is arranged between the first pin VDD and the 3.3V power supply; the second pin SYNC is a synchronization terminal; the third pin CS is connected to the corresponding sensing region, and the third pin CS is also grounded through a first capacitor C1; the fourth pin CR is grounded through a third capacitor C3; the fifth pin GND is grounded; the sixth pin OUT is an output end, the sixth pin OUT is also connected with the light emitting diode LED1 through a resistor R1, the sixth pin OUT is connected with the single chip microcomputer 3, and the light emitting diode LED1 is connected with a 3.3V power supply.
Through the inductive capacitance converting circuit, convert the induction state into the digital quantity, do not touch induction zone 201 output and be 1 promptly, there is touch induction zone output and be 0, in the level measurement of this embodiment, there is not liquid induction zone 201 output and be 1, there is liquid induction zone 201 output and be 0, can observe the output state of induction zone 201 through emitting diode LED1, and adopt singlechip 3 to make statistics of the output state of induction zone 201, to every induction zone 201, adopt from up search strategy down, it has liquid to indicate to export the induction zone that is 0, the output is 1 and indicates no liquid, and according to the output state of induction zone, automatic judgement processing is made, obtain the position of current liquid level line.
As shown in fig. 5, the present embodiment further provides a liquid level measuring method, which is implemented based on the above liquid level measuring apparatus, and includes the following steps:
s1, when the shell is totally or partially immersed in the liquid to be detected, searching from bottom to top, reading the output state of the sensing area, judging and processing the output state of the sensing area to obtain the sensing area where the current liquid level line is located, and recording the serial number k of the sensing areaiAnd taking the corresponding height of the sensing area as a first-level measurement result.
In this step, from bottom to top, search, read the state of induction zone output, according to the output state of induction zone, differentiate the induction zone that processing obtained current liquid level line and located, as shown in fig. 6, adopt intelligent judgement processing algorithm, specifically include:
(1) numbering each sensing zone from bottom to top, e.g. k1,k2,k3,……,k10。
(2) And searching from bottom to top, and reading the output state of the sensing area.
(3) If the output states of two adjacent sensing areas are changed from 0 to 1 and the output states of all the sensing areas behind the sensing area are all 1, judging that the current liquid level line is between the two sensing areas, and enabling the two sensing areas to sense the current liquid level lineThe lower-lying sensing zone in a zone being the sensing zone in which the current liquid level line is located, e.g. k1To k is3The output is 0, k4The values of both the backward and forward are 1, which means that the current liquid level line 4 is at k3To k is4In the first step, k is3As the sensing area where the current liquid level line is located.
(4) If the output state of one or more sensing areas in the middle is 1, and the output states of all the sensing areas below the sensing area and the continuous sensing areas above the sensing area are 0, the sensing area is possibly damaged, the current liquid level line is judged to be above the sensing area, and the sensing area is skipped to continue searching.
(5) If the output state of one or more sensing areas in the middle is 0, and the output states of the continuous sensing areas below and above the sensing area are both 1, it indicates that splashed water, impurities or sundries adhere to the surface of the shell corresponding to the sensing area, and it is determined that the current liquid level line is below the sensing area.
Through the judgment processing of the steps (4) and (5), the misconduction can be prevented, and the measurement accuracy is ensured.
If both (4) and (5) are met, e.g. k1-k10Is 0, k11Is 1, k12-k14Is 0, k15-k16Is 1, k17Is 0, k18-k20Is 1, then the current liquid level line is at k14-k15In the first step, k is14As the sensing area where the current liquid level line is located.
S2, calculating the liquid level height between the sensing area where the current liquid level line is located and the sensing area above the current liquid level line according to the relation among the liquid level measuring electrode, the liquid reference electrode and the environment reference electrode, and taking the liquid level height as a second-level measuring result, wherein the second-level measuring result is as follows:
wherein, CLMeasuring the electrode capacitance value for the level of the current level line, C0Measuring the capacitance of the electrodes for the liquid level in the absence of liquid, CRLFor reference to a liquid reference electrode capacitance value, CREIs an environmental reference electrode capacitance value, hrefAre conversion coefficients.
S3, calculating to obtain a final liquid level value according to the first-stage measurement result and the second-stage measurement result, wherein the final liquid level value is as follows:
ZL=Z1+Z2
wherein Z is1Z in the present embodiment corresponds to the height of the sensing region where the current liquid level line is located1=10*kiIn units of mm, kiIs the serial number of the sensing area where the current liquid level line is located, Z2The height of the liquid level between the sensing area where the current liquid level line is located and the sensing area above the current liquid level line is measured in mm and ZLIs the final level value in mm.
It should be noted that although the method operations described above are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Rather, the depicted steps may change the order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
Example 2:
the structure of the liquid level measuring device of the present embodiment is the same as that of embodiment 1, but the liquid level measuring range of the liquid level measuring device is set to be 200mm, that is, twenty sensing areas 201 and nineteen liquid level measuring electrodes 202 are provided, as shown in fig. 7; the serial numbers of the sensing regions 201 are k1,k2,k3,……,k20Assuming that the current water depth is 115mm, the liquid level measurement process is as follows:
(1) a first level of measurement calculation is initiated.
(1.1) searching from bottom to top, reading the output state of the induction area, at the moment, the kth1Induction zone of order to kth11The induction zones of the order are all 0, k12Induction zone of order to kth20The induction zones of the steps are all 1.
(1.2) judging if the current time is in accordance with the output state of the sensing areaFront liquid level line is located at kth11Induction zone of order to kth12Between the induction zones of the steps, the output of the first-stage measurement result is 10 × 11 ═ 110 (mm).
(2) Determining the second-stage measurement interval as kth11Induction zone of order to kth12After the induction zones of the order, a second level of measurement calculation is started.
According to the relation of the liquid level measuring electrode, the liquid reference electrode and the environment electrode, the kth11Induction zone of order to kth12The calculation formula of the liquid level height between the induction areas of the order is as follows:
to yield Z2=5mm。
(3) And after the second-stage measurement result is obtained, adding the second-stage measurement result into the first-stage measurement result to obtain the final liquid level value of 115mm, which is consistent with the current water depth.
Example 3:
the structure of the liquid level measuring device of the present embodiment is the same as that of embodiment 1, but the liquid level measuring range of the liquid level measuring device is set to be 200mm, that is, twenty sensing areas 201 and nineteen liquid level measuring electrodes 202 are provided, as shown in fig. 8; the serial numbers of the sensing regions 201 are k1,k2,k3,……,k20Assume that the current water depth is 115mm, and at kth15The shell surface that the induction zone of rank corresponds has impurity to adhere to, and its liquid level measurement process is as follows:
(1) a first level of measurement calculation is initiated.
(1.1) searching from bottom to top, reading the output state of the induction area, at the moment, the kth1Induction zone of order to kth11The induction zones of the order are all 0, k12Induction zone of order to kth14The induction zones of the order are all 1, k15The induction zone of the order is 0, k16Induction zone of order to kth20The induction zones of the steps are all 1.
(1.2) according to an intelligent discrimination processing algorithm, the output of the middle induction zone is 0 and the adjacent induction zones are adjacentUnder the condition that the induction areas are all 1, the situation that splashed water, impurities or sundries are attached to the kth position is automatically judged15In the case of the surface of the housing corresponding to the sensing region of the step, the current liquid level line is not in this region, and should be at the kth15The lower region of the sensing region of the step.
(1.3) statistical, kth1Induction zone of order to kth11The induction zones of the order are all 0, k12Induction zone of order to kth14The induction areas of the steps are all 1, and the current liquid level line can be automatically judged to be positioned at the kth position according to an intelligent judgment processing algorithm11Induction zone of order to kth12Between the induction zones of the steps, the output of the first-stage measurement result is 10 × 11 ═ 110 (mm).
(2) Determining the second-stage measurement interval as kth11Induction zone of order to kth12After the induction zones of the order, a second level of measurement calculation is started.
According to the relation of the liquid level measuring electrode, the liquid reference electrode and the environment electrode, the kth11Induction zone of order to kth12The calculation formula of the liquid level height between the induction areas of the order is as follows:
to yield Z2=5mm。
(3) And after the second-stage measurement result is obtained, adding the second-stage measurement result into the first-stage measurement result to obtain the final liquid level value of 115mm, which is consistent with the current water depth.
Example 4:
the structure of the liquid level measuring device of the embodiment is the same as that of the embodiment 1, but the liquid level measuring range of the liquid level measuring device is set to be 200mm, namely twenty sensing areas 201 are provided, and nineteen liquid level measuring electrodes 202 are provided; the serial numbers of the sensing regions 201 are k1,k2,k3,……,k20Assuming that the current water depth is 155mm, and the kth12The sensing area of the step is damaged, and the liquid level measuring process is as follows:
(1) a first level of measurement calculation is initiated.
(1.1) searching from bottom to top, reading the output state of the induction area, at the moment, the kth1Induction zone of order to kth11The induction zones of the order are all 0, k12Induction zone of order 1, k13Induction zone of order to kth15The induction zones of the order are all 0, k16Induction zone of order to kth20The induction zones of the steps are all 1.
(1.2) automatically judging the kth induction zone according to an intelligent discrimination processing algorithm under the condition that the output of the middle induction zone is 1 and the whole induction zones below and a plurality of induction zones above the adjacent induction zones are 012The sensing region of the step may be damaged, and the current liquid level line is not in this region and should be at the k-th12The upper region of the sensing region of the step, and skip the k-th region12The induction zone of the order continues to search.
(1.3) statistical, kth13Induction zone of order to kth15The induction zones of the order are all 0, k16Induction zone of order to kth20The induction areas of the steps are all 1, and the current liquid level line can be automatically judged to be positioned at the kth position according to an intelligent judgment processing algorithm15Induction zone of order to kth16Between induction zones of the order, the first-order measurement result output is 10 × 15 ═ 150(mm)
(2) Determining the second-stage measurement interval as kth15Induction zone of order to kth16After the induction zones of the order, a second level of measurement calculation is started.
According to the relation of the liquid level measuring electrode, the liquid reference electrode and the environment electrode, the kth15Induction zone of order to kth16The calculation formula of the liquid level height between the induction areas of the order is as follows:
to yield Z2=5mm。
(3) And after the second-stage measurement result is obtained, adding the second-stage measurement result into the first-stage measurement result to obtain a final liquid level value which is 155mm and is consistent with the current water depth.
In conclusion, the liquid level measuring equipment provided by the invention considers the severe and complicated application environment of urban waterlogging monitoring and underground drainage pipe network water level monitoring, adopts an integrated design, and has a very small overall structure and convenient assembly and disassembly; the method divides the measurement into two stages, realizes the first-stage measurement according to the output state of the induction area, realizes the second-stage measurement according to the relation of the liquid level measuring electrode, the liquid reference electrode and the environment reference electrode, the first-stage measurement precision is 1cm, the second-stage measurement precision is 1mm, the first-stage measurement precision of a liquid level line is firstly confirmed when the liquid level is measured, then the second-stage measurement precision is refined and solved on the basis, and finally the 1mm measurement precision is realized.
The above description is only for the preferred embodiments of the present invention, but the protection scope of the present invention is not limited thereto, and any person skilled in the art can substitute or change the technical solution and the inventive concept of the present invention within the scope of the present invention.