Water dispenser temperature control method, water dispenser and computer readable storage medium
By setting up a hot water pump in the water dispenser, and determining the hot water flow difference and target duty cycle according to multiple parameters, controlling the operation of the hot water pump to adjust the hot water flow, the problem of unstable water outlet temperature of the water dispenser is solved, and precise control of the water outlet temperature and improvement of user experience is achieved.
Patent Information
- Application Number
- CN202510228349.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2045-02-27
AI Technical Summary
In different application scenarios, the water outlet temperature of existing water dispensers is unstable due to changes in water pressure, which affects the user experience.
By setting up a hot water pump in the water dispenser, and determining the hot water flow difference and target duty cycle based on the target outlet temperature, current cold water temperature, cold water flow, hot water temperature and hot water flow, controlling the operation of the hot water pump to adjust the hot water flow, and achieving accurate control of the outlet temperature.
It effectively overcomes the problem of unstable water outlet temperature caused by changes in water flow in different application scenarios, so that the water outlet temperature of the water dispenser is closer to the target value, and improves the user's drinking water experience.
Smart Images

Figure CN119908588A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of water dispensers, and in particular to a water dispenser temperature control method, a water dispenser, and a computer-readable storage medium. Background Art
[0002] At present, the functions of water dispensers are becoming more and more abundant. For water dispensers with heating function, they usually output warm water by mixing cold water and hot water. Due to the different application scenarios of water dispensers, such as high floors, low floors, villas, large flats, etc., the water pressure will also be different. The water pressure will affect the water flow, and the water flow will affect the change of water temperature, which will cause the water outlet temperature of the water dispenser to be unstable, such as too high or too low, affecting the user's water experience.
[0003] The above information disclosed in this Background section is only for understanding the background of the present application concept and therefore it may contain information that does not constitute prior art. Summary of the invention
[0004] The main purpose of the present application is to provide a water dispenser temperature control method, a water dispenser and a computer-readable storage medium, aiming to solve the technical problem of poor water outlet temperature control accuracy of current water dispensers.
[0005] To achieve the above object, the present application provides a water dispenser temperature control method, which is applied to a water dispenser, wherein the water dispenser includes a hot water pump, and the water dispenser temperature control method includes:
[0006] Determining a hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow;
[0007] determining a target duty cycle of the hot water pump according to the hot water flow difference;
[0008] The hot water pump is controlled to operate based on the target duty cycle to reduce a temperature difference between an actual outlet water temperature of the water dispenser and the target outlet water temperature.
[0009] In one embodiment, before the step of determining the hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow, the method further comprises:
[0010] Obtaining the current duty cycle of the hot water pump and the current hot water temperature of the water dispenser;
[0011] The current duty cycle and the current hot water temperature are substituted into a preset hot water flow fitting function to obtain the current hot water flow of the water dispenser, wherein the hot water flow fitting function is used to represent the correlation between the duty cycle, hot water temperature and hot water flow of the hot water pump.
[0012] In one embodiment, the method further comprises:
[0013] Acquire hot water flow data corresponding to a plurality of preset duty cycles of the hot water pump during operation;
[0014] Acquire hot water flow data corresponding to each of the hot water pump under various water temperatures during operation;
[0015] The hot water flow rate data corresponding to a plurality of preset duty cycles and the hot water flow rate data corresponding to a plurality of water temperatures are fitted to obtain a hot water flow rate fitting function.
[0016] In one embodiment, the step of determining the hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow comprises:
[0017] Substituting the target water outlet temperature, current cold water temperature, current cold water flow rate and current hot water temperature of the water dispenser into a preset heat exchange function to obtain the target hot water flow rate of the water dispenser;
[0018] A hot water flow difference is obtained according to the target hot water flow and the current hot water flow.
[0019] In one embodiment, the step of determining the target duty cycle of the hot water pump according to the hot water flow difference comprises:
[0020] The hot water flow difference is substituted into a preset proportional-integral control function to obtain a target duty cycle of the hot water pump.
[0021] In one embodiment, after the step of determining the hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow, the method further comprises:
[0022] Determining whether the absolute value of the hot water flow difference is greater than a preset flow difference;
[0023] If it is greater than, the steps are performed: determining a target duty cycle of the hot water pump according to the hot water flow difference;
[0024] If it is less than or equal to, the duty cycle of the hot water pump is kept unchanged.
[0025] In one embodiment, before the step of controlling the operation of the hot water pump based on the target duty cycle, the method further includes:
[0026] Determining a duty cycle adjustment amplitude according to the target duty cycle and the current duty cycle of the hot water pump;
[0027] If the absolute value of the duty cycle adjustment amplitude is smaller than the first adjustment amplitude, determining an updated target duty cycle according to the current duty cycle and the first adjustment amplitude;
[0028] If the absolute value of the duty cycle adjustment amplitude is greater than the second adjustment amplitude, determining an updated target duty cycle according to the current duty cycle and the second adjustment amplitude;
[0029] 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 hot water pump.
[0030] In one embodiment, after the step of controlling the operation of the hot water pump based on the target duty cycle, the method further includes:
[0031] After the preset time, return to the execution step: determine the hot water flow difference based on the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow, until the temperature difference between the water outlet temperature of the water dispenser and the target water outlet temperature is lower than the preset temperature difference threshold.
[0032] In addition, the present application also provides a water dispenser, which includes at least a hot water pump and a control unit, and the control unit includes at least: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the water dispenser temperature control method applied to the water dispenser as described above.
[0033] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the water dispenser temperature control method as described above are implemented.
[0034] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the water dispenser temperature control method as described above.
[0035] The present application provides a water dispenser temperature control method, which is applied to the water dispenser. The water dispenser includes a hot water pump. The water dispenser temperature control method includes: first, determining a hot water flow difference according to the target water outlet temperature, current cold water temperature, current cold water flow, current hot water temperature and current hot water flow of the water dispenser, wherein the hot water flow difference can reflect the hot water flow difference that needs to be adjusted to achieve the target water outlet temperature of the water dispenser; then, determining a target duty cycle of the hot water pump according to the hot water flow difference, so as to adjust the hot water flow by means of the hot water pump; finally, controlling the operation of the hot water pump based on the target duty cycle, so as to reduce the temperature difference between the actual water outlet temperature of the water dispenser and the target water outlet temperature. The technical solution of the present application adjusts the hot water flow by adjusting the duty cycle of the hot water pump, so that the hot water flow in the cold and hot water mixture changes, thereby realizing the adjustment of the water outlet temperature, overcoming the defect that the water outlet temperature is unstable due to different water flow rates in different application scenarios, making the water outlet temperature of the water dispenser closer to the target water outlet temperature, and improving the user's drinking experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0038] Figure 1 This is a flow chart of an embodiment of a water dispenser temperature control method applied to a water dispenser in an embodiment of the present application;
[0039] Figure 2 This is a schematic diagram of the temperature control water circuit principle of a water dispenser in an embodiment of the present application;
[0040] Figure 3 A schematic diagram of the relationship between the duty cycle of the hot water pump and the water flow data in the embodiment of the present application;
[0041] Figure 4 This is a schematic diagram of the relationship between temperature and water flow in the embodiment of the present application;
[0042] Figure 5 A schematic diagram of a feasible water dispenser temperature control process in an embodiment of the present application;
[0043] Figure 6 This is a schematic diagram of the equipment structure of the hardware operating environment involved in the water dispenser temperature control method in the embodiment of the present application.
[0044] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0045] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of this application.
[0046] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0047] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0048] The water dispenser in the embodiment of the present application can be a water dispenser with both water purification and heating, which is a drinking water device that integrates water purification and heating functions. Its advantages mainly include convenience, health and safety, energy saving and environmental protection, versatility, and beautiful and practical features. In actual use, when the water purifier is used in different scenarios such as high-rise buildings, villas, and large flats, when the user uses the warm water gear, if the temperature of the warm water may be much lower than the set value, it will affect the user experience; if the temperature of the warm water is much higher than the set value, it will cause scalding to the user. At present, mainstream water purifier products generally lack heating functions, and the water outlet temperature of the warm water gear is unstable, which cannot meet the user's warm water use needs. Moreover, the current industry status of the warm water gear is generally achieved by directly mixing cold and hot water to output water. Since the water pump flow cannot be adjusted, the water outlet temperature stability is insufficient.
[0049] In order to overcome the above technical defects, the embodiment of the present application provides a water dispenser temperature control method applied to a water dispenser, wherein the water dispenser includes a hot water pump, Figure 1 , Figure 1 This is a flow chart of an embodiment of the water dispenser temperature control method of the present application. The water dispenser temperature control method includes:
[0050] Step S10, determining a hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow;
[0051] It should be noted that the water dispenser can be a water purifier (i.e., an all-in-one machine with functions such as water purification and hot water), and the hot water pump can be a heat-resistant diaphragm pump. Because the centrifugal water pump is sensitive to water temperature and pressure when the water pump speed is high, it leads to poor flow accuracy and inconsistent stability in the heating system, and it is necessary to use a heat-resistant flow meter to feedback the current flow information in real time. Therefore, a heat-resistant diaphragm pump is used as a hot water pump in the embodiment of the present application, and its flow accuracy and stability are greatly improved, and the hot water flow meter can be eliminated to reduce hardware costs. In addition, the water dispenser is also provided with a flow meter and a temperature sensor in the cold water passage, and a temperature sensor in the hot water circuit to collect the corresponding water temperature and water flow.
[0052] The water dispenser of the embodiment of the present application also outputs warm water that meets the target water outlet temperature by mixing cold and hot water, wherein the target water outlet temperature can be set by the user, the current cold water temperature and the current cold water flow are collected by the flow meter and the sensor, the current hot water temperature is collected by the sensor, and the current hot water flow can be collected directly by the flow meter, or there is no need to set a flow meter in the hot water circuit, but the current hot water flow is predicted by the duty cycle of the hot water pump and the current hot water temperature. The prediction process requires the use of pre-collected data on duty cycle, hot water flow, and hot water temperature, as well as the correlation between various data captured from these data. Among them, the hot water flow difference represents the difference between the current hot water flow and the target hot water flow, and the target hot water flow represents the hot water flow required to make the current water outlet temperature of the water dispenser meet the target water outlet temperature.
[0053] Step S20, determining a target duty cycle of the hot water pump according to the hot water flow difference;
[0054] Among them, the duty cycle of the hot water pump determines the output power of the hot water pump itself. It can be understood that the larger the duty cycle of the hot water pump, the larger the hot water flow rate. After determining the current hot water flow difference, the corresponding target duty cycle can be determined to adjust the current hot water flow rate so that the hot water flow difference approaches 0, which has the effect of making the temperature of the warm water output by the water dispenser approach the target water outlet temperature.
[0055] When determining the target duty cycle of the hot water pump according to the hot water flow difference, it can be based on the PI (Proportional Integral) control formula commonly used in the current control field, or determined by the correspondence between the hot water flow difference and the target duty cycle measured by engineers through experiments or other means.
[0056] Step S30, controlling the operation of the hot water pump based on the target duty cycle to reduce the temperature difference between the actual outlet water temperature of the water dispenser and the target outlet water temperature.
[0057] After determining the target duty cycle, a control instruction can be sent to the hot water pump to adjust the duty cycle of the hot water pump to the target duty cycle. Because the value of the target duty cycle corresponds to the hot water flow difference, the current hot water flow of the hot water pump can tend toward the target hot water flow, thereby making the water outlet temperature of the water dispenser as close to the target water outlet temperature as possible, reducing the temperature difference between the water outlet temperature and the target water outlet temperature, and improving the user experience.
[0058] For example, the temperature control water circuit of the water dispenser in the embodiment of the present application is as follows: Figure 2 As shown in the figure, a cold water pump, a cold water flow meter and a cold water sensor are respectively arranged on the cold water flow path, and a hot water pump (diaphragm heat pump) and a hot water sensor are respectively arranged on the hot water flow path. The two kinds of water are mixed into warm water and then output to the outside through the faucet. Among them, the control mainboard of the water dispenser can obtain the cold water temperature T through the cold water temperature sensor 冷 , obtain the current hot water temperature T through the hot water temperature sensor 热 , and obtain the real-time cold water flow q through the cold water flow meter 冷 In addition, the control mainboard obtains the target water outlet temperature T set by the user through communication or cloud. 目标 .
[0059] The embodiment of the present application provides a water dispenser temperature control method, which is applied to the water dispenser. The water dispenser includes a hot water pump. The water dispenser temperature control method includes: first, determining a hot water flow difference according to the target water outlet temperature, current cold water temperature, current cold water flow, current hot water temperature and current hot water flow of the water dispenser, wherein the hot water flow difference can reflect the hot water flow difference that needs to be adjusted to achieve the target water outlet temperature of the water dispenser; then, determining a target duty cycle of the hot water pump according to the hot water flow difference, so as to adjust the hot water flow by means of the hot water pump; finally, controlling the operation of the hot water pump based on the target duty cycle, so as to reduce the temperature difference between the actual water outlet temperature of the water dispenser and the target water outlet temperature. The technical solution of the embodiment of the present application adjusts the hot water flow by adjusting the duty cycle of the hot water pump, so that the hot water flow in the cold and hot water mixture changes, thereby realizing the adjustment of the water outlet temperature, overcoming the defect of unstable water outlet temperature caused by different water flow in different application scenarios, making the water outlet temperature of the water dispenser closer to the target water outlet temperature, and improving the user's drinking experience.
[0060] Furthermore, in a feasible embodiment, before the step of determining the hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow, the method may further include:
[0061] Step A10, obtaining the current duty cycle of the hot water pump and the current hot water temperature of the water dispenser;
[0062] Step A20, substitute the current duty cycle and the current hot water temperature into the preset hot water flow fitting function to obtain the current hot water flow of the water dispenser, wherein the hot water flow fitting function is used to represent the correlation between the duty cycle of the hot water pump, the hot water temperature and the hot water flow.
[0063] The embodiment of the present application provides a method for determining the hot water flow rate of a water dispenser by function fitting, which does not require a flow meter to be provided on the hot water water line, thus saving hardware costs.
[0064] Firstly, the current duty cycle of the hot water pump can be directly acquired according to the control signal of the hot water pump, and the current hot water temperature in the hot water path of the water dispenser can be acquired through the temperature sensor.
[0065] It should be noted that the hot water flow fitting function is a function that is determined in advance through experimental testing and data fitting to represent the correlation between the duty cycle of the hot water pump, the hot water temperature, and the hot water flow, and can predict the current hot water flow according to the input current duty cycle of the hot water pump and the current hot water temperature. Exemplarily, the hot water flow fitting function can be expressed as:
[0066]
[0067] In the formula, is the hot water fitting flow value, T 热 is the hot water temperature, and D is the duty cycle output value.
[0068] Furthermore, in a feasible embodiment, the method further includes:
[0069] Step B10, obtaining hot water flow data corresponding to various preset duty cycles of the hot water pump during operation;
[0070] Step B20, obtaining hot water flow data corresponding to various water temperatures during the operation of the hot water pump;
[0071] Step B30, fitting the hot water flow data corresponding to the various preset duty cycles and the hot water flow data corresponding to the various water temperatures to obtain a hot water flow fitting function.
[0072] The embodiment of the present application provides a method for obtaining a hot water flow fitting function based on data fitting such as the duty cycle, hot water flow, and water temperature of a water dispenser during operation.
[0073] It should be noted that the main factors affecting the water flow rate of the diaphragm pump are the hot water temperature and the speed of the hot water pump, and the speed of the hot water pump is determined by the duty cycle.
[0074] For example, the pump speed is controlled by adjusting the duty cycle. The staff can obtain the relationship between the duty cycle and the flow rate by testing the experimental data as shown in the following table:
[0075]
[0076] Furthermore, the above table is presented in the form of statistical graphs, such as Figure 3 As shown, the horizontal axis is the duty cycle and the vertical axis is the flow rate. Fitting the relationship between the duty cycle and the flow rate, the polynomial can be expressed as: y = -2E-05x 3 +0.0015x 2 +0.411x-1.0655, where x is the horizontal coordinate and y is the vertical coordinate.
[0077] In addition, in order to fit the influence of a large number of bubbles generated when hot water boils on the calculation of the diaphragm pump water flow rate, the attenuation relationship between hot water temperature and flow rate is obtained through the full-load driving experimental data of the water pump at different hot water temperatures. For example, when the diaphragm pump is started at full load, the relationship between hot water temperature and flow rate is shown in the following table.
[0078] Hot water temperature (℃) Flow rate (ml / s) 99 10 97 13 95 16 90 26 80 30 70 31 60 31 50 32 40 33 30 34
[0079] Furthermore, the above data relationship is represented by a statistical graph, such as Figure 4 As shown, the horizontal axis is temperature, the vertical axis is flow rate (flow rate ml / s), and the fitting polynomial is expressed as: y = -9E-06x 4 +0.0019x 3 -0.1529x 2 +5.0099x-24.023, where x is the horizontal coordinate and y is the vertical coordinate.
[0080] Finally, the data on the correlation between duty cycle and flow rate as well as water temperature and flow rate are integrated, and the above data are fitted by mathematical function fitting method, and finally the hot water flow rate fitting function is obtained to reflect the correlation between the duty cycle, hot water temperature and hot water flow rate of the hot water pump.
[0081] In a feasible embodiment, the step of determining the hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow may include:
[0082] Step S11, substituting the target water outlet temperature, current cold water temperature, current cold water flow rate and current hot water temperature of the water dispenser into a preset heat exchange function to obtain the target hot water flow rate of the water dispenser;
[0083] Step S12, obtaining a hot water flow difference according to the target hot water flow and the current hot water flow.
[0084] In the water dispenser temperature control method of the embodiment of the present application, the target hot water flow rate is used as the control target, and the difference between the target hot water flow rate and the actual hot water flow rate (i.e., the hot water flow rate difference) is subjected to PI (Proportion Integral) control. Specifically, the control mainboard implements different flow rate controls by applying different duty cycles and / or frequencies to the hot water pump (diaphragm pump), thereby controlling the outlet temperature of the warm water at a constant temperature.
[0085] Furthermore, when determining the target hot water flow rate of the water dispenser, it is necessary to combine 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. This is because the target hot water flow rate is the target control amount that can make the water outlet temperature of the water dispenser closer to the target water outlet temperature. In order to determine the target control amount, it is necessary to base it on the principle of heat exchange between cold and hot water inside the water dispenser.
[0086] For example, the heat energy formula can be expressed as: Q = c*m*Δt;
[0087] Among them, Q is heat, c is specific heat capacity, m is mass, and Δt is the amplitude of temperature change.
[0088] In the process of mixing cold water and hot water, cold water absorbs heat and hot water releases heat. The control target is the temperature of the mixed water to be the target outlet water temperature T. 目标 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. The mathematical expression is as follows:
[0089] c*m 冷 *(T 目标 -T 冷 )=c*m 热 *(T 热 -T 目标 );
[0090] Among them, m 冷 is the cold water quality, T 冷 is the cold water temperature before absorbing heat, m 热 is the hot water quality, T 热 It is the hot water temperature before heat release.
[0091] In the process of stable water discharge from the water dispenser, it can be determined that m = q*t, where m is the water discharge instruction, q is the water discharge flow rate, and t is the water discharge time, so the above formula can be converted to:
[0092] q 冷 *(T 目标 -T 冷 )=q 热 *(T 热 -T 目标 );
[0093] According to this formula, the target water outlet temperature T 目标 (user setting), current cold water temperature T 冷 (temperature sensor collection), current cold water flow q 冷 (collected by flow meter), current hot water temperature T 热 (temperature sensor collection) and other parameters to calculate the target hot water flow
[0094] Finally calculate the target hot water flow With the current hot water flow q 热 The difference between them (determined by the fitting function) is used to obtain the hot water flow difference Δq, so as to provide feedback control with the hot water flow as the control target.
[0095] Further, in a feasible embodiment, the step of determining the target duty cycle of the hot water pump according to the hot water flow difference may include:
[0096] Step S21, substituting the hot water flow difference into a preset proportional-integral control function to obtain a target duty cycle of the hot water pump.
[0097] Specifically, the hot water pump (diaphragm pump) can adjust the hot water flow by adjusting its own duty cycle data. During the control process, the current duty cycle input D of the pump is used as the target control quantity, and the hot water flow difference Δq is used as the input quantity for difference control.
[0098] Exemplarily, the control formula can be expressed as:
[0099]
[0100] The above control formula is a commonly used PI control formula in the control field, where K p , T t The control parameters are obtained by engineers in advance by testing the water dispenser in the laboratory and are preset in the control unit of the water dispenser.
[0101] In a feasible embodiment, the control unit of the water dispenser starts to adjust the duty cycle of the hot water pump after the cold and hot water are mixed, and performs control and adjustment at a preset frequency, and the time interval between each two executions is Δg.
[0102] Further, in a feasible embodiment, after the step of determining the hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow, the method further includes:
[0103] Step S13, determining whether the absolute value of the hot water flow difference is greater than a preset flow difference;
[0104] Step S14: if it is greater than, then execute step S20: determine the target duty cycle of the hot water pump according to the hot water flow difference;
[0105] Step S15: if it is less than or equal to, the duty cycle of the hot water pump is kept unchanged.
[0106] Combined with the content of the above embodiment, after the water dispenser system is stable in water output, the current theoretical target hot water flow rate is first determined. Then determine the current actual hot water flow rate according to the above hot water flow fitting function And compare them to obtain the hot water flow difference Δq at this moment.
[0107] Furthermore, in order to avoid the water dispenser system from frequently adjusting the duty cycle of the hot water pump, the hot water flow difference Δq obtained above can be compared with the preset flow difference, which can also be understood as the minimum adjustment flow value of the hot water pump. It can be set according to actual situation.
[0108] For example, if Then the next step of temperature adjustment can be carried out, the duty cycle of the hot water pump is re-determined, and step S20 is executed. There is no need to perform temperature adjustment, the duty cycle of the hot water pump is kept unchanged, steps S20 and S30 are skipped, and the process returns to step S10 after waiting for a preset time interval.
[0109] In a feasible embodiment, before the step of controlling the operation of the hot water pump based on the target duty cycle, the water dispenser temperature control method may further include:
[0110] Step C10, determining a duty cycle adjustment amplitude according to the target duty cycle and the current duty cycle of the hot water pump;
[0111] Step C20, if the absolute value of the duty cycle adjustment amplitude is less than the first adjustment amplitude, determining an updated target duty cycle according to the current duty cycle and the first adjustment amplitude;
[0112] Step C30, if the absolute value of the duty cycle adjustment amplitude is greater than the second adjustment amplitude, determining an updated target duty cycle according to the current duty cycle and the second adjustment amplitude;
[0113] 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 hot water pump.
[0114] After determining the target duty cycle of the hot water pump of the water dispenser, the difference between the two can be calculated in combination with the current duty cycle of the hot water pump, thereby determining the duty cycle adjustment amplitude that needs to be adjusted. It can be understood that during the adjustment process of the duty cycle of the hot water pump, the system pre-sets the minimum value (i.e., the first adjustment amplitude) and the maximum value (i.e., the second adjustment amplitude) of the single change of the duty cycle, so the duty cycle adjustment amplitude of the hot water pump cannot exceed the range corresponding to the minimum value and the maximum value of the single change of the duty cycle.
[0115] Therefore, after determining the duty cycle adjustment amplitude △D, if the absolute value of △D is within [D min ,D max ], the duty cycle of the hot water pump is adjusted based on △D, so that the adjusted duty cycle of the hot water pump is the target duty cycle. If △D is less than D min , then based on D min The duty cycle of the hot water pump is adjusted according to the value of △D. If △D is a positive value, the current duty cycle is added to D. min Get the updated target duty cycle. If △D is a negative value, subtract D from the current duty cycle. min Get the updated target duty cycle. Similarly, if △D is greater than D max , then based on D max The duty cycle of the hot water pump is adjusted according to the value of △D. If △D is a positive value, the current duty cycle is added to D. max Get the updated target duty cycle. If △D is a negative value, subtract D from the current duty cycle. max Get the updated target duty cycle.
[0116] Finally, the operation of the hot water pump is controlled based on the updated target duty cycle, so that the hot water flow rate of the water dispenser approaches the target hot water flow rate.
[0117] In a feasible embodiment, after the step of controlling the operation of the hot water pump based on the target duty cycle, the method further includes:
[0118] Step S40, after a preset time, returns to execute step S10: determine the hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow, until the temperature difference between the water outlet temperature of the water dispenser and the target water outlet temperature is lower than the preset temperature difference threshold.
[0119] In the water dispenser temperature control method provided in the embodiment of the present application, the control unit of the water dispenser can cyclically execute steps S10 to S30, that is, after step S30, after a preset time, it returns to step S10 again, and then executes steps S20 and S30 in sequence, so that the difference between the current hot water flow rate and the target hot water flow rate becomes smaller and smaller, and at the same time, the temperature difference between the current water outlet temperature of the water dispenser and the target water outlet temperature also becomes smaller and smaller, thereby improving the water outlet temperature control accuracy of the water dispenser and the user's water use experience. Among them, the preset temperature difference threshold can be set according to actual needs. If the requirement for the water outlet temperature accuracy is relatively high, the preset temperature difference threshold can be set smaller. If the requirement for the water outlet 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.
[0120] For ease of understanding, combined with the contents of the aforementioned application embodiments, a feasible water dispenser temperature control process is as follows: Figure 5 First, after the user sets the water outlet temperature, if the user is taking warm water, the control unit of the water dispenser calculates the theoretical target hot water flow rate based on the formula Then fit and calculate the actual hot water flow Determine the difference Δq between the two and judge whether the difference meets the temperature adjustment conditions If not, it remains unchanged. If so, the difference Δq is substituted into the preset PI temperature control formula to calculate the current duty cycle adjustment amplitude △D value. Based on the preset range of the duty cycle adjustment amplitude (for example, D min ,D max ) After limiting the duty cycle adjustment amplitude △D, the current duty cycle of the hot water pump is adjusted to obtain the target duty cycle. Finally, the operation of the hot water pump is controlled based on the target duty cycle to achieve the adjustment of the hot water flow.
[0121] In the water dispenser temperature control method of the embodiment of the present application, the current hot water outlet flow rate is continuously corrected according to the difference between the fitted hot water flow rate value and the target hot water flow rate value, so that the hot water flow rate difference tends to 0. The final effect achieved is that the actual water outlet temperature continuously approaches the warm water outlet temperature set by the user, thereby achieving the purpose of precise temperature control.
[0122] An embodiment of the present application also provides a water dispenser, which includes at least a hot water pump and a control unit. The hot water pump can be a diaphragm pump. The control unit includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the water dispenser temperature control method in the above embodiment.
[0123] Reference below Figure 6 , which shows a schematic structural diagram of a control unit suitable for implementing an embodiment of the present application. Figure 6The control unit shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0124] like Figure 6 As shown, the control unit may include a processing device 101 (e.g., a central processing unit, a graphics processor, etc.), which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 102 or a program loaded from a storage device 103 to a random access memory (RAM: Random Access Memory) 104. In RAM104, various programs and data required for the operation of the control unit are also stored. The processing device 101, ROM102, and RAM104 are connected to each other via a bus 105. An input / output (I / O) interface 106 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 106: an input device 107 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 108 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 103 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 109. The communication device 109 may allow the control unit to communicate with other devices wirelessly or by wire to exchange data. Although the figures show a control unit with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0125] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 103, or installed from a ROM 102. When the computer program is executed by the processing device 101, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
[0126] The water dispenser provided in the embodiment of the present application adopts the water dispenser temperature control method in the above embodiment, which can solve the technical problem of poor water outlet temperature control accuracy of the current water dispenser. Compared with the prior art, the beneficial effects of the water dispenser provided in the embodiment of the present application are the same as the beneficial effects of the water dispenser temperature control method provided in the above embodiment, and other technical features in the water dispenser are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0127] It should be understood that each part of the embodiments of the present application can be implemented by 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 one or more embodiments or examples in a suitable manner.
[0128] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, which should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application shall be based on the protection scope of the above claims.
[0129] An embodiment of the present application also provides a computer-readable storage medium storing a computer program executable on a processor, wherein the computer program is used to execute the water dispenser temperature control method in the above embodiment.
[0130] The computer-readable storage medium provided in the embodiment of the present application 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 of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. 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 combination with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including, but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0131] The computer-readable storage medium may be included in the water dispenser; or may exist independently without being assembled into the water dispenser.
[0132] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the water dispenser, the water dispenser: determines the hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow; determines the target duty cycle of the hot water pump according to the hot water flow difference; controls the operation of the hot water pump based on the target duty cycle to reduce the temperature difference between the water outlet temperature of the water dispenser and the target water outlet temperature.
[0133] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate 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 a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0134] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0135] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0136] The computer-readable storage medium provided in the embodiment of the present application stores computer-readable program instructions for executing the above-mentioned water dispenser temperature control method, which can solve the technical problem of poor water outlet temperature control accuracy of the current water dispenser. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present application are the same as the beneficial effects of the water dispenser temperature control method provided in the above-mentioned embodiment, and will not be described in detail here.
[0137] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned water dispenser temperature control method when the computer program is executed by a processor.
[0138] The computer program product provided in the embodiment of the present application can solve the technical problem of poor control accuracy of the water outlet temperature of the current water dispenser. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiment of the present application are the same as the beneficial effects of the water dispenser temperature control method provided in the above embodiment, which will not be repeated here.
[0139] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A water dispenser temperature control method, characterized in that: Applied to a water dispenser, the water dispenser includes a hot water pump, and the water dispenser temperature control method includes: Determining a hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow; determining a target duty cycle of the hot water pump according to the hot water flow difference; The hot water pump is controlled to operate based on the target duty cycle to reduce a temperature difference between an actual outlet water temperature of the water dispenser and the target outlet water temperature.
2. The water dispenser temperature control method according to claim 1, characterized in that: Before the step of determining the hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow, the method further includes: Obtaining the current duty cycle of the hot water pump and the current hot water temperature of the water dispenser; The current duty cycle and the current hot water temperature are substituted into a preset hot water flow fitting function to obtain the current hot water flow of the water dispenser, wherein the hot water flow fitting function is used to represent the correlation between the duty cycle, hot water temperature and hot water flow of the hot water pump.
3. The water dispenser temperature control method according to claim 2, characterized in that: The method further comprises: Acquire hot water flow data corresponding to a plurality of preset duty cycles of the hot water pump during operation; Acquire hot water flow data corresponding to each of the hot water pump under various water temperatures during operation; The hot water flow rate data corresponding to a plurality of preset duty cycles and the hot water flow rate data corresponding to a plurality of water temperatures are fitted to obtain a hot water flow rate fitting function.
4. The water dispenser temperature control method according to claim 1, characterized in that: The step of determining the hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow comprises: Substituting the target water outlet temperature, current cold water temperature, current cold water flow rate and current hot water temperature of the water dispenser into a preset heat exchange function to obtain the target hot water flow rate of the water dispenser; A hot water flow difference is obtained according to the target hot water flow and the current hot water flow.
5. The water dispenser temperature control method according to claim 1, characterized in that: The step of determining the target duty cycle of the hot water pump according to the hot water flow difference comprises: The hot water flow difference is substituted into a preset proportional-integral control function to obtain a target duty cycle of the hot water pump.
6. The water dispenser temperature control method according to claim 1, characterized in that: After the step of determining the hot water flow difference according to the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow, the method further comprises: Determining whether the absolute value of the hot water flow difference is greater than a preset flow difference; If it is greater than, the steps are performed: determining a target duty cycle of the hot water pump according to the hot water flow difference; If it is less than or equal to, the duty cycle of the hot water pump is kept unchanged.
7. The water dispenser temperature control method according to claim 1, characterized in that: Before the step of controlling the operation of the hot water pump based on the target duty cycle, the method further includes: Determining a duty cycle adjustment amplitude according to the target duty cycle and the current duty cycle of the hot water pump; If the absolute value of the duty cycle adjustment amplitude is smaller than the first adjustment amplitude, determining an updated target duty cycle according to the current duty cycle and the first adjustment amplitude; If the absolute value of the duty cycle adjustment amplitude is greater than the second adjustment amplitude, determining an updated target duty cycle according to the current duty cycle and the second adjustment amplitude; 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 hot water pump.
8. The water dispenser temperature control method according to any one of claims 1 to 7, characterized in that: After the step of controlling the operation of the hot water pump based on the target duty cycle, the method further includes: After the preset time, return to the execution step: determine the hot water flow difference based on the target water outlet temperature of the water dispenser, the current cold water temperature, the current cold water flow, the current hot water temperature and the current hot water flow, until the temperature difference between the water outlet temperature of the water dispenser and the target water outlet temperature is lower than the preset temperature difference threshold.
9. A water dispenser, characterized in that: The water dispenser includes at least a hot water pump and a control unit, and the control unit includes at least: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the water dispenser temperature control method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for implementing the water dispenser temperature control method, and the program for implementing the water dispenser temperature control method is executed by a processor to implement the steps of the water dispenser temperature control method as claimed in any one of claims 1 to 8.
Citation Information
Patent Citations
Electrodeless thermoregulation water dispenser control method and system
CN104207648A
Method and device for instant heating type water drinking equipment, storage medium and processor
CN112263143A
Instant heating type water dispenser and control method thereof
CN115486708A
Drinking water platform, constant-temperature water outlet control method, system and equipment thereof and medium
CN115615019A
Water drinking platform, control method and system thereof and storage medium
CN115956808A