Water valve control method, device, storage medium and system

By using alternating forward and reverse rotation control and adjusting the duty cycle through a neural network model, the control effect of the water valve under changes in ambient temperature and the problem of stall fault identification were solved, thus achieving unobstructed operation and accurate alarm of the water valve.

CN118757599BActive Publication Date: 2025-11-18WEICHAI POWER CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410780101.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2025-11-18
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

Existing water valve control methods fail to achieve the expected control and stall fault identification effects under the influence of changes in external ambient temperature.

Method used

The system adopts an alternating forward and reverse control mode, and adjusts the duty cycle according to the voltage change rate range of the water valve position based on a neural network model. It also generates alarm information when a stall fault occurs.

Benefits of technology

It improves the smoothness of water valves, reduces the risk of stall failure, enables accurate feedback and timely alarm of water valve status, and solves the problem of the impact of ambient temperature changes on control performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118757599B_ABST
    Figure CN118757599B_ABST
Patent Text Reader

Abstract

The application provides a water valve control method, device, storage medium and system. The method controls the water valve by adopting a positive rotation and reverse rotation alternating control mode to clean the water valve with a low degree of stall failure, so as to make the water valve unblocked and reduce the risk of stall failure. Compared with the prior art, the influence of the external environment temperature does not need to be considered. According to the range where the absolute value of the difference between the water valve position voltage change rates calculated according to the sequence in the current time period is located, whether the water valve appears stall failure is determined. Compared with the prior art, the state of the water valve can be more accurately fed back, so that the problem that the control effect of the water valve and the identification effect of the stall failure cannot achieve the expected effect due to the influence of the change of the external environment temperature when the prior art controls the water valve is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of water valve control technology, and more specifically, to a water valve control method, device, storage medium, and system. Background Technology

[0002] CN110553079A discloses a control method for an electronic water valve. The electronic water valve includes at least a valve core and a stepper motor. The control method includes: powering on the electronic water valve; controlling the valve core to reset to a first position; controlling the stepper motor speed to a first speed to enter a first process; determining whether the first process has ended; if the first process has not ended, controlling the stepper motor to maintain the first speed; if the first process has ended, controlling the stepper motor to switch to a second speed to enter a second process; wherein the first speed is less than the second speed. This invention, by varying the motor speed, matches the motor's output torque to the torque requirements of the electronic water valve at different stages, reducing the risk of stalling.

[0003] In the existing solution for segmented water valve control with fixed duty cycle, if there are factors such as scale in the water, changes in water flow velocity, or changes in the external ambient temperature, the fixed duty cycle control may not achieve the expected results or may even fail.

[0004] In other words, when the existing solution controls the water valve, the effect of changes in the external ambient temperature will cause the control effect of the water valve and the identification effect of the stall fault to fail to meet expectations. Summary of the Invention

[0005] The main objective of this application is to provide a water valve control method, device, storage medium, and system to at least solve the problem that when existing solutions control water valves, the control effect and the identification effect of stall faults cannot achieve the expected results due to the influence of changes in the external ambient temperature.

[0006] To achieve the above objectives, according to one aspect of this application, a method for controlling a water valve is provided, the method comprising:

[0007] The water valve is controlled by alternating forward and reverse rotation. During the process of controlling the water valve by alternating forward and reverse rotation, different duty cycles are used to control the water valve according to the range of the voltage change rate at the current water valve position.

[0008] If the number of alternating forward and reverse control exceeds the preset number, the absolute value of the difference between the rate of change of the water valve position voltage calculated sequentially within the current time period is used to determine whether the water valve has a stall fault. The current time period is the time period from the time before the preset time of the current moment to the current moment.

[0009] If the water valve is found to be stuck, an alarm message is generated to indicate that the water valve is stuck.

[0010] Optionally, when the voltage at the current water valve position is less than a preset position, the water valve is controlled using different duty cycles based on the range of the rate of change of the voltage at the current water valve position, including:

[0011] The rate of change of the voltage at the current water valve position is processed using a first neural network model. The first neural network model is trained using multiple sets of first training data. Each set of first training data includes the rate of change of the voltage at the water valve position and a preset duty cycle corresponding to the rate of change of the voltage at the water valve position, which are obtained within a historical time period.

[0012] Obtain the output of the first neural network model and determine the output of the first neural network model as the first target duty cycle;

[0013] The water valve is controlled using the first target duty cycle.

[0014] Optionally, when the voltage at the current water valve position is greater than or equal to a preset position, the water valve is controlled using different duty cycles based on the range of the rate of change of the voltage at the current water valve position, including:

[0015] A second neural network model is used to process the rate of change of the voltage at the current water valve position. The second neural network model is trained using multiple sets of second training data. Each set of second training data includes the rate of change of the voltage at the water valve position acquired within a historical time period and a preset duty cycle corresponding to the rate of change of the voltage at the water valve position. When the rate of change of the voltage at the water valve position is the same in the first training data and the second training data, the preset duty cycle of the first training data is greater than the preset duty cycle of the second training data.

[0016] Obtain the output of the second neural network model and determine the output of the second neural network model as the second target duty cycle;

[0017] The water valve is controlled using the second target duty cycle.

[0018] Optionally, when the voltage at the current water valve position is less than a preset position, the water valve is controlled using different duty cycles based on the range of the rate of change of the voltage at the current water valve position, including:

[0019] Based on the rate of change of the current water valve position voltage and the rate of change duty cycle mapping relationship, a first target duty cycle is determined. The rate of change duty cycle mapping relationship is the mapping relationship between the rate of change of the water valve position voltage and a preset duty cycle. The first target duty cycle is the preset duty cycle corresponding to the rate of change of the current water valve position voltage in the rate of change duty cycle mapping relationship.

[0020] The water valve is controlled using the first target duty cycle.

[0021] Optionally, determining whether the water valve has a stall fault based on the range of the absolute value of the difference in the rate of change of the water valve position voltage calculated sequentially within the current time period includes:

[0022] If the absolute value of the difference between the rates of change of the water valve position voltage calculated sequentially within the current time period is greater than or equal to the difference threshold, the water valve is determined to be operating normally.

[0023] If the absolute value of the difference between the rates of change of the water valve position voltage calculated sequentially within the current time period is less than the difference threshold, it is determined that the water valve has experienced the stall fault.

[0024] Optionally, the method further includes:

[0025] The rate of change of the current water valve position voltage is determined as the ratio of the change value of the current water valve position voltage to the interval time, and the change value of the current water valve position voltage is the difference of the water valve position voltage within the interval time.

[0026] Optionally, the water valve can be controlled with different duty cycles based on the range of the rate of change of the voltage at the current water valve position, including:

[0027] The rate of change of the target water valve position voltage is determined to be the rate of change of the preset water valve position voltage corresponding to the model of the water valve and the time period during which the water valve is currently operating.

[0028] The position voltage difference is determined to be the difference between the rate of change of the current water valve position voltage and the rate of change of the target water valve position voltage;

[0029] The water valve is controlled using different duty cycles depending on the range of the voltage difference at the location.

[0030] According to another aspect of this application, a water valve control device is provided, the device comprising:

[0031] The first processing unit is used to control the water valve by alternating forward and reverse rotation control, and during the process of controlling the water valve by alternating forward and reverse rotation control, it uses different duty cycles to control the water valve according to the range of the voltage change rate at the current water valve position.

[0032] The first determining unit is used to determine whether the water valve has a stall fault based on the range of the absolute value of the difference between the rate of change of the water valve position voltage calculated sequentially within the current time period when the number of alternating control of forward and reverse rotation exceeds a preset number. The current time period is the time period from the time before the current time to the current time.

[0033] The second processing unit is used to generate an alarm message when it is determined that the water valve has a stall fault, so as to indicate that the water valve has a stall fault.

[0034] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform any of the methods described.

[0035] According to another aspect of this application, a control system for a water valve is provided, the system comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising methods for performing any one of the methods described.

[0036] By employing the technical solution of this application, a method of alternating forward and reverse rotation is used to control the water valve, which can clear water valves with low levels of blockage, thereby ensuring smooth water flow and reducing the risk of blockage. The rate of change of the current water valve position voltage is the ratio of the absolute value of the difference between the water valve position voltages at two moments to the interval between the two moments. Compared with existing solutions, this method does not need to consider the influence of external ambient temperature. When the number of alternating forward and reverse rotations exceeds a preset number, the absolute value of the difference between the rates of change of the water valve position voltages calculated sequentially within the current time period is used to determine whether the water valve has a blockage. Compared with existing solutions, this method can more accurately reflect the status of the water valve. When the blockage is detected, an alarm message is generated to alert the water valve to the blockage, achieving the purpose of timely alarm. This solves the problem that when existing solutions control water valves, the influence of changes in ambient temperature can cause the control effect and the identification effect of blockage to fail to meet expectations. Attached Figure Description

[0037] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0038] Figure 1 A schematic flowchart of a water valve control method according to an embodiment of this application is shown;

[0039] Figure 2 The illustration shows a flowchart of an embodiment of the present application, which shows how to control a water valve with different duty cycles based on the range of the rate of change of the current water valve position voltage when the voltage at the current water valve position is less than a preset position.

[0040] Figure 3 The illustration shows a logic diagram of controlling a water valve with different duty cycles based on the range of the rate of change of the voltage at the current water valve position, according to an embodiment of this application.

[0041] Figure 4 A schematic diagram is shown illustrating the change curves of the water valve position voltage over time at different stages during forward and reverse rotation control, according to an embodiment of this application.

[0042] Figure 5 A schematic flowchart of another water valve control method provided according to an embodiment of this application is shown;

[0043] Figure 6 A structural block diagram of a water valve control device provided according to an embodiment of this application is shown. Detailed Implementation

[0044] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0045] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0046] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0047] For ease of description, the following explains some of the nouns or terms used in the embodiments of this application:

[0048] Water valve position voltage: This refers to the voltage used to control the opening and closing of the water valve. This depends on the type and design of the water valve and can typically be either DC or AC voltage. Common water valve position voltage ranges include 12V, 24V, 110V, and 220V. Selecting the appropriate voltage depends on the water valve's operating requirements, the installation environment, and the electrical system design. When installing the water valve, it is essential to ensure the correct voltage connection to guarantee its proper operation.

[0049] As described in the background section, the existing solution CN110553079A discloses a control method for an electronic water valve. The electronic water valve includes at least a valve core and a stepper motor. The control method includes: powering on the electronic water valve; controlling the valve core to reset to a first position; controlling the stepper motor speed to a first speed to enter a first process; determining whether the first process has ended; if it is determined that the first process has not ended, controlling the stepper motor to maintain the first speed; if it is determined that the first process has ended, controlling the stepper motor to switch to a second speed to enter a second process; wherein, the first speed is less than the second speed. This invention, by varying the motor speed, matches the output torque of the motor with the required torque of the electronic water valve at different stages, reducing the risk of stalling. To address the problem that existing solutions for controlling water valves often fail to achieve the expected control effect and stall fault identification effect due to changes in ambient temperature, embodiments of this application provide a water valve control method, device, storage medium, and system.

[0050] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0051] This embodiment provides a method for controlling a water valve. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Also, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0052] Figure 1 This is a schematic flowchart illustrating a water valve control method according to an embodiment of this application. Figure 1 As shown, the method includes the following steps:

[0053] Step S101: The water valve is controlled by alternating forward and reverse rotation. During the process of controlling the water valve by alternating forward and reverse rotation, different duty cycles are used to control the water valve according to the range of the voltage change rate at the current water valve position.

[0054] Specifically, by using alternating forward and reverse control, the water valve can be cleared of water valves with low levels of stalling, thereby ensuring smooth water flow and reducing the risk of stalling. The rate of change of the current water valve position voltage is the ratio of the absolute value of the difference between the water valve position voltages at two different times to the interval between the two times. Compared with existing solutions, it does not need to consider the influence of the external ambient temperature.

[0055] The type of water valve is an electric water valve.

[0056] In one embodiment of this application, the method further includes:

[0057] The rate of change of the current water valve position voltage is determined as the ratio of the change value of the current water valve position voltage to the interval time, and the change value of the current water valve position voltage is the difference of the water valve position voltage within the interval time.

[0058] Specifically, the rate of change of the current water valve position voltage is the ratio of the absolute value of the difference between the water valve position voltages at two moments to the time interval between the two moments. Compared with the existing scheme, it does not need to consider the influence of the external ambient temperature.

[0059] In one embodiment of this application, such as Figure 2 As shown, when the voltage at the current water valve position is less than the preset position, step S101 involves controlling the water valve using different duty cycles based on the range of the rate of change of the current water valve position voltage. The first specific implementation includes the following steps:

[0060] Step S201: The first neural network model is used to process the rate of change of the current water valve position voltage. The first neural network model is trained using multiple sets of first training data. Each set of first training data includes the rate of change of the water valve position voltage and the preset duty cycle corresponding to the rate of change of the water valve position voltage, which are obtained within a historical time period.

[0061] Step S202: Obtain the output of the first neural network model and determine the output of the first neural network model as the first target duty cycle;

[0062] Step S203: Control the water valve using the first target duty cycle.

[0063] Specifically, the first neural network model facilitates the processing of the rate of change of the voltage at the current water valve position to obtain the corresponding preset duty cycle as the first target duty cycle.

[0064] The second specific implementation method includes:

[0065] Based on the above-mentioned mapping relationship between the rate of change of the current water valve position voltage and the rate of change duty cycle, a first target duty cycle is determined. The above-mentioned rate of change duty cycle mapping relationship is the mapping relationship between the rate of change of the water valve position voltage and the preset duty cycle. The above-mentioned first target duty cycle is the preset duty cycle corresponding to the rate of change of the current water valve position voltage in the above-mentioned rate of change duty cycle mapping relationship.

[0066] The water valve is controlled using the first target duty cycle mentioned above.

[0067] Specifically, by setting a mapping relationship between the rate of change of the water valve position voltage and a preset duty cycle, it is easy to find the preset duty cycle corresponding to the rate of change of the current water valve position voltage from the mapping relationship, and use the preset duty cycle as the first target duty cycle. By setting the opening and closing time of the water valve, the required duty cycle can be achieved. The duty cycle of the water valve is continuously monitored and adjusted to ensure that the water flow meets the requirements.

[0068] In one embodiment of this application, when the voltage at the current water valve position is greater than or equal to a preset position, step S101, which involves controlling the water valve using different duty cycles based on the range of the rate of change of the current water valve position voltage, includes:

[0069] A second neural network model is used to process the rate of change of the current water valve position voltage. The second neural network model is trained using multiple sets of second training data. Each set of second training data includes the rate of change of the water valve position voltage and a preset duty cycle corresponding to the rate of change of the water valve position voltage, which are obtained within a historical time period. When the rate of change of the water valve position voltage is the same in the first training data and the second training data, the preset duty cycle of the first training data is greater than the preset duty cycle of the second training data.

[0070] Obtain the output of the second neural network model and determine the output of the second neural network model as the second target duty cycle;

[0071] The water valve is controlled using the second target duty cycle mentioned above.

[0072] Specifically, similar to determining the duty cycle of the first target, both forward and reverse control require two stages of control based on the comparison between the current water valve position voltage and the preset position. This results in different duty cycles being used to control the water valve. In stage 1 (when the current water valve position voltage is less than the preset position), the control is performed at a higher speed. In stage 2 (when the current water valve position voltage is greater than or equal to the preset position), the control is performed at a lower speed.

[0073] The input to the two neural network models can also be the position voltage difference, which is the difference between the rate of change of the current water valve position voltage and the rate of change of the target water valve position voltage. The control logic is as follows: Figure 3 As shown, since the technical solution is the same, it will not be described in detail here.

[0074] like Figure 4 As shown in (a), the curve of the water valve position voltage changing with time during the forward rotation control process is illustrated. Figure 4 As shown in (b), the curve of the water valve position voltage changing with time during the reverse control process is displayed. In stage 1 (i.e., when the current water valve position voltage is less than the preset position), the control is first at a higher speed. In stage 2 (i.e., when the current water valve position voltage is greater than or equal to the preset position), the control is then at a lower speed.

[0075] In another embodiment of this application, step S101, which involves controlling the water valve using different duty cycles based on the range of the rate of change of the current water valve position voltage, includes:

[0076] The rate of change of the voltage at the target water valve position is determined to be the rate of change of the voltage at the preset water valve position corresponding to the model of the water valve and the time period during which the water valve is currently operating.

[0077] The position voltage difference is determined to be the difference between the rate of change of the current water valve position voltage and the rate of change of the target water valve position voltage.

[0078] Based on the range of the voltage difference at the aforementioned locations, different duty cycles are used to control the aforementioned water valves.

[0079] Specifically, by setting the model of the aforementioned water valve, the time period during which the aforementioned water valve operates at the current moment, and a preset mapping table of the rate of change of the water valve position voltage, the purpose of determining the rate of change of the target water valve position voltage can be achieved. When the rate of change of the current water valve position voltage is lower than the rate of change of the target water valve position voltage, the control duty cycle is increased; when the rate of change of the current water valve position voltage is higher than the rate of change of the target water valve position voltage, the control duty cycle is decreased; and when the rate of change of the current water valve position voltage is equal to the rate of change of the target water valve position voltage, the current control duty cycle is maintained.

[0080] Step S102: If the number of times the forward and reverse rotation control is alternated exceeds the preset number, determine whether the water valve has a stall fault based on the range of the absolute value of the difference between the change rates of the voltage at the position of the water valve calculated sequentially within the current time period. The current time period is the time period from the time before the preset time of the current moment to the current moment.

[0081] Specifically, the control count is incremented by 1 for each forward rotation control of the water valve. For example, if the preset number of times is set to 5, then after the third use of forward rotation control, the number of times forward and reverse rotation control is alternated will exceed the preset number. The change rate of the water valve position voltage from 10:20:03 to 10:20:06 is A, and the change rate of the water valve position voltage from 10:20:06 to 10:20:09 is B. The current time period is 6 seconds. The absolute value of the difference between the above-mentioned change rates of water valve position voltage calculated sequentially within the current time period is the absolute value of the difference between A and B. Using this method to determine whether the water valve has a stall fault can provide more accurate feedback on the status of the water valve compared to the existing solution.

[0082] In one embodiment of this application, determining whether the water valve has a stall fault based on the range of the absolute value of the difference in the rate of change of the voltage at the aforementioned water valve positions calculated sequentially within the current time period includes:

[0083] If the absolute value of the difference between the rates of change of the voltage at the position of the water valve calculated successively within the current time period is greater than or equal to the difference threshold, the water valve is determined to be operating normally.

[0084] If the absolute value of the difference between the rate of change of the voltage at the position of the water valve calculated successively within the current time period is less than the difference threshold, it is determined that the water valve has experienced the aforementioned stall fault.

[0085] Specifically, for example, if the preset number of times is set to 5, then after the third use of forward control, the number of times forward and reverse control alternates will exceed the preset number. Then, the change rate of the water valve position voltage from 10:20:03 to 10:20:06 is A, and the change rate of the water valve position voltage from 10:20:06 to 10:20:09 is B. The current time period is 6 seconds. The absolute value of the difference between the change rates of the above water valve position voltages calculated successively within the current time period is the absolute value of the difference between A and B. The difference threshold is C. Then, if the absolute value of the difference between A and B is greater than or equal to C, it is determined that the above water valve is operating normally. If the absolute value of the difference between A and B is less than C, it is determined that the above water valve has a stall fault.

[0086] Step S103: If it is determined that the water valve has the above-mentioned stall fault, an alarm message is generated to indicate that the water valve has the above-mentioned stall fault.

[0087] In the above steps, by using alternating forward and reverse control, the water valve can be cleared of valves with low levels of stalling, thus ensuring smooth operation and reducing the risk of stalling. The rate of change of the current water valve position voltage is the ratio of the absolute value of the difference between the water valve position voltages at two different times to the interval between those two times. Compared to existing solutions, this method does not need to consider the influence of ambient temperature. If the number of alternating forward and reverse control operations exceeds a preset number, the absolute value of the difference between the rates of change of the water valve position voltages calculated sequentially within the current time period is used to determine whether the water valve has a stalling fault. Compared to existing solutions, this method can provide more accurate feedback on the water valve's status. If a stalling fault is detected, an alarm message is generated to alert the user, achieving timely alarm. This solves the problem that existing solutions, when controlling water valves, cannot achieve the expected results in terms of both control effectiveness and stalling fault identification due to changes in ambient temperature.

[0088] If the above water valves are confirmed to be functioning properly, no alarm information will be generated.

[0089] Electric water valves use a fixed duty cycle control. However, if there are variations in factors such as scale in the water, changes in water flow rate, or changes in ambient temperature, the fixed duty cycle control may not achieve the expected effect or may even fail. For example, when the water flow rate is high and turning in a certain direction is easy, or when the ambient temperature is high (i.e., resistance is low), the fixed control duty cycle may overshoot, potentially exceeding the usable physical position of the valve core and reducing the valve's lifespan. Conversely, when the water flow rate is high and turning in a certain direction is difficult, or when the ambient temperature is low, or when scale is present in the water (i.e., resistance is high), the fixed control duty cycle may not reach the target position, resulting in control failure. In other words, the required control duty cycle of the water valve varies under different conditions.

[0090] Furthermore, the required control duty cycle of the water valve varies under different circumstances. By controlling the duty cycle, it is possible to determine whether the water pump is working and whether there is coolant in the pipeline.

[0091] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the water valve control method of this application will be described in detail below with reference to specific embodiments.

[0092] CN110553079A discloses a control method for an electronic water valve. The electronic water valve includes at least a valve core and a stepper motor. The control method includes: powering on the electronic water valve; controlling the valve core to reset to a first position; controlling the stepper motor speed to a first speed to enter a first process; determining whether the first process has ended; if the first process has not ended, controlling the stepper motor to maintain the first speed; if the first process has ended, controlling the stepper motor to switch to a second speed to enter a second process; wherein the first speed is less than the second speed. This invention, by varying the motor speed, matches the motor's output torque to the torque requirements of the electronic water valve at different stages, reducing the risk of stalling.

[0093] In the existing solution for segmented water valve control with fixed duty cycle, if there are factors such as scale in the water, changes in water flow velocity, or changes in the external ambient temperature, the fixed duty cycle control may not achieve the expected results or may even fail.

[0094] This embodiment relates to a specific method for controlling a water valve, such as... Figure 5 As shown, it includes the following steps:

[0095] Step S1: The water valve is controlled by alternating forward and reverse rotation. During the process of controlling the water valve by alternating forward and reverse rotation, the rate of change of the target water valve position voltage is determined to be the same as the preset rate of change of the water valve position voltage corresponding to the water valve model and the current operating time period of the water valve. The position voltage difference is determined to be the difference between the current rate of change of the water valve position voltage and the rate of change of the target water valve position voltage.

[0096] Step S2: Control the water valve using different duty cycles based on the range of the position voltage difference;

[0097] Based on the current water valve position voltage and the preset position, the water valve is controlled using stage 1 and stage 2 control methods. Under the same position voltage difference, the duty cycle of stage 1 is greater than that of stage 2.

[0098] Step S3: If the number of alternating forward and reverse control exceeds the preset number, determine whether the water valve has a stall fault based on the range of the absolute value of the difference in the rate of change of the water valve position voltage calculated sequentially within the current time period. The current time period is the time period from the preset time before the current time to the current time.

[0099] Specifically, if the absolute value of the difference between the rate of change of the water valve position voltage calculated successively within the current time period is greater than or equal to the difference threshold, the water valve is determined to be operating normally.

[0100] If the absolute value of the difference between the rates of change of the water valve position voltage calculated sequentially within the current time period is less than the difference threshold, it is determined that the water valve has a stall fault.

[0101] Step S4: If it is determined that the water valve is stuck, generate an alarm message to indicate that the water valve is stuck.

[0102] By employing alternating forward and reverse control, water valves with low levels of stalling can be cleared, ensuring smooth operation and reducing the risk of stalling. The rate of change of the current water valve position voltage is the ratio of the absolute value of the difference between the water valve position voltages at two points in time to the interval between those two points. Compared to existing solutions, this method does not require consideration of the influence of ambient temperature. When the number of alternating forward and reverse control operations exceeds a preset number, the absolute value of the difference between the rates of change of the aforementioned water valve position voltages, calculated sequentially within the current time period, is used to determine whether the water valve has a stalling fault. This method provides more accurate feedback on the water valve's status compared to existing solutions. If a stalling fault is detected, an alarm message is generated to alert the user, achieving timely alarm functionality. This solves the problem that existing solutions, when controlling water valves, cannot achieve the expected results in terms of both control effectiveness and stalling fault identification due to changes in ambient temperature.

[0103] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0104] This application also provides a water valve control device. It should be noted that the water valve control device of this application embodiment can be used to execute the water valve control method provided in this application embodiment. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0105] The following describes the control device for the water valve provided in the embodiments of this application.

[0106] Figure 6 This is a structural block diagram of a water valve control device according to an embodiment of this application. Figure 3 As shown, the device includes:

[0107] The first processing unit 61 is used to control the water valve by alternating forward and reverse rotation control, and in the process of controlling the water valve by alternating forward and reverse rotation control, it uses different duty cycles to control the water valve according to the range of the voltage change rate at the current water valve position.

[0108] The first determining unit 62 is used to determine whether the water valve has a stall fault based on the range of the absolute value of the difference between the rate of change of the water valve position voltage calculated sequentially within the current time period when the number of alternating control of forward and reverse rotation exceeds a preset number. The current time period is the time period from the time before the preset time of the current moment to the current moment.

[0109] The second processing unit 63 is used to generate an alarm message when it is determined that the water valve has the above-mentioned stall fault, so as to indicate that the water valve has the above-mentioned stall fault.

[0110] In the aforementioned device, the alternating forward and reverse control method is used to control the water valve, which can clear water valves with low levels of stalling, thereby ensuring smooth water flow and reducing the risk of stalling. The rate of change of the current water valve position voltage is the ratio of the absolute value of the difference between the water valve position voltages at two moments to the interval between the two moments. Compared to existing solutions, this method does not need to consider the influence of external ambient temperature. When the number of alternating forward and reverse control exceeds a preset number, the absolute value of the difference between the rates of change of the water valve position voltages calculated sequentially within the current time period is used to determine whether the water valve has a stalling fault. Compared to existing solutions, this method can provide more accurate feedback on the water valve status. When the water valve is determined to have a stalling fault, an alarm message is generated to alert the user, achieving the purpose of timely alarm. This solves the problem that existing solutions, when controlling water valves, cannot achieve the expected results in terms of both control effect and stalling fault identification due to changes in ambient temperature.

[0111] In one embodiment of this application, the first processing unit includes a first processing module, a first acquisition module, and a second processing module. When the voltage at the current water valve position is less than a preset position,

[0112] The first processing module is used to process the rate of change of the current water valve position voltage using a first neural network model. The first neural network model is trained using multiple sets of first training data. Each set of first training data includes the rate of change of the water valve position voltage and the preset duty cycle corresponding to the rate of change of the water valve position voltage, which are obtained within a historical time period.

[0113] The first acquisition module is used to acquire the output of the first neural network model and determine the output of the first neural network model as the first target duty cycle.

[0114] The second processing module is used to control the water valve using the first target duty cycle.

[0115] In one embodiment of this application, the first processing unit includes a third processing module, a second acquisition module, and a fourth processing module. When the voltage at the current water valve position is greater than or equal to a preset position,

[0116] The third processing module is used to process the rate of change of the current water valve position voltage using a second neural network model. The second neural network model is trained using multiple sets of second training data. Each set of second training data includes the rate of change of the water valve position voltage and a preset duty cycle corresponding to the rate of change of the water valve position voltage, which is obtained within a historical time period. When the rate of change of the water valve position voltage is the same in the first training data and the second training data, the preset duty cycle of the first training data is greater than the preset duty cycle of the second training data.

[0117] The second acquisition module is used to acquire the output of the second neural network model and determine the output of the second neural network model as the second target duty cycle.

[0118] The fourth processing module is used to control the water valve using the second target duty cycle.

[0119] In one embodiment of this application, the first processing unit includes a first determining module and a fifth processing module, wherein when the voltage at the current water valve position is less than a preset position,

[0120] The first determining module is used to determine a first target duty cycle based on the above-mentioned rate of change of the current water valve position voltage and the rate of change duty cycle mapping relationship. The above-mentioned rate of change duty cycle mapping relationship is the mapping relationship between the rate of change of the water valve position voltage and the preset duty cycle. The above-mentioned first target duty cycle is the preset duty cycle corresponding to the rate of change of the current water valve position voltage in the above-mentioned rate of change duty cycle mapping relationship.

[0121] The fifth processing module is used to control the water valve using the first target duty cycle.

[0122] In one embodiment of this application, the first determining unit includes a second determining module and a third determining module.

[0123] The second determining module is used to determine that the water valve is operating normally if the absolute value of the difference between the rate of change of the voltage at the position of the water valve calculated sequentially within the current time period is greater than or equal to the difference threshold.

[0124] The third determining module is used to determine that the water valve has experienced the aforementioned stall fault if the absolute value of the difference between the rate of change of the voltage at the position of the water valve calculated sequentially within the aforementioned current time period is less than the aforementioned difference threshold.

[0125] In one embodiment of this application, the above-described apparatus further includes a second determining unit.

[0126] The second determining unit is used to determine the change rate of the current water valve position voltage as the ratio of the change value of the current water valve position voltage to the interval time, wherein the change value of the current water valve position voltage is the difference of the water valve position voltage within the interval time.

[0127] In one embodiment of this application, the first processing unit includes a fourth determining module, a fifth determining module, and a sixth processing module.

[0128] The fourth determining module is used to determine the rate of change of the target water valve position voltage and the preset rate of change of the water valve position voltage corresponding to the model of the water valve and the time period during which the water valve is operating at the current moment.

[0129] The fifth determining module is used to determine the position voltage difference as the difference between the rate of change of the current water valve position voltage and the rate of change of the target water valve position voltage.

[0130] The sixth processing module is used to control the water valve using different duty cycles based on the range of the voltage difference at the aforementioned locations.

[0131] The aforementioned water valve control device includes a processor and a memory. The first processing unit, the first determining unit, and the second processing unit are all stored as program units in the memory. The processor executes the program units stored in the memory to achieve the corresponding functions. All of the above modules are located in the same processor; alternatively, the modules may be located in different processors in any combination.

[0132] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured. By adjusting kernel parameters, the problem that existing solutions for controlling water valves suffer from ineffective control and stall detection due to variations in ambient temperature can be addressed.

[0133] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0134] This invention provides a computer-readable storage medium that includes a stored program, wherein the program, when running, controls the device containing the computer-readable storage medium to execute the water valve control method.

[0135] This invention provides a processor for running a program, wherein the program executes the water valve control method during operation.

[0136] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps: controlling a water valve using alternating forward and reverse rotation control; during this process, controlling the water valve with different duty cycles based on the range of the rate of change of the current water valve position voltage; if the number of alternating forward and reverse rotation control operations exceeds a preset number, determining whether the water valve has experienced a stall fault based on the range of the absolute value of the difference between the rates of change of the water valve position voltage calculated sequentially within the current time period, where the current time period is the time period from a preset time before the current moment to the current moment; and generating an alarm message to indicate the stall fault when the water valve is determined to have experienced a stall fault. The device described herein can be a server, PC, PAD, mobile phone, etc.

[0137] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps: controlling a water valve using alternating forward and reverse control; during the process of controlling the water valve using alternating forward and reverse control, using different duty cycles to control the water valve according to the range of the rate of change of the current water valve position voltage; if the number of alternating forward and reverse control exceeds a preset number, determining whether the water valve has a stall fault based on the range of the absolute value of the difference between the rates of change of the water valve position voltage calculated sequentially within the current time period, wherein the current time period is the time period from the time before the current time to the current time; if the water valve is determined to have a stall fault, generating an alarm message to indicate that the water valve has a stall fault.

[0138] This application also provides a control system for a water valve, the system comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include methods for performing any of the methods described above. By employing alternating forward and reverse control, water valves with low levels of stalling can be cleared, ensuring smooth operation and reducing the risk of stalling. The rate of change of the current water valve position voltage is the ratio of the absolute value of the difference between the water valve position voltages at two points in time to the interval between those two points. Compared to existing solutions, this method does not require consideration of the influence of ambient temperature. When the number of alternating forward and reverse control operations exceeds a preset number, the absolute value of the difference between the rates of change of the aforementioned water valve position voltages, calculated sequentially within the current time period, is used to determine whether the water valve has a stalling fault. This method provides more accurate feedback on the water valve's status compared to existing solutions. If a stalling fault is detected, an alarm message is generated to alert the user, achieving timely alarm functionality. This solves the problem that existing solutions, when controlling water valves, cannot achieve the expected results in terms of both control effectiveness and stalling fault identification due to changes in ambient temperature.

[0139] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0140] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0141] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0142] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0143] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0144] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0145] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0146] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0147] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0148] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0149] 1) The water valve control method of this application uses alternating forward and reverse control to control the water valve, which can clear water valves with low levels of blockage, thereby ensuring smooth water flow and reducing the risk of blockage. The rate of change of the current water valve position voltage is the ratio of the absolute value of the difference between the water valve position voltages at two moments to the interval between the two moments. Compared with existing solutions, this method does not need to consider the influence of external ambient temperature. When the number of alternating forward and reverse control exceeds a preset number, the method determines whether the water valve has a blockage fault based on the range of the absolute value of the difference between the water valve position voltages calculated sequentially within the current time period. Compared with existing solutions, this method can more accurately reflect the status of the water valve. When the water valve is determined to have a blockage fault, an alarm message is generated to indicate that the water valve has a blockage fault, thus achieving the purpose of timely alarm. This solves the problem that when the water valve is controlled by existing solutions, the influence of changes in the external ambient temperature will cause the water valve control effect and the blockage fault identification effect to fail to achieve the expected results.

[0150] 2) The water valve control device of this application uses alternating forward and reverse control to control the water valve, which can clear water valves with low levels of blockage, thereby ensuring smooth water flow and reducing the risk of blockage. The rate of change of the current water valve position voltage is the ratio of the absolute value of the difference between the water valve position voltages at two moments to the interval between the two moments. Compared with existing solutions, it does not need to consider the influence of the external ambient temperature. When the number of alternating forward and reverse control exceeds the preset number, it determines whether the water valve has a blockage fault based on the range of the absolute value of the difference between the water valve position voltages calculated sequentially within the current time period. Compared with existing solutions, it can more accurately reflect the status of the water valve. When the water valve is determined to have a blockage fault, an alarm message is generated to indicate that the water valve has a blockage fault, thus achieving the purpose of timely alarm. This solves the problem that when the water valve is controlled by existing solutions, the influence of changes in the external ambient temperature will cause the water valve control effect and the blockage fault identification effect to fail to achieve the expected results.

[0151] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for controlling a water valve, characterized in that, include: The water valve is controlled by alternating forward and reverse rotation. During the process of controlling the water valve by alternating forward and reverse rotation, different duty cycles are used to control the water valve according to the range of the voltage change rate at the current water valve position. If the number of alternating forward and reverse control exceeds the preset number, the absolute value of the difference between the rate of change of the water valve position voltage calculated sequentially within the current time period is used to determine whether the water valve has a stall fault. The current time period is the time period from the time before the preset time of the current moment to the current moment. If it is determined that the water valve has a stall fault, an alarm message is generated to indicate that the water valve has a stall fault; Based on the range of the absolute value of the difference between the rates of change of the water valve position voltage calculated sequentially within the current time period, it is determined whether the water valve has experienced a stall fault. This includes: if the absolute value of the difference between the rates of change of the water valve position voltage calculated sequentially within the current time period is greater than or equal to a difference threshold, the water valve is determined to be operating normally; if the absolute value of the difference between the rates of change of the water valve position voltage calculated sequentially within the current time period is less than the difference threshold, the water valve is determined to have experienced the stall fault. Based on the range of the rate of change of the current water valve position voltage, different duty cycles are used to control the water valve, including: determining the rate of change of the target water valve position voltage as the rate of change of the target water valve position voltage corresponding to the model of the water valve and the time period in which the water valve is currently operating; determining the position voltage difference as the difference between the rate of change of the current water valve position voltage and the rate of change of the target water valve position voltage; and controlling the water valve using different duty cycles based on the range of the position voltage difference.

2. The method according to claim 1, characterized in that, When the voltage at the current water valve position is less than the preset position, the water valve is controlled using different duty cycles based on the range of the rate of change of the voltage at the current water valve position, including: The rate of change of the voltage at the current water valve position is processed using a first neural network model. The first neural network model is trained using multiple sets of first training data. Each set of first training data includes the rate of change of the voltage at the water valve position and a preset duty cycle corresponding to the rate of change of the voltage at the water valve position, which are obtained within a historical time period. Obtain the output of the first neural network model and determine the output of the first neural network model as the first target duty cycle; The water valve is controlled using the first target duty cycle.

3. The method according to claim 2, characterized in that, When the voltage at the current water valve position is greater than the preset position, the water valve is controlled using different duty cycles based on the range of the rate of change of the current water valve position voltage, including: A second neural network model is used to process the rate of change of the voltage at the current water valve position. The second neural network model is trained using multiple sets of second training data. Each set of second training data includes the rate of change of the voltage at the water valve position acquired within a historical time period and a preset duty cycle corresponding to the rate of change of the voltage at the water valve position. When the rate of change of the voltage at the water valve position is the same in the first training data and the second training data, the preset duty cycle of the first training data is greater than the preset duty cycle of the second training data. Obtain the output of the second neural network model and determine the output of the second neural network model as the second target duty cycle; The water valve is controlled using the second target duty cycle.

4. The method according to claim 1, characterized in that, When the voltage at the current water valve position is less than the preset position, the water valve is controlled using different duty cycles based on the range of the rate of change of the voltage at the current water valve position, including: Based on the rate of change of the current water valve position voltage and the rate of change duty cycle mapping relationship, a first target duty cycle is determined. The rate of change duty cycle mapping relationship is the mapping relationship between the rate of change of the water valve position voltage and a preset duty cycle. The first target duty cycle is the preset duty cycle corresponding to the rate of change of the current water valve position voltage in the rate of change duty cycle mapping relationship. The water valve is controlled using the first target duty cycle.

5. The method according to claim 1, characterized in that, The method further includes: The rate of change of the current water valve position voltage is determined as the ratio of the change value of the current water valve position voltage to the interval time, and the change value of the current water valve position voltage is the difference of the water valve position voltage within the interval time.

6. A control device for a water valve, characterized in that, include: The first processing unit is used to control the water valve by alternating forward and reverse rotation control, and during the process of controlling the water valve by alternating forward and reverse rotation control, it uses different duty cycles to control the water valve according to the range of the voltage change rate at the current water valve position. The first determining unit is used to determine whether the water valve has a stall fault based on the range of the absolute value of the difference between the rate of change of the water valve position voltage calculated sequentially within the current time period when the number of alternating control of forward and reverse rotation exceeds a preset number. The current time period is the time period from the time before the current time to the current time. The second processing unit is used to generate an alarm message when it is determined that the water valve has a stall fault, so as to indicate that the water valve has a stall fault; The first determining unit includes a second determining module and a third determining module. The second determining module is used to determine that the water valve is operating normally if the absolute value of the difference between the rate of change of the water valve position voltage calculated successively within the current time period is greater than or equal to a difference threshold. The third determining module is used to determine that the water valve has experienced the stall fault if the absolute value of the difference between the rate of change of the water valve position voltage calculated sequentially within the current time period is less than the difference threshold. The first processing unit includes a fourth determining module, a fifth determining module, and a sixth processing module. The fourth determining module is used to determine the rate of change of the target water valve position voltage and the preset rate of change of the water valve position voltage corresponding to the model of the water valve and the time period in which the water valve is running at the current moment. The fifth determining module is used to determine the position voltage difference as the difference between the rate of change of the current water valve position voltage and the rate of change of the target water valve position voltage; The sixth processing module is used to control the water valve using different duty cycles based on the range of the voltage difference at the location.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1 to 5.

8. A control system for a water valve, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising methods for performing any one of claims 1 to 5.

Citation Information

Patent Citations

  • Control method of electronic water valve

    CN110553079A

  • High-speed-switch-valve fault-diagnosis method based on drive-end current detection

    CN103439653A

  • Electronic three-way water valve locked-rotor protection control method and system

    CN116146776A

  • Method of controlling valve landing in a camless engine

    US6397797B1