Control method and system of water dispenser, electronic equipment and storage medium
By judging and performing the retraction action in the water dispenser based on the temperature difference and time interval in the water dispenser, the residual water is pumped back to the heating body, which solves the problem of the water temperature not meeting the standard after the water dispenser takes in water, improves the water temperature stability and equipment efficiency, and improves the user experience.
Patent Information
- Application Number
- CN202510922962.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2025-08-12
AI Technical Summary
After the traditional water dispenser takes water, the residual water in the outlet pipe fails to meet the water temperature due to cooling due to heat dissipation and cooling. The existing control strategies are insufficient to adapt to the user's water withdrawal frequency and ambient temperature changes, resulting in insufficient water temperature stability or waste of energy.
After the water withdrawal is completed, it determines whether the retraction action is triggered according to the preset conditions, and the residual water in the water outlet pipe between the water outlet and the heating body is pumped back to the heating body. The preset conditions include temperature difference and time interval, etc., and the motor is controlled to perform the retraction action in combination with the PID algorithm.
The precise treatment of residual water is achieved, which avoids the problem of water temperature not meeting standards, and reduces the energy waste caused by ineffective treatment, improving user experience and equipment operation efficiency.
Smart Images

Figure CN120458406A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of water dispenser control, and in particular to a control method, system, electronic device, and storage medium for a water dispenser. Background Art
[0002] With the increasing popularity of household water dispensers, users are increasingly demanding a stable water temperature. With traditional water dispensers, after a user draws water, the remaining water in the outlet pipe gradually cools due to heat exchange with the environment. This can cause the water temperature to deviate from the preset value during subsequent draws, impacting the user experience. Existing solutions treat this residual water through preset fixed time intervals or simple temperature control logic. However, due to factors such as fluctuations in user water draw frequency and changes in ambient temperature, the timing of residual water treatment is poorly aligned with actual demand, which can easily lead to insufficient water temperature stability or energy waste. Summary of the Invention
[0003] The technical problem to be solved by the present disclosure is to overcome the defects in the prior art that the residual water in the water dispenser after water is taken out causes the water temperature to not meet the standard due to heat dissipation and cooling in the pipeline, and the control strategy for the timing of residual water treatment is not adaptable enough to actual scenarios such as the user's water taking frequency and ambient temperature changes. A control method, system, electronic device and storage medium for a water dispenser are provided.
[0004] The present disclosure solves the above technical problems through the following technical solutions:
[0005] The present disclosure provides a control method for a water dispenser, the control method comprising:
[0006] In response to the completion of the water extraction action, whether to trigger the withdrawal action is determined according to the preset conditions;
[0007] In response to the withdrawal action being triggered, the withdrawal action is performed; the withdrawal action includes withdrawing the residual water in the water outlet pipe between the water outlet and the heating body back to the heating body.
[0008] Optionally, the preset condition includes at least one of the following: whether the temperature difference between the actual water temperature of the water outlet pipe and the preset temperature is greater than a temperature difference threshold; whether the time interval between the current moment and the last time the backflow action was performed is greater than a time interval threshold;
[0009] The determination of whether to trigger the withdrawal action according to the preset conditions includes any one of the following:
[0010] In response to the temperature difference being greater than the temperature difference threshold, triggering the retraction action;
[0011] In response to the time interval being greater than the time interval threshold, triggering the retraction action;
[0012] In response to the temperature difference being greater than the temperature difference threshold and the time interval being greater than the time interval threshold, the retraction action is triggered.
[0013] Optionally, the temperature difference threshold is determined based on a room temperature change rate and satisfies at least one of the following logics:
[0014] In response to the room temperature change rate being greater than zero, increasing the temperature difference threshold;
[0015] In response to the room temperature change rate being equal to zero, maintaining the temperature difference threshold unchanged;
[0016] In response to the room temperature change rate being less than zero, the temperature difference threshold is reduced.
[0017] Optionally, the time interval threshold is determined based on the average time interval of the user fetching water within a preset time period, and satisfies a positive correlation between the time interval threshold and the average time interval.
[0018] Optionally, performing the withdrawal action includes:
[0019] Determining the temperature difference between the actual water temperature of the water outlet pipe and a preset temperature;
[0020] Determine a proportional coefficient of a motor control variable based on the temperature difference and a PID algorithm;
[0021] The motor is controlled based on the proportional coefficient to perform the retraction action.
[0022] Optionally, the determining whether to trigger the withdrawal action according to a preset condition includes:
[0023] Determine whether the time point at which the water extraction action is completed is within a preset restricted time period;
[0024] In response to the time point not being within the preset limit period, it is determined whether a retraction action is triggered according to a preset condition.
[0025] The present disclosure also provides a control system for a water dispenser, the control system comprising:
[0026] A judgment module, configured to determine whether to trigger a backdraft action according to preset conditions in response to the completion of the water extraction action;
[0027] An execution module is used to execute the withdrawal action in response to the withdrawal action being triggered; the withdrawal action includes withdrawing the residual water in the water outlet pipe between the water outlet and the heating body back to the heating body.
[0028] Optionally, the preset condition includes at least one of the following: whether the temperature difference between the actual water temperature of the water outlet pipe and the preset temperature is greater than a temperature difference threshold; whether the time interval between the current moment and the last time the backflow action was performed is greater than a time interval threshold;
[0029] The determination of whether to trigger the withdrawal action according to the preset conditions includes any one of the following:
[0030] In response to the temperature difference being greater than the temperature difference threshold, triggering the retraction action;
[0031] In response to the time interval being greater than the time interval threshold, triggering the retraction action;
[0032] In response to the temperature difference being greater than the temperature difference threshold and the time interval being greater than the time interval threshold, the retraction action is triggered.
[0033] Optionally, the temperature difference threshold is determined based on a room temperature change rate and satisfies at least one of the following logics:
[0034] In response to the room temperature change rate being greater than zero, increasing the temperature difference threshold;
[0035] In response to the room temperature change rate being equal to zero, maintaining the temperature difference threshold unchanged;
[0036] In response to the room temperature change rate being less than zero, the temperature difference threshold is reduced.
[0037] Optionally, the time interval threshold is determined based on the average time interval of the user fetching water within a preset time period, and satisfies a positive correlation between the time interval threshold and the average time interval.
[0038] Optionally, the execution module is specifically configured to:
[0039] Determining the temperature difference between the actual water temperature of the water outlet pipe and a preset temperature;
[0040] Determine a proportional coefficient of a motor control variable based on the temperature difference and a PID algorithm;
[0041] The motor is controlled based on the proportional coefficient to perform the retraction action.
[0042] Optionally, the judgment module is specifically configured to:
[0043] Determine whether the time point at which the water extraction action is completed is within a preset restricted time period;
[0044] In response to the time point not being within the preset limit period, it is determined whether a retraction action is triggered according to a preset condition.
[0045] The present disclosure also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, wherein when the processor executes the computer program, the control method of the water dispenser described in any one of the above items is implemented.
[0046] The present disclosure further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements any of the above-mentioned methods for controlling a water dispenser.
[0047] The present disclosure further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the control method of the water dispenser described in any one of the above items is implemented.
[0048] On the basis of conforming to the common sense in this field, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present disclosure.
[0049] The positive progressive effect of the present disclosure is that the present disclosure dynamically determines whether to trigger the withdrawal action according to preset conditions (such as temperature difference, time interval, etc.) after the water withdrawal is completed, and executes the residual water withdrawal when triggered, thereby achieving precise control of the processing timing: it avoids the problem of substandard water temperature caused by long-term cooling of residual water, and reduces the energy waste caused by ineffective treatment, significantly improves the water temperature stability and equipment operation efficiency when the user draws water, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A flow chart of a method for controlling a water dispenser provided by an exemplary embodiment of the present disclosure;
[0051] Figure 2 A flowchart of step 101 is provided for an exemplary embodiment of the present disclosure;
[0052] Figure 3 A flowchart of step 102 is provided for an exemplary embodiment of the present disclosure;
[0053] Figure 4 A schematic diagram of a module of a control system for a water dispenser provided by an exemplary embodiment of the present disclosure;
[0054] Figure 5 The present invention provides a structural diagram of an electronic device according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0055] The present disclosure is further illustrated below by way of examples, but the present disclosure is not limited to the scope of the examples.
[0056] In the embodiments of the present disclosure, prefixes such as "first" and "second" are used only to distinguish different description objects and have no limiting effect on the position, order, priority, quantity or content of the described objects. In the embodiments of the present disclosure, the use of prefixes such as ordinal numbers to distinguish description objects does not constitute a restriction on the described objects. For the statement of the described objects, please refer to the description in the context of the embodiments, and the use of such prefixes should not constitute an unnecessary restriction. In addition, in the description of this embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
[0057] In the embodiments of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0058] Example 1
[0059] Figure 1 This is a flow chart of a control method for a water dispenser provided by an exemplary embodiment of the present disclosure. As can be seen from the figure, the control method includes:
[0060] Step 101: In response to the completion of the water extraction action, it is determined according to preset conditions whether a back-drawing action is triggered.
[0061] Step 101 is the core decision-making step in the water dispenser control method, determining whether a backdraft should be triggered. Its core logic is as follows: After a user completes a water draw, the system does not immediately trigger a backdraft. Instead, it first determines whether a backdraft is currently necessary based on preset conditions. This avoids ineffective backdrafts and improves device efficiency. After a user completes a water draw (e.g., returning a cup after receiving water), some unused water will remain in the outlet pipe. This water gradually cools due to heat exchange with the surrounding environment. If not promptly addressed, the water temperature may fall below the user's set target temperature upon the next water draw, impacting the user experience. Therefore, the system determines whether a backdraft should be triggered after a water draw, pumping the remaining water back to the heating element for reheating. However, not all water draws require a backdraft. For example, if a user frequently draws water, the remaining water may be quickly reused, and backdrafting would waste energy. Alternatively, if a user draws water at night and has no immediate need for water, backdrafting would increase noise. Therefore, the core of step 101 is to use "preset conditions" to filter out scenarios that truly require a backdraft, ensuring the accuracy of the backdraft.
[0062] Optionally, step 101 is the core link in the water dispenser control method for determining whether to trigger the withdrawal action. Its design purpose is to accurately screen the scenes requiring withdrawal through the hierarchical logic of "time limit" and "multi-condition trigger" to avoid invalid operations. Figure 2 , step 101 determines whether to trigger a withdrawal action according to preset conditions, including:
[0063] Step 1011: Determine whether the time point at which the water extraction operation is completed is within the preset restricted period. Step 1011 first checks whether the time point at which the water extraction operation is completed is within the "preset restricted period" (i.e., the period during which backdraft is prohibited);
[0064] Step 1012: In response to the current time point not being within the preset limit period, determine whether to trigger a retraction action based on preset conditions. In step 1012, if the current time point is not within the preset limit period, further determine whether to trigger a retraction based on "preset conditions" (such as temperature difference, time interval, etc.).
[0065] To ensure accurate understanding, the following terms need to be clarified:
[0066] Preset Restricted Time Periods: These are pre-stored or user-defined time periods during which the water backflow action is prohibited. These periods are based on the user's actual water usage habits and scenario requirements. Common types include: Fixed Public Time Periods, such as 11:00 PM to 6:00 AM daily (a late-night period of low water usage when users typically have no need to draw water); Dynamic Adjustment Time Periods, which automatically adjust based on the season or ambient temperature (such as 10:00 PM to 5:00 AM in the summer, when residual water cools slowly due to higher ambient temperatures and frequent backflow is unnecessary); and User-Defined Time Periods, which are special time periods manually set by the user through the dispenser's companion app or device panel (such as 6:00 PM to 10:00 PM on family gatherings, when users don't need additional backflow after concentrated water use).
[0067] Preset conditions: The core basis for determining whether a pullback is triggered during an unrestricted period. It includes two types of parameters:
[0068] Temperature difference: The difference between the actual water temperature of the outlet pipe and the target temperature set by the user (such as 45°C). If the difference exceeds the "temperature difference threshold" (a critical value dynamically adjusted according to the rate of change of room temperature), it means that the residual water has cooled significantly;
[0069] Time Interval: The time difference between the current time and the last time a water withdrawal was completed. If this interval exceeds the "Time Interval Threshold" (a critical value positively correlated with the user's historical average water withdrawal interval), it indicates that the user withdraws water infrequently, resulting in residual water remaining for an extended period of time.
[0070] Taking the daily water use scenario of a household as an example, assume that the device preset parameters are as follows: preset restricted period: 23:00-6:00 (midnight period) daily; historical average water collection interval: 2 hours (corresponding to a 2-hour interval threshold); current room temperature is stable (room temperature change rate = 0), and the temperature difference threshold is 2°C. The following example shows:
[0071] Example 1-1: Unrestricted Time Period + Temperature Difference Triggered Pullback
[0072] The user finished drawing water at 7:00 PM, and the current time, 7:00 PM, was outside the preset restricted time period (11:00 PM to 6:00 AM). At this point, the system detected that the actual water temperature in the outlet pipe was 42°C (preset temperature 45°C), with a temperature difference of 3°C (greater than the 2°C temperature difference threshold). Because the "temperature difference trigger condition" was met, the system triggered a recirculation action, pumping the remaining water back into the heating element for reheating.
[0073] Example 1-2: Unrestricted time period + time interval triggering retracement
[0074] The user completed water withdrawal at 6:00 PM, and the current time, 8:00 PM, is not within the preset restricted time period. The last water withdrawal occurred at 4:00 PM (4 hours apart), and the 4-hour interval is greater than the 2-hour threshold. At this point, even though the outlet water temperature is only 1°C below the preset temperature (a temperature difference of 1°C is less than 2°C), the system still triggers a water withdrawal due to the "time interval trigger condition" to prevent the residual water from cooling for an extended period of time.
[0075] Example 1-3: Within the restricted period + conditions are met but no retracement is triggered
[0076] The user completed water withdrawal at 11:30 PM, which falls within the preset restricted time period (11:00 PM to 6:00 AM). At this time, the actual water temperature in the outlet pipe is 41°C (a temperature difference of 4°C > 2°C), and three hours have passed since the last water withdrawal (a time interval of 3 hours > 2 hours). However, since it falls within the restricted time period, the system skips the triggering process and does not initiate the water withdrawal, thus reducing nighttime noise and energy consumption.
[0077] Example 1-4: Unrestricted time period + complex conditions triggering a pullback
[0078] The user completed water withdrawal at 5:00 PM, and the current time, 7:00 PM, is not within the restricted time period. The actual water temperature in the outlet pipe is 43°C (a temperature difference of 2°C, equal to the temperature difference threshold), and the last water withdrawal occurred at 4:30 PM (a 3-hour interval, greater than the 2-hour threshold). Because both the "temperature difference ≥ threshold" and "time interval > threshold" conditions are met, the system triggers a water withdrawal, balancing temperature urgency with time necessity.
[0079] Optionally, the preset conditions include at least one of the following: whether the temperature difference between the actual water temperature of the outlet pipe and the preset temperature is greater than a temperature difference threshold; whether the time interval between the current moment and the last time the backflow action was performed is greater than a time interval threshold.
[0080] "Pre-conditions" are the core rules used by the water dispenser control system to determine whether to trigger a backflow action. Their design goal is to quantify the degree of cooling of residual water and the frequency of user water use through quantitative indicators (temperature difference, time interval), thereby accurately determining the necessity of backflow. Specifically, there are two optional conditions (at least one of which triggers a backflow action):
[0081] The first preset condition: Is the temperature difference greater than the temperature difference threshold?
[0082] Definition: The "temperature difference between the actual water temperature in the outlet pipe and the preset temperature" refers to the difference between the actual temperature of the residual water in the outlet pipe (measured in real time by the temperature sensor) and the user-set target temperature (i.e., the "preset temperature," such as the common 45°C). The "temperature difference threshold" is a critical value dynamically adjusted based on the rate of change of the ambient temperature, used to determine whether the residual water has cooled to the point where it needs to be pumped back.
[0083] Purpose: Quantifies the degree of cooling of residual water by temperature difference. If the difference between the actual water temperature and the preset temperature exceeds the temperature difference threshold, it indicates that the residual water has cooled significantly, which may affect the temperature of the next water withdrawal. It is necessary to trigger a re-draw to draw the water back to the heating element for reheating.
[0084] The second preset condition: whether the duration interval is greater than the duration interval threshold
[0085] Definition: "The time interval between the current moment and the last time the water withdrawal action was performed" refers to the length of time from the completion of the last water withdrawal action to the completion of the current water withdrawal; "Time interval threshold" is a critical value that is positively correlated with the user's historical water withdrawal frequency and is used to determine whether the residual water stays in the pipeline for too long.
[0086] Purpose: Quantifies user water usage frequency by time interval. If the time interval exceeds the time interval threshold, it indicates that the user's water withdrawal frequency is low, and the residual water has been in the pipeline for too long and may have cooled significantly. Recirculation needs to be triggered to prevent the water temperature from not meeting the standard during the next withdrawal.
[0087] Therefore, whether the pullback action is triggered is determined based on the preset conditions, including any of the following:
[0088] First, in response to the temperature difference being greater than the temperature difference threshold, a retraction action is triggered;
[0089] Second, in response to the time interval being greater than the time interval threshold, a retraction action is triggered;
[0090] Third, in response to the temperature difference being greater than the temperature difference threshold and the time interval being greater than the time interval threshold, a retraction action is triggered.
[0091] Taking the daily water use scenario of a household user as an example, assume that the device preset parameters are as follows: preset temperature: 45°C; historical average water collection interval of the user: 2 hours (corresponding to a time interval threshold of 2 hours); current room temperature is stable (room temperature change rate = 0), and the temperature difference threshold is 2°C. The example is as follows:
[0092] Example 2-1: Retracement triggered by temperature difference only
[0093] The user finished drawing water at 7:00 PM. The current time, 7:00 PM, is outside the preset restricted time period (e.g., 11:00 PM to 6:00 AM). At this point, the system detects that the actual water temperature in the outlet pipe is 42°C (preset temperature 45°C), with a temperature difference of 3°C (>2°C threshold). Because the temperature difference exceeds the threshold, the system triggers a recirculation action, pumping the remaining water back into the heating element for reheating.
[0094] Example 2-2: Triggering a pullback only on the time interval
[0095] The user completed water withdrawal at 6:00 PM, and the current time, 8:00 PM, is not within the preset restricted period. The last water withdrawal occurred at 4:00 PM (4 hours apart), and the 4-hour interval is greater than the 2-hour threshold. At this point, even though the outlet water temperature is only 1°C below the preset temperature (a temperature difference of 1°C is less than 2°C), the system still triggers a water withdrawal because the interval exceeds the threshold, preventing the residual water from cooling for an extended period of time.
[0096] Example 2-3: Compound conditions triggering a pullback
[0097] The user completed water withdrawal at 5:00 PM, and the current time, 7:00 PM, is not within the restricted time period. The actual water temperature in the outlet pipe is 43°C (a temperature difference of 2°C, equal to the temperature difference threshold), and the last water withdrawal occurred at 4:30 PM (a 3-hour interval, greater than the 2-hour threshold). Because both the "temperature difference ≥ threshold" and "time interval > threshold" conditions are met, the system triggers a water withdrawal, balancing temperature urgency with time necessity.
[0098] Example 2-4: No pullback is triggered when both conditions are not met
[0099] The user completed water withdrawal at 20:00, which is not within the restricted time period. The actual water temperature in the outlet pipe is 44°C (a temperature difference of 1°C < 2°C), and the last water withdrawal occurred at 19:30 (an interval of 30 minutes, less than the 2-hour threshold). Since both conditions are not met, the system does not trigger a water withdrawal, thus avoiding energy waste.
[0100] The preset conditions use two quantitative metrics, "temperature difference" and "time interval," to determine the necessity of water withdrawal based on the "degree of residual water cooling" and "user water usage frequency," respectively. The temperature difference reflects the impact of ambient temperature fluctuations on residual water (e.g., a drop in room temperature in winter causes residual water to cool more quickly); the time interval reflects actual user water usage habits (e.g., frequent water withdrawals on weekdays and less frequent withdrawals on weekends). This "at least one of these two conditions triggers" design avoids misjudgments based on a single condition (e.g., relying solely on temperature difference, which can lead to ineffective water withdrawals due to frequent user withdrawals, or relying solely on time intervals, which can result in substandard water temperatures due to sudden ambient cooling). It also significantly improves the accuracy and adaptability of the withdrawal strategy through a dynamic adjustment mechanism that adapts to different scenarios.
[0101] Optionally, the temperature difference threshold is determined based on the room temperature change rate and satisfies at least one of the following logics: in response to the room temperature change rate being greater than zero, the temperature difference threshold is increased; in response to the room temperature change rate being equal to zero, the temperature difference threshold is kept unchanged; in response to the room temperature change rate being less than zero, the temperature difference threshold is reduced.
[0102] The "temperature difference threshold" is a parameter used in the water dispenser control system to quantify the "critical temperature value at which residual water needs to be pumped back." Its core function is to dynamically adjust the threshold based on the ambient temperature change trend (room temperature change rate) to make the pumping strategy more adaptable to the current environmental conditions and avoid misjudgments caused by ambient temperature fluctuations (such as when the residual water cools quickly in winter, the threshold is too small, resulting in frequent pumping; or when the residual water cools slowly in summer, the threshold is too large, resulting in substandard water temperature).
[0103] "Room temperature change rate" refers to the rate of change of ambient temperature over time, which can be expressed in degrees Celsius per minute (°C / min). It reflects the rising, stable, or falling trend of the ambient temperature. Based on the sign (positive or negative) of the room temperature change rate, it can be divided into three categories:
[0104] Room temperature change rate > 0: The ambient temperature is on an upward trend (for example, when the heating is turned on in winter, the room temperature rises by 0.1°C per minute);
[0105] Room temperature change rate = 0: The ambient temperature remains stable (e.g., in spring and autumn when the temperature difference between day and night is small, the room temperature remains basically unchanged);
[0106] Room temperature change rate < 0: The ambient temperature is decreasing (for example, in the summer night without air conditioning, the room temperature drops by 0.2°C per minute).
[0107] The adjustment logic of the temperature difference threshold is directly related to the room temperature change rate. The specific rules are as follows:
[0108] Rule 1-1: When the room temperature change rate is greater than 0, increase the temperature difference threshold
[0109] When the ambient temperature rises, the cooling rate of the residual water slows down due to the increased ambient temperature (the higher the ambient temperature, the smaller the temperature difference between the residual water and the surrounding environment). If a low temperature difference threshold is still used, the residual water may be triggered to withdraw before it has cooled significantly, resulting in energy waste. Therefore, the system needs to increase the temperature difference threshold to delay the withdrawal action. For example, assume the initial temperature difference threshold is 2°C (when the room temperature is stable). If the room temperature is detected to be rising at a rate of 0.1°C / min, the system increases the temperature difference threshold to 3°C. At this point, if the actual water temperature in the outlet pipe is 42°C (preset temperature 45°C) and the temperature difference is 3°C (equal to the increased threshold), the withdrawal action will be triggered. If the temperature difference is only 2°C (below the threshold), the withdrawal action will not be triggered.
[0110] Rule 1-2: When the room temperature change rate = 0, keep the temperature difference threshold unchanged
[0111] When the ambient temperature is stable, the cooling rate of the residual water is affected only by the temperature difference between the current ambient temperature and the preset temperature, with no additional trend changes. At this point, the temperature difference threshold does not need to be adjusted; maintain the default value (e.g., 2°C) to ensure the stability of the withdrawal strategy. For example, in spring and autumn, the temperature difference between day and night is small, and the room temperature is stable at around 25°C (rate of change ≈ 0). The system maintains a temperature difference threshold of 2°C. If the actual water temperature in the outlet pipe is 43°C (preset temperature 45°C) and the temperature difference is 2°C (equal to the threshold), withdrawal is triggered; if the water temperature is 44°C (temperature difference 1°C), it is not triggered.
[0112] Rule 1-3: When the room temperature change rate is less than 0, reduce the temperature difference threshold
[0113] When the ambient temperature drops, the residual water cools faster due to the lower ambient temperature (the lower the ambient temperature, the greater the temperature difference between the residual water and the surrounding water). If a large temperature difference threshold is still used at this time, the residual water may cool significantly before the water withdrawal is triggered, affecting the next water withdrawal temperature. Therefore, the system needs to reduce the temperature difference threshold to trigger the withdrawal earlier. For example, during winter nights without heating, the room temperature drops at a rate of 0.2°C / min. The system reduces the temperature difference threshold from 2°C to 1°C. At this time, if the actual water temperature in the outlet pipe is 44°C (preset temperature 45°C) and the temperature difference is 1°C (equal to the reduced threshold), the withdrawal is triggered. If it only drops to 44.5°C (a temperature difference of 0.5°C), the withdrawal is not triggered.
[0114] Optionally, a formula for dynamically adjusting the temperature difference threshold may be as follows:
[0115] ;
[0116] Parameter Description:
[0117] : Temperature difference threshold after dynamic adjustment (℃);
[0118] : Basic temperature difference threshold (such as 2°C in the embodiment);
[0119] : Room temperature change rate (℃ / min);
[0120] k: sensitivity coefficient (the recommended value range is 0.5~2, which is calibrated by experiments);
[0121] sign(*): Sign function (+1 when room temperature rises, -1 when it falls, and 0 when it is stable).
[0122] The temperature difference threshold is a dynamic adjustment mechanism based on the room temperature change rate. Essentially, it predicts the cooling rate of residual water by using the ambient temperature trend, thereby optimizing the timing of withdrawal.
[0123] When the room temperature rises, the threshold is increased → the withdrawal is delayed to avoid energy waste;
[0124] Maintaining the threshold when the room temperature is stable → ensuring the strategy is stable;
[0125] When the room temperature drops, the threshold is reduced → the pump is withdrawn in advance to prevent the water temperature from not meeting the standard.
[0126] This mechanism effectively solves the problems of "backflow lag" or "ineffective backflow" caused by ambient temperature fluctuations in traditional fixed threshold solutions, and significantly improves the water temperature control accuracy and user experience of water dispensers in different seasons and environments.
[0127] Optionally, the time interval threshold is determined based on the average time interval of the user fetching water within a preset time period, and satisfies a positive correlation between the time interval threshold and the average time interval.
[0128] Time interval threshold: The critical value (e.g., unit: hours / minutes) used by the water dispenser control system to determine whether "residual water stays in the pipe for too long" is one of the time conditions for triggering the backflow action;
[0129] Preset time period: The time range predefined by the device for counting users' water usage habits (such as the last 7 days, 14 days, or 1 month), which must cover the user's typical water usage cycle;
[0130] Average interval duration: The average time interval between two consecutive water withdrawal actions within a preset time period (unit: hours / minutes), reflecting the user's actual water usage frequency;
[0131] Positive correlation: The duration interval threshold increases as the average duration increases, and decreases as the average duration decreases, and the two change trends are consistent.
[0132] Frequent water users (such as households): The averaging interval is short (e.g., 1 hour). If the threshold is fixed at 3 hours, the residual water will be back-pumped before it cools down, resulting in energy waste.
[0133] Low-frequency water users (such as those who occasionally use water in offices): The averaging interval is long (for example, 6 hours). If the threshold is fixed at 3 hours, the residual water has obviously cooled but the pumping is not triggered, resulting in the water temperature not meeting the standard for the next water withdrawal.
[0134] Therefore, the time interval threshold needs to be dynamically adjusted according to the user's actual average interval duration to ensure that the withdrawal strategy is highly adapted to the user's water usage habits.
[0135] The positive correlation between the duration interval threshold and the average interval duration is achieved in the following way:
[0136] Rule 2-1: Calculate the average interval duration within the preset time period
[0137] The device uses a built-in storage module to record the timestamps of all water withdrawals made by the user within a preset time period (e.g., the last 30 days). It then calculates the time intervals between each of these withdrawals and takes the average value as the "average interval duration." For example, if a user's water withdrawal timestamps over the last 30 days are: 8:00, 9:30, 11:00, 1:15:00, 1:45:00, and 5:30:00 (a total of six withdrawals), the consecutive intervals are 1.5 hours, 1.5 hours, 2.17 hours, 2.5 hours, and 1.75 hours, respectively. The average interval duration is (1.5 + 1.5 + 2.17 + 2.5 + 1.75) ÷ 5, which is approximately 1.88 hours.
[0138] Rule 2-2: Set the interval threshold based on the average interval duration
[0139] The duration interval threshold is linearly positively correlated with the average interval duration. For example, the specific formula can be:
[0140] ;
[0141] in:
[0142] : duration interval threshold;
[0143] : average interval duration;
[0144] k: Proportional coefficient (calibrated according to device characteristics, usually 1.2-1.5, to ensure that the threshold is slightly higher than the average interval to avoid misjudgment due to accidental factors).
[0145] Rule 2-3: Dynamic Update Mechanism
[0146] The device needs to regularly (for example, every morning) recalculate the average interval duration within the preset time period and update the interval threshold to ensure that it always reflects the user's current water usage habits.
[0147] Example 3-1: Frequent water users (short averaging interval → small threshold)
[0148] User A is a household user, the preset time period is the last 7 days, and the average interval is 1.5 hours (high frequency water collection). According to the formula , the time interval threshold is 1.2×1.5=1.8 hours. At this time:
[0149] If the time interval between the user's water withdrawal and the last water withdrawal is 2 hours (>1.8 hours threshold), a water withdrawal is triggered;
[0150] If the interval is 1.5 hours (<1.8 hour threshold), no retraction is triggered (to avoid wasting energy due to frequent retractions).
[0151] Example 3-2: Infrequent water users (long averaging interval → large threshold)
[0152] User B is an office user, the preset time period is the last 30 days, and the average interval is 6 hours (low frequency water extraction). According to the formula , the time interval threshold is 1.3×6=7.8 hours. At this time:
[0153] If the time interval between the user's water withdrawal and the last water withdrawal is 8 hours (>7.8 hours threshold), a water withdrawal is triggered (to prevent the residual water from cooling for a long time);
[0154] If the interval is 7 hours (less than the 7.8-hour threshold), no pullback is triggered (reducing invalid operations).
[0155] Example 3-3: Dynamic adjustment after user water usage habits change
[0156] User C used to draw water frequently (average interval of 2 hours, threshold of 2.4 hours), but recently switched to less frequent draws (average interval of 8 hours over the past 7 days) due to a business trip. After the device recalculates, the threshold is updated to 1.2 × 8 = 9.6 hours. This triggers a drawback only when the interval since the last drawback exceeds 9.6 hours, preventing policy failures due to changes in user habits.
[0157] The interval threshold is dynamically adjusted based on the average interval duration of each user. Essentially, it "learns" users' water usage habits through their historical behavior data, ensuring that the withdrawal strategy closely matches actual demand.
[0158] High-frequency users: The threshold is smaller to avoid frequent back-pumping due to uncooled residual water;
[0159] Low-frequency users: The threshold is higher to avoid the water temperature being affected by overcooling of residual water;
[0160] Dynamic updates: Ensure that strategies remain accurate even when users’ water usage habits change (e.g., during business trips, seasonal changes).
[0161] This mechanism effectively solves the "one-size-fits-all" drawback of the traditional fixed threshold solution, and significantly improves the water temperature control accuracy and user experience of water dispensers in different user scenarios.
[0162] Step 102: In response to the back-drawing action being triggered, the back-drawing action is performed; the back-drawing action includes drawing the residual water in the water outlet pipe between the water outlet and the heating body back to the heating body.
[0163] Step 102 is the core execution link of the "back-drawing action" in the water dispenser control method. Its design purpose is to use physical means to draw the residual water in the water outlet pipe back to the heating body to solve the problem of substandard water temperature caused by the cooling of the residual water. After step 101 determines that the back-drawing action needs to be triggered (that is, the temperature difference or time interval conditions outside the time period limit are met), step 102 is responsible for performing the specific back-drawing operation. Its core function is to draw the residual water that has cooled or may cool in the water outlet pipe back to the heating body for reheating, ensuring that the water temperature in the pipe meets the target temperature set by the user (such as 45°C) when water is drawn next time, avoiding a decline in user experience due to the cooling of residual water.
[0164] The realization of the backflow action depends on the hardware system of the water dispenser, which mainly includes the following key components and processes:
[0165] 1. Core execution components
[0166] Motor: provides power to drive water pumps or other pumping devices;
[0167] Water pump: pressurizes the residual water in the outlet pipe to make it flow in the reverse direction (from the outlet to the heating element);
[0168] Piping design: The outlet pipe must have reverse conduction capability (usually controlled by a one-way valve or solenoid valve) to ensure that residual water can be drawn back to the heating element instead of continuing to flow to the outlet;
[0169] Heating body: Receives the withdrawn residual water and reheats it to a preset temperature (such as 45°C) in preparation for the next water withdrawal.
[0170] 2. Execution process
[0171] After step 101 triggers the back-pumping action, the system executes in the following order: the motor starts to drive the water pump; the water pump is pressurized, and the residual water in the outlet pipe is pumped in the reverse direction (flowing from the water outlet to the heating body); the residual water enters the heating body through the pipe, and the heating body reheats it to the preset temperature; after the heating is completed, the residual water is stored in the heating body or directly enters the insulation state, waiting for the next water withdrawal.
[0172] 4. Specific examples
[0173] Example 4-1: Scenario of high-frequency water collection by household users
[0174] User A completes water withdrawal at 7:00 PM (triggering a backflow action). The system detects that the remaining water in the outlet pipe is 42°C (preset temperature 45°C, 3°C temperature difference > 2°C threshold), and that the last backflow has occurred 3 hours (> 2 hours threshold). Step 102 executes the backflow action: the motor starts, the water pump increases pressure, and the remaining 30 mL of water in the outlet pipe is pumped back into the heating element. The heating element heats at medium-high power, heating the 30 mL of water from 42°C to 45°C in 30 seconds. After heating is complete, the remaining water is stored in the heating element. When the user draws water again at 7:15 PM, they receive 45°C hot water directly, without mixing with cooling water.
[0175] Example 4-2: User low-frequency water collection scenario
[0176] User B, an office worker, only draws water at 9:00 AM and 3:00 PM (with an average interval of 6 hours). After the user draws water at 9:00 AM, the system detects that the remaining water temperature is 44°C (a temperature difference of 1°C < the 2°C threshold). However, the interval since the last water withdrawal is 6 hours (> the 4-hour threshold. Since the user's historical average interval is 6 hours, the interval threshold = 1.3 × 6 = 7.8 hours). Assuming the interval threshold is 7 hours (adjusted for this example), a water withdrawal is triggered. Step 102 executes the water withdrawal: the motor starts, and the water pump pumps the 50 mL of water remaining in the outlet pipe back to the heater. The heater heats at low power (to avoid frequent activation), heating the 50 mL of water from 44°C to 45°C within 10 minutes. When the user draws water at 3:00 PM, the remaining water has been reheated and the water temperature meets the standard.
[0177] Example 4-3: Pullback verification when the ambient temperature drops suddenly
[0178] During winter nights, the room temperature drops at a rate of 0.2°C / min (room temperature change rate < 0, the temperature difference threshold is reduced to 1°C). User C draws water at 22:00. The residual water in the outlet pipe is 44°C (preset temperature 45°C, 1°C temperature difference = temperature difference threshold), triggering a water backflow. Step 102 executes the backflow: the residual water is pumped back into the heating element, rapidly heating it to 45°C. Due to the low ambient temperature, if the residual water had not been pumped back, the water temperature would have dropped to 40°C after 30 minutes, affecting water draws the next day. However, the backflow ensures that the water temperature remains at 45°C when water is drawn the next day.
[0179] Step 102, through the coordinated operation of the "motor-water pump-pipeline-heating element," pumps back and reheats the remaining water, directly resolving the issue of substandard water temperature caused by residual water cooling. Detailed design features, such as flow sensors and check valves, ensure accurate return water volume and control of water flow direction. This, combined with the "conditional trigger" in step 101, forms a complete closed loop, achieving a balanced balance between stable water temperature control and optimal energy consumption.
[0180] Step 102 is the core link of "executing the back-pumping action" in the water dispenser control method. Its design purpose is to accurately control the motor operation through the PID algorithm to draw the residual water in the water outlet pipe back to the heating body. When step 101 determines that the back-pumping action needs to be triggered (that is, the temperature difference or time interval conditions outside the time period limit are met), step 102 is responsible for executing the specific back-pumping operation. Since the temperature of the residual water may change due to environmental heat exchange after the back-pumping is triggered (such as the residual water continues to cool in the pipe), step 102 needs to go through the closed-loop process of "temperature re-measurement-algorithm calculation-motor control" to ensure that the strength of the back-pumping action accurately matches the actual cooling degree of the residual water, avoiding "over-pumping" (evacuating the pipe) or "under-pumping" (the residual water is not completely pumped back). Optionally, see Figure 3 The execution of the withdrawal action in step 102 includes:
[0181] Step 1021: Determine the temperature difference between the actual water temperature of the outlet pipe and the preset temperature;
[0182] Definition: "Actual water temperature" refers to the real-time temperature of the residual water in the outlet pipe after the backflow action is triggered (measured again by the temperature sensor); "Preset temperature" refers to the target temperature set by the user (such as 45°C); "Temperature difference" refers to the difference between the two ( ).
[0183] Purpose: The conditions that trigger the backflow (e.g., the temperature difference threshold in step 101) may be based on historical data. However, during the actual cooling process, the residual water temperature may drop further due to ambient temperature fluctuations (e.g., sudden drops). Therefore, step 1021 requires re-measuring the actual water temperature to ensure that the backflow force is consistent with the current cooling level of the residual water.
[0184] Step 1022: Determine a proportional coefficient of the motor control variable according to the temperature difference and based on a PID algorithm;
[0185] The "PID algorithm" (proportional-integral-differential control algorithm) is a classic control strategy that adjusts the control quantity through the combination of "proportional term (P)", "integral term (I)" and "differential term (D)". In this solution, only the proportional term (P) is used, that is, the "proportional coefficient , used to quickly respond to changes in temperature difference. Calculation formula:
[0186] ;
[0187] in:
[0188] : Basic proportional coefficient of PID algorithm (factory preset, such as 0.5);
[0189] : The temperature difference measured in step 1021;
[0190] : The base value of the temperature difference (such as 2°C, used to normalize the effect of the temperature difference on the proportionality factor).
[0191] Function: The greater the temperature difference, the more serious the residual water cooling, and the larger the proportional coefficient is required to increase the motor control amount (such as increasing the water pump speed) to accelerate the pumping; the smaller the temperature difference, the smaller the proportional coefficient is to avoid over-pumping.
[0192] If the temperature difference is 0 (residual water is not cooled), then , the motor runs at the base speed;
[0193] Proportional coefficient The value range of ), to prevent the motor from overloading or running too slowly.
[0194] Step 1023: Control the motor to perform a retraction action based on the proportional coefficient.
[0195] The "motor control quantity" refers to the motor's input power or speed (speed in this solution), which is determined by the proportional coefficient Directly determine. The motor drives the water pump to pump the residual water in the outlet pipe back to the heating element.
[0196] Execution logic:
[0197] when When it increases, the motor speed increases, the water pump's pressure capacity increases, and the pumping speed increases;
[0198] when When it decreases, the motor speed decreases and the retraction speed slows down.
[0199] 3. Specific examples
[0200] Example 5-1: Scenario of frequent water collection by household users (significant temperature differences)
[0201] User A finishes drawing water at 19:00, and step 101 triggers the backflow action (temperature difference 3°C > 2°C threshold). Step 102 performs the backflow:
[0202] Step 1021: The temperature sensor re-measures the actual water temperature of the water pipe and finds it is 42°C (the preset temperature is 45°C). ; Step 1022: Basic scale factor , benchmark value ,but ;
[0203] Step 1023: The motor runs at 1.25 times the base speed (for example, the base speed is 1000 rpm and the current speed is 1250 rpm). The water pump increases pressure to quickly pump the remaining 30 mL of water back to the heating element (taking 15 seconds).
[0204] The heating body heated 30mL of water from 42℃ to 45℃, and the water temperature met the standard when the user took water again at 19:20.
[0205] Example 5-2: User low-frequency water collection scenario (small temperature difference)
[0206] User B is an office worker who draws water every 6 hours on average. After the user draws water at 9:00, the system triggers a water withdrawal because the "time interval > threshold". Step 102 executes the water withdrawal:
[0207] Step 1021: The temperature sensor re-measures the actual water temperature of the water pipe and finds it is 44°C (the preset temperature is 45°C). ;
[0208] Step 1022: ;
[0209] Step 1023: The motor runs at 0.75 times the base speed (e.g., 750 rpm), and the water pump slowly pumps back the remaining 50 mL of water (taking 30 seconds).
[0210] The heating element heats 50 mL of water from 44°C to 45°C, and the water temperature meets the standard when the user draws water again at 15:00.
[0211] Example 5-3: Pullback verification when the ambient temperature drops suddenly
[0212] During winter nights, the room temperature drops at a rate of 0.2°C / min (the temperature difference threshold is reduced to 1°C). User C draws water at 22:00, and step 101 triggers a water withdrawal (temperature difference 1°C = threshold). Step 102 executes the withdrawal:
[0213] Step 1021: The temperature sensor re-measures the actual water temperature to be 44°C (the preset temperature is 45°C). ;
[0214] Step 1022: ;
[0215] Step 1023: The motor runs at 0.75 times the base speed to pump back the remaining 40 mL of water;
[0216] Due to the low ambient temperature, if the residual water is not pumped back, it will drop to 40℃ after 30 minutes (affecting water collection the next day). However, through back-pumping, the heating body will reheat it to 45℃, ensuring that the water temperature meets the standard for water collection the next day.
[0217] Step 102 achieves precise control of the backflow action through a closed-loop process of "temperature retesting-PID proportional control-motor drive": Temperature retesting solves the problem of potential temperature fluctuations in the residual water after triggering the backflow, preventing misjudgment; PID proportional control dynamically adjusts the motor speed based on temperature differences, balancing the requirements of "fast backflow" and "avoiding over-pumping"; and the coordinated design of the motor drive, water pump, and piping ensures the controllability and efficiency of the backflow volume. This process, along with the "conditional triggering" in step 101, forms a complete closed loop, jointly achieving a balance between stable water temperature control and optimized energy consumption in the water dispenser.
[0218] Example 1 effectively solves the pain points of traditional water dispenser backflow strategies through the technical logic of "time limit - multi-condition trigger - PID precise control", significantly improving user experience and device performance. The specific technical effects are as follows:
[0219] 1. Accurately control the timing of withdrawal to avoid ineffective withdrawal and substandard water temperature
[0220] Traditional water dispensers, due to fixed triggering conditions (such as timing or simple temperature control), are prone to two extremes: either frequent backdrafts (when users have no water demand), resulting in energy waste and noise interference, or delayed backdrafts (after residual water is overcooled), resulting in substandard water temperature for the next water draw. Example 1 achieves "precise triggering" through the following design:
[0221] Time-limited pre-filtering: excludes low-water consumption periods such as late nights and holidays to avoid ineffective backdrafts;
[0222] Dynamic threshold triggering: The temperature difference threshold adjusts with the room temperature change rate (lowering the threshold to advance pumping when the ambient temperature drops, and increasing the threshold to delay pumping when the temperature rises). The time interval threshold adjusts with the user's water withdrawal frequency (lowering the threshold to avoid over-pumping for high-frequency users and increasing the threshold to reduce interference for low-frequency users).
[0223] Compound condition verification: The withdrawal is triggered only when both the temperature difference and the time interval are met. This ensures that the withdrawal is only executed when "residual water may affect the water temperature" to comprehensively avoid misjudgment.
[0224] 2. PID algorithm enables precise withdrawal, balancing efficiency and energy consumption
[0225] When performing the retraction action, Example 1 uses the PID algorithm to dynamically adjust the proportional coefficient of the motor control amount according to the real-time temperature difference to achieve "on-demand retraction":
[0226] The greater the temperature difference, the stronger the pumping force: the more severe the residual water cooling (the greater the temperature difference), the PID algorithm increases the proportional coefficient, increases the motor speed, and accelerates the pumping of cooling water to prevent it from cooling further;
[0227] The smaller the temperature difference, the weaker the pumping force: the residual water is cooled less (the smaller the temperature difference), and the PID algorithm reduces the proportional coefficient, which reduces the motor speed and avoids excessive pumping (such as air entering the pipeline due to emptying the pipeline);
[0228] Real-time remeasurement and correction: After triggering the backflow, the actual water temperature is measured again to correct the measurement error of the initial temperature difference and ensure that the control amount is consistent with the current residual water state.
[0229] 3. Adapt to diverse scenarios and improve system robustness
[0230] Example 1 uses a dynamic parameter adjustment mechanism to adapt to different user habits and environmental conditions, significantly improving system adaptability:
[0231] User habit adaptation: By collecting statistics on users' historical water withdrawal intervals, the time interval threshold is dynamically adjusted (high-frequency users have a lower threshold, while low-frequency users have a higher threshold), preventing policy failures caused by changes in user water usage frequency.
[0232] Adapt to environmental changes: Dynamically adjust the temperature difference threshold based on the room temperature change rate (the threshold is small when the temperature drops, and large when the temperature rises) to cope with environmental fluctuations such as seasonal changes and day-night temperature differences;
[0233] Compatibility with special scenarios: Supports user-defined time periods (such as family gatherings) and device preset time periods (such as statutory holidays), covering user personalized needs.
[0234] 4. Energy saving, noise reduction and improved user experience
[0235] Energy saving: Time limits are used to reduce ineffective pumping (e.g., no pumping late at night), and precise PID control is used to reduce ineffective motor operation (e.g., under-pumping or over-pumping). Overall energy consumption is reduced by approximately 30% compared to traditional solutions.
[0236] Noise reduction: Avoids water flow noise caused by high-frequency backflow (such as when users frequently draw water), improving the comfort of the home environment;
[0237] Stable experience: Ensures that the water temperature reaches the standard rate of more than 95% when the water is drawn next time (experimental data), solving the problem of water temperature fluctuation caused by residual water cooling in traditional solutions.
[0238] The specific values in the above embodiments, such as the temperature difference threshold (e.g., 2°C), time interval threshold (e.g., 2 hours), PID algorithm parameters (e.g., proportional coefficient Kp = 0.5), temperature sensor sampling period (e.g., 1 second), and motor control protocol (e.g., PWM speed regulation), are provided for illustrative purposes only. Their actual values can be adjusted based on the specific application scenarios, such as the water dispenser model, heater power, pipe length, ambient temperature range, and user water usage habits. Furthermore, the water dispenser control method and system disclosed herein are particularly suitable for systemic drinking water devices that include water purification functions (e.g., pipeline dispensers and central water purification systems). These devices typically connect the water purification device to the water storage tank / heating element through fixed piping. When users draw water through the tap, the water flows through a relatively long pipe. After water is drawn from such devices, the residual water in the pipes can easily cool due to heat exchange with the surrounding environment. Furthermore, the pipe length and water purification process (e.g., RO reverse osmosis, ultrafiltration, etc.) impose unique requirements on the treatment of this residual water. The recirculation strategy of the present invention can effectively solve the temperature fluctuation problem caused by residual water retention in such systems by dynamically adapting pipeline characteristics and water purification process parameters.
[0239] Example 2
[0240] Corresponding to the aforementioned embodiment of the control method of the water dispenser, the present disclosure also provides an embodiment of a control system of the water dispenser.
[0241] Figure 4 A schematic diagram of a control system for a water dispenser according to an exemplary embodiment of the present disclosure is provided. The system includes:
[0242] The present disclosure also provides a control system for a water dispenser, the control system comprising:
[0243] The judgment module 21 is used to judge whether to trigger the withdrawal action according to preset conditions in response to the completion of the water extraction action;
[0244] The execution module 22 is configured to execute the back-drawing action in response to the back-drawing action being triggered; the back-drawing action includes drawing the residual water in the water outlet pipe between the water outlet and the heating body back to the heating body.
[0245] Optionally, the preset condition includes at least one of the following: whether the temperature difference between the actual water temperature of the outlet pipe and the preset temperature is greater than a temperature difference threshold; whether the time interval between the current moment and the last time the backflow action was performed is greater than a time interval threshold;
[0246] Determine whether to trigger a pullback action based on preset conditions, including any of the following:
[0247] In response to the temperature difference being greater than the temperature difference threshold, a retraction action is triggered;
[0248] In response to the time interval being greater than the time interval threshold, a retraction action is triggered;
[0249] In response to the temperature difference being greater than the temperature difference threshold and the time interval being greater than the time interval threshold, a retraction action is triggered.
[0250] Optionally, the first temperature difference threshold is determined based on a room temperature change rate and satisfies at least one of the following logics:
[0251] In response to the room temperature change rate being greater than zero, increasing the temperature difference threshold;
[0252] In response to the room temperature change rate being equal to zero, the temperature difference threshold is kept unchanged;
[0253] In response to the room temperature change rate being less than zero, the temperature difference threshold is decreased.
[0254] Optionally, the time interval threshold is determined based on the average time interval of the user fetching water within a preset time period, and satisfies a positive correlation between the time interval threshold and the average time interval.
[0255] Optionally, the execution module 22 is specifically configured to:
[0256] Determine the temperature difference between the actual water temperature of the outlet pipe and the preset temperature;
[0257] Determine the proportional coefficient of the motor control quantity based on the temperature difference and the PID algorithm;
[0258] The motor is controlled based on the proportional coefficient to perform the retraction action.
[0259] Optionally, the judging module 21 is specifically configured to:
[0260] Determine whether the time point at which the water extraction action is completed is within a preset restricted time period;
[0261] In response to the time point not being within the preset limit period, it is determined whether a retraction action is triggered according to preset conditions.
[0262] Since the system embodiments generally correspond to the method embodiments, reference will be made to the description of the method embodiments for relevant details. The system embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components of the 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 based on actual needs to achieve the objectives of the disclosed solution.
[0263] Example 3
[0264] Figure 5This is a structural diagram of an electronic device shown in an example embodiment of the present disclosure, wherein the electronic device includes a memory, a processor, and a computer program stored in the memory and for running on the processor, and when the processor executes the computer program, the control method of the water dispenser described in any of the above embodiments is implemented. Figure 5 The electronic device 90 shown is only an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.
[0265] like Figure 5 As shown, the electronic device 90 may be a general-purpose computing device, such as a server device. Components of the electronic device 90 may include, but are not limited to, the at least one processor 91, the at least one memory 92, and a bus 93 connecting different system components (including the memory 92 and the processor 91).
[0266] The bus 93 includes a data bus, an address bus, and a control bus.
[0267] The memory 92 may include a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read-only memory (ROM) 923 .
[0268] The memory 92 may also include a program tool 925 (or utility) having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.
[0269] The processor 91 executes various functional applications and data processing by running the computer program stored in the memory 92, such as the control method of the water dispenser provided in any of the above embodiments.
[0270] The electronic device 90 can also communicate with one or more external devices 94 (e.g., a keyboard, pointing device, etc.). This communication can occur via an input / output (I / O) interface 95. Furthermore, the electronic device 90 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 96. As shown, the network adapter 96 communicates with other modules of the electronic device 90 via a bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 90, including but not limited to microcode, device drivers, redundant processors, external disk drive arrays, RAID (RAID) systems, tape drives, and data backup storage systems.
[0271] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.
[0272] Example 4
[0273] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the control method for the water dispenser provided in any of the above embodiments.
[0274] The readable storage medium may include, but is not limited to, a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0275] Example 5
[0276] An embodiment of the present disclosure further provides a computer program product, comprising a computer program, which implements any of the above-mentioned methods for controlling a water dispenser when executed by a processor.
[0277] The program code for executing the computer program product of the present disclosure may be written in any combination of one or more programming languages, and the program code may be executed entirely on the user device, partially on the user device, as a standalone software package, partially on the user device and partially on a remote device, or entirely on the remote device.
[0278] While specific embodiments of the present disclosure have been described above, those skilled in the art will appreciate that these are merely illustrative and that the scope of protection of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, and such changes and modifications are intended to fall within the scope of protection of the present disclosure.
Claims
1. A method for controlling a water dispenser, characterized in that: The control method includes: In response to the completion of the water extraction action, whether to trigger the withdrawal action is determined according to the preset conditions; In response to the withdrawal action being triggered, the withdrawal action is performed; the withdrawal action includes withdrawing the residual water in the water outlet pipe between the water outlet and the heating body back to the heating body.
2. The control method according to claim 1, characterized in that: The preset condition includes at least one of the following: whether the temperature difference between the actual water temperature of the outlet pipe and the preset temperature is greater than a temperature difference threshold; whether the time interval between the current moment and the last time the backflow action was performed is greater than a time interval threshold; The determination of whether to trigger the withdrawal action according to the preset conditions includes any one of the following: In response to the temperature difference being greater than the temperature difference threshold, triggering the retraction action; In response to the time interval being greater than the time interval threshold, triggering the retraction action; In response to the temperature difference being greater than the temperature difference threshold and the time interval being greater than the time interval threshold, the retraction action is triggered.
3. The control method according to claim 2, characterized in that: The temperature difference threshold is determined based on the room temperature change rate and satisfies at least one of the following logics: In response to the room temperature change rate being greater than zero, increasing the temperature difference threshold; In response to the room temperature change rate being equal to zero, maintaining the temperature difference threshold unchanged; In response to the room temperature change rate being less than zero, the temperature difference threshold is reduced.
4. The control method according to claim 2, characterized in that: The time interval threshold is determined based on the average time interval of the user fetching water within a preset time period, and satisfies a positive correlation between the time interval threshold and the average time interval.
5. The control method according to claim 1, characterized in that: The performing of the withdrawal action comprises: Determining the temperature difference between the actual water temperature of the water outlet pipe and a preset temperature; Determine a proportional coefficient of a motor control variable based on the temperature difference and a PID algorithm; The motor is controlled based on the proportional coefficient to perform the retraction action.
6. The control method according to claim 1, characterized in that: The step of determining whether to trigger a retraction action according to a preset condition includes: Determine whether the time point at which the water extraction action is completed is within a preset restricted time period; In response to the time point not being within the preset limit period, it is determined whether a retraction action is triggered according to a preset condition.
7. A control system for a water dispenser, characterized in that: The control system includes: A judgment module, configured to determine whether to trigger a backdraft action according to preset conditions in response to the completion of the water extraction action; An execution module is used to execute the withdrawal action in response to the withdrawal action being triggered; the withdrawal action includes withdrawing the residual water in the water outlet pipe between the water outlet and the heating body back to the heating body.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and configured to run on the processor, wherein: When the processor executes the computer program, the control method of the water dispenser according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the control method of the water dispenser according to any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the control method of the water dispenser according to any one of claims 1 to 6 is implemented.