Warm water valve gap step number detection method and system, electronic equipment and storage medium

By detecting the load indication value and the sampling resistor voltage of the warm water valve, the number of gap steps is automatically detected, which solves the problem that automatic detection cannot be realized in the existing technology and improves the action accuracy and adaptability of the warm water valve.

CN118778501AActive Publication Date: 2024-10-15GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing technology cannot automatically detect the number of clearance steps of the warm water valve, making it difficult to compensate for the number of clearance steps for different warm water valves.

Method used

By controlling the current opening of the hot water valve to the minimum opening, gradually increasing the opening and recording the load indication value of the drive motor, judging the number of gap steps based on the difference between the load indication values, and describing the load of the drive motor through the voltage value of the sampling resistor situation, determine the number of gap steps.

Benefits of technology

It realizes the automatic detection of the number of clearance steps of the warm water valve, ensuring that the drive motor accurately pushes the valve core during action, and improves the correspondence between the number of action steps and the opening of the warm water valve.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778501A_ABST
    Figure CN118778501A_ABST
Patent Text Reader

Abstract

The invention relates to a warm water valve gap step number detection method and system, electronic equipment and a storage medium, and the method comprises the steps: responding to a detection signal, and controlling the current opening degree of a warm water valve to be a first opening degree; wherein the first opening degree is the minimum opening degree of the warm water valve; on the basis that the current opening degree of the warm water valve is the first opening degree, the warm water valve is controlled to be opened by a first step number, and then the warm water valve is controlled to be opened by a second step number; obtaining a first load indication value and a second load indication value; wherein the first load indication value is used for describing the load condition of the driving motor in the process that the warm water valve is opened by a first step number, and the second load indication value is used for describing the load condition of the driving motor in the process that the warm water valve is opened by a second step number; and under the condition that the difference value between the second load indication value and the first load indication value is larger than a first difference value threshold value, the first step number is determined to be the gap step number of the warm water valve. Through the technical scheme provided by the invention, automatic detection of the gap step number of the warm water valve can be realized.
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 steps of a warm water valve gap. Background Art

[0002] The warm water valve includes a valve core and a drive motor, and the drive motor is controlled by an external drive circuit. Figure 1 The driving circuit includes a driving power supply and a driving chip, and the driving chip receives control from the main control chip. One end of the driving power supply is connected to each coil of the driving motor of the warm water valve (4 in the figure), and the other end of the driving power supply is connected to the driving chip; the driving chip connects each coil of the driving motor in turn in sequence to control the action of the driving motor, so that the driving motor pushes the valve core to adjust the opening of the warm water valve.

[0003] In a warm water valve, the valve core and the drive motor are usually connected by a multi-stage gear, and there is a certain gap step between the multi-stage gears. When the drive motor adjusts the pushing direction of the valve core, the gap step will cause the action steps of the drive motor to not correspond to the action steps of the valve core, and the action steps of the drive motor will not correspond to the opening of the warm water valve.

[0004] Therefore, in order to make the action steps of the drive motor correspond to the opening of the warm water valve, the gap step number needs to be compensated. In the prior art, the gap step number is directly given by the manufacturer of the warm water valve, and the compensation for the gap step number is written into the control program of the main control chip. However, the gap step number of different warm water valves is different, and the gap step number written into the main control chip cannot adapt to different warm water valves.

[0005] The existing technology cannot realize automatic detection of the gap step number of the warm water valve, which makes it difficult to compensate the gap step number of 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 prior art 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 be opened by a first step, and then controlling the warm water valve to be opened by a second step;

[0010] Obtain 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 opening the first step, 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 opening the second step;

[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 gap 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 arranged on a driving 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, judging whether the determined number of gap steps of the warm water valve is accurate includes:

[0019] Controlling the warm water valve to open a fourth step so that the current opening of the warm water valve is a second opening, and recording the first voltage average value 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 close the gap step number so that the current opening of the warm water valve is 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;

[0021] On the basis that the current opening of the warm water valve is the third opening, controlling the warm water valve to close the gap step again so that the current opening of the warm water valve is the fourth opening, and recording the third voltage average value 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 the 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 according to 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 judged 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] 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.

[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 the detection signal; wherein the first opening is the minimum opening of the warm water valve;

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

[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 the load condition of the driving motor during the process of the warm water valve opening the first step, 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 opening the second step;

[0033] A determination unit is used to determine the first step number as the clearance 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.

[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 clearance 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 clearance 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 on the basis of 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 by the embodiment of the present application detects the number of gap steps of the warm water valve in response to a detection signal. First, the current opening of the warm water valve is controlled to be the first opening; when the current opening of the warm water valve is the first opening, the warm water valve is controlled to open by the first number of steps, and then the warm water valve is controlled to open by the second number of steps; when the warm water valve is controlled to open by the first number of steps, a first load indication value is recorded, and when the warm water valve is controlled to open by the second number of steps, a second load indication value is recorded; 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 gap steps of the warm water valve.

[0039] The technical solution provided by the present application controls the first and second steps of the warm water valve action and records the first load indication value and the second load indication value, and determines whether the load of the drive motor actually changes based on the numerical relationship between the first load indication value and the second load indication value, thereby determining whether the drive motor actually pushes the valve core to act, and further determining the number of gap steps of the warm water valve. The technical solution provided by the present application realizes automatic detection of the number of gap 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 drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0043] Figure 1 It 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 clearance provided in an embodiment of the present application.

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

[0046] Figure 4 A schematic diagram of the structure of a warm water valve clearance step detection system provided in an embodiment of the present application.

[0047] Figure 5 A schematic diagram of the structure of a control module in a warm water valve clearance 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] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0050] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings 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 device 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 a method for detecting the number of steps of a warm water valve gap provided in the present application, some possible implementation scenarios of a method for detecting the number of steps of a warm water valve gap 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 at one time. 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 inlet water 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 action 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 driving motor and the valve core of the warm water valve, the gap steps are compensated in the action control program of the main control chip. When the warm water valve moves in the opposite direction (i.e., the current action direction is opposite to the last action direction), the warm water valve moves with more gap steps 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 the direct heating water heater is replaced from warm water valve A to warm water valve B. At this time, since the gap steps in the action control program of the gap steps in the main control chip are pre-written by the warm water valve manufacturer, the gap steps in the action control program in the current main control chip are the gap steps of warm water valve A, which may be different from the gap steps of warm water valve B, resulting in the action control program being unable to compensate for the gap steps 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 to 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 clearance 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, control 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 the present application can be applied to a control module (i.e., a main control chip, or a core controller of a direct-heating water heater), and after receiving a detection signal, the detection of the number of gap steps of the warm water valve is started.

[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 that the user actively inputs into the control module, that is, when the user desires to detect the number of gap steps of the warm water valve, the user inputs the detection signal into the control module to detect the number of gap 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 gap step number of the warm water valve is started, and the current opening of the warm water valve is first controlled to be a first opening, and the first opening 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 step to control the current opening of the warm water valve to be the first opening; wherein the third step is greater than or equal to the step 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 number of steps based on the number of steps corresponding to the maximum adjustable opening, wherein the third number of steps 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, the third number of steps can also be set by those skilled in the art based on experience, and the third number of steps will be greater than the maximum adjustable opening of most warm water valves on the market. For example, the maximum adjustable number of steps of warm water valves currently on the market is usually 2000 steps or 3000 steps, and the third number of steps can be set to 3500 steps to ensure that the current number of steps of the warm water valve is the minimum number of steps.

[0069] S02: on the basis that the current opening of the warm water valve is 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 warm water valve is controlled to close the third step so that the current opening of the warm water valve is the first opening, when the warm water valve is opened the first step, the movement direction of the warm water valve is opposite, and the warm 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 warm water valve being opened for the first step, 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 for the second step;

[0073] Specifically, when the warm water valve is opened for the first step, a first load indication value of the drive motor of the warm water valve is detected. Similarly, when the warm water valve is opened for the second step, a second load indication value of the drive motor of the warm water valve is detected. After the first load indication value and the second load indication value are detected, the first load indication value and the second load indication value 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 for the first step, and 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 for 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 driving 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 a sampling resistor, and the sampling resistor is arranged on the driving circuit of the warm water valve.

[0078] Specifically, refer to Figure 4 In the present application, a sampling resistor is provided in the driving circuit. When the warm water valve operates for the first step, the voltage value across the sampling resistor is obtained, and the voltage value is used as the first load indication value; when the warm water valve operates for the second step, the voltage value across the sampling resistor is obtained, and the voltage value is used as the 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 clearance 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 at this time the first step is exactly the clearance step of the warm water valve, the drive motor of the warm water valve does not actually drive the valve core to move, and 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 at this time the first step is greater than the clearance step of the warm water valve, the drive motor of the warm water valve actually drives the valve core to move, and 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 warm water valve to open the first step, the warm water valve is controlled to open the second step again. If the first step is exactly the gap step of the warm water valve, the gap steps have been completed in the process of opening the first step, and when the warm water valve is opened the second step, the drive motor of the warm water valve actually drives the valve core to move, and the second load indication value is larger; if the first step is less than the gap step of the warm water valve, the gap steps have not been completed in the process of opening the first step, and when the warm water valve is opened the second step, the drive motor of the warm water valve still needs to pass through the gap steps, and the second load indication value is smaller.

[0083] Based on the above description, through the numerical relationship between the first load indication value and the second load indication value, it can be determined 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 controlling the hot water valve to open the first step, the load of the driving motor of the hot water valve is smaller, indicating that the first step is less than or equal to the gap step number, and when controlling the hot water valve to open the second step, the load of the driving motor of the hot water valve is larger, indicating that when the hot water valve was opened the second step, the driving motor pushed the valve core to perform actual action, the gap step number has been completed, and the first step number 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, it means that the second load indication value is smaller, or it means that the first load indication value is larger. When the second load indication value is smaller, it means that when the warm water valve is opened by the first step, the first step has not completed the gap steps, and it is necessary to continue to complete the unfinished gap steps when opening the second step, and the first step is not the gap step; when the first load indication value is larger, it means that when the warm water valve is opened by the first step, the first step has completed the gap steps, and the warm water valve is continued to be opened, and the first step is not the 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 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 move 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 continues to move on the basis of the gap steps, the drive motor pushes the valve core to move, and the drive motor load is large. The load indication value of the drive motor reflects the load of the drive motor, and then determines whether the load of the drive motor actually changes, thereby judging whether the drive motor actually pushes the valve core to move, and then determines the gap 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 gap steps of the warm water valve, after the first number is determined as the number of gap steps, in a feasible embodiment of the present application, the following steps may also be included:

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

[0092] Specifically, in this embodiment, the above steps S01 to S04 are used to preliminarily determine the number of gap steps of the warm water valve. After the first step is determined as the number of gap steps of the warm water valve, it is determined whether the determined number of gap steps is accurate. If the determined number of gap steps of the warm water valve is determined to be accurate, the gap steps of the warm water valve can be compensated in the subsequent operation control process of the warm water valve by using the determined number of gap steps of the warm water valve; if the determined number of gap steps of the warm water valve is determined to be inaccurate, the gap steps of the warm water valve are re-determined, and the accuracy of the re-determined number of gap steps of the warm water valve is checked, and the cycle is repeated until the determined number of gap steps of the warm water valve passes the accuracy check.

[0093] In a feasible embodiment of the present application, judging 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 step so that the current opening of the warm water valve is the second opening, and recording the first voltage average value 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, the number of closing steps of the warm water valve is controlled so that the current opening of the warm water valve is the third opening, and the second voltage average value of the sampling resistor is recorded 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 close the gap again by the number of steps so that the current opening of the warm water valve is the fourth opening, and the third voltage average value of the sampling resistor is recorded in the process of the warm water valve opening and closing 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 preliminarily determined number of gap steps is verified.

[0099] First, the warm water valve is controlled to open the fourth step so that the current opening of the warm water valve is the second 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 first voltage average value of the sampling resistor is determined during the process of the warm water valve opening to the second opening.

[0100] For example, if the fourth step number is 1000 steps, 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, and the 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 to close 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 voltage average value of the sampling resistor is determined when the warm water valve is opened to the third opening.

[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 steps again (i.e. the first step) so that the current opening of the warm water valve is the fourth 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 third voltage average value of the sampling resistor is determined during the process of the warm water valve opening to the third opening.

[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 value, the second voltage average value, and the third voltage average value, it is determined 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.

[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 judged 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 definitely 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 warm water valve is controlled to be 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 warm water valve is controlled to be closed by the gap steps, and the second voltage average value will be smaller; the gap steps preliminarily determined before the warm water valve is controlled to be 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 understandable that if the preliminarily determined number of gap steps is accurate, the second voltage average value will be significantly smaller than the first voltage average value and the third voltage average value. Therefore, 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 means that the preliminarily determined number of gap steps is accurate, and the first number is the number of gap steps of 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 is 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 gap step number of the warm water valve is determined, 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 clearance 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 warm 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 the first difference threshold value. If the difference between the second load indication value and the first load indication value is greater than the first difference threshold value, continue to execute 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 value, return to execute step S1, and perform steps S1 to S6 again;

[0119] Step S7: preliminarily determine 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 for a fourth step, where the average value of the first voltage is recorded as c;

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

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

[0124] Step S12: Determine whether the difference between the first voltage average value c and the second voltage average value d is greater than the second difference threshold, and whether the difference between the third voltage average value e and the second voltage average value d is greater than the second difference threshold? If the difference between the first voltage average value c and the second voltage average value d is greater than the second difference threshold, and the difference between the third voltage average value e and the second voltage average value d is greater than the second difference threshold, then continue to execute step S13; if the difference between the first voltage average value c and the second voltage average value d is less than or equal to the second difference threshold, or the difference between the third voltage average value e and the second voltage average value d is less than or equal to the second difference threshold, then return to execute step S1, and perform steps S1 to S12 again;

[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 moves in the reverse direction, compensate for the reverse movement of the warm water valve through the gap steps.

[0127] Figure 4 A schematic diagram of a detection system for the number of steps of a warm water valve clearance provided in an embodiment of the present application, referring 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] A warm water valve, a drive circuit and a control module, wherein 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 arranged 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 used 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 used to control the warm water valve to open by a first step based on the current opening of the warm water valve being a first opening, and then control the warm water valve to open by a second step;

[0135] The acquisition unit 503 is used 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 opening the first step, 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 opening the second step;

[0136] The determination unit 504 is used to determine the first step number as the clearance 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 acquire 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 arranged 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 judging unit 505 includes:

[0144] The second control subunit is used for controlling the warm water valve to open a fourth step so that the current opening of the warm water valve is a second opening, and recording a first voltage average value of the sampling resistor during the process of the warm water valve opening to the second opening;

[0145] The third control subunit is used to control the number of closing steps of the warm water valve to reduce the gap on the basis that the current opening of the warm water valve is the second opening, so that the current opening of the warm water valve is the third opening, and record the second voltage average value of the sampling resistor in the process of closing the warm water valve to the third opening;

[0146] a fourth control subunit, for controlling the warm water valve to close the gap again by a number of steps based on the current opening of the warm water valve being the third opening, so that the current opening of the warm water valve is the fourth opening, and recording the third voltage average value of the sampling resistor during the process of the warm water valve being closed 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 among 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 judging subunit includes:

[0149] The first judgment unit is used to judge whether the determined number of clearance steps of the warm water valve is accurate 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;

[0150] The second judgment unit 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 used to execute the 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] Obtain 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 for the first step, 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 for the second step;

[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 as the clearance 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 embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0160] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for 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 some parts of the embodiments.

[0161] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments 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 "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence 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 interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0162] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be 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 will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for detecting the number of steps of a warm water valve gap, 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 be opened by a first step, and then controlling the warm water valve to be opened by a second step; Obtain 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 opening the first step, 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 opening the second step; 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 gap 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 degree of the warm water valve to be a first opening degree 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, characterized in that: The first load indication value and the second load indication value are voltage values ​​of a sampling resistor, and the sampling resistor is arranged on a driving circuit of the warm water valve.

4. The method according to claim 1, 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 1, characterized in that Determining whether the determined number of gap steps of the warm water valve is accurate includes: Controlling the warm water valve to open a fourth step so that the current opening of the warm water valve is a second opening, and recording the first voltage average value 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 close the gap step number so that the current opening of the warm water valve is 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; On the basis that the current opening of the warm water valve is the third opening, controlling the warm water valve to close the gap step again so that the current opening of the warm water valve is the fourth opening, and recording the third voltage average value of the sampling resistor in the process of the warm water valve opening and closing to the fourth opening; 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.

6. The method according to claim 5, characterized in that Judging whether the determined number of gap steps of the warm water valve is accurate according to the 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 judged 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 detection system for the number of steps of clearance of a warm water valve, characterized in that: The system comprises a warm water valve, a drive circuit and a control module, wherein the warm water valve comprises a drive motor; 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. The control module is used to execute the method according to any one of claims 1 to 6 when controlling the operation of the drive motor.

8. The method according to claim 7, characterized in that The control module comprises: A first control unit, 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; a second control unit, configured to control the warm water valve to open a first number of times based on the current opening of the warm water valve being the first opening, and then control the warm water valve to open a second number of times; 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 the load condition of the driving motor during the process of the warm water valve opening the first step, 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 opening the second step; A determination unit is used to determine the first step number as the clearance 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.

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

  • Driving control method and system for master-slave driving device

    CN112987609A

  • Motor gap automatic compensation method, terminal device and storage medium

    CN115632595A

  • engine control device for compensating backlash

    DE102016012626A1