Water dispenser, control method and control device thereof, and computer readable storage medium
By switching heating power and flow control according to temperature difference in the water dispenser, the problems of shortened hardware life and high energy consumption caused by the water dispenser heating scheme are solved, and a more stable water temperature and lower energy consumption are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- FOSHAN MIDEA CHUNGHO WATER PURIFICATION MFG
- Filing Date
- 2025-02-27
- Publication Date
- 2026-06-02
AI Technical Summary
Existing water dispenser heating solutions result in shortened hardware lifespan, excessive energy consumption, and unstable water temperature.
By determining the temperature difference inside the hot tank and controlling the heating element with different power levels according to the temperature difference, a relay is used for high-power rapid heating, while a power control device maintains the temperature with low power. The water pump is used to adjust the flow rate to stabilize the outlet water temperature.
It extends the lifespan of the relay, reduces energy consumption, and improves the stability and accuracy of the outlet water temperature.
Smart Images

Figure CN119908590B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of water dispenser technology, and in particular to a water dispenser control method, a water dispenser control device, a water dispenser, and a computer-readable storage medium. Background Technology
[0002] Currently, water dispensers with heating functions typically use thermal relays for heating. When the water temperature in the heating tank is lower than the preset insulation temperature, the heating element is controlled to heat at high power; when it exceeds the target heating temperature, heating stops. This results in the water in the heating tank being repeatedly heated, creating "repeatedly boiled water." Furthermore, since the lifespan of a relay is usually limited, repeatedly starting and stopping the relay during the insulation process significantly reduces its lifespan, and the high-power heating method also leads to unnecessary energy waste.
[0003] The information disclosed in this background section is only for understanding the background technology of the present application concept, and therefore may contain information that does not constitute prior art. Summary of the Invention
[0004] The main objective of this application is to provide a water dispenser control method, a water dispenser control device, a water dispenser, and a computer-readable storage medium, aiming to solve the technical problems of current water dispenser heating schemes affecting hardware lifespan and excessive energy consumption.
[0005] To achieve the above objectives, this application provides a water dispenser control method, applied to a water dispenser. The water dispenser includes a heating tank and a power control device. The heating tank includes a heating element, and the power control device is connected to the heating element. The water dispenser control method includes:
[0006] Determine the temperature difference between the target heating temperature corresponding to the hot tank and the real-time temperature of the water in the hot tank;
[0007] When the temperature difference is greater than a preset temperature difference threshold, the water in the hot tank is heated by the heating element based on a first heating power;
[0008] When the temperature difference is less than or equal to a preset temperature difference threshold, the power controller controls the heating element to heat the water in the hot tank based on a second heating power, wherein the first heating power is greater than the second heating power.
[0009] In one embodiment, the step of controlling the heating element to heat the water in the hot tank based on a second heating power via the power control device includes:
[0010] The power controller transmits a PWM signal corresponding to the second heating power to the power controller and generates a control signal corresponding to the PWM signal through the power controller.
[0011] The power controller transmits the control signal to the heating element to control the heating element to operate based on the second heating power.
[0012] In one embodiment, before the step of transmitting the PWM signal corresponding to the second heating power to the power control device, the method further includes:
[0013] Based on the preset mapping relationship between temperature difference and second heating power, the second heating power corresponding to the temperature difference is determined, wherein the temperature difference and the second heating power are positively correlated.
[0014] In one embodiment, the water dispenser further includes a relay connected to the heating element, and the step of heating the water in the hot water tank by the heating element based on a first heating power includes:
[0015] Set the relay to the connected state and transmit the control signal corresponding to the first heating power to the heating element to control the heating element to work based on the first heating power;
[0016] When the temperature difference between the target heating temperature and the real-time temperature of the water in the hot tank is less than or equal to a preset temperature difference threshold, the relay is set to the off state.
[0017] In one embodiment, the water dispenser further includes a water pump, and the method further includes:
[0018] The cold water flow rate difference is determined based on the target outlet water temperature, current cold water temperature, current cold water flow rate, current hot water temperature, and current hot water flow rate of the water dispenser.
[0019] The target duty cycle of the water pump is determined based on the cold water flow difference, wherein the water pump is located on the cold water passage of the water dispenser and is used to regulate the cold water flow.
[0020] The water pump is controlled based on the target duty cycle to reduce the temperature difference between the water outlet temperature and the target water outlet temperature.
[0021] In one embodiment, the step of determining the cold water flow rate difference based on the target outlet water temperature of the water dispenser, the current cold water temperature, the current cold water flow rate, the current hot water temperature, and the current hot water flow rate includes:
[0022] The target water outlet temperature, current cold water temperature, current cold water flow rate, current hot water temperature, and current hot water flow rate of the water dispenser are collected.
[0023] Substituting the target outlet water temperature, current cold water temperature, current hot water temperature, and current hot water flow rate of the water dispenser into a preset heat exchange function, the target cold water flow rate of the water dispenser is obtained.
[0024] The difference in cold water flow rate is obtained based on the target cold water flow rate and the current cold water flow rate.
[0025] In addition, this application also provides a water dispenser control device, applied to a water dispenser, the water dispenser control device comprising at least:
[0026] The temperature difference determination module is used to determine the temperature difference between the target heating temperature of the hot tank and the real-time temperature of the water in the hot tank.
[0027] A high-power heating module is used to heat the water in the hot tank based on a first heating power through the heating element when the temperature difference is greater than a preset temperature difference threshold.
[0028] A low-power heating module is used to control the heating element to heat the water in the hot tank based on a second heating power when the temperature difference is less than or equal to a preset temperature difference threshold, wherein the first heating power is greater than the second heating power.
[0029] In addition, this application also provides a water dispenser, which includes at least a heating tank, a power control device, and a control unit. The heating tank includes a heating element, and the power control device is connected to the heating element. The control unit includes at least a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is configured to implement the steps of the water dispenser control method applied to the water dispenser as described above.
[0030] In one embodiment, the water dispenser further includes a relay, a cold water passage, and a hot water passage. The relay is connected to the heating element. The cold water passage and the hot water passage are respectively equipped with a temperature sensor, a water pump, and a flow meter. The temperature sensor and the flow meter are respectively connected to the control unit.
[0031] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the water dispenser control method described above.
[0032] In addition, to achieve the above objectives, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the water dispenser control method described above.
[0033] This application provides a water dispenser control method, applied to a water dispenser. The water dispenser includes a heating tank and a power controller. The heating tank includes a heating element, and the power controller is connected to the heating element. The water dispenser control method includes: first determining the temperature difference between a target heating temperature corresponding to the heating tank and the real-time temperature of the water in the heating tank; when the temperature difference is greater than a preset temperature difference threshold, heating the water in the heating tank using the heating element based on a first heating power; when the temperature difference is less than or equal to the preset temperature difference threshold, controlling the heating element using the power controller to heat the water in the heating tank using a second heating power, wherein the first heating power is greater than the second heating power. In this application's technical solution, when the real-time temperature in the heating tank differs significantly from the target heating temperature, a higher first heating power is used for rapid heating, quickly raising the water temperature to near the target heating temperature. When the real-time temperature of the water in the tank approaches the target heating temperature, the power controller is used to control the heating element to perform low-power heating. This avoids frequent starting and stopping of the relay after the real-time temperature approaches the target heating temperature, reducing the relay's lifespan, and is more energy-efficient than continuous high-power heating. On the other hand, using a power controller to heat the water in the tank at a low power when the water temperature is close to the target heating temperature can also avoid the generation of a large number of bubbles in the hot tank, which would affect the accuracy of the water flow detection and the water mixing temperature control accuracy of the water dispenser. Attached Figure Description
[0034] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0035] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 This is a flowchart illustrating an embodiment of a water dispenser control method applied to a water dispenser in this application.
[0037] Figure 2 This is a schematic diagram of the temperature control water circuit principle of a water dispenser in an embodiment of this application;
[0038] Figure 3 This is a schematic diagram of a feasible water dispenser control process in an embodiment of this application;
[0039] Figure 4 This is a schematic diagram of the structural composition of the water dispenser control device in the embodiments of this application;
[0040] Figure 5 This is a schematic diagram of the hardware operating environment involved in the water dispenser control method in the embodiments of this application.
[0041] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0042] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0043] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0044] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0045] The water dispenser in this embodiment can be a water purifier and heater integrated water dispenser, which is a water drinking device that integrates water purification and heating functions. Its advantages mainly include convenience, health and safety, energy saving and environmental protection, multi-functionality, and aesthetics. Currently, mainstream water purifier and heater integrated products generally suffer from problems such as excessive power consumption for heating and unstable water temperature at the warm water setting, failing to meet user preferences. Specifically, the industry generally uses a thermal relay for high-power heating of the hot water tank. Heating starts when the temperature is below the insulation temperature point and stops when it is above the target heating temperature point, resulting in repeatedly heated water in the hot water tank, creating "repeatedly boiled water." Since the lifespan of the relay is limited, repeated starting and stopping of the relay will significantly reduce its lifespan. In addition, the warm water setting of the product is generally achieved by directly mixing cold and hot water. Because it is impossible to obtain real-time data such as temperature and flow rate for feedback adjustment, the water temperature stability is insufficient.
[0046] To overcome the aforementioned technical deficiencies, this application provides a water dispenser control method for use in a water dispenser. The water dispenser includes a heating tank and a power controller. The heating tank includes a heating element, and the power controller is connected to the heating element. (Refer to...) Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the water dispenser control method of this application. The water dispenser control method includes:
[0047] Step S10: Determine the temperature difference between the target heating temperature of the hot tank and the real-time temperature of the water inside the hot tank;
[0048] The water dispenser can be a water purifier (i.e., a machine that integrates water purification and hot water functions), with a heating tank used to store water before and after heating. Specifically, the heating system of the heating tank can use a relay for high-power heating, which has advantages such as fast response speed, high reliability, and overload protection. However, it also has drawbacks such as limited switching capacity, poor repeatability, and unstable starting current. Additionally, the water dispenser can include cold water and hot water pathways, ultimately mixing the cold and hot water and dispensing warm water through a faucet. Flow meters and temperature sensors can be installed in the cold and hot water pathways to collect the corresponding water temperature and flow rate. The target water temperature set by the user can also be obtained through communication or cloud-based means via the water dispenser's control board (or control unit).
[0049] It should be noted that a temperature sensor can also be installed inside the heating tank to collect the real-time temperature of the water inside. The target heating temperature of the heating tank is usually a system preset default value, for example, the target heating temperature can be between 90℃ and 100℃. The water temperature output by the heating tank is relatively high, so that it can be mixed with the cold water in the cold water passage in a certain proportion, thereby outputting warm water that meets the target outlet water temperature.
[0050] Specifically, the temperature difference between the target heating temperature and the real-time temperature of the water in the hot tank refers to the difference between the target heating temperature and the real-time temperature. It can be a positive or negative number. The larger the temperature difference, the farther the real-time temperature is from the target heating temperature. When the temperature difference is positive, the real-time temperature of the water is lower than the target heating temperature and further heating is required. When the temperature difference is negative, the real-time temperature of the water is higher than the target heating temperature.
[0051] Step S20: When the temperature difference is greater than the preset temperature difference threshold, the water in the hot tank is heated by the heating element based on the first heating power.
[0052] It should be noted that the preset temperature difference threshold can be customized according to the actual operating conditions of the water dispenser. For example, 10℃ means that if the target heating temperature of the hot water tank is H... 目标 ℃, then the real-time temperature is lower than (H 目标 At -10℃, the water in the hot water tank can be heated at high power using heating elements (such as heating wires, heating rods, or other heating components) based on a default first heating power. Here, the first heating power is the water dispenser's default (or maximum) heating power. In this way, the water dispenser can rapidly heat the water in the tank even when the real-time temperature differs significantly from the target heating temperature, ensuring heating efficiency.
[0053] Step S30: When the temperature difference is less than or equal to a preset temperature difference threshold, the heating element is controlled by the power controller to heat the water in the hot tank based on the second heating power, wherein the first heating power is greater than the second heating power.
[0054] During the process of raising the water temperature in the tank from room temperature to the target heating temperature, after the water is rapidly heated by the heating element at the first heating power in step S20, the real-time temperature will approach the target heating temperature. When the temperature difference is small, to avoid excessive energy consumption caused by continuous high-power heating, and to maintain the water temperature in the tank near the target heating temperature while avoiding frequent starting and stopping of the relay controlling the heating element at the first heating power, the technical solution of this application introduces a power control device to achieve low-power heating. The power control device can be used to control the power input to the heating element; for example, a silicon controlled rectifier (SCR) is a high-power electrical component, also known as a thyristor. It has advantages such as small size, high efficiency, and long lifespan. In automatic control systems, it can be used as a high-power driving device to realize the control of high-power equipment with low-power controls. It also has wide applications in AC / DC motor speed control systems, power regulation systems, and servo systems. When a thyristor controls the heating element in a water dispenser, the principle is to change the heating input voltage by adjusting the conduction angle of the thyristor, which can effectively adjust the heating power to control the temperature and reduce power consumption.
[0055] It is understandable that the second heating power is significantly lower than the first heating power. Furthermore, during the operation of the heating element based on the second heating power, it can adaptively change according to the real-time temperature, thereby ensuring that the real-time temperature of the water in the tank is not much different from the target heating temperature.
[0056] In one feasible embodiment, after the temperature difference between the target heating temperature corresponding to the hot tank and the real-time temperature of the water in the hot tank equals 0, the SCR can continue to control the heating element to continue heating the water with a relatively small power, achieving a heat preservation effect. In another feasible embodiment, after the temperature difference between the target heating temperature corresponding to the hot tank and the real-time temperature of the water in the hot tank equals 0, the SCR can also control the heating element to stop heating, wait for the temperature difference to reach a preset temperature difference threshold, and then restart to continue heating the water based on a second heating power. This also helps to avoid the relay's lifespan being affected by frequent start-stop cycles.
[0057] This application provides a water dispenser control method, applied to a water dispenser. The water dispenser includes a heating tank and a power controller. The heating tank includes a heating element, and the power controller is connected to the heating element. The water dispenser control method includes: first determining the temperature difference between a target heating temperature corresponding to the heating tank and the real-time temperature of the water in the heating tank; when the temperature difference is greater than a preset temperature difference threshold, heating the water in the heating tank using the heating element based on a first heating power; when the temperature difference is less than or equal to the preset temperature difference threshold, controlling the heating element using the power controller to heat the water in the heating tank using a second heating power, wherein the first heating power is greater than the second heating power. In the technical solution of this application, when the real-time temperature inside the hot tank differs significantly from the target heating temperature, a higher initial heating power is used for rapid heating, quickly raising the water temperature inside the tank to near the target heating temperature. When the real-time temperature of the water inside the tank approaches the target heating temperature, a power controller is used to control the heating element to perform low-power heating. This avoids frequent starting and stopping of the relay after the real-time temperature approaches the target heating temperature, reducing the relay's lifespan, and is more energy-efficient than continuous high-power heating. Furthermore, using a power controller for low-power heating when the water inside the tank approaches the target heating temperature also prevents the generation of a large number of air bubbles inside the hot tank, which could affect the accuracy of water flow detection and the mixing and temperature control accuracy of the water dispenser.
[0058] Furthermore, in a feasible embodiment, the step of controlling the heating element to heat the water in the hot tank based on the second heating power via the power control device may include:
[0059] Step S31: Transmit the PWM signal corresponding to the second heating power to the power controller, and generate the control signal corresponding to the PWM signal through the power controller;
[0060] Step S32: A control signal is transmitted to the heating element through the power controller to control the heating element to operate based on the second heating power.
[0061] In the process of controlling the heating element of a water dispenser through a power controller, the water dispenser's control board (or control unit) needs to send corresponding control signals to the power controller, specifically PWM (Pulse Width Modulation) signals. Simultaneously, the PWM signal is a chopper signal, a signal used for power control. Its working principle is to chop the AC signal, converting it into a DC signal to control electrical equipment (such as the heating element). The chopper signal is generated by a microprocessor or other controller, encoded, and converted into a control signal, which is then used to control the on / off state of the switch. Specifically, the chopper signal processing involves chopping the AC signal within a certain time period, converting it into a pulse signal similar to a DC signal, and then smoothing it into a stable DC signal through a filtering circuit for use by power equipment. Therefore, the chopper signal can control the magnitude and waveform of the DC voltage output from the AC power supply.
[0062] In the technical solution of this application embodiment, the PWM signal can carry the second heating power information through its voltage information, so that the average power of the heating element is equal to the second heating power. That is, after the control unit of the water dispenser transmits the PWM signal to the power control device, the power control device can further process the PWM signal and generate a corresponding control signal and send it to the heating element. The control signal enables the heating element to work according to the second heating power, so as to achieve the effect of heating the water in the tank with low power.
[0063] Furthermore, prior to the step of transmitting the PWM signal corresponding to the second heating power to the power control device, the method may further include:
[0064] Step A10: Based on the preset mapping relationship between temperature difference and second heating power, determine the second heating power corresponding to the temperature difference, wherein the temperature difference and the second heating power are positively correlated.
[0065] In the technical solution of this application embodiment, the value of the second heating power can change with the temperature difference during the process of the power controller controlling the heating element to work, thereby ensuring that the temperature of the water in the tank is continuously maintained near the target heating temperature (e.g., within ±2℃).
[0066] Staff can pre-determine the mapping relationship between temperature difference and secondary heating power through experiments or tests. This mapping relationship can be displayed using a two-dimensional mapping table or mapping function, allowing for the lookup or calculation of the corresponding secondary heating power based on the current temperature difference. Specifically, the larger the temperature difference, the greater the secondary heating power; if the temperature difference is negative, the secondary heating power remains at a relatively low value. In particular, when the temperature difference is 0, the value of the secondary heating power is related to the heat dissipation of the water in the hot water tank; the faster the heat dissipation, the higher the secondary heating power, ensuring that the real-time temperature of the water in the tank is closer to the target heating temperature.
[0067] In this embodiment, the value of the second heating power is adaptively adjusted based on the temperature difference and a preset mapping relationship, so that the power controller can control the heating element to work more energy-efficiently and have a better heat preservation effect, so as to output warm water with a more stable temperature.
[0068] In one feasible embodiment, the water dispenser further includes a relay connected to a heating element, wherein the step of heating the water in the hot tank by the heating element based on a first heating power includes:
[0069] Step S21: Set the relay to the connected state and transmit the control signal corresponding to the first heating power to the heating element to control the heating element to work based on the first heating power;
[0070] Step S22: When the temperature difference between the target heating temperature and the real-time temperature of the water in the hot tank is less than or equal to the preset temperature difference threshold, the relay is set to the off state.
[0071] In this embodiment, a relay is used to control the heating element to rapidly heat the water in the heating tank at a first heating power. The relay has two states: a connected state and a disconnected state. In the connected state, the heating element receives the control signal corresponding to the first heating power (i.e., the signal corresponding to the highest heating power) and operates. In the disconnected state, the connection between the relay and the heating element is interrupted, and the heating element cannot operate at the first heating power. It needs to receive other control signals to continue operating, such as control signals transmitted by a power controller.
[0072] Specifically, when the heating element needs to heat the water in the hot tank at high power, the relay is set to the connected state. When the temperature difference between the target heating temperature and the real-time temperature of the water in the hot tank is less than or equal to the preset temperature difference threshold, according to the water dispenser control method of this application embodiment, the heating element needs to be controlled by the power control device to operate at low power with the second heating power. At this time, the relay needs to be interrupted so that the heating element cannot receive the control signal corresponding to the first heating power.
[0073] For example, in conjunction with the content of the foregoing application embodiments, the hot tank heating method of this application embodiment is divided into relay (W) NO Control of high-power heating and power control devices (W) SCR There are two methods to control low-power heating. For example, suppose the target heating temperature of the hot tank is H. 目标 When the actual water temperature of the hot tank is lower than (H 目标 -10)℃ using W NO Perform rapid heating, then switch to W. SCR Continue heating to the target heating temperature H 目标 Subsequent use of low-power heating can effectively prevent the generation of a large number of bubbles inside the hot water tank from affecting the hot water flow rate detection. Specifically, when the water temperature in the hot water tank is higher than (H... 目标 After -10℃, W SCR Heat to target heating temperature H 目标 The power of the heating element is adjusted by regulating the control signal output by the power controller, so that the temperature of the hot tank remains constant at (H). 目标 Within ±2)℃, improve the temperature control accuracy of the output warm water after mixing hot and cold water.
[0074] In this embodiment, the relay is switched on and off based on the temperature difference between the target heating temperature and the real-time temperature. The stage approaching the target heating temperature is completed by the low-power heating method of the power control device, which avoids frequent start-stop of the relay and extends the service life of the relay.
[0075] In one feasible embodiment, the water dispenser further includes a water pump, and the water dispenser control method may further include:
[0076] Step S40: Determine the cold water flow rate difference based on the target outlet water temperature of the water dispenser, the current cold water temperature, the current cold water flow rate, the current hot water temperature, and the current hot water flow rate.
[0077] Step S50: Determine the target duty cycle of the water pump based on the cold water flow difference, wherein the water pump is located on the cold water passage of the water dispenser and is used to regulate the cold water flow.
[0078] Specifically, the step of determining the target duty cycle of the water pump based on the difference in cold water flow rate may include: substituting the difference in cold water flow rate into a preset proportional-integral control function to obtain the target duty cycle of the water pump.
[0079] Specifically, the chilled water pump can adjust the chilled water flow rate by adjusting its own opening angle. During the control process, the current duty cycle of the chilled water pump is used as the target control quantity, and the chilled water flow rate difference Δq is used as the input quantity for differential control.
[0080] For example, the control formula can be expressed as:
[0081]
[0082] The above control formula is a commonly used PID control formula in the field of control, where D is the target duty cycle, and K... p T t T D The control parameters are obtained by engineers through laboratory testing of the water dispenser and are pre-set in the water dispenser's control unit.
[0083] In one feasible embodiment, the control unit of the water dispenser starts to adjust the duty cycle of the cold water pump after the hot and cold water are mixed, and performs control adjustment at a preset frequency, with an execution time interval of Δg between each two executions.
[0084] Step S60: Control the water pump to operate based on the target duty cycle in order to reduce the temperature difference between the water dispenser's outlet temperature and the target outlet temperature.
[0085] The water dispenser in this embodiment outputs warm water at a target outlet temperature by mixing hot and cold water. The target outlet temperature can be set by the user. The current cold water temperature and current hot water temperature are collected by temperature sensors, and the current cold water flow rate and current hot water flow rate are collected by flow meters. The cold water flow rate difference represents the difference between the current cold water flow rate and the target cold water flow rate, whereby the target cold water flow rate represents the required cold water flow rate to bring the current outlet water temperature to the target outlet temperature.
[0086] The duty cycle of the water pump determines the cold water flow rate. Understandably, a larger duty cycle results in a larger cold water flow rate. Once the current cold water flow rate difference is determined, a target duty cycle can be set to adjust the current cold water flow rate, bringing the cold water flow rate difference closer to zero. This ensures that the temperature of the warm water output by the water dispenser approaches the target outlet temperature.
[0087] When determining the target duty cycle of the chilled water pump based on the difference in chilled water flow rate, it can be based on the PID (Proportional Integral Derivative) control formula commonly used in the current control field, or determined by engineers through experiments and other means to establish the correspondence between the difference in chilled water flow rate and the target duty cycle.
[0088] It should be noted that in systems where the hot water pump speed is not adjustable or has a narrow adjustable range, the highest temperature inside the hot water tank in the hot water path generally does not exceed 99°C and the water flow rate is relatively stable. However, the inlet water temperature and pressure in the cold water path are related to the region and environment where the water dispenser is used, and the outlet temperature and flow rate of the cold water after passing through the pump cannot be guaranteed. This can lead to a lower temperature of the mixed warm water under certain extreme conditions, such as low inlet water temperature or high inlet water pressure. Since the hot water path is controlled by the hot water tank through the hot water pump, and the hot water outlet flow rate and temperature are within the design range, this embodiment of the application needs to control the outlet flow rate of the cold water end, using the cold water flow rate as the control target to achieve precise temperature control.
[0089] After determining the target duty cycle, a control command can be sent to the water pump to adjust its duty cycle to the target value. Since the target duty cycle corresponds to the difference in cold water flow, it can make the current cold water flow of the water dispenser tend to the target cold water flow, thereby making the water temperature of the water dispenser as close as possible to the target water temperature, reducing the temperature difference between the water temperature and the target water temperature, and improving the user experience.
[0090] For example, the temperature control water circuit of the water dispenser in the embodiments of this application is as follows: Figure 2 As shown, a temperature sensor, a cold water pump, and a flow meter are sequentially installed in the cold water flow path, and a temperature sensor, a hot water pump, and a flow meter are installed in the hot water flow path. The cold and hot water are mixed to form warm water, which is then output to the outside through a faucet. The water dispenser's control board (or control unit) can obtain the cold water temperature T from the sensor in the cold water path. 冷 The current hot water temperature T is obtained through a sensor in the hot water circuit. 热 The real-time cold water flow rate q is obtained through hot water flow meter and cold water flow meter. 冷 and hot water flow rate q 热 In addition, the control motherboard obtains the user-set target outlet water temperature T via communication or the cloud. 目标 .
[0091] In one feasible embodiment, the step of determining the cold water flow rate difference based on the target outlet water temperature of the water dispenser, the current cold water temperature, the current cold water flow rate, the current hot water temperature, and the current hot water flow rate may include:
[0092] Step S11: Collect the target water outlet temperature, current cold water temperature, current cold water flow rate, current hot water temperature, and current hot water flow rate of the water dispenser;
[0093] The target outlet water temperature is set by the user, the current cold water temperature and current hot water temperature are collected by temperature sensors installed in the cold water passage and hot water passage, and the current cold water flow rate and current hot water flow rate are collected by flow meters installed in the cold water passage and hot water passage.
[0094] Step S12: Substitute the target outlet water temperature, current cold water temperature, current hot water temperature and current hot water flow rate of the water dispenser into the preset heat exchange function to obtain the target cold water flow rate of the water dispenser.
[0095] Step S13: Obtain the cold water flow difference based on the target cold water flow rate and the current cold water flow rate.
[0096] In the water dispenser control method of this application embodiment, the target cold water flow rate is used as the control target, and the difference between the target and the actual cold water flow rate (i.e., the cold water flow rate difference) is used for PID control. Specifically, the control motherboard applies commands with different duty cycles to the water pump to achieve different flow rate control, thereby achieving constant temperature control of the warm water outlet temperature.
[0097] Furthermore, when determining the target cold water flow rate for a water dispenser, it is necessary to consider parameters such as the target outlet water temperature, current cold water temperature, current cold water flow rate, current hot water temperature, and current hot water flow rate. This is because the target cold water flow rate is a target control quantity that will make the water dispenser's outlet water temperature closer to the target outlet water temperature. To determine this target control quantity, it is necessary to base it on the principle of heat exchange between the hot and cold water inside the water dispenser.
[0098] For example, the formula for thermal energy can be expressed as: Q=c*m*Δt;
[0099] Where Q is heat, c is specific heat capacity, m is mass, and Δt is the temperature change amplitude.
[0100] During the mixing of cold and hot water, the cold water absorbs heat and the hot water releases heat. The target is to achieve the desired outlet water temperature T after mixing. 目标 According to the law of conservation of energy, the amount of heat absorbed by cold water is equal to the amount of heat released by hot water, expressed mathematically as follows:
[0101] c*m 冷 *(T 目标 -T 冷 )=c*m 热 *(T 热 -T 目标 );
[0102] Where, m 冷 It refers to the quality of cold water, T. 冷 The temperature of the cold water before heat absorption is m. 热 For hot water quality, T 热 The temperature of the hot water before heat release.
[0103] During the stable water dispensing process of the water dispenser, it can be determined that m = q * t, where m is the water dispensing command, q is the water flow rate, and t is the water dispensing time. Therefore, the above formula can be transformed into:
[0104] q 冷 *(T 目标 -T 冷 )=q 热 *(T 热 -T 目标 );
[0105] According to this formula, the target outlet water temperature T can be input. 目标 (User settings), Current cold water temperature T 冷 (Temperature sensor data), current hot water flow rate q 热 (Flow meter data), Current hot water temperature T 热 The target cold water flow rate is calculated from parameters such as (temperature sensor data).
[0106] Finally, calculate the target cold water flow rate. With the current cold water flow rate q 冷 The difference between the two values is used to obtain the cold water flow rate difference Δq, which is then used for feedback control with the cold water flow rate as the control target.
[0107] Furthermore, in a feasible embodiment, after the step of determining the cold water flow difference based on the target outlet water temperature of the water dispenser, the current cold water temperature, the current cold water flow rate, the current hot water temperature, and the current hot water flow rate, the method may further include:
[0108] Step S41: Determine whether the absolute value of the cold water flow rate difference is greater than the preset flow rate difference;
[0109] If the value is greater than the target value in step S15, then proceed to step S20: determine the target duty cycle of the water pump based on the difference in cold water flow rate.
[0110] Step S16: If it is less than or equal to, then keep the duty cycle of the water pump unchanged.
[0111] Based on the aforementioned embodiments, after the water dispenser system stabilizes its water output, the theoretical target cold water flow rate is first determined. Then based on the actual cold water flow rate collected By comparing these values, the difference in cold water flow rate at this moment is obtained as Δq.
[0112] Furthermore, to avoid frequent adjustments to the duty cycle of the cold water pump by the water dispenser system, the aforementioned hot water flow difference Δq can be compared with a preset flow difference value, which can also be understood as the minimum adjustable flow value of the cold water pump. Custom settings can be customized according to actual needs.
[0113] For example, if Then the next temperature adjustment process can be performed, the duty cycle of the chilled water pump is re-determined, and step S50 is executed. If Then there is no need to perform temperature adjustment. Keep the duty cycle of the cold water pump unchanged, skip steps S50 and S60, and return to step S40 after waiting for the preset time interval.
[0114] In one feasible embodiment, prior to the step of controlling the pump operation based on the target duty cycle, the method may further include:
[0115] Step A10: Determine the duty cycle adjustment value based on the target duty cycle and the current duty cycle of the water pump;
[0116] Step A20: If the absolute value of the duty cycle adjustment amplitude is less than the first adjustment amplitude, then determine the updated target duty cycle based on the current duty cycle and the first adjustment amplitude.
[0117] Step A30: If the absolute value of the duty cycle adjustment amplitude is greater than the second adjustment amplitude, then determine the updated target duty cycle based on the current duty cycle and the second adjustment amplitude.
[0118] Wherein, the first adjustment amplitude is smaller than the second adjustment amplitude, and the updated target duty cycle is used to control the operation of the water pump.
[0119] After determining the target duty cycle of the water dispenser's cold water pump, the difference between the two can be calculated by combining the current duty cycle of the cold water pump, thereby determining the required duty cycle adjustment range. It's understood that during the adjustment process, the system pre-sets a minimum (i.e., the first adjustment range) and a maximum (i.e., the second adjustment range) for a single change in the duty cycle. Therefore, the duty cycle adjustment range cannot exceed the range corresponding to the minimum and maximum values of a single duty cycle change.
[0120] Therefore, after determining the duty cycle adjustment amplitude ΔD, if the absolute value of ΔD is within [D... min D max Within this range, the pump's duty cycle can be adjusted based on ΔD to make the adjusted duty cycle the target duty cycle. If ΔD is less than D... min Then based on D min The duty cycle of the water pump is adjusted according to the value of ΔD. If ΔD is positive, then D is added to the current duty cycle. min Once the updated target duty cycle is obtained, if ΔD is negative, then subtract D from the current duty cycle. min The updated target duty cycle is obtained. Similarly, if ΔD is greater than D... max Then based on D max The duty cycle of the water pump is adjusted according to the value of ΔD. If ΔD is positive, then D is added to the current duty cycle. maxOnce the updated target duty cycle is obtained, if ΔD is negative, then subtract D from the current duty cycle. max The updated target duty cycle is obtained.
[0121] Finally, the operation of the cold water pump is controlled based on the updated target duty cycle, so that the cold water flow rate of the water dispenser approaches the target cold water flow rate.
[0122] In one feasible embodiment, after the step of controlling the operation of the water pump based on the target duty cycle, the method further includes:
[0123] Step S70: After a preset time, return to the execution steps: Determine the cold water flow difference based on the target outlet water temperature, current cold water temperature, current cold water flow rate, current hot water temperature, and current hot water flow rate of the water dispenser until the temperature difference between the outlet water temperature and the target outlet water temperature is lower than the preset temperature difference threshold.
[0124] In the water dispenser control method provided in this application embodiment, the control unit of the water dispenser can cyclically execute steps S40 to S60. That is, after step S60, after a preset time interval, it returns to step S40 again, and then executes steps S50 and S60 sequentially, so that the difference between the current cold water flow rate and the target cold water flow rate becomes smaller and smaller, and at the same time, the temperature difference between the current outlet water temperature and the target outlet water temperature of the water dispenser also becomes smaller and smaller, thereby improving the water temperature control accuracy of the water dispenser and the user's water experience. The preset temperature difference threshold can be set according to actual needs. If the requirement for outlet water temperature accuracy is relatively high, the preset temperature difference threshold can be set smaller; if the requirement for outlet water temperature accuracy is relatively low, the preset temperature difference threshold can be set larger. The minimum preset temperature difference threshold can be set to 0.
[0125] For ease of understanding, and in conjunction with the content of the foregoing embodiments, a feasible water dispenser control process is as follows: Figure 3 As shown. First, after the user sets the water temperature, if the user is currently taking warm water, the water dispenser's control unit calculates the theoretical target cold water flow rate based on a formula. The actual cold water flow rate is then obtained through a flow meter. Determine the difference Δq between the two values, and then determine whether the difference satisfies the temperature regulation condition Δq > 0. If not, it remains unchanged; if so, the difference Δq is substituted into the preset PID temperature control formula to calculate the current duty cycle adjustment amplitude ΔD, based on the preset range of the duty cycle adjustment amplitude (e.g., D). min D max After limiting the duty cycle adjustment amplitude ΔD, the current duty cycle of the water pump is adjusted to obtain the target duty cycle. Finally, the water pump is controlled based on the target duty cycle to adjust the cold water flow rate.
[0126] In the water dispenser control method of this application embodiment, the current cold water outflow rate is continuously corrected based on the difference between the actual cold water flow rate and the target hot water flow rate value; so that the cold water flow rate difference tends to 0, and the final effect is that the actual outflow water temperature continuously approaches the warm water outflow temperature set by the user, thereby achieving the purpose of precise temperature control.
[0127] This application also provides a water dispenser control device, applied to a water dispenser, as described in the following embodiments. Figure 4 The water dispenser control device includes:
[0128] Temperature difference determination module 10 is used to determine the temperature difference between the target heating temperature of the hot tank and the real-time temperature of the water in the hot tank.
[0129] The high-power heating module 20 is used to heat the water in the hot tank based on a first heating power through the heating element when the temperature difference is greater than a preset temperature difference threshold.
[0130] The low-power heating module 30 is used to control the heating element to heat the water in the hot tank based on a second heating power when the temperature difference is less than or equal to a preset temperature difference threshold, wherein the first heating power is greater than the second heating power.
[0131] In one embodiment, the low-power heating module 30 is further used for:
[0132] The power controller transmits a PWM signal corresponding to the second heating power to the power controller and generates a control signal corresponding to the PWM signal through the power controller.
[0133] The power controller transmits the control signal to the heating element to control the heating element to operate based on the second heating power.
[0134] In one embodiment, the low-power heating module 30 is further used for:
[0135] Based on the preset mapping relationship between temperature difference and second heating power, the second heating power corresponding to the temperature difference is determined, wherein the temperature difference and the second heating power are positively correlated.
[0136] In one embodiment, the water dispenser further includes a relay connected to the heating element, and the high-power heating module 20 is further used for:
[0137] Set the relay to the connected state and transmit the control signal corresponding to the first heating power to the heating element to control the heating element to work based on the first heating power;
[0138] When the temperature difference between the target heating temperature and the real-time temperature of the water in the hot tank is less than or equal to a preset temperature difference threshold, the relay is set to the off state.
[0139] In one embodiment, the water dispenser control device further includes a temperature control module, which is used for:
[0140] The cold water flow rate difference is determined based on the target outlet water temperature, current cold water temperature, current cold water flow rate, current hot water temperature, and current hot water flow rate of the water dispenser.
[0141] The target duty cycle of the water pump is determined based on the cold water flow difference, wherein the water pump is located on the cold water passage of the water dispenser and is used to regulate the cold water flow.
[0142] The water pump is controlled based on the target duty cycle to reduce the temperature difference between the water outlet temperature and the target water outlet temperature.
[0143] In one embodiment, the temperature control module is further used for:
[0144] The target water outlet temperature, current cold water temperature, current cold water flow rate, current hot water temperature, and current hot water flow rate of the water dispenser are collected.
[0145] Substituting the target outlet water temperature, current cold water temperature, current hot water temperature, and current hot water flow rate of the water dispenser into a preset heat exchange function, the target cold water flow rate of the water dispenser is obtained.
[0146] The difference in cold water flow rate is obtained based on the target cold water flow rate and the current cold water flow rate.
[0147] The water dispenser control device provided in this application, employing the water dispenser control method described in the above embodiments, can solve the technical problems of current water dispenser heating schemes affecting hardware lifespan and excessive energy consumption. Compared with the prior art, the beneficial effects of the water dispenser control device provided in this application are the same as those of the water dispenser control method provided in the above embodiments, and other technical features in this water dispenser control device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0148] This application also provides a water dispenser, which includes at least a heating tank, a power controller, and a control unit. The heating tank includes a heating element, and the power controller is connected to the heating element. The control unit includes at least one processor and a memory communicatively connected to the at least one processor. The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the water dispenser control method described in the above embodiments.
[0149] In one feasible embodiment, the water dispenser further includes a relay, a cold water passage, and a hot water passage. The relay is connected to the heating element. The cold water passage and the hot water passage are respectively equipped with a temperature sensor, a water pump, and a flow meter. The temperature sensor and the flow meter are respectively connected to the control unit.
[0150] For example, the structure of the water dispenser is as follows: Figure 2 As shown, in the cold water flow path, a temperature sensor, a cold water pump, and a flow meter are sequentially installed. In the hot water flow path, a temperature sensor, a hot water pump, and a flow meter are installed respectively. The cold and hot water are mixed to form warm water, which is then output to the outside through the faucet. The water dispenser's control board obtains the cold water temperature through the sensor in the cold water path, the current hot water temperature through the sensor in the hot water path, and the real-time cold and hot water flow rates through the hot and cold water flow meters. Additionally, the control board obtains the user-set target outlet water temperature via communication or the cloud.
[0151] The following is for reference. Figure 5 It shows a schematic diagram of the structure of a control unit suitable for implementing the embodiments of this application. Figure 5 The control unit shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application.
[0152] like Figure 5 As shown, the control unit may include a processing device 101 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 102 or a program loaded from storage device 103 into random access memory (RAM) 104. RAM 104 also stores various programs and data required for the operation of the control unit. The processing device 101, ROM 102, and RAM 104 are interconnected via bus 105. Input / output (I / O) interface 106 is also connected to the bus. Typically, the following systems can be connected to I / O interface 106: input devices 107 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 108 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 103 including, for example, magnetic tapes, hard disks, etc.; and communication devices 109. Communication device 109 allows the control unit to communicate wirelessly or wiredly with other devices to exchange data. Although the diagram shows control units with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented alternatively.
[0153] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 103, or installed from ROM 102. When the computer program is executed by processing device 101, it performs the functions defined in the methods of the embodiments of this application.
[0154] The water dispenser provided in this application embodiment, employing the water dispenser control method described in the above embodiments, can solve the technical problems of current water dispenser heating schemes affecting hardware lifespan and excessive energy consumption. Compared with the prior art, the beneficial effects of the water dispenser provided in this application embodiment are the same as those of the water dispenser control method provided in the above embodiments, and other technical features of this water dispenser are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0155] It should be understood that various parts of the embodiments of this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0156] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the above claims.
[0157] This application also provides a computer-readable storage medium storing a computer program that can run on a processor, the computer program being used to execute the water dispenser control method in the above embodiments.
[0158] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0159] The aforementioned computer-readable storage medium may be included in the water dispenser; or it may exist independently and not assembled into the water dispenser.
[0160] The aforementioned computer-readable storage medium carries one or more programs that, when executed by the water dispenser, cause the water dispenser to: determine the temperature difference between the target heating temperature corresponding to the hot tank and the real-time temperature of the water in the hot tank; when the temperature difference is greater than a preset temperature difference threshold, heat the water in the hot tank using the heating element based on a first heating power; and when the temperature difference is less than or equal to the preset temperature difference threshold, control the heating element using a power controller to heat the water in the hot tank based on a second heating power, wherein the first heating power is greater than the second heating power.
[0161] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0162] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0163] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0164] The computer-readable storage medium provided in this application embodiment stores computer-readable program instructions for executing the above-described water dispenser control method, which can solve the technical problems of current water dispenser heating schemes affecting hardware lifespan and excessive energy consumption. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application embodiment are the same as the beneficial effects of the water dispenser control method provided in the above embodiments, and will not be repeated here.
[0165] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the water dispenser control method described above.
[0166] The computer program product provided in this application can solve the technical problems of current water dispenser heating schemes affecting hardware lifespan and excessive energy consumption. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the water dispenser control method provided in the above embodiments, and will not be repeated here.
[0167] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.
Claims
1. A water dispenser control method, characterized in that, An application is made in a water dispenser, the water dispenser including a heating tank and a power control device, the heating tank including a heating element, the power control device being connected to the heating element, and the water dispenser control method including: Determine the temperature difference between the target heating temperature corresponding to the hot tank and the real-time temperature of the water in the hot tank; When the temperature difference is greater than a preset temperature difference threshold, the water in the hot tank is heated by the heating element based on a first heating power; When the temperature difference is less than or equal to a preset temperature difference threshold, the power controller controls the heating element to heat the water in the hot tank based on a second heating power, wherein the first heating power is greater than the second heating power; The step of controlling the heating element to heat the water in the hot tank based on the second heating power through the power control device includes: Based on a preset mapping relationship between temperature difference and second heating power, the second heating power corresponding to the temperature difference is determined. The temperature difference and the second heating power are positively correlated. The mapping relationship is a two-dimensional mapping table or mapping function, which is used to query or calculate the corresponding second heating power according to the temperature difference. When the temperature difference is 0, the value of the second heating power is related to the heat dissipation of the water in the hot water tank. The faster the heat dissipation, the higher the corresponding second heating power. The power controller transmits a PWM signal corresponding to the second heating power to the power controller and generates a control signal corresponding to the PWM signal through the power controller. The power controller transmits the control signal to the heating element to control the heating element to operate based on the second heating power.
2. The water dispenser control method as described in claim 1, characterized in that, The water dispenser also includes a relay connected to the heating element, and the step of heating the water in the hot water tank by the heating element based on a first heating power includes: Set the relay to the connected state and transmit the control signal corresponding to the first heating power to the heating element to control the heating element to work based on the first heating power; When the temperature difference between the target heating temperature and the real-time temperature of the water in the hot tank is less than or equal to a preset temperature difference threshold, the relay is set to the off state.
3. The water dispenser control method according to any one of claims 1 to 2, characterized in that, The water dispenser also includes a water pump, and the method further includes: The cold water flow rate difference is determined based on the target outlet water temperature, current cold water temperature, current cold water flow rate, current hot water temperature, and current hot water flow rate of the water dispenser. The target duty cycle of the water pump is determined based on the cold water flow difference, wherein the water pump is located on the cold water passage of the water dispenser and is used to regulate the cold water flow. The water pump is controlled based on the target duty cycle to reduce the temperature difference between the water outlet temperature and the target water outlet temperature.
4. The water dispenser control method as described in claim 3, characterized in that, The step of determining the cold water flow rate difference based on the target outlet water temperature, current cold water temperature, current cold water flow rate, current hot water temperature, and current hot water flow rate of the water dispenser includes: The target water outlet temperature, current cold water temperature, current cold water flow rate, current hot water temperature, and current hot water flow rate of the water dispenser are collected. Substituting the target outlet water temperature, current cold water temperature, current hot water temperature, and current hot water flow rate of the water dispenser into a preset heat exchange function, the target cold water flow rate of the water dispenser is obtained. The difference in cold water flow rate is obtained based on the target cold water flow rate and the current cold water flow rate.
5. A water dispenser control device, characterized in that, The water dispenser control device includes at least: The temperature difference determination module is used to determine the temperature difference between the target heating temperature of the hot tank and the real-time temperature of the water in the hot tank. A high-power heating module is used to heat the water in the hot tank based on a first heating power through a heating element when the temperature difference is greater than a preset temperature difference threshold. A low-power heating module is used to control the heating element to heat the water in the hot tank based on a second heating power when the temperature difference is less than or equal to a preset temperature difference threshold, wherein the first heating power is greater than the second heating power; The low-power heating module is further configured to: determine the second heating power corresponding to the temperature difference based on a preset mapping relationship between the temperature difference and the second heating power, wherein the temperature difference and the second heating power are positively correlated, and the mapping relationship is a two-dimensional mapping table or mapping function, used to query or calculate the corresponding second heating power according to the temperature difference; when the temperature difference is 0, the value of the second heating power is related to the heat dissipation of the water in the hot water tank; the faster the heat dissipation, the higher the corresponding second heating power; transmit the PWM signal corresponding to the second heating power to the power controller, and generate a control signal corresponding to the PWM signal through the power controller; transmit the control signal to the heating element through the power controller, and control the heating element to work based on the second heating power.
6. A water dispenser, characterized in that, The water dispenser includes at least a heating tank, a power controller, and a control unit. The heating tank includes a heating element, and the power controller is connected to the heating element. The control unit includes at least a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is configured to implement the steps of the water dispenser control method as described in any one of claims 1 to 4.
7. The water dispenser as described in claim 6, characterized in that, The water dispenser also includes a relay, a cold water passage, and a hot water passage. The relay is connected to the heating element. The cold water passage and the hot water passage are respectively equipped with a temperature sensor, a water pump, and a flow meter. The temperature sensor and the flow meter are respectively connected to the control unit.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program for implementing a water dispenser control method, which is executed by a processor to implement the steps of the water dispenser control method as described in any one of claims 1 to 4.