Method, system, electronic device and storage medium for detecting the number of steps of clearance of warm water valve

By detecting the load indication value and voltage average value of the warm water valve, the gap steps of the warm water valve are automatically detected and verified, which solves the problem of inaccurate gap step compensation in the existing technology and realizes precise control of the warm water valve.

CN118778501BActive Publication Date: 2025-09-16GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410753874.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2025-09-16
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

The existing technology cannot realize automatic detection of the gap steps of the warm water valve, which makes it difficult to compensate the gap steps of different warm water valves, resulting in the mismatch between the action steps of the drive motor and the opening of the warm water valve.

Method used

By controlling the current opening of the warm water valve to be the first opening, and on this basis increasing the first step and the second step, the corresponding load indication value is obtained, the gap step number is determined according to the difference in the load indication value, and further verification is performed by sampling the resistor voltage value to determine the accuracy of the gap step number.

Benefits of technology

The automatic detection and accuracy verification of the gap steps of the warm water valve are realized, ensuring that the action steps of the drive motor correspond to the opening of the warm water valve, thereby improving the control accuracy of the warm water valve.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778501B_ABST
    Figure CN118778501B_ABST
Patent Text Reader

Abstract

The present application relates to a method, system, electronic device, and storage medium for detecting the number of steps of a hot water valve gap. The method includes: in response to a detection signal, controlling the current opening of the hot water valve to be a first opening; wherein the first opening is the minimum opening of the hot water valve; based on the current opening of the hot water valve being the first opening, controlling the hot water valve to open a first number of steps, and then controlling the hot water valve to open a second number of steps; obtaining a first load indication value and a second load indication value; wherein the first load indication value is used to describe the load condition of the driving motor during the process of the hot water valve opening a first number of steps, and the second load indication value is used to describe the load condition of the driving motor during the process of the hot water valve opening a second number of steps; when the difference between the second load indication value and the first load indication value is greater than a first difference threshold, determining the first number of steps as the number of steps of the hot water valve gap. The technical solution provided by the present application can realize automatic detection of the number of steps of the hot water valve gap.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of warm water valve control, and in particular to a method, system, electronic device and storage medium for detecting the number of gap steps of a warm water valve. Background Art

[0002] The warm water valve consists of a valve core and a drive motor, which is controlled by an external drive circuit. Figure 1 The drive circuit includes a power supply and a driver chip, which receives control from the main control chip. One end of the power supply is connected to the coils of the warm water valve's drive motor (four in the figure), and the other end is connected to the driver chip. The driver chip sequentially connects each coil of the drive motor, controlling the motor's movement, causing the motor to push the valve core and adjust the valve's opening.

[0003] In a warm water valve, the valve core and drive motor are typically connected via a multi-stage gear, with a certain amount of clearance between the gears. When the drive motor adjusts the direction of its movement on the valve core, this clearance can cause the motor's movement steps to misalign with the valve core's, and consequently, with the valve's opening.

[0004] Therefore, to ensure that the number of steps in the drive motor corresponds to the opening of the warm water valve, the gap step compensation must be factored in. In existing technology, the gap step number is directly specified by the warm water valve manufacturer, and the gap step compensation is programmed into the control program of the main control chip. However, the gap step number varies from one warm water valve to another, and the gap step number programmed into the main control chip cannot adapt to different warm water valves.

[0005] The existing technology cannot realize automatic detection of the gap steps of the warm water valve, which makes it difficult to compensate the gap steps for different warm water valves. Summary of the Invention

[0006] The present application provides a method, system, electronic device and storage medium for detecting the number of steps of the gap of a warm water valve, so as to solve the technical problem that the existing technology cannot realize automatic detection of the number of steps of the gap of a warm water valve.

[0007] In a first aspect, the present application provides a method for detecting the number of steps of a warm water valve clearance, the method comprising:

[0008] In response to the detection signal, the current opening of the warm water valve is controlled to be a first opening; wherein the first opening is the minimum opening of the warm water valve;

[0009] On the basis that the current opening of the warm water valve is the first opening, controlling the warm water valve to open a first step, and then controlling the warm water valve to open a second step;

[0010] Obtaining a first load indication value and a second load indication value; wherein the first load indication value is used to describe the load condition of the drive motor during the process of the warm water valve being opened by the first number of steps, and the second load indication value is used to describe the load condition of the drive motor during the process of the warm water valve being opened by the second number of steps;

[0011] When the difference between the second load indication value and the first load indication value is greater than a first difference threshold, the first step number is determined to be the interval step number of the warm water valve.

[0012] In some optional embodiments of the present application, in response to the detection signal, controlling the current opening of the warm water valve to be a first opening includes:

[0013] Obtaining the maximum adjustable opening of the warm water valve;

[0014] The warm water valve is controlled to be closed a third number of steps to control the current opening of the warm water valve to be the first opening; wherein the third number of steps is greater than or equal to the number of steps corresponding to the maximum adjustable opening.

[0015] In some optional embodiments of the present application, the first load indication value and the second load indication value are voltage values ​​of a sampling resistor, and the sampling resistor is provided on a drive circuit of the warm water valve.

[0016] In some optional embodiments of the present application, after determining that the first step number is the clearance step number of the warm water valve, the method further includes:

[0017] Determine whether the determined number of gap steps of the warm water valve is accurate.

[0018] In some optional embodiments of the present application, determining whether the determined number of clearance steps of the warm water valve is accurate includes:

[0019] controlling the warm water valve to open a fourth number of steps so that the current opening of the warm water valve is a second opening, and recording an average value of the first voltage of the sampling resistor during the process of the warm water valve opening to the second opening;

[0020] On the basis that the current opening of the warm water valve is the second opening, controlling the warm water valve to be closed by the number of gap steps so that the current opening of the warm water valve is a third opening, and recording the second voltage average value of the sampling resistor during the process of closing the warm water valve to the third opening;

[0021] On the basis that the current opening of the warm water valve is the third opening, controlling the warm water valve to be closed again by the number of gap steps so that the current opening of the warm water valve is a fourth opening, and recording the third average voltage of the sampling resistor during the process of closing the warm water valve to the fourth opening;

[0022] Whether the determined number of gap steps of the warm water valve is accurate is determined based on a numerical relationship among the first voltage average value, the second voltage average value, and the third voltage average value.

[0023] In some optional embodiments of the present application, judging whether the determined number of gap steps of the warm water valve is accurate based on the numerical relationship between the first voltage average value, the second voltage average value, and the third voltage average value includes:

[0024] When the difference between the first voltage average value and the second voltage average value is greater than a second difference threshold, and the difference between the third voltage average value and the second voltage average value is greater than the second difference threshold, it is determined that the determined number of gap steps of the warm water valve is accurate;

[0025] When the difference between the first voltage average value and the second voltage average value is less than or equal to the second difference threshold, or the difference between the third voltage average value and the second voltage average value is less than or equal to the second difference threshold, it is judged that the determined number of gap steps of the warm water valve is inaccurate.

[0026] In a second aspect, the present application provides a system for detecting the number of gap steps of a warm water valve, the system comprising a warm water valve, a drive circuit, and a control module, the warm water valve comprising a drive motor;

[0027] The driving circuit is provided with a sampling resistor. When the driving motor is working, the voltage value across the sampling resistor describes the load condition of the driving motor.

[0028] The control module is used to execute a method for detecting the number of steps of the warm water valve gap as described in the first aspect of the present application when controlling the operation of the drive motor.

[0029] In some optional embodiments of the present application, the control module includes:

[0030] a first control unit, configured to control the current opening of the warm water valve to be a first opening in response to a detection signal; wherein the first opening is a minimum opening of the warm water valve;

[0031] a second control unit, configured to, based on the current opening of the warm water valve being the first opening, control the warm water valve to open a first amount, and then control the warm water valve to open a second amount;

[0032] an acquisition unit, configured to acquire a first load indication value and a second load indication value; wherein the first load indication value is used to describe a load condition of the drive motor during the process of the warm water valve being opened by the first number of steps, and the second load indication value is used to describe a load condition of the drive motor during the process of the warm water valve being opened by the second number of steps;

[0033] A determining unit is configured to determine, when a difference between the second load indication value and the first load indication value is greater than a first difference threshold, the first step number as the interval step number of the warm water valve.

[0034] In a third aspect, the present application provides an electronic device comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the processor is configured to execute a method for detecting the number of steps of a warm water valve gap as described in the first aspect of the present application.

[0035] In a fourth aspect, the present application further provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute a method for detecting the number of steps of a warm water valve gap as described in the first aspect of the present application.

[0036] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:

[0037] When the movement direction of the valve core of the warm water valve changes, if the warm water valve moves the gap steps, the drive motor does not actually push the valve core to perform actual movement when the warm water valve moves the gap steps, and the drive motor load is small; if the warm water valve moves the gap steps and then continues to move based on the gap steps, the drive motor pushes the valve core to perform actual movement, and the drive motor load is large.

[0038] The method provided in an embodiment of the present application detects the number of clearance steps of a warm water valve in response to a detection signal. First, the current opening of the warm water valve is controlled to be a first opening; when the current opening of the warm water valve is the first opening, the warm water valve is controlled to open by a first number of steps, and then the warm water valve is controlled to open by a second number of steps; a first load indication value is recorded when the warm water valve is controlled to open by the first number of steps, and a second load indication value is recorded when the warm water valve is controlled to open by the second number of steps; and when the difference between the second load indication value and the first load indication value is greater than a first difference threshold, the first number of steps is determined to be the number of clearance steps of the warm water valve.

[0039] The technical solution provided by this application controls the first and second steps of the warm water valve's operation and records the first and second load indication values. Based on the numerical relationship between the first and second load indication values, it is determined whether the load of the drive motor has actually changed, thereby determining whether the drive motor has actually pushed the valve core to operate, and further determining the number of clearance steps of the warm water valve. The technical solution provided by this application achieves automatic detection of the clearance steps of the warm water valve. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0042] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0043] Figure 1 This is a connection diagram of a warm water valve and its drive circuit in the prior art.

[0044] Figure 2 A flow chart of a method for detecting the number of steps of a warm water valve gap provided in an embodiment of the present application.

[0045] Figure 3 This is an overall flow chart of a method for detecting the number of steps of a warm water valve gap provided in an embodiment of the present application.

[0046] Figure 4 This is a structural schematic diagram of a warm water valve gap step detection system provided in an embodiment of the present application.

[0047] Figure 5 This is a structural schematic diagram of a control module in a warm water valve gap step detection system provided in an embodiment of the present application.

[0048] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0050] The disclosure below provides many different embodiments or examples for implementing different configurations of the present invention. To simplify the disclosure of the present invention, the components and configurations of specific examples are described below. Of course, these are merely examples and are not intended to limit the present invention. In addition, the present invention may repeat reference numerals and / or letters in different examples. Such repetition is for the purpose of simplicity and clarity and does not in itself indicate the relationship between the various embodiments and / or configurations discussed.

[0051] In order to solve the technical problem that the existing technology cannot realize automatic detection of the gap steps of the warm water valve, the present application provides a method, system, electronic equipment and storage medium for detecting the gap steps of the warm water valve, which can realize automatic detection of the gap steps of the warm water valve.

[0052] Before describing the specific implementation of the method for detecting the number of steps in the gap of a warm water valve provided in the present application, some possible implementation scenarios of the method for detecting the number of steps in the gap of a warm water valve provided in the present application are first described.

[0053] For direct heating water heaters, they can heat water to the temperature required by the user in one go. Because the inlet water comes from the tap water network, the temperature changes with the ambient temperature. Different inlet water temperatures require different amounts of heat to reach the same outlet water temperature. In order to heat different inlet water temperatures to the same outlet water temperature, direct heating water heaters need to dynamically adjust the water inlet volume, which is achieved through a warm water valve.

[0054] Usually, a direct-heating water heater controls the action of the warm water valve through the motion control program in the main control chip (i.e., the core controller of the direct-heating water heater). Since there are gap steps between the drive motor and the valve core of the warm water valve, the gap steps are compensated in the motion control program of the main control chip so that when the warm water valve moves in the reverse direction (i.e., the current action direction is opposite to the last action direction), the warm water valve moves an extra gap step to eliminate the influence of the gap steps on the reverse action of the warm water valve. The compensation for the gap steps of the warm water valve is also written into the main control chip.

[0055] In some possible implementation scenarios of the present application, the warm water valve of a direct-heating water heater is replaced from warm water valve A to warm water valve B. At this time, because the gap step number in the action control program of the gap step number in the main control chip is pre-written by the warm water valve manufacturer, the gap step number in the action control program in the current main control chip is the gap step number of warm water valve A, which may be different from the gap step number of warm water valve B. As a result, the action control program cannot compensate for the gap step number of the replaced warm water valve B.

[0056] Therefore, we hope to be able to realize automatic detection of the gap steps of the warm water valve through a method, automatically detect the gap steps of the warm water valve after the warm water valve is installed on the direct heating water heater, and compensate for the reverse action of the warm water valve through the gap steps.

[0057] Figure 2 A flow chart of a method for detecting the number of steps of a warm water valve gap provided in an embodiment of the present application, referring to Figure 2 The present invention provides a method for detecting the number of steps of a warm water valve clearance, which specifically includes the following steps:

[0058] S01: In response to the detection signal, controlling the current opening of the warm water valve to be a first opening; wherein the first opening is the minimum opening of the warm water valve;

[0059] Specifically, the technical solution provided in this application can be applied to the control module (i.e., the main control chip, or the core controller of the direct heating water heater), and after receiving the detection signal, it starts to detect the number of gap steps of the warm water valve.

[0060] In a feasible embodiment of the present application, the detection signal may be a power-on signal of the warm water valve, that is, when the warm water valve is connected to a direct-heating water heater and powered on, the number of gap steps of the warm water valve is detected.

[0061] In a feasible embodiment of the present application, the detection signal may also be a signal actively input by the user into the control module. That is, when the user desires to detect the number of clearance steps of the warm water valve, the user inputs the detection signal into the control module to detect the number of clearance steps of the warm water valve. When the user inputs the detection signal, the user may input the detection signal into the control module through a user interaction device provided on the direct-heating water heater, or may input the detection signal into the control module through a mobile terminal.

[0062] The detection of the number of gap steps of the warm water valve is started, and the current opening of the warm water valve is first controlled to be a first opening, which is the minimum opening of the warm water valve.

[0063] In order to ensure that the current opening of the warm water valve is the minimum opening, in a feasible embodiment of the present application, controlling the current opening of the warm water valve to be the first opening includes:

[0064] Get the maximum adjustable opening of the warm water valve;

[0065] The warm water valve is controlled to be closed by a third number of steps to control the current opening of the warm water valve to be the first opening; wherein the third number of steps is greater than or equal to the number of steps corresponding to the maximum adjustable opening.

[0066] Specifically, in the action control program of the warm water valve of the control module, the equipment parameters of the warm water valve are stored. The equipment parameters are read by the control module after the warm water valve is connected to the direct heating water heater. The equipment parameters include at least the maximum adjustable opening of the warm water valve and the number of steps corresponding to the maximum adjustable opening. The control module obtains the maximum adjustable opening of the warm water valve from the equipment parameters in the action control program, and determines the number of steps corresponding to the maximum adjustable opening of the warm water valve, and then determines the third step number based on the number of steps corresponding to the maximum adjustable opening, wherein the third step number is greater than or equal to the number of steps corresponding to the maximum adjustable opening.

[0067] After obtaining the third step number, the warm water valve is controlled to be closed by the third step number, so that the current opening of the warm water valve is the minimum opening, ensuring that the warm water valve is completely closed.

[0068] In a feasible embodiment of the present application, a person skilled in the art may set the third step number based on experience, and the third step number will be greater than the maximum adjustable opening of most commercially available warm water valves. For example, the maximum adjustable opening of commercially available warm water valves is typically 2000 or 3000 steps. The third step number may be set to 3500 steps to ensure that the current step number of the warm water valve is the minimum.

[0069] S02: Based on the current opening of the warm water valve being the first opening, controlling the warm water valve to open by the first step, and then controlling the warm water valve to open by the second step;

[0070] Specifically, the current opening of the warm water valve is the first opening. At this time, the driving motor of the warm water valve is controlled to operate, thereby driving the valve core of the warm water valve to operate, so that the warm water valve opens the first step. Then, the warm water valve is controlled to open the second step again based on the first step.

[0071] It can be understood that since in the aforementioned step S01, the hot water valve is controlled to close the third step so that the current opening of the hot water valve is the first opening, when the hot water valve is opened the first step, the action direction of the hot water valve is opposite, and the hot water valve will be moving the gap steps, or has completed the gap steps.

[0072] S03: Obtaining a first load indication value and a second load indication value; wherein the first load indication value is used to describe the load condition of the driving motor during the process of the hot water valve being opened a first number of times, and the second load indication value is used to describe the load condition of the driving motor during the process of the hot water valve being opened a second number of times;

[0073] Specifically, when the hot water valve is opened a first amount, a first load indication value of the hot water valve drive motor is detected. Similarly, when the hot water valve is opened a second amount, a second load indication value of the hot water valve drive motor is detected. After the first and second load indication values ​​are detected, the first and second load indication values ​​are stored.

[0074] A stored first load indication value is obtained, and a stored second load indication value is obtained.

[0075] The load indication value is used to describe the load condition of the driving motor of the warm water valve during the operation of the warm water valve. Among them, the first load indication value is used to describe the load condition of the driving motor of the warm water valve during the process of opening the warm water valve by the first step, and the second load indication value is used to describe the load condition of the driving motor of the warm water valve during the process of opening the warm water valve by the second step.

[0076] In a feasible embodiment of the present application, the first load indication value and the second load indication value may be the power of the drive motor, and a power detection device is provided in the drive motor to describe the load condition of the drive motor during the operation of the drive motor.

[0077] For warm water valves produced by different manufacturers, not every warm water valve's drive motor may be equipped with a power detection device. Therefore, in a feasible embodiment of the present application, the first load indication value and the second load indication value are the voltage values ​​of the sampling resistor, and the sampling resistor is set on the drive circuit of the warm water valve.

[0078] Specifically, refer to Figure 4 The present application provides a driving circuit with a sampling resistor. When the warm water valve operates for the first time, the voltage across the sampling resistor is obtained and used as a first load indication value. When the warm water valve operates for the second time, the voltage across the sampling resistor is obtained and used as a second load indication value.

[0079] S04: when the difference between the second load indication value and the first load indication value is greater than a first difference threshold, determining the first step number as the interval step number of the warm water valve;

[0080] Specifically, after obtaining the first load indication value and the second load indication value, the difference between the second load indication value and the first load indication value is calculated. If the difference between the second load indication value and the first load indication value is greater than the first difference threshold, the first step number is determined as the gap step number of the warm water valve. If the difference between the second load indication value and the first load indication value is less than or equal to the first difference threshold, return to the aforementioned step S01 and re-execute steps S01-S04 until the gap step number of the warm water valve is determined.

[0081] On the basis that the current opening of the warm water valve is the first opening, the warm water valve is controlled to open the first step. If the first step is exactly the clearance step of the warm water valve at this time, the drive motor of the warm water valve does not actually drive the valve core to move. The load of the drive motor of the warm water valve is small during the process of the warm water valve opening the first step, and the first load indication value is small; if the first step is greater than the clearance step of the warm water valve at this time, the drive motor of the warm water valve actually drives the valve core to move. The load of the drive motor of the warm water valve is large during the process of the warm water valve opening the first step, and the first load indication value is large.

[0082] After controlling the hot water valve to open the first step, the hot water valve is controlled to open the second step again. If the first step at this time is exactly the gap step of the hot water valve, then in the process of opening the first step, the gap steps have been completed. When the hot water valve is opened the second step, the drive motor of the hot water valve actually drives the valve core to move, and the second load indication value is larger; if the first step at this time is less than the gap step of the hot water valve, then in the process of opening the first step, the gap steps have not been completed. When the hot water valve is opened the second step, the drive motor of the hot water valve still needs to go through the gap steps, and the second load indication value is smaller.

[0083] Based on the above description, the numerical relationship between the first load indication value and the second load indication value can be used to determine whether the first step number is the clearance step number of the warm water valve. Specifically:

[0084] If the difference between the second load indication value and the first load indication value is greater than the first difference threshold, it means that the second load indication value is larger and the first load indication value is smaller. When the hot water valve is controlled to open the first step, the load of the driving motor of the hot water valve is smaller, which means that the first step is less than or equal to the gap step number, and when the hot water valve is controlled to open the second step, the load of the driving motor of the hot water valve is larger, which means that when the valve was opened the second step, the driving motor pushed the valve core to perform actual action, and the gap step number has been completed. The first step is the gap step number.

[0085] If the difference between the second load indication value and the first load indication value is less than or equal to the first difference threshold, the second load indication value is smaller, or the first load indication value is larger. If the second load indication value is smaller, it means that when the hot water valve was opened the first amount, the first amount did not complete the gap steps, and the valve needs to be opened the second amount to complete the unfinished gap steps, and the first amount is not a gap step. If the first load indication value is larger, it means that when the hot water valve was opened the first amount, the first amount has already completed the gap steps, and if the hot water valve is opened further, the first amount is not a gap step.

[0086] In the above embodiment, the first difference threshold value may be measured in advance in a laboratory by a person skilled in the art, and the first difference threshold value is written into the control module.

[0087] Based on the description of the above method embodiment, the implementation principle of this application is:

[0088] When the direction of movement of the spool of the warm water valve changes, if the warm water valve moves by the clearance steps, the drive motor does not actually move the spool during the clearance steps, and the drive motor load is small. If the warm water valve moves by the clearance steps and then continues to move based on the clearance steps, the drive motor pushes the spool to actually move, and the drive motor load is large. The load indicator value of the drive motor reflects the load of the drive motor, and then determines whether the load of the drive motor has actually changed, thereby judging whether the drive motor actually moves the spool, and further determining the clearance steps of the warm water valve.

[0089] Through the technical solution provided in this application, automatic detection of the gap steps of the warm water valve is achieved.

[0090] In order to more accurately determine the number of clearance steps of the warm water valve, after determining the first number as the number of clearance steps, a feasible embodiment of the present application may further include the following steps:

[0091] Determine whether the determined number of clearance steps of the warm water valve is accurate.

[0092] Specifically, in this embodiment, steps S01 to S04 are used to preliminarily determine the number of clearance steps of the warm water valve. After the first number is determined as the number of clearance steps of the warm water valve, it is then determined whether the determined number of clearance steps is accurate. If the determined number of clearance steps of the warm water valve is accurate, the determined number of clearance steps of the warm water valve can be used to compensate for the clearance steps of the warm water valve during the subsequent operation control of the warm water valve. If the determined number of clearance steps of the warm water valve is inaccurate, the number of clearance steps of the warm water valve is re-determined and the accuracy of the re-determined number of clearance steps of the warm water valve is checked. This cycle is repeated until the determined number of clearance steps of the warm water valve passes the accuracy check.

[0093] In a feasible embodiment of the present application, determining whether the determined number of clearance steps of the warm water valve is accurate specifically includes the following steps:

[0094] controlling the warm water valve to open a fourth number of steps so that the current opening of the warm water valve is a second opening, and recording an average value of the first voltage of the sampling resistor during the process of the warm water valve opening to the second opening;

[0095] On the basis that the current opening of the warm water valve is the second opening, controlling the number of closing steps of the warm water valve to make the current opening of the warm water valve the third opening, and recording the second voltage average value of the sampling resistor during the process of closing the warm water valve to the third opening;

[0096] On the basis that the current opening of the warm water valve is the third opening, the warm water valve is controlled to be closed again by the number of gap steps so that the current opening of the warm water valve is the fourth opening, and the third average voltage of the sampling resistor is recorded during the process of the warm water valve being opened and closed to the fourth opening;

[0097] Whether the determined number of gap steps of the warm water valve is accurate is determined based on the numerical relationship among the first voltage average value, the second voltage average value, and the third voltage average value.

[0098] Specifically, after the above steps S01 to S04, the accuracy of the initially determined number of gap steps is verified.

[0099] First, the hot water valve is controlled to open a fourth number of steps so that the current opening of the hot water valve is the second opening. During this process, the voltage value of the sampling resistor is recorded each time the hot water valve moves one step. Based on all the recorded voltage values, the first average voltage of the sampling resistor during the process of the hot water valve opening to the second opening is determined.

[0100] For example, if the fourth step number is 1000, the voltage value of the sampling resistor is recorded every time one step is taken in the 1000 steps to obtain 1000 voltage values ​​of the 1000 sampling resistors. These 1000 voltage values ​​are summed and the sum of the 1000 voltage values ​​is divided by 1000 to obtain the first voltage average value.

[0101] On the basis that the current opening of the warm water valve is the second opening, the number of steps of closing the gap of the warm water valve (i.e., the first step) is controlled so that the current opening of the warm water valve is the third opening. In this process, the voltage value of the sampling resistor is recorded every time the warm water valve moves one step. Based on all the recorded voltage values, the second average voltage of the sampling resistor in the process of opening the warm water valve to the third opening is determined.

[0102] On the basis that the current opening of the warm water valve is the third opening, the warm water valve is controlled to close the gap again (i.e., the first step) so that the current opening of the warm water valve is the fourth opening. During this process, the voltage value of the sampling resistor is recorded every time the warm water valve moves one step. Based on all the recorded voltage values, the third voltage average value of the sampling resistor in the process of the warm water valve opening to the third opening is determined.

[0103] The process of obtaining the second voltage average value and the third voltage average value refers to the process of obtaining the first voltage average value, which will not be described in detail here.

[0104] After obtaining the first voltage average, the second voltage average, and the third voltage average, it is determined whether the determined number of clearance steps of the warm water valve is accurate based on the numerical relationship among the first voltage average, the second voltage average, and the third voltage average.

[0105] When the difference between the first voltage average value and the second voltage average value is greater than the second difference threshold, and the difference between the third voltage average value and the second voltage average value is greater than the second difference threshold, it is determined that the determined number of clearance steps of the warm water valve is accurate;

[0106] When the difference between the first voltage average value and the second voltage average value is less than or equal to the second difference threshold, or the difference between the third voltage average value and the second voltage average value is less than or equal to the second difference threshold, it is judged that the determined number of gap steps of the warm water valve is inaccurate.

[0107] During the fourth step of opening the warm water valve, the warm water valve is moving in the forward direction, and the driving motor of the warm water valve will actually push the valve core of the warm water valve to move, and the first voltage average value is larger; after the warm water valve is opened for the fourth step, the gap steps preliminarily determined before the hot water valve is closed are controlled. If the preliminarily determined gap steps are accurate, the driving motor of the warm water valve does not actually push the valve core of the warm water valve to move when the hot water valve is controlled to close the gap steps, and the second voltage average value will be smaller; the gap steps preliminarily determined before the hot water valve is closed again are controlled. If the preliminarily determined gap steps are accurate, since the gap steps have been completed when the gap steps were closed last time, the driving motor of the warm water valve will actually push the valve core of the warm water valve to move when the gap steps are closed this time, and the second voltage average value is larger.

[0108] It is understood that if the initially determined number of clearance steps is accurate, the second average voltage value will be significantly smaller than both the first and third average voltage values. Therefore, if the difference between the first and second average voltage values ​​is greater than the second difference threshold, and the difference between the third and second average voltage values ​​is greater than the second difference threshold, the initially determined number of clearance steps is accurate, and the first number is the clearance step value for the warm water valve.

[0109] In the above embodiment, the second difference threshold value may be measured in advance in a laboratory by a person skilled in the art, and the second difference threshold value may be written into the control module.

[0110] Through the technical solution provided by the above embodiment, on the basis of completing the automatic detection of the gap step number of the warm water valve, the accuracy of the determined gap step number is verified to ensure the accuracy of the determined gap step number.

[0111] After the determination of the gap step number of the warm water valve is completed, the gap step number of the warm water valve is written into the action control program of the main control chip. When the action of the warm water valve is subsequently controlled, the gap step number of the warm water valve is compensated by the written gap step number.

[0112] Figure 3 This is an overall flow chart of a method for detecting the number of steps of a warm water valve gap provided in an embodiment of the present application, referring to Figure 3The overall process of a method for detecting the number of steps of a warm water valve clearance provided in an embodiment of the present application may be:

[0113] Step S1: Control the warm water valve to close by a third step so that the current opening of the warm water valve is the first opening;

[0114] Step S2: Control the warm water valve to open a first step;

[0115] Step S3: obtaining a first load indication value during the process of opening the warm water valve by the first step;

[0116] Step S4: Control the warm water valve to open a second step;

[0117] Step S5: obtaining a second load indication value during the process of the hot water valve being opened a second number of steps;

[0118] Step S6: Determine whether the difference between the second load indication value and the first load indication value is greater than a first difference threshold. If the difference between the second load indication value and the first load indication value is greater than the first difference threshold, proceed to step S7. If the difference between the second load indication value and the first load indication value is less than or equal to the first difference threshold, return to step S1 and repeat steps S1 to S6.

[0119] Step S7: preliminarily determining the first step number as the gap step number;

[0120] Step S8: Control the warm water valve to open a fourth step so that the current opening of the warm water valve is the second opening;

[0121] Step S9: Recording the average value of the first voltage during the process of the warm water valve being opened a fourth number of steps, where the average value of the first voltage is recorded as c;

[0122] Step S10: controlling the number of steps of closing the warm water valve to reduce the gap, and recording the second voltage average value during the process of closing the warm water valve to reduce the gap, the second voltage average value is recorded as d;

[0123] Step S11: controlling the number of steps of closing the hot water valve again, and recording the third voltage average value during the process of closing the hot water valve again, where the third voltage average value is recorded as e;

[0124] Step S12: Determine whether the difference between the first average voltage c and the second average voltage d is greater than a second difference threshold, and whether the difference between the third average voltage e and the second average voltage d is greater than the second difference threshold. If the difference between the first average voltage c and the second average voltage d is greater than the second difference threshold, and the difference between the third average voltage e and the second average voltage d is greater than the second difference threshold, then proceed to step S13. If the difference between the first average voltage c and the second average voltage d is less than or equal to the second difference threshold, or if the difference between the third average voltage e and the second average voltage d is less than or equal to the second difference threshold, then return to step S1 and repeat steps S1 to S12.

[0125] S13: determining the first step number as the gap step number;

[0126] S14: Complete the detection of the gap steps of the warm water valve, control the warm water valve normally, and when the warm water valve reverses, compensate for the reverse action of the warm water valve through the gap steps.

[0127] Figure 4 This is a structural diagram of a detection system for the number of steps of a warm water valve gap provided in an embodiment of the present application, with reference to Figure 4 , a detection system for the number of steps of a warm water valve clearance provided in an embodiment of the present application includes:

[0128] Warm water valve, drive circuit and control module, the warm water valve includes a drive motor;

[0129] A sampling resistor is provided in the driving circuit. When the driving motor is working, the voltage value across the sampling resistor describes the load condition of the driving motor.

[0130] The control module is used to execute a method for detecting the number of steps of the warm water valve gap as described in any one of the above method embodiments when controlling the operation of the drive motor.

[0131] In some possible implementation scenarios of the present application, the control module can specifically be the main control chip of the direct heating water heater installed with the warm water valve (i.e., the core controller of the direct heating water heater), and the drive circuit is also set in the direct heating water heater.

[0132] Reference Figure 5 In a feasible embodiment of the present application, the control module includes:

[0133] The first control unit 501 is configured to control the current opening of the warm water valve to be a first opening in response to the detection signal; wherein the first opening is the minimum opening of the warm water valve;

[0134] The second control unit 502 is configured to control the hot water valve to open a first amount, and then control the hot water valve to open a second amount, based on the current opening of the hot water valve being a first opening.

[0135] An acquisition unit 503 is configured to acquire a first load indication value and a second load indication value; wherein the first load indication value is used to describe the load condition of the driving motor during the process of the warm water valve being opened a first number of times, and the second load indication value is used to describe the load condition of the driving motor during the process of the warm water valve being opened a second number of times;

[0136] The determining unit 504 is configured to determine the first step number as the interval step number of the warm water valve when the difference between the second load indication value and the first load indication value is greater than a first difference threshold.

[0137] In a feasible embodiment of the present application, the first control unit 501 includes:

[0138] An acquisition subunit is used to obtain the maximum adjustable opening of the warm water valve;

[0139] The first control subunit is used to control the warm water valve to close a third number of steps to control the current opening of the warm water valve to be the first opening; wherein the third number of steps is greater than or equal to the number of steps corresponding to the maximum adjustable opening.

[0140] In a feasible embodiment of the present application, the first load indication value and the second load indication value are voltage values ​​of a sampling resistor, and the sampling resistor is provided on a driving circuit of the warm water valve.

[0141] In a feasible embodiment of the present application, the control module further includes:

[0142] The judging unit 505 is used to judge whether the determined number of clearance steps of the warm water valve is accurate.

[0143] In a feasible embodiment of the present application, the determination unit 505 includes:

[0144] a second control subunit, configured to control the warm water valve to open a fourth number of steps so that the current opening of the warm water valve is a second opening, and to record an average first voltage of the sampling resistor during the process of the warm water valve opening to the second opening;

[0145] a third control subunit, configured to, based on the current opening of the hot water valve being the second opening, control the number of closing steps of the hot water valve to reduce the gap so that the current opening of the hot water valve is the third opening, and record the second voltage average value of the sampling resistor during the process of closing the hot water valve to the third opening;

[0146] a fourth control subunit, configured to, based on the current opening of the hot water valve being the third opening, control the hot water valve to be closed again by a number of gap steps so that the current opening of the hot water valve is the fourth opening, and record a third average voltage of the sampling resistor during the process of closing the hot water valve to the fourth opening;

[0147] The judging subunit is used to judge whether the determined number of gap steps of the warm water valve is accurate according to the numerical relationship between the first voltage average value, the second voltage average value and the third voltage average value.

[0148] In a feasible embodiment of the present application, the judgment subunit includes:

[0149] a first judgment subunit, configured to judge whether the determined number of clearance steps of the warm water valve is accurate when a difference between the first voltage average value and the second voltage average value is greater than a second difference threshold, and a difference between the third voltage average value and the second voltage average value is greater than the second difference threshold;

[0150] The second judgment subunit is used to judge that the determined number of gap steps of the warm water valve is inaccurate when the difference between the first voltage average value and the second voltage average value is less than or equal to the second difference threshold, or the difference between the third voltage average value and the second voltage average value is less than or equal to the second difference threshold.

[0151] like Figure 6 As shown, an embodiment of the present application provides an electronic device, including a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.

[0152] Memory 603, used for storing computer programs;

[0153] In one embodiment of the present application, the processor 601 is configured to execute a program stored in the memory 603 to implement a method for detecting the number of steps of a warm water valve clearance provided by any of the aforementioned method embodiments, for example, including:

[0154] In response to the detection signal, the current opening of the warm water valve is controlled to be a first opening; wherein the first opening is the minimum opening of the warm water valve;

[0155] Control the warm water valve to open by the first step, and then control the warm water valve to open by the second step;

[0156] Obtaining a first load indication value and a second load indication value; wherein the first load indication value is used to describe the load condition of the driving motor during the process of the hot water valve being opened a first number of times, and the second load indication value is used to describe the load condition of the driving motor during the process of the hot water valve being opened a second number of times;

[0157] When the difference between the second load indication value and the first load indication value is greater than the first difference threshold, the first step number is determined to be the interval step number of the warm water valve.

[0158] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of a method for detecting the number of steps of a warm water valve gap provided in any of the aforementioned method embodiments are implemented.

[0159] The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the objectives of this embodiment based on actual needs.

[0160] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, or of course, by hardware. Based on this understanding, the above technical solution, in essence, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiment.

[0161] It should be understood that the terms used herein are for the purpose of describing specific example embodiments only and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "comprise", "include", "contain" and "have" are inclusive and therefore specify the presence of stated features, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring them to be performed in the specific order described or illustrated, unless the order of execution is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0162] The foregoing description is intended only to provide specific embodiments of the present invention, which will enable those skilled in the art to understand and implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown herein, but is intended to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for detecting the number of steps of clearance of a warm water valve, characterized in that: The method comprises: In response to the detection signal, the current opening of the warm water valve is controlled to be a first opening; wherein the first opening is the minimum opening of the warm water valve; On the basis that the current opening of the warm water valve is the first opening, controlling the warm water valve to open a first step, and then controlling the warm water valve to open a second step; Obtaining a first load indication value and a second load indication value; wherein the first load indication value is used to describe the load condition of the drive motor during the process of the warm water valve being opened by the first number of steps, and the second load indication value is used to describe the load condition of the drive motor during the process of the warm water valve being opened by the second number of steps; When the difference between the second load indication value and the first load indication value is greater than a first difference threshold, the first step number is determined to be the interval step number of the warm water valve.

2. The method according to claim 1, characterized in that In response to the detection signal, controlling the current opening of the warm water valve to be a first opening includes: Obtaining the maximum adjustable opening of the warm water valve; The warm water valve is controlled to be closed a third number of steps to control the current opening of the warm water valve to be the first opening; wherein the third number of steps is greater than or equal to the number of steps corresponding to the maximum adjustable opening.

3. The method according to claim 1, wherein: The first load indication value and the second load indication value are voltage values ​​of a sampling resistor, and the sampling resistor is provided on a driving circuit of the warm water valve.

4. The method according to claim 3, characterized in that After determining that the first step number is the clearance step number of the warm water valve, the method further includes: Determine whether the determined number of gap steps of the warm water valve is accurate.

5. The method according to claim 4, characterized in that Determining whether the determined number of clearance steps of the warm water valve is accurate includes: controlling the warm water valve to open a fourth number of steps so that the current opening of the warm water valve is a second opening, and recording an average value of the first voltage of the sampling resistor during the process of the warm water valve opening to the second opening; On the basis that the current opening of the warm water valve is the second opening, controlling the warm water valve to be closed by the number of gap steps so that the current opening of the warm water valve is a third opening, and recording the second voltage average value of the sampling resistor during the process of closing the warm water valve to the third opening; On the basis that the current opening of the warm water valve is the third opening, controlling the warm water valve to be closed again by the number of gap steps so that the current opening of the warm water valve is a fourth opening, and recording the third average voltage of the sampling resistor during the process of closing the warm water valve to the fourth opening; Whether the determined number of gap steps of the warm water valve is accurate is determined based on a numerical relationship among the first voltage average value, the second voltage average value, and the third voltage average value.

6. The method according to claim 5, characterized in that Determining whether the determined number of gap steps of the warm water valve is accurate according to a numerical relationship among the first voltage average value, the second voltage average value, and the third voltage average value includes: When the difference between the first voltage average value and the second voltage average value is greater than a second difference threshold, and the difference between the third voltage average value and the second voltage average value is greater than the second difference threshold, it is determined that the determined number of gap steps of the warm water valve is accurate; When the difference between the first voltage average value and the second voltage average value is less than or equal to the second difference threshold, or the difference between the third voltage average value and the second voltage average value is less than or equal to the second difference threshold, it is judged that the determined number of gap steps of the warm water valve is inaccurate.

7. A system for detecting the number of steps of clearance of a warm water valve, characterized by: The system includes a warm water valve, a drive circuit and a control module, wherein the warm water valve includes a drive motor; The driving circuit is provided with a sampling resistor. When the driving motor is working, the voltage value across the sampling resistor describes the load condition of the driving motor. The control module is configured to execute the method according to any one of claims 1 to 6 when controlling the operation of the drive motor.

8. The system according to claim 7, characterized in that The control module includes: a first control unit, configured to control the current opening of the warm water valve to be a first opening in response to a detection signal; wherein the first opening is a minimum opening of the warm water valve; a second control unit, configured to, based on the current opening of the warm water valve being the first opening, control the warm water valve to open a first amount, and then control the warm water valve to open a second amount; an acquisition unit, configured to acquire a first load indication value and a second load indication value; wherein the first load indication value is used to describe a load condition of the drive motor during the process of the warm water valve being opened by the first number of steps, and the second load indication value is used to describe a load condition of the drive motor during the process of the warm water valve being opened by the second number of steps; A determining unit is configured to determine, when a difference between the second load indication value and the first load indication value is greater than a first difference threshold, the first step number as the interval step number of the warm water valve.

9. An electronic device, characterized in that: include: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor coupled to the at least one bus; At least one memory connected to the at least one bus, wherein the processor is configured to implement the method according to any one of claims 1 to 6.

10. A computer storage medium, characterized in that Computer-executable instructions are stored, and the computer-executable instructions are used to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Wind power generation device, gear transmission mechanism, and gear-meshing control method

    CN102395783A

  • Motor control device, motor control method

    CN107302334A