Control methods, devices, electronic equipment and storage media for drinking water equipment
Patent Information
- Application Number
- CN202410119454.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-26
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2044-01-26
AI Technical Summary
[0003]相关技术中,常规的饮用设备的加热方式存在一定缺陷,比如,采用水阀控制出水流速进而控制水温,而水阀在将水温维持在用户所需求的出水温度时中容易出现温度和功率不匹配问题从而造成噪音问题,从而影响用户的使用体验
[0019]本发明一些实施例提供的技术方案带来的有益效果至少包括:本发明提供的饮水设备的控制方法通过获取饮水设备的第一工作模式;通过基于第一工作模式,确定饮水设备的第一出水温度及饮水设备内第一器件的当前加热功率;通过若当前加热功率小于预设加热功率,则获取第一器件的目标加热功率;通过对饮水设备内第一器件的功率控制水温的加热方式和优化出水控制,从而降低工作噪音,以提升用户使用体验。
Smart Images

Figure CN118021159B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of water heaters, and more particularly to a control method, device, electronic equipment, and storage medium for drinking water equipment. Background Technology
[0002] In daily life, drinking water equipment is widely used as a device that can heat or cool water. For example, when using drinking water equipment, users can set different water temperatures according to their own needs. The drinking water equipment will control the water temperature at the outlet of the equipment based on real-time temperature information so that users can get drinking water at the ideal temperature in a timely manner.
[0003] In related technologies, conventional heating methods for drinking water equipment have certain drawbacks. For example, water valves are used to control the water flow rate and thus the water temperature. However, when the water valves are maintaining the water temperature at the user's desired outlet temperature, a mismatch between temperature and power can easily occur, resulting in noise problems and affecting the user experience. Summary of the Invention
[0004] This invention provides a control method, device, electronic device, and storage medium for a drinking water device. The method reduces operating noise and improves the user experience by controlling the heating method of water temperature and optimizing water output control through the power control of the first device in the drinking water device.
[0005] Firstly, a method for controlling a drinking water device is provided, including:
[0006] Obtain the first operating mode of the water drinking device;
[0007] Based on the first working mode, the first outlet water temperature of the water drinking device and the current heating power of the first device inside the water drinking device are determined.
[0008] If the current heating power is less than the preset heating power, then the target heating power of the first device is obtained;
[0009] Based on the target heating power, the water dispenser is controlled to switch from a first outlet water temperature to a first target outlet water temperature, wherein the target heating power is proportional to the first target outlet water temperature.
[0010] Secondly, a control device for a drinking water equipment is provided, the device comprising:
[0011] The acquisition module is used to acquire the first operating mode of the drinking water device;
[0012] The determining module, based on the first working mode, determines the first outlet water temperature of the water drinking device and the current heating power of the first device inside the water drinking device;
[0013] The target heating power acquisition module is used to acquire the target heating power of the first device if the current heating power is less than the preset heating power.
[0014] The switching module is used to control the water dispenser to switch from a first outlet water temperature to a first target outlet water temperature based on a target heating power, wherein the target heating power is proportional to the first target outlet water temperature.
[0015] Thirdly, an electronic device is provided, the electronic device comprising:
[0016] Memory, used to store executable program code;
[0017] A processor is configured to call and run the executable program code from the memory, causing the electronic device to perform the control method of the drinking device as described in any of the above.
[0018] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program, which, when executed, implements the control method for the drinking water device as described in any of the above claims.
[0019] The beneficial effects of the technical solutions provided by some embodiments of the present invention include at least the following: the control method for the drinking water device provided by the present invention obtains a first working mode of the drinking water device; determines a first water outlet temperature and the current heating power of a first device in the drinking water device based on the first working mode; obtains a target heating power of the first device if the current heating power is less than a preset heating power; and reduces operating noise and improves the user experience by controlling the heating method of the water temperature and optimizing the water outlet control through the power control of the first device in the drinking water device. Attached Figure Description
[0020] Figure 1 This is a schematic diagram of the first type of control method for a drinking water device provided in an embodiment of the present invention.
[0021] Figure 2 This is a schematic diagram of the second process of the control method for the drinking water equipment provided in the embodiments of the present invention.
[0022] Figure 3 This is a schematic diagram of the third process of the control method for drinking water equipment provided in the embodiments of the present invention.
[0023] Figure 4 This is a schematic diagram of the fourth process of the control method for drinking water equipment provided in the embodiments of the present invention.
[0024] Figure 5 This is a schematic diagram of the control device for the drinking water equipment provided in an embodiment of the present invention.
[0025] Figure 6 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention.
[0026] Figure 7 This is a schematic diagram of a second structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0027] To make the features and advantages of the present invention more apparent and understandable, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0028] In the following description, when referring to the accompanying drawings, the same numbers in different drawings denote the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.
[0029] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0030] In related technologies, when users use water dispensers, they need to adjust the water pump flow rate to reach the target water temperature. However, frequent adjustments to the pump flow rate can cause changes in the water flow velocity and water column shape, potentially leading to safety hazards. Furthermore, the pump generates varying operating noise due to power fluctuations, impacting the user experience. The method provided by this invention controls the heating method and optimizes water output by adjusting the power of the first component within the water dispenser, thereby reducing operating noise and improving the user experience.
[0031] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments. Please refer to... Figure 1 , Figure 1 This is a schematic flowchart of the first embodiment of the control method for a drinking water device provided by the present invention. The specific flow of the control method for the drinking water device is as follows:
[0032] It should be noted that the water dispensing device in this invention can be a water dispenser, wherein the first component is a heating element and the second component is a water pump. To maintain the stability of the water flow or water column during drinking and to reduce the operating noise of the water pump, this invention proposes a method for controlling the water temperature of a water dispenser. This method mainly controls the heating power of the heating element through the water dispenser's control system, thereby controlling the overall water temperature of the dispenser. This avoids the instability caused by frequent adjustments to the water pump's power parameters, ensuring that the water flow rate remains stable during dispensing. Simultaneously, since this method does not require frequent adjustments to the water pump's power parameters, it avoids the operating noise of the water pump motor, thus providing users with a more stable and quiet drinking experience.
[0033] It should be noted that in this invention, when the device is in the first working mode, a PID control strategy is required to separately control the water pump flow rate and the heating element power of the water drinking device. PID stands for Proportional, Integral, and Derivative, respectively. In other words, PID is a control algorithm composed of these three control elements, used to adjust the system output value to make it close to or maintain the desired value. In PID control, the water pump flow rate is controlled by the control motherboard providing a certain range of drive voltage U (such as DC 6-24 volts). The larger the drive voltage, the larger the water pump flow rate, and the smaller the drive voltage, the smaller the flow rate.
[0034] S101, obtain the first working mode of the drinking water equipment.
[0035] In this embodiment, in order to achieve precise control of the water dispenser, the water dispenser needs to be adjusted to the first working mode and the heating power is controlled only for the first device, namely the heating tube, to avoid frequent use of the second device, namely the water pump. The switching condition of the first working mode is that when the temperature difference between the current outlet water temperature and the preset target outlet water temperature is less than a preset range, the first working mode is used as the current working mode of the water dispenser. In the first working mode, adjustment parameters for heating power or outlet water flow rate are generated respectively to achieve the technical effect of precise control of the water dispenser.
[0036] Specifically, the user manually sets the temperature range parameter for switching operating modes. The water dispenser control system obtains the temperature difference between the current outlet water temperature and the target outlet water temperature, and compares this temperature difference with the temperature range parameter to determine if the temperature difference exceeds the temperature range parameter. If it does not exceed the temperature range parameter, the water dispenser is considered to meet the preset conditions of the first operating mode, and this first operating mode is then set as the current operating mode of the water dispenser. In the first operating mode, the power output of the heating element and the target outlet water flow rate of the water pump are controlled respectively.
[0037] S102, based on the first working mode, determine the first outlet water temperature of the water drinking device and the current heating power of the first device inside the water drinking device.
[0038] In this embodiment, the first device is specifically analyzed as a heating element. In the first working mode, the current heating power of the heating element in the water dispenser changes with the temperature difference between the current outlet water temperature and the target outlet water temperature. Therefore, when the water dispenser is in the first working mode, it will automatically adjust the power output of the heating element according to the temperature difference between the set target outlet water temperature and the current outlet water temperature, so as to adjust the water temperature to the preset target temperature.
[0039] Specifically, a temperature sensor installed at the water outlet of the water dispenser monitors the water temperature in real time. The temperature sensor feeds back the detected temperature value to the control system of the water dispenser, which then reads and records the current water temperature based on the actual situation. Since the heating element inside the water dispenser is typically powered by a single power source and its power is regulated by a control circuit, a power monitor or current sensor is used to measure the current or power of the heating element. This power monitor or current sensor can monitor the current or power value of the heating element in real time and feed the data back to the water dispenser's control system. Then, the control system performs corresponding logical operations and control algorithms based on the obtained initial water temperature and the current heating power of the first device to adjust the power output of the heating element.
[0040] S103, if the current heating power is less than the preset heating power, then obtain the target heating power of the first device.
[0041] In this embodiment, obtaining the target heating power of the first device requires first determining the control algorithm of the water drinking device and the method for setting the target heating power. In this invention, the control algorithm of the water drinking device is based on the PID algorithm. The control system calculates the target heating power of the first device based on the temperature difference between the current outlet water temperature and the target outlet water temperature.
[0042] Specifically, in the PID algorithm, the control system of the drinking water equipment calculates a control error based on factors such as the current outlet water temperature, the target outlet water temperature, and the rate of temperature change. This error is then used to adjust the heating power output of the first component. The PID algorithm comprises three parts: proportional (p), integral (i), and derivative (d) control. Proportional control responds to the current error, integral control eliminates accumulated errors, and derivative control predicts and adjusts future errors. In this way, the control system can dynamically adjust the heating power of the first component, thereby achieving precise control of the outlet water temperature.
[0043] In some embodiments, when obtaining the target heating power of the heating element, the difference E between the current outlet water temperature and the target outlet water temperature is obtained according to the temperature difference calculation formula. Then, the temperature difference between the outlet water temperature and the target outlet water temperature is obtained multiple times within a preset time interval. The multiple temperature differences are then calculated using the temperature difference accumulation formula to obtain the total temperature difference value Esk. The total temperature difference value Esk is then substituted into the power output calculation formula to obtain the control output u of the heating element. Finally, the target heating power u of the heating element is obtained according to the target heating power calculation formula. 加热 Specifically, the PID control formula can be used: u = K p *E+K i *E sk +K d *(EE′), where Kp, Ki, and Kd are three constant coefficients obtained through debugging based on actual scenarios. Applying the PID control formula to the target heating power of the heating tube yields the following PID control formula for the heating tube:
[0044] u 加热 =K 加热p *E+K 加热i *E sk加热 +K 加热d *(EE′)
[0045] Among them, u 加热 E represents the target heating power of the heating element, and T represents the current outlet water temperature. 出水 With the target outlet water temperature T s The difference between them: E = T 出水 -T s E′ represents the outlet water temperature T at the previous moment. 出水 With the target outlet water temperature T s The difference between them, E sk The total temperature difference of E since the water started flowing can be used as follows: The formula is used for calculation.
[0046] It should be noted that in this invention, when u is applied to the output of the target heating power, the larger u is, the larger the output value is, that is, the smaller the heating power is, and the smaller u is, the larger the heating power is.
[0047] S104, based on the target heating power, controls the water dispenser to switch from the first outlet water temperature to the first target outlet water temperature.
[0048] Specifically, a first target outlet water temperature is set as the control target value. This first target outlet water temperature can be preset by the user or the system. A temperature sensor is installed at the water outlet to obtain the actual outlet water temperature in real time. The temperature deviation is calculated by the difference between the target outlet water temperature and the actual outlet water temperature. A PID control algorithm is used to calculate the control output quantity based on the temperature deviation and convert the control output quantity into a corresponding control signal. For example, if the control output quantity is heating power, it needs to be converted into voltage, current, or pulse width modulation signal. The control signal is used to adjust the working state of the water dispenser, such as adjusting the power output of the heating element, controlling the cooling system, etc., to achieve control of the outlet water temperature. Then, the outlet water temperature of the water dispenser in the first working mode is continuously monitored, and the PID control algorithm is adjusted according to the difference between the actual temperature and the target temperature to generate a new target heating power to heat the water to the first target outlet water temperature.
[0049] As described above, in the first operating mode of the water dispenser, by determining the first outlet water temperature and the current heating power of the heating element inside the water dispenser, and generating a target heating power for the heating element, the water dispenser is switched from the first outlet water temperature to the first target outlet water temperature. This allows for control of the outlet water temperature solely through the control of the heating element, thereby avoiding the noise generated by using a water pump motor and improving the user experience.
[0050] Optional, please refer to Figure 2 , Figure 2 This is a schematic diagram of a second flow chart of the control method for a drinking water device provided in an embodiment of the present invention. The specific flow of the control method for the drinking water device may include:
[0051] It should be noted that in this embodiment, the control sequence of the heating element and water pump will be adjusted according to the actual working conditions. When the heating power of the heating element is less than its rated power, the control priority of the heating element is higher than that of the water pump. In this case, only the heating power PID control is performed on the heating element, and the PID control of the water pump is stopped simultaneously. When determining whether the heating element needs to reduce its power, if a power reduction is required, the control priority of the heating element is higher than that of the water pump. In this case, the power reduction operation is performed first by adjusting the power PID control zone of the heating element, without triggering the PID control of the water pump. If a power reduction is not required, the PID control priority of the pump will be higher than that of the heating element, that is, the power PID control of the heating element is stopped, and the PID control of the water pump is executed.
[0052] S201, if the current heating power is equal to the preset heating power, determine whether to reduce the power.
[0053] Specifically, the current water temperature from the water dispenser is obtained through a temperature sensor, and the current water temperature is calculated using the formula E=T. 出水 -T s The temperature deviation E is obtained by comparing it with the target effluent temperature, where T 出水 The current outlet water temperature T s For the target outlet water temperature, users can set a temperature difference range threshold according to actual needs. For example, the threshold is +3 degrees Celsius. If the temperature deviation is within an acceptable range, such as +2 degrees Celsius, it means that the current power is sufficient to stabilize the outlet water temperature and there is no need to reduce the power. If the temperature difference range is +5 degrees Celsius, it is determined that the power needs to be reduced, such as by adjusting the voltage of the heating element, changing the heating time or cycle, etc.
[0054] S202, if power reduction is not required, obtain the target water flow rate of the second device in the drinking water equipment.
[0055] In this embodiment, when the heating element heats the water at the target heating power, the user may operate the water dispenser to dispense water if the current water temperature has not yet reached the first target outlet water temperature. In this case, the water flow rate of the water pump is adjusted to reduce the water flow at the outlet to ensure that the user's drinking water needs are met.
[0056] Specifically, the water temperature inside the water dispenser is obtained by a temperature sensor. The current water temperature is compared with the first target water temperature to determine whether it has been reached or is close to the target temperature. If the current temperature has reached the target temperature, there is no need to reduce the water flow rate. If the current temperature has not yet reached the target temperature, the water flow rate at the outlet is reduced by adjusting the motor speed of the water pump. This reduces the water flow rate and increases the contact time between the water and the heating element, thereby improving the heating effect.
[0057] The target outlet flow rate can be controlled by the pump's drive power, using the pump's PID control formula: u 泵 =K 泵p *E+K 泵i *E sk泵 +K 泵d *(EE′), where u 泵 E represents the power required by the motor to achieve the target outlet flow rate of the water pump, and T represents the current outlet water temperature. 出水 With the target outlet water temperature T s The difference between them: E = T 出水 -T s E′ represents the outlet water temperature T at the previous moment. 出水 With the target outlet water temperature T s The difference between them, E sk The total temperature difference of E since the water started flowing can be used as follows: The formula is used for calculation.
[0058] For example, assuming the target outlet water temperature is 60 degrees Celsius, and the current outlet water temperature is 55 degrees Celsius, the formula u is known. 泵 =K 泵p *E+K 泵i *E sk泵 +K 泵d *(EE′):
[0059] Assume the control parameter is: K 泵p =0.5, K 泵i =0.1, K 泵d =0.3, first calculate the current temperature difference E = 55 - 60 - 5, assuming the previous temperature difference E' was -3, then calculate the total temperature difference Esk + (-5). Assuming the total temperature difference Esk since the water started flowing is -10, substitute the parameters and values into the formula to calculate the motor power required for the water pump. The calculated motor power required for the water pump is -4.1, as follows:
[0060] u 泵 =0.5*(-5)+0.1*(-10)+0.3*(-5-(-3))
[0061] = -2.5 + (-1) + (-0.6)
[0062] =-4.1
[0063] It should be noted that in this invention, when u is applied to the voltage output of the water pump, the larger u is, the larger the output value, which means the greater the water pump flow rate; the smaller u is, the smaller the water pump flow rate.
[0064] S203, based on the target water flow rate, controls the drinking water equipment to switch from the current water temperature to the second target water temperature.
[0065] Specifically, a second target outlet water temperature is set as the target value for water temperature control. This second target outlet water temperature can be preset by the user or the system. A temperature sensor is installed at the outlet to obtain the actual outlet water temperature in real time. The temperature deviation is calculated by the difference between the target outlet water temperature and the actual outlet water temperature. A PID control algorithm is used to calculate the control output based on the temperature deviation. The control output is then converted into a corresponding control signal. For example, if the control output is heating power, it needs to be converted into a voltage, current, or pulse width modulation signal. The control signal is used to adjust the working state of the water dispenser, such as adjusting the power output of the heating element or controlling the cooling system, to achieve control of the outlet water temperature. Subsequently, the outlet water temperature of the water dispenser in the first working mode is continuously monitored, and the control algorithm is adjusted according to the difference between the actual temperature and the target temperature to generate a new target heating power to heat the water to the second target outlet water temperature.
[0066] S204, if it is necessary to reduce the power, reduce the current heating power to the target heating power.
[0067] In this embodiment, after the heating element heats the water to the first target outlet water temperature with the target heating power, it is determined whether the water temperature at the current power exceeds the preset water temperature difference range. If it exceeds the preset water temperature, the power of the current heating element needs to be reduced.
[0068] Specifically, the current water temperature of the water dispenser is obtained through sensors, and the current water temperature is calculated using the formula E=T. 出水 -T s The temperature deviation E is obtained by comparing it with the target effluent temperature, where T 出水 The current outlet water temperature T s For the target outlet water temperature, users can set a temperature difference range threshold according to their needs, such as a threshold of less than ±3 degrees Celsius. If the current water temperature is ±5 degrees Celsius, it is determined that the power needs to be reduced. At this time, according to the formula u... 加热 =K 加热p *E+K 加热i *E sk加热 +K 加热d*(EE′) Generates the target heating power u 加热 The control system of the drinking water equipment adjusts the voltage of the heating tube and changes the heating time or cycle according to the target heating power to ensure that the water temperature gradually approaches or stabilizes within the preset water temperature range.
[0069] S205, based on the target heating power, control the water dispenser to switch from the first outlet water temperature to the first target outlet water temperature.
[0070] Please refer to step S104 above for step S205, which will not be repeated here.
[0071] As can be seen from the above, this embodiment can effectively improve the user's actual user experience and further stabilize the water flow of the drinking water device by determining whether it is necessary to reduce the power and then calling the first or second device.
[0072] Optional, please refer to Figure 3 , Figure 3 This is a third flowchart illustrating the control method for a drinking water device provided in this embodiment of the invention. The specific flow of this control method may include:
[0073] S301, obtain the water temperature of the drinking water device at each moment within a first preset time period, and obtain multiple first intermediate water temperatures.
[0074] S302, calculate the temperature difference between multiple first intermediate outlet water temperatures and the first target outlet water temperature to obtain multiple first temperature difference values.
[0075] In steps S301 to S302, in order to achieve precise control of the heating element, it is necessary to detect the difference between the current water temperature and the target water temperature when the water dispenser is in the water dispensing state, so as to obtain the target heating power of the heating element.
[0076] Specifically, based on a preset interval, such as 100ms, the temperature difference is calculated using the formula E=T. 出水 -T s The current outlet water temperature T can be obtained. 出水 With the target outlet water temperature T s The difference between the two values, for example, assuming the target outlet water temperature is 60 degrees Celsius, and the current outlet water temperature is 55 degrees Celsius, the temperature difference is acquired every 100 milliseconds. If the outlet water temperature at the previous moment was 58 degrees Celsius, then the difference E' between the previous outlet water temperature and the target outlet water temperature is: 58 - 60 = -2. The temperature difference is accumulated every 100 milliseconds. Assuming a total of 10 temperature difference values have been acquired, according to the formula...
[0077] =E1+E2+..+E 10
[0078] = (-5) + (-6) + ... + (-3)
[0079] =-42
[0080] The total temperature difference E can be determined. sk It is -42.
[0081] S303 determines the target heating power based on multiple first temperature differences.
[0082] Please refer to step S103 above for step S302, which will not be repeated here.
[0083] S304, based on the target heating power, controls the water dispenser to switch from the first outlet water temperature to the first target outlet water temperature.
[0084] Please refer to step S104 above for step S303, which will not be repeated here.
[0085] S305, if the current heating power is equal to the preset heating power, and there is no need to reduce the power.
[0086] Please refer to step S202 above for step S304, which will not be repeated here.
[0087] S306, obtain the water temperature of the drinking water device at each moment within a second preset time period to obtain multiple second intermediate water temperatures.
[0088] S307, calculate the temperature difference between multiple second intermediate outlet water temperatures and the second target outlet water temperature to obtain multiple second temperature difference values.
[0089] In steps S306 to S307, in order to achieve precise control of the water pump, it is necessary to detect the difference between the current water temperature and the target water temperature when the water dispenser is in the water dispensing state, so as to obtain the target water flow rate of the water pump.
[0090] Steps S306 and S307 are the same as step S301 above and will not be repeated here.
[0091] S308 determines the target effluent flow rate based on multiple second temperature differences.
[0092] Step S308 is the same as step S202 above and will not be repeated here.
[0093] S309 controls the drinking water equipment to switch from the current outlet water temperature to the second target outlet water temperature based on the target outlet water flow rate.
[0094] Please refer to step S104 above for step S309, which will not be repeated here.
[0095] As can be seen from the above, this embodiment determines whether the power needs to be reduced and calls the first or second device to control the water drinking equipment and generates a target heating power or target water flow rate by judging the temperature difference between the first or second device to control the water drinking equipment. This can further stabilize the water flow and improve the user experience.
[0096] Optional, please refer to Figure 4 , Figure 4 This is a schematic flowchart of the fourth method for controlling a drinking water device provided in this embodiment of the invention. The specific flow of this method may include:
[0097] S401, obtain the water dispensing command from the water dispenser, and obtain the initial water temperature of the water dispenser in the second working mode based on the water dispensing command.
[0098] In this embodiment, when the current water temperature of the water dispenser is lower than the temperature difference range threshold, the water dispenser is switched to the second working mode when a water dispensing command is received. In the second working mode, the heating element is controlled to operate at the rated power.
[0099] Specifically, the control unit or interface of the water dispenser is monitored to detect whether a water dispensing command for the second operating mode has been received. Once a water dispensing command for the second operating mode is detected, the command is parsed to confirm whether it is indeed a water dispensing command for the second operating mode. Once it is confirmed that a water dispensing command for the second operating mode has been received, the initial water temperature is obtained by reading data from the temperature sensor in the water dispenser and is recorded.
[0100] S402, based on the initial outlet water temperature, obtain the initial heating power of the first device and the initial water flow velocity of the second device.
[0101] Specifically, based on the physical formula Q=Pt=cm△T, the formula is obtained as follows: Where c is the specific heat capacity of water (4200), m is the mass of water (kg), Q is the heat (J), P is the power (W), t is the time (s), and ΔT is the temperature difference during the rise of the water temperature to the target water temperature, expressed as: ΔT = T s -T 进水 Substituting t = 60 (seconds) into the formula, that is, calculating based on the stable temperature rise caused by the total outflow of water in 1 minute, we can obtain the formula. Since the total weight of water flowing out in 1 minute, m, is exactly equal to the flow velocity v (flow velocity unit: kg / minute), the formula can be converted to:
[0102] The maximum flow rate v of the water pump in the drinking water equipment max Substitute into the formula , the heating power P required for the target temperature rise of the current water outlet can be obtained 需 , the specific formula is:
[0103]
[0104] wherein, P 需 is the output power required for the current heating. Then, a certain control margin is reserved, and a coefficient k (0<k<1) is set, for example, k=0.95, wherein the purpose of the control margin is to reserve a certain adjustment margin for the heating power, and the calculation formula of the initial heating power P 初 is as follows:
[0105]
[0106] wherein, P 额定 is the rated power of the instant heating tube. After the initial heating power P 初 is obtained by calculation through the above formula, substitute P 初 into the formula to obtain the initial water flow velocity v of the water pump of the water diversion device 初 .
[0107] S403, based on the initial heating power and the initial water flow velocity, controlling the drinking water device to switch from the initial outlet water temperature to the second outlet water temperature.
[0108] In this embodiment, when the drinking water device is in the second mode, the heating pipe is controlled to heat up at the rated power, and when the temperature difference is within the preset temperature difference range, the drinking water device is controlled to operate in the second working mode.
[0109] Specifically, the temperature difference between the water outlet and the inside of the device is monitored in real time by a sensor device, the current temperature difference is calculated, and whether the current water temperature reaches the second target outlet water temperature is detected. If not, heating up is required. At this time, the heating pipe is controlled by the rated power to heat the water temperature of the water dispenser to the second outlet water temperature.
[0110] S404, obtaining a heating power adjustment parameter of the first component based on the initial heating power; obtaining a water flow velocity adjustment parameter of the second component based on the initial water flow velocity.
[0111] Specifically, the heating power adjustment parameter is the power that needs to be increased when the first component heats the current outlet water temperature to the target outlet water temperature, and the water flow velocity adjustment parameter is the power adjustment parameter required when the second component maintains the current outlet water temperature at the target outlet water temperature. After obtaining the initial heating power P of the first component 初 and the initial water flow velocity v of the second component 初Then, by substituting the PID control formulas from steps S103 and S202 above, the heating power adjustment parameters of the heating tube and the water flow speed adjustment parameters of the water pump can be obtained. The detailed steps will not be repeated here.
[0112] In some embodiments, when switching from the second operating mode to the first operating mode, an initial data transition is required when switching from fixed power and flow rate to the PID control of the first operating mode. According to the characteristics of PID control, an accurate initial Esk needs to be calculated to avoid large fluctuations in flow rate or power during the transition process.
[0113] Specifically, according to the formula v = f(u) 泵 )=ku 泵 and P = f(u) 加热 )=au 加热 The relationship between the u value and the heating power P and flow rate v is obtained, where k and a are constants, which are determined by the development engineer through experiments as needed, and the initial heating power P of the heating tube is set. 初 and the initial water flow velocity v of the water pump 初 Substituting, we get u 泵初 =v 初 / k and u 加热初 =P 初 / a, where, u 泵初 u is the initial heating power of the water pump. 加热初 Let the initial heating power of the heating element be the initial heating power. Then, substitute the initial heating power of the water pump and the initial heating power of the heating element into the aforementioned PID control formulas for the heating element and the water pump, and you can obtain the formula for calculating the initial Esk value of the heating element. Formula for calculating the initial Esk value of the water pump When switching from the second working mode to the first working mode, the initial Esk value of the heating element and the initial Esk value of the water pump are used as the initial control data for PID control. Then, after obtaining the target PID control data, the initial control data is replaced, thereby effectively avoiding large fluctuations in flow rate or power during the mode switching process.
[0114] S405 controls the water dispenser to switch from the second working mode to the first working mode based on the heating power adjustment parameters and the water flow speed adjustment parameters.
[0115] In this embodiment, when the water dispenser is in the second mode, the heating element is controlled to heat up at the rated power. When the temperature difference is within the preset temperature difference range, the water dispenser is controlled to operate in the second working mode.
[0116] Specifically, the temperature difference between the water outlet and the inside of the water dispenser is monitored in real time using sensor devices, and a preset temperature difference range is determined, such as 5℃~10℃. If the current temperature difference is less than the preset range, heating is required. At this time, the heating element is heated using its rated power. When the temperature difference reaches the preset range, it is determined whether to switch to the first operating mode. If a switch is needed, a control signal is sent to the water dispenser to switch it to the first operating mode. Once the water dispenser switches to the first operating mode, its operating status needs to be continuously monitored and adjusted accordingly. For example, the heating power and water flow rate can be adjusted based on actual conditions to achieve the expected water temperature and flow rate.
[0117] S406, based on the first working mode, determines the first outlet water temperature of the water drinking device and the current heating power of the first device inside the water drinking device.
[0118] Please refer to step S102 above for step S406.
[0119] S407, if the current heating power is less than the preset heating power, then obtain the target heating power of the first device.
[0120] Please refer to step S103 for step S407, which will not be repeated here.
[0121] S408 controls the water dispenser to switch from the first outlet water temperature to the first target outlet water temperature based on the target heating power.
[0122] Please refer to step S104 for step S408, which will not be repeated here.
[0123] Optionally, when performing PID control on the heating element power, the heating power can be controlled by chopping the AC power using a thyristor. A thyristor is a special semiconductor device that can control the conduction and cutoff of AC power to control the effective value of the AC power, thereby controlling the heating power level. The power level range is 0 to 60, representing 0 power to full power. Each control cycle, a portion of the sine wave is chopped off by the thyristor to control the power level. A complete sine wave cycle is divided into multiple segments, each with multiple chopping points. The number of segments to be chopped in each cycle depends on the selected power level. The unchopped segments are used for output heating. For example, if power level 30 is selected, 30 segments are chopped in each cycle without output heating, while the remaining segments are used for heating. This method allows for power control of the heat pipe, thereby adjusting the heating effect.
[0124] As can be seen from the above, this embodiment obtains the heating power adjustment parameters of the first device based on the initial heating power; obtains the water flow speed adjustment parameters of the second device based on the initial water flow speed; and controls the water drinking device to switch from the second working mode to the first working mode based on the heating power adjustment parameters and the water flow speed adjustment parameters, thereby achieving automatic switching of different modes of the water drinking device and avoiding manual operation by the user, thus saving the user's time; by judging the current heating power and controlling the water outlet temperature of the water drinking device according to the heating power of the first device, the water outlet flow of the water drinking device can be further stabilized.
[0125] In addition, embodiments of the present invention also provide a control device for a drinking water device. Please refer to [link / reference]. Figure 5 , Figure 5 This is a schematic diagram of the structure of the control device for a drinking water equipment provided in an embodiment of the present invention. The control device 500 for the drinking water equipment may include an acquisition module 501, a determination module 502, a target heating power acquisition module 503, and a switching module 504, as detailed below:
[0126] The acquisition module 501 is used to acquire the first working mode of the water drinking equipment;
[0127] The determination module 502, based on the first working mode, determines the first outlet water temperature of the water drinking device and the current heating power of the first device inside the water drinking device;
[0128] The target heating power acquisition module 503 is used to acquire the target heating power of the first device if the current heating power is less than the preset heating power.
[0129] The switching module 504 is used to control the water dispenser to switch from a first outlet water temperature to a first target outlet water temperature based on a target heating power, wherein the target heating power is proportional to the first target outlet water temperature.
[0130] In some embodiments, the determining module 502 further includes a power determining module, which can be used to determine whether to reduce the power if the current heating power is equal to the preset heating power.
[0131] Optionally, the determining module 502 further includes a target water flow rate acquisition module, which can be used to: acquire the target water flow rate of the second device in the drinking water equipment if power reduction is not required.
[0132] Optionally, the determining module 502 further includes a water outlet temperature control module, which can be used to: control the drinking water device to switch from the current water outlet temperature to a second target water outlet temperature based on the target water outlet flow rate, wherein the target water outlet flow rate is inversely proportional to the second target water outlet temperature.
[0133] In some embodiments, the determining module 502 further includes a power reduction module, which can be used to reduce the current heating power to a target heating power if a power reduction is required.
[0134] Optionally, the determining module 502 further includes a switching module, which can be used to: control the drinking water device to switch from a first outlet water temperature to a first target outlet water temperature based on the target heating power.
[0135] In some embodiments, the target heating power acquisition module 503 further includes a first temperature difference acquisition module, which can be used to: acquire the water outlet temperature of the water device at each moment within a first preset time period to obtain a plurality of first intermediate water outlet temperatures; calculate the temperature difference between the plurality of first intermediate water outlet temperatures and the first target water outlet temperature to obtain a plurality of first temperature differences.
[0136] Optionally, the target heating power acquisition module 503 further includes a target heating power determination module, which can be used to determine the target heating power based on multiple first temperature differences.
[0137] In some embodiments, the target heating power acquisition module 503 further includes a second temperature difference acquisition module. The first temperature difference acquisition module can be used to: acquire the water outlet temperature of the water device at each moment within a second preset time period to obtain a plurality of second intermediate water outlet temperatures; calculate the temperature difference between the plurality of second intermediate water outlet temperatures and the second target water outlet temperature to obtain a plurality of second temperature differences.
[0138] Optionally, the target heating power acquisition module 503 further includes a target water flow rate determination module, which can be used to determine the target water flow rate based on multiple second temperature differences.
[0139] In some embodiments, the acquisition module 501 further includes an initial water temperature acquisition module, which can be used to: acquire the water dispensing command of the drinking water device, and acquire the initial water temperature of the drinking water device in the second working mode based on the water dispensing command.
[0140] Optionally, the acquisition module 501 further includes an initial water flow velocity acquisition module, which can be used to: obtain the initial heating power of the first device and the initial water flow velocity of the second device based on the initial outlet water temperature.
[0141] Optionally, the acquisition module 501 also includes a water temperature switching module, which can be used to: control the drinking water device to switch from the initial outlet water temperature to the second outlet water temperature based on the initial heating power and the initial water flow rate, wherein the second outlet water temperature is less than or equal to the first outlet water temperature.
[0142] In some embodiments, the acquisition module 501 further includes a heating power adjustment parameter acquisition module, which can be used to: obtain the heating power adjustment parameters of the first device based on the initial heating power.
[0143] Optionally, the acquisition module 501 further includes a water flow velocity adjustment parameter acquisition module, which can be used to: obtain the water flow velocity adjustment parameter of the second device based on the initial water flow velocity.
[0144] Optionally, the acquisition module 501 further includes a mode switching module, which can be used to control the drinking water device to switch from a second working mode to a first working mode based on the heating power adjustment parameters and the water flow rate adjustment parameters.
[0145] In this embodiment, the control device 500 of the water dispenser acquires a first operating mode of the water dispenser through an acquisition module 501; determines a first outlet water temperature and the current heating power of a first component within the water dispenser based on the first operating mode through a determination module 502; acquires a target heating power for the first component if the current heating power is less than a preset heating power through a target heating power acquisition module 503; and controls the water dispenser to switch from the first outlet water temperature to the first target outlet water temperature based on the target heating power through a switching module 504, wherein the target heating power is directly proportional to the first target outlet water temperature. By controlling the heating method of the water temperature and optimizing the outlet water control through the power of the first component within the water dispenser, operating noise is reduced, thereby improving the user experience.
[0146] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement the control method for a drinking water device provided in the above embodiment.
[0147] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0148] Since the instructions stored in the storage medium can execute the steps in the control method of any drinking water device provided in the embodiments of the present invention, the beneficial effects that the control method of any drinking water device provided in the embodiments of the present invention can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0149] Accordingly, this invention also provides an electronic device 600. Please refer to the figures. Figure 6This is a schematic diagram of the first structure of an electronic device provided in an embodiment of the present invention. The electronic device 600 includes a processor 601 and a memory 602. The processor 601 and the memory 602 are electrically connected.
[0150] The processor 601 is the control center of the electronic device 600. It connects various parts of the electronic device through various interfaces and lines. By running or calling computer programs stored in the memory 602 and calling data stored in the memory 602, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole.
[0151] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and controls the water drinking device by running the computer programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function, etc.; the data storage area may store data created based on the use of the electronic device, etc.
[0152] Furthermore, memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, memory 602 may also include a memory controller to provide processor 601 with access to memory 602.
[0153] In this embodiment, the processor 601 in the electronic device 600 loads the instructions corresponding to the processes of one or more computer programs into the memory 602 according to the following steps, and the processor 601 runs the computer programs stored in the memory 602 to realize various functions, as follows:
[0154] Obtain the first working mode of the drinking water equipment;
[0155] Based on the first working mode, determine the first outlet water temperature of the water drinking equipment and the current heating power of the first device inside the water drinking equipment;
[0156] If the current heating power is less than the preset heating power, then the target heating power of the first device is obtained;
[0157] Based on the target heating power, the water dispenser is controlled to switch from a first outlet water temperature to a first target outlet water temperature, wherein the target heating power is proportional to the first target outlet water temperature.
[0158] In some embodiments, please refer to Figure 7 , Figure 7This is a second structural schematic diagram of the electronic device provided in an embodiment of the present invention. The electronic device 600 may include: a processor 601, a memory 602, a display screen 603, a camera assembly 604, an audio circuit 605, a sensor 606, and a power supply 607. The processor 601 is electrically connected to the display screen 603, the camera assembly 604, the audio circuit 605, the sensor 606, and the power supply 607.
[0159] The display screen 603 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of electronic devices, which can be composed of images, text, icons, videos, and any combination thereof.
[0160] The camera assembly 604 may include image processing circuitry, which can be implemented using hardware and / or software components and may include various processing units defining an image signal processing (ISP) pipeline. The image processing circuitry may include at least: multiple cameras, an image signal processor (ISP), control logic, and image memory. Each camera may include at least one or more lenses and an image sensor. The image sensor may include a color filter array (such as a Bayer filter). The image sensor acquires light intensity and wavelength information captured by each imaging pixel of the image sensor and provides a set of raw image data that can be processed by the image signal processor.
[0161] The audio circuit 605 can be used to provide an audio interface between a user and an electronic device through a speaker and a microphone. The audio circuit 605 includes a microphone. The microphone is electrically connected to the processor 601. The microphone is used to receive voice information input by the user.
[0162] Sensor 606 is used to collect information about the electronic device itself, user information, or external environmental information. For example, sensor 606 may include one or more of the following sensors: vibration sensor, temperature sensor, distance sensor, magnetic field sensor, light sensor, acceleration sensor, fingerprint sensor, Hall sensor, position sensor, gyroscope, inertial sensor, attitude sensor, barometer, heart rate sensor, etc.
[0163] The power supply 607 is used to supply power to the various components of the electronic device 600. In some embodiments, the power supply 607 can be logically connected to the processor 601 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.
[0164] In the embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0165] For the control device of the drinking water equipment in this embodiment of the invention, its functional modules can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0166] The control method, apparatus, electronic device, and storage medium of the drinking water equipment provided in the embodiments of the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention; at the same time, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A control method for a drinking water device, characterized in that, include: Obtain the first operating mode of the water drinking device; Based on the first working mode, the first outlet water temperature of the water drinking device and the current heating power of the heating tube inside the water drinking device are determined; if the current heating power is less than the preset heating power, the target heating power of the heating tube is obtained; based on the target heating power, the water drinking device is controlled to switch from the first outlet water temperature to the first target outlet water temperature, wherein the target heating power is proportional to the first target outlet water temperature; If the current heating power is equal to the preset heating power, then when the current outlet water temperature of the water dispenser is greater than the first target outlet water temperature and the temperature deviation between the current outlet water temperature and the first target outlet water temperature is less than the temperature difference range threshold, based on the PID control algorithm, the target outlet water flow rate of the water pump in the water dispenser is determined according to the temperature deviation between the current outlet water temperature and the first target outlet water temperature; based on the target outlet water flow rate, the water dispenser is controlled to switch from the current outlet water temperature to the second target outlet water temperature, wherein the target outlet water flow rate is inversely proportional to the second target outlet water temperature; when the current outlet water temperature is greater than the first target outlet water temperature and the temperature deviation between the current outlet water temperature and the first target outlet water temperature is greater than the temperature difference range threshold, the current heating power is reduced to the target heating power; based on the target heating power, the water dispenser is controlled to switch from the first outlet water temperature to the first target outlet water temperature; Before obtaining the first operating mode of the water dispenser, the method further includes: obtaining a water dispensing command from the water dispenser, and obtaining an initial water dispensing temperature of the water dispenser in a second operating mode based on the water dispensing command; obtaining an initial heating power of the heating element and an initial water flow rate of the water pump based on the initial water dispensing temperature; controlling the water dispenser to switch from the initial water dispensing temperature to a second water dispensing temperature based on the initial heating power and the initial water flow rate, wherein the second water dispensing temperature is less than or equal to the first water dispensing temperature; obtaining a heating power adjustment parameter for the heating element based on the initial heating power; obtaining a water flow rate adjustment parameter for the water pump based on the initial water flow rate; and controlling the water dispenser to switch from the second operating mode to the first operating mode based on the heating power adjustment parameter and the water flow rate adjustment parameter.
2. The control method for the drinking water equipment according to claim 1, characterized in that, The step of obtaining the target heating power of the heating element includes: The water temperature of the drinking water device at each moment within a first preset time period is obtained to obtain multiple first intermediate water temperatures; Calculate the temperature difference between multiple first intermediate outlet water temperatures and the first target outlet water temperature to obtain multiple first temperature differences; The target heating power is determined based on multiple first temperature differences.
3. The control method for the drinking water equipment according to claim 1, characterized in that, Determining the target water flow rate of the water pump in the drinking water equipment includes: The water temperature of the drinking water device at each moment within a second preset time period is obtained to obtain multiple second intermediate water temperatures; Calculate multiple temperature differences between the second intermediate outlet water temperature and the second target outlet water temperature to obtain multiple second temperature differences; The target outflow velocity is determined based on multiple second temperature differences.
4. A control device for a drinking water equipment, characterized in that, include: The acquisition module is used to acquire the first operating mode of the drinking water device; The determining module is used to determine the first outlet water temperature of the water drinking device and the current heating power of the heating tube inside the water drinking device based on the first working mode. The target heating power acquisition module is used to acquire the target heating power of the heating tube if the current heating power is less than the preset heating power. A switching module is used to control the water dispenser to switch from the first outlet water temperature to the first target outlet water temperature based on the target heating power, wherein the target heating power is proportional to the first target outlet water temperature; The determining module is further configured to: if the current heating power is equal to the preset heating power, then when the current outlet water temperature of the water dispenser is greater than the first target outlet water temperature and the temperature deviation between the current outlet water temperature and the first target outlet water temperature is less than a temperature difference range threshold, determine the target outlet water flow rate of the water pump in the water dispenser based on a PID control algorithm and according to the temperature deviation between the current outlet water temperature and the first target outlet water temperature; control the water dispenser to switch from the current outlet water temperature to the second target outlet water temperature based on the target outlet water flow rate, wherein the target outlet water flow rate is inversely proportional to the second target outlet water temperature; when the current outlet water temperature is greater than the first target outlet water temperature and the temperature deviation between the current outlet water temperature and the first target outlet water temperature is greater than the temperature difference range threshold, reduce the current heating power to the target heating power; and control the water dispenser to switch from the first outlet water temperature to the first target outlet water temperature based on the target heating power. The acquisition module is further configured to, before acquiring the first operating mode of the water dispenser, acquire a water dispensing command from the water dispenser, and acquire the initial water dispensing temperature of the water dispenser in the second operating mode based on the water dispensing command; based on the initial water dispensing temperature, obtain the initial heating power of the heating element and the initial water flow rate of the water pump; based on the initial heating power and the initial water flow rate, control the water dispenser to switch from the initial water dispensing temperature to the second water dispensing temperature, wherein the second water dispensing temperature is less than or equal to the first water dispensing temperature; based on the initial heating power, obtain a heating power adjustment parameter for the heating element; based on the initial water flow rate, obtain a water flow rate adjustment parameter for the water pump; and based on the heating power adjustment parameter and the water flow rate adjustment parameter, control the water dispenser to switch from the second operating mode to the first operating mode.
5. An electronic device, characterized in that, The electronic device includes: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the electronic device to perform the control method of the drinking device as described in any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the control method for the drinking water device as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Temperature regulation control method and system and water drinking equipment
CN110089941A
Method and system for controlling water temperature of instant heating type water dispenser and instant heating type water dispenser
CN114947542A
Waterpath assembly and watering device
CN208425952U