Control method and system, circuit and water meter for preventing water meter valve from closing in humid environment

By reducing the pull-up resistance of the water meter pulse circuit and the microcontroller to determine the port status, the problem of frequent valve closing of the water meter in dark and humid environments is solved to ensure that the user uses water normally.

CN112349034BActive Publication Date: 2024-11-22JINAN PEIHUA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011227338.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-06
Publication Date
2024-11-22
Estimated Expiration
2040-11-06

AI Technical Summary

Technical Problem

The water meter is prone to frequent shutdown of the valve due to humidity in a dark and humid hidden environment, which affects the user experience.

Method used

By reducing the pull-up resistance value on the pulse circuit, and combining the microcontroller to determine the port level and AD voltage value, we determine whether the water meter is in a humid environment, thereby determining whether the water meter is turned off.

Benefits of technology

It effectively reduces the frequent valve closing of the water meter caused by humid environments, ensuring that users use normal water.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112349034B_ABST
    Figure CN112349034B_ABST
Patent Text Reader

Abstract

The present application discloses a control method and system, circuit and water meter for preventing a water meter from closing a valve in a humid environment. The water meter includes a microcontroller, a pull-up resistor, a first sensor and a second sensor; the first (second) port of the microcontroller is connected to the first (second) sensor through a first (second) pulse circuit; the control method includes: reducing the resistance of the pull-up resistor; judging the state of the level at the first port and the second port; when the level of the first port and the second port is low, judging whether the AD voltage value of the two ports is greater than a threshold; if there is at least one port whose AD voltage value is greater than the threshold, it is determined to be a humid environment and the valve is not closed; if the AD voltage values ​​of the two ports are equal to or less than the threshold, the valve is automatically closed. The method can judge whether the water meter is in a humid environment, and when it is in a humid environment, the valve is not closed, thereby reducing the phenomenon of frequent valve closing of the water meter caused by a humid environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field related to water meters, and in particular to a control method and system, a circuit and a water meter for preventing a water meter from closing a valve in a humid environment. Background Art

[0002] Since water meters are usually placed in dark, humid and hidden environments, water and moisture easily enter the pulse port or sensor of the water meter's mainboard, causing its resistance to decrease. When the microcontroller in the water meter detects that the I / O port is at a low level at the same time, the water meter will automatically close the valve, causing users to be unable to use water normally. This frequent valve closure caused by moisture brings many inconveniences to users and seriously affects the user experience.

[0003] Therefore, how to reduce the frequent valve closing of the water meter caused by the humid environment when the water meter is set in a dark and humid hidden environment has become an urgent problem to be solved in the field. Summary of the invention

[0004] The purpose of the present application is to provide a control method for preventing a water meter from closing its valve in a humid environment, which can improve the problem of frequent valve closing of a water meter caused by a humid environment when the water meter is set in a dark and humid hidden environment.

[0005] The second object of the present application is also to provide a control system for preventing a water meter from closing its valve in a humid environment, and the control system is executed according to the above-mentioned control method for preventing a water meter from closing its valve in a humid environment.

[0006] Another object of the present application is to provide a circuit and a water meter using the circuit.

[0007] In a first aspect, an embodiment of the present application provides a control method for preventing a water meter from closing a valve in a humid environment, the water meter comprising a microcontroller, a first sensor, and a second sensor; the microcontroller is configured with a first port and a second port, the first port is connected to the first sensor through a first pulse circuit, and the second port is connected to the second sensor through a second pulse circuit; the first pulse circuit and the second pulse circuit are both configured with a pull-up resistor; the control method comprises:

[0008] reducing the resistance of the pull-up resistors on the first pulse circuit and the second pulse circuit;

[0009] Determine the state of the level at the first port and the second port; when the levels of the first port and the second port are both low, determine whether the AD voltage values ​​of the two ports are greater than a threshold;

[0010] If the AD voltage value of at least one port is greater than the threshold, it is determined to be a humid environment and the valve is not closed;

[0011] If the AD voltage values ​​of the two ports are equal to or less than the threshold, the valve will be closed automatically.

[0012] In a possible implementation, the resistance of the pull-up resistor ranges from 45 to 55 kΩ.

[0013] In a possible implementation, when the levels of the first port and the second port are both at low levels, before determining whether the AD voltage values ​​of the two ports are greater than a threshold, after determining the states of the levels at the first port and the second port, the method further includes:

[0014] Introduce variables, one variable corresponds to one port;

[0015] The variables at the two ports are assigned values ​​according to the judgment results of the level states at the first port and the second port.

[0016] In a possible implementation, when the levels of the first port and the second port are both low, determining whether the AD voltage values ​​of the two ports are greater than a threshold comprises:

[0017] Perform AD conversion on the levels of the two ports to obtain the AD voltage values ​​of the two ports;

[0018] Determine whether the AD voltage values ​​of the two ports are greater than the threshold.

[0019] In a possible implementation, when the levels of the first port and the second port are both low, after determining whether the AD voltage values ​​of the two ports are greater than a threshold, the method further includes:

[0020] The level of the first port is low, and the AD voltage value of one of the ports is greater than the threshold;

[0021] The level of the second port is low, and the AD voltage value of one of the ports is greater than the threshold;

[0022] The microcontroller subtracts one pulse.

[0023] In a second aspect, an embodiment of the present application provides a control system for preventing a water meter from closing a valve in a humid environment, which is executed according to the above-mentioned control method for preventing a water meter from closing a valve in a humid environment. The control system includes:

[0024] A data acquisition module, used for acquiring the level at the first port and / or the second port;

[0025] A first determination module, used to determine the state of the level at the first port and / or the second port;

[0026] A second judgment module is used to judge whether the AD voltage values ​​of the two ports are greater than a threshold when the levels of the first port and the second port are both low levels;

[0027] An analysis module is used to determine whether the water meter is in a humid environment according to a judgment result of whether the AD voltage values ​​of the two ports are greater than a threshold;

[0028] The control module is used to control whether the water meter closes the valve according to the judgment result of whether the AD voltage values ​​of the two ports are greater than the threshold value and whether the water meter is in a humid environment.

[0029] In a possible implementation, the control system also includes an assignment module, which is connected to the first judgment module and the second judgment module, and is used to assign values ​​to the two ports based on the judgment results of the level states at the first port and the second port and the judgment results of the AD voltage values ​​at the first port and the second port.

[0030] In a third aspect, an embodiment of the present application provides a circuit configured with the above-mentioned control system for preventing the water meter from closing the valve in a humid environment.

[0031] In a fourth aspect, an embodiment of the present application provides a water meter in which the above-mentioned circuit is disposed.

[0032] Compared with the prior art, the present invention has the following advantages:

[0033] In the present application, the resistance of the pull-up resistors on the first pulse circuit and the second pulse circuit is reduced, and the states of the levels at the first port and the second port are judged respectively; when the levels of the first port and the second port are both low, it is further judged whether the AD voltage values ​​of the two ports are greater than the threshold value to determine whether the water meter is in a humid environment; when it is in a humid environment, the valve is not closed, which can effectively reduce the phenomenon of frequent valve closing of the water meter caused by the humid environment and ensure normal water use for users. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 It is a schematic diagram of a control method for preventing a water meter from closing a valve in a humid environment according to an embodiment of the present application;

[0036] Figure 2 It is a flow chart of a control method for preventing a water meter from closing a valve in a humid environment according to an embodiment of the present application;

[0037] Figure 3 It is a schematic diagram of a control system for preventing a water meter from closing a valve in a humid environment according to an embodiment of the present application;

[0038] Figure 4 It is a schematic diagram of a circuit according to an embodiment of the present application.

[0039] Illustration Description:

[0040] 10 microcontroller; 20 pull-up resistor; 30 protection resistor; 40 pulse port; 50 first sensor; 51 second sensor; 60 power supply; 70 valve; 80 filter capacitor; 100 data acquisition module; 200 first judgment module; 300 second judgment module; 400 analysis module; 500 control module. DETAILED DESCRIPTION

[0041] The technical solutions of the specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings. These implementation methods are only used to illustrate the present application, but not to limit the present application.

[0042] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0043] In the description of the present application, it should be noted that the terms “first” and “second” etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0044] According to one aspect of the present application, a control method for preventing a water meter from closing a valve in a humid environment is provided. Figure 4 The water meter includes a microcontroller 10, a first sensor 50 and a second sensor 51; the microcontroller 10 is configured with a first port 11 and a second port 12, the first port 11 is connected to the first sensor 50 through a first pulse circuit, and the second port 12 is connected to the second sensor 51 through a second pulse circuit; the first pulse circuit and the second pulse circuit are both configured with a pull-up resistor 20.

[0045] See also Figure 1 , the control method comprises the following steps:

[0046] S1. Reduce the resistance of the pull-up resistor 20 on the first pulse circuit and the second pulse circuit.

[0047] In one embodiment, in step S1 of reducing the resistance of the pull-up resistor 20 on the first pulse circuit and the second pulse circuit, the resistance range of the pull-up resistor 20 is reduced to 45-55 kΩ. Preferably, the resistance of the pull-up resistor 20 is reduced to 51 kΩ.

[0048] After the resistance of the pull-up resistor 20 decreases, the resistance of the first sensor 50 and the second sensor 51 both decreases and is less than the preset resistance value. When the user uses water, when the pointer in the water meter moves to the first sensor 50 and / or the second sensor 51, the level at the first port (MC1) 11 and / or the second port (MC2) is ensured to be low.

[0049] In one embodiment, the microcontroller 10 is further connected to a power supply 60. After reducing the resistance of the pull-up resistor 20 on the first pulse circuit and the second pulse circuit in step S1, the method further includes:

[0050] The power supply mode of the power supply 60 is scan intermittent power supply. The scan intermittent power supply mode can reduce the power consumption of the water meter to balance the impact of reducing the resistance value of the pull-up resistor 20 and ensure the reliability and stability of the water meter. Preferably, the output voltage of the output port (VCCIO) of the microcontroller 10 is 3V.

[0051] S2, judging the states of the levels at the first port 11 and the second port 12; when the levels of the first port 11 and the second port 12 are both low, judging whether the AD voltage values ​​of the two ports are greater than a threshold.

[0052] In one implementation, determining the states of the levels at the first port 11 and the second port 12 includes:

[0053] Compare the level of the first port 11 and / or the second port 12 with a preset value; if the level of the first port 11 and / or the second port 12 is less than the preset value, the level is a low level; if the level of the first port 11 and / or the second port 12 is greater than or equal to the preset value, the level is a high level. Preferably, the preset value is 1V.

[0054] In one embodiment, when the levels of the first port 11 and the second port 12 are both low levels, before determining whether the AD voltage values ​​at the two ports are greater than the threshold, after determining the states of the levels at the first port 11 and the second port 12, the method further includes:

[0055] Introduce variables, one variable corresponds to one port;

[0056] According to the judgment result of the level status at the first port 11 and the second port 12, the variables at the two ports are assigned values.

[0057] The following describes the first port 11 and the second port 12 as an example in combination with specific implementation situations.

[0058] Two variables are introduced, namely variable a and variable b; variable a corresponds to the first port 11, and variable b corresponds to the second port 12. When the level of the first port 11 and the second port 12 is low, the first port 11 and the second port 12 are assigned a value, that is, variable a and variable b are both assigned a value of 00. If the level of at least one port is high, the first port 11 and the second port 12 are assigned a value, that is, variable a and variable b are both assigned a value of 01, 10 or 11.

[0059] In one implementation, when the levels of the first port 11 and the second port 12 are both low, determining whether the AD voltage values ​​at the two ports are greater than a threshold comprises:

[0060] Perform AD conversion on the levels of the two ports to obtain the AD voltage values ​​of the two ports;

[0061] Determine whether the AD voltage values ​​of the two ports are greater than the threshold.

[0062] Preferably, the threshold is determined according to the resistance values ​​of the first sensor 50 and the second sensor 51. In this embodiment, the threshold is 0.3V.

[0063] The following describes the first port 11 and the second port 12 as an example in combination with specific implementation situations.

[0064] When the level at the first port 11 is low, the AD voltage values ​​at the two ports are first determined, and the first port 11 is further assigned a value according to the determination result. The determination result may be as follows:

[0065] (1) The AD voltage value at the first port 11 is greater than the threshold value, and the AD voltage value at the second port 12 is equal to or less than the threshold value. The variable a at the first port 11 is assigned a value of 0F.

[0066] (2) The AD voltage value at the first port 11 is equal to or less than the threshold value, and the AD voltage value at the second port 12 is equal to or less than the threshold value. The variable a at the first port 11 is assigned a value of FF.

[0067] (3) The AD voltage value at the first port 11 is greater than the threshold value, and the AD voltage value at the second port 12 is greater than the threshold value. The variable a at the first port 11 is assigned a value of 00.

[0068] (4) The AD voltage value at the first port 11 is equal to or less than the threshold value, and the AD voltage value at the second port 12 is greater than the threshold value. The variable a at the first port 11 is assigned a value of F0.

[0069] In case (2), the water meter will automatically close the valve. In cases (1), (3) and (4), the water meter is in a humid environment and the water meter will not close the valve.

[0070] When the level at the second port 12 is a low level, the existence of the judgment result and the assignment are the same as those at the first port 11, and will not be described in detail.

[0071] In one embodiment, when the levels of the first port 11 and the second port 12 are both low levels, after determining whether the AD voltage values ​​at the two ports are greater than a threshold, the method further includes:

[0072] The level of the first port 11 is low, and the AD voltage value of one of the ports is greater than the threshold;

[0073] The level of the second port 12 is low, and the AD voltage value of one of the ports is greater than the threshold;

[0074] The microcontroller 10 subtracts one pulse.

[0075] In the following, in combination with specific implementation situations, an example is given in which the levels at the first port 11 and the second port 12 are both low levels.

[0076] When the level of the first port 11 is low, the variable a at the first port 11 is assigned a value, that is, the variable a is assigned a value of 00. And at this time, the AD voltage value of the first port 11 or the second port 12 is greater than the threshold value, then the variable at the first port 11 is reassigned, and the variable a is assigned a value of F0 or 0F, and the water meter will not automatically close the valve. Further, when the level of the second port 12 is low, the variable b at the second port 12 is assigned a value, that is, the variable b is assigned a value of 00. And at this time, the AD voltage value of the first port 11 or the second port 12 is greater than the threshold value, then the variable at the second port 12 is reassigned, and the variable b is assigned a value of F0 or 0F, and the water meter will not automatically close the valve. Finally, after the microcontroller 10 detects the assignment of variables a and b, the microcontroller 10 subtracts a pulse.

[0077] The following is an introduction to the entire control process of the control method in conjunction with the entire process of the water meter. Figure 2 , the control flow of this control method is as follows:

[0078] Initialize the first port 11 and the second port 12 of the microcontroller 10, and then use the scanning intermittent power supply method to power the microcontroller 10. Determine the state of the level at the first port 11 and the second port 12, and assign values ​​to the first port 11 and the second port 12 according to the determination result. When the level of one port is high, repeat the above determination operation: determine the state of the level at the first port 11 and the second port 12 until the levels at the first port 11 and the second port 12 are both low. When the levels at the first port 11 and the second port 12 are both low, start AD conversion for the levels of the two ports, determine whether the AD voltage values ​​of the two ports are greater than the threshold, and reassign values ​​to the first port 11 and the second port 12 according to the determination result. If the AD voltage values ​​of the two ports are equal to or less than the threshold, the valve is automatically closed; if the AD voltage value of at least one port is greater than the threshold, it is determined to be a humid environment and the valve is not closed. Among them, when the levels at the first port 11 and the second port 12 are both low levels, and when the first port 11 is low level, the AD voltage value of one of the ports is greater than the threshold; when the second port 12 is low level, the AD voltage value of one of the ports is greater than the threshold, the microcontroller 10 subtracts a pulse.

[0079] It can be seen from the above technical solution that the present application reduces the resistance of the pull-up resistor 20 on the first pulse circuit and the second pulse circuit, and respectively judges the state of the level at the first port 11 and the second port 12; when the levels of the first port 11 and the second port 12 are both low, it is further judged whether the AD voltage values ​​of the other two ports are greater than the threshold value to determine whether the water meter is in a humid environment; when it is in a humid environment, the valve is not closed, which can effectively reduce the phenomenon of frequent valve closing of the water meter caused by the humid environment, and ensure normal water use for users.

[0080] Furthermore, the present application adopts a scanning intermittent power supply mode to reduce the power consumption of the water meter, so as to balance the influence brought by reducing the resistance value of the pull-up resistor 20 and ensure the reliability and stability of the water meter.

[0081] According to one aspect of the present application, a control system for preventing a water meter from closing a valve in a humid environment is provided. The control system is executed according to the control method for preventing a water meter from closing a valve in a humid environment in the above embodiment. Figure 3, the control system includes a data acquisition module 100, a first judgment module 200, a second judgment module 300, an analysis module 400 and a control module 500. The data acquisition module 100 is used to collect the level at the first port 11 and / or the second port 12. The first judgment module 200 is used to judge the state of the level at the first port 11 and / or the second port 12. The second judgment module 300 is used to judge whether the AD voltage value of the two ports is greater than a threshold when the levels of the first port 11 and the second port 12 are both low. The analysis module 400 is used to determine whether the water meter is in a humid environment based on the judgment result of whether the AD voltage value of the two ports is greater than the threshold. The control module 500 is used to control whether the water meter is closed according to the judgment result of whether the AD voltage value of the two ports is greater than the threshold and whether the water meter is in a humid environment.

[0082] The working process and working principle of this application are as follows:

[0083] The data acquisition module 100 acquires the level at the first port 11 and / or the second port 12, and transmits the level signal to the first judgment module 200. The first judgment module 200 compares the level at the first port 11 and / or the second port 12 with the preset value to determine the state of the level at the first port 11 and / or the second port 12, and transmits its judgment result to the second judgment module 300. When the second judgment module 300 receives a signal that the levels of the first port 11 and the second port 12 are both low, it determines whether the AD voltage values ​​of the two ports are greater than the threshold, and transmits its judgment result to the analysis module 400 and the control module 500. When the analysis module 400 receives a signal that the AD voltage value of at least one port is greater than the threshold, it determines that the water meter is in a humid environment; otherwise, the water meter is not in a humid environment; the analysis module 400 transmits the judgment result of whether the water meter is in a humid environment to the control module 500. After receiving the signal that the levels of the first port 11 and the second port 12 are both low, the AD voltage values ​​of the two ports are equal to or less than the threshold, and the water meter is not in a humid environment, the control module 500 controls the water meter to automatically close the valve. After receiving the signal that the levels of the first port 11 and the second port 12 are both low, and the water meter is in a humid environment, the control module 500 controls the water meter not to close the valve.

[0084] The data acquisition module 100 , the first judgment module 200 , the second judgment module 300 , the analysis module 400 and the control module 500 are connected by communication connection.

[0085] In one embodiment, the control system is also configured with an assignment module (not shown in the figure); the assignment module is connected to the first judgment module 200 and the second judgment module 300 by means of a communication connection, and is used to assign values ​​to the two ports according to the judgment results of the level status at the first port 11 and the second port 12 and the judgment results of the AD voltage values ​​at the first port 11 and the second port 12.

[0086] In one embodiment, the control module 500 is further configured to cause the microcontroller 10 to subtract a pulse when the levels of the first port 11 and the second port 12 are both low and the level of one of the ports is greater than a threshold.

[0087] According to one aspect of the present application, a circuit is provided, which is configured with the control system for preventing the water meter from closing the valve in a humid environment in the above embodiment. Figure 4 , the circuit includes a microcontroller 10, a first sensor 50, a second sensor 51, a power supply 60 and a valve 70. The microcontroller 10 is connected to the power supply 60 and the valve 70 respectively. The microcontroller 10 is configured with a first port (MC1) 11 and a second port (MC2) 12, the first port (MC1) 11 is connected to the first sensor 50 through a first pulse circuit, and the second port (MC2) 12 is connected to the second sensor 51 through a second pulse circuit. The first pulse circuit and the second pulse circuit are both configured with a pull-up resistor 20 and a protection resistor 30, and the protection resistor 30 is arranged between the first sensor 50 / the second sensor 51 and the first port 11 / the second port 12; one end of the pull-up resistor 20 is connected to the common connection point of the protection resistor 30 and the first port 11 / the second port 12, and the other end is connected to the output port (VCCIO) of the microcontroller 10.

[0088] Preferably, both the first pulse circuit and the second pulse circuit are equipped with a filter capacitor 80 , one end of the filter capacitor 80 is connected to a common connection point between the protection resistor 30 and the first port 11 / the second port 12 , and the other end is grounded.

[0089] Preferably, the power supply mode of the power supply 60 is scan intermittent power supply. Preferably, the output voltage of the output port (VCCIO) of the microcontroller 10 is 3V. The use of scan intermittent power supply can reduce the power consumption of the water meter to balance the impact of reducing the resistance value of the pull-up resistor 20, thereby ensuring the reliability and stability of the water meter.

[0090] Preferably, the resistance of the pull-up resistor 20 is in the range of 45 to 55 kΩ. Preferably, the resistance of the pull-up resistor 20 is in the range of 51 kΩ.

[0091] Preferably, a pulse port 40 is arranged between the protection resistor 30 and the first sensor 50 / the second sensor 51 .

[0092] According to one aspect of the present application, a water meter is provided, in which the circuit of the above embodiment is arranged.

[0093] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present application. These improvements and substitutions should also be regarded as the scope of protection of the present application.

Claims

1. A control method for preventing a water meter from closing a valve in a humid environment, the water meter comprising a microcontroller, a first sensor and a second sensor; the microcontroller is configured with a first port and a second port, the first port is connected to the first sensor through a first pulse circuit, and the second port is connected to the second sensor through a second pulse circuit ; The first pulse circuit and the second pulse circuit are both equipped with a pull-up resistor; characterized in that: reducing the resistance values ​​of the pull-up resistors on the first pulse circuit and the second pulse circuit; Determine the states of the levels at the first port and the second port; when the levels of the first port and the second port are both low, determine whether the AD voltage values ​​of the two ports are greater than a threshold; If the AD voltage value of at least one port is greater than the threshold, it is determined to be a humid environment and the valve is not closed; If the AD voltage values ​​of the two ports are equal to or less than the threshold, the valve is automatically closed.

2. The control method for preventing the water meter from closing the valve in a humid environment according to claim 1, It is characterized in that The resistance range of the pull-up resistor is 45-55 kΩ.

3. The control method for preventing the water meter from closing the valve in a humid environment according to claim 1, It is characterized in that When the levels of the first port and the second port are both at low levels, before determining whether the AD voltage values ​​of the two ports are greater than a threshold, after determining the states of the levels at the first port and the second port, the method further includes: Introducing variables, one variable corresponds to one port; The variables at the two ports are assigned values ​​according to the judgment results of the level states at the first port and the second port.

4. A control method for preventing a water meter from closing a valve in a humid environment according to any one of claims 1 to 3, It is characterized in that When the levels of the first port and the second port are both low levels, determining whether the AD voltage values ​​of the two ports are greater than a threshold comprises: Perform AD conversion on the levels of the two ports to obtain the AD voltage values ​​of the two ports; Determine whether the AD voltage values ​​of the two ports are greater than the threshold.

5. A control method for preventing a water meter from closing a valve in a humid environment according to any one of claims 1 to 3, It is characterized in that When the levels of the first port and the second port are both low levels, after determining whether the AD voltage values ​​of the two ports are greater than a threshold, the method further includes: The level of the first port is low, and the AD voltage value of one of the ports is greater than a threshold; The level of the second port is low, and the AD voltage value of one of the ports is greater than a threshold; The microcontroller subtracts one pulse.

6. A control system for preventing a water meter from closing a valve in a humid environment, which is executed according to the control method for preventing a water meter from closing a valve in a humid environment as claimed in any one of claims 1 to 5. It is characterized in that include: A data acquisition module, used for acquiring the level at the first port and / or the second port; A first determination module, used for determining a state of a level at the first port and / or the second port; A second judgment module, used for judging whether the AD voltage values ​​of the two ports are greater than a threshold when the levels of the first port and the second port are both low levels; An analysis module, used for determining whether the water meter is in a humid environment according to a determination result of whether the AD voltage values ​​of the two ports are greater than a threshold; The control module is used to control whether the water meter closes the valve according to the judgment result of whether the AD voltage values ​​of the two ports are greater than the threshold value and whether the water meter is in a humid environment.

7. The control system for preventing the water meter from closing the valve in a humid environment according to claim 6, It is characterized in that It also includes an assignment module; the assignment module is connected to the first judgment module and the second judgment module, and is used to assign values ​​to the two ports according to the judgment results of the level states at the first port and the second port and the judgment results of the AD voltage values ​​at the first port and the second port.

8. A circuit, It is characterized in that The water meter is provided with a control system for preventing the water meter from closing a valve in a humid environment as claimed in any one of claims 6 to 7.

9. A water meter, It is characterized in that The water meter is provided with the circuit as claimed in claim 8.