Liquid temperature control method, electronic equipment and storage medium

By obtaining the target and ambient temperature values ​​and inputting the temperature compensation model to obtain the temperature control value, the problem of inaccuracy of liquid temperature control under the influence of temperature changes in the prior art is solved, and higher temperature control accuracy is achieved.

CN119179351APending Publication Date: 2024-12-24SHENZHEN H&T INTELLIGENT CONTROL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411093134.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

Due to the randomness and dynamic nature of temperature changes, existing dynamic temperature compensation methods cannot fully accurately describe temperature changes, resulting in a decrease in the accuracy of liquid temperature control.

Method used

By obtaining the target temperature value and ambient temperature value, input the temperature compensation model to obtain the temperature control value, and perform accurate temperature control of the liquid, taking into account the impact of ambient temperature on the liquid temperature change.

Benefits of technology

The accuracy of liquid temperature control is improved so that the output liquid temperature can accurately reach the target temperature value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119179351A_ABST
    Figure CN119179351A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of temperature control, in particular to a liquid temperature control method, electronic equipment and a storage medium, the method is applied to the electronic equipment, and the method comprises the steps of obtaining a target temperature value and an environment temperature value; inputting the target temperature value and the environment temperature value into a temperature compensation model to obtain a temperature control value; and performing temperature control on the liquid according to the temperature control value. According to the method, the influence of the environment temperature on the liquid temperature change is considered, the target temperature value and the environment temperature value are input into the temperature compensation model to obtain the accurate temperature control value, and then the liquid is subjected to accurate temperature control according to the temperature control value, so that the liquid with the temperature being the target temperature value can be output, and the accuracy of liquid temperature control is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of temperature control, and in particular to a liquid temperature control method, electronic equipment and storage medium. Background Art

[0002] Dynamic temperature compensation is a technology used to eliminate the impact of temperature changes on system performance. In many application scenarios, temperature changes will have a negative impact on the accuracy and stability of the equipment. For example, in instant hot water dispenser products, the design of the product causes the temperature control to have a huge deviation due to heat loss.

[0003] At present, the dynamic temperature compensation method is based on static or linear temperature compensation parameters, which eliminates the error caused by temperature changes through pre-calculation and calibration. However, due to the randomness and dynamic nature of temperature changes, this static or linear temperature compensation method cannot fully and accurately describe the temperature changes, resulting in reduced accuracy of temperature control. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a liquid temperature control method, an electronic device and a storage medium. The method takes into account the influence of ambient temperature on the temperature change of the liquid, inputs the target temperature value and the ambient temperature value into a temperature compensation model to obtain an accurate temperature control value, and then accurately controls the temperature of the liquid with the temperature control value, so that the liquid with a temperature of the target temperature value can be output, thereby improving the accuracy of liquid temperature control.

[0005] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a liquid temperature control method, which is applied to an electronic device, and the method includes:

[0007] Get the target temperature value and the ambient temperature value;

[0008] Inputting the target temperature value and the ambient temperature value into a temperature compensation model to obtain a temperature control value;

[0009] The temperature of the liquid is controlled at the temperature control value.

[0010] In some embodiments, the temperature compensation model is:

[0011]

[0012] Among them, T c represents the temperature control value, T1 represents the target temperature value, T2 represents the ambient temperature value, K represents the proportional coefficient, and t represents the time constant.

[0013] In some embodiments, the time constant represents the time from when the temperature control value is obtained to when the liquid is output.

[0014] In some embodiments, the electronic device includes a liquid pipeline and a water inlet and a water outlet located at both ends of the liquid pipeline, and the time constant represents the time it takes for the liquid to flow from the water inlet through the liquid pipeline to the water outlet.

[0015] In some embodiments, before inputting the target temperature value and the ambient temperature value into a temperature compensation model to obtain a temperature control value, the method further includes:

[0016] Acquiring an initial temperature value of the liquid at an initial time and a reference temperature value of the liquid at a reference time;

[0017] The initial temperature value, the reference temperature value and the ambient temperature value are substituted into a first formula to calculate a proportionality coefficient of the temperature compensation model, where the first formula is a deformation formula of the temperature compensation model.

[0018] In some embodiments, the first formula is:

[0019] T a =T e +(T0-T e )*e -Kt

[0020] Among them, T a Represents the reference temperature value, T e represents the ambient temperature value, T0 represents the initial temperature value, K represents the proportionality coefficient, and t represents the difference between the reference time and the initial time.

[0021] In some embodiments, before obtaining the initial temperature value of the liquid at the initial time, the method further includes:

[0022] The liquid is subjected to PID temperature control with a first temperature value as a target.

[0023] In some embodiments, the initial time is the time when the liquid obtains a stable temperature control value after PID temperature control, and the reference time is the time when the liquid flows out of the water outlet of the electronic device, and the water outlet is used to output the liquid.

[0024] In a second aspect, an embodiment of the present invention provides an electronic device, including:

[0025] A controller, a liquid pipeline, and a water inlet and a water outlet arranged at both ends of the liquid pipeline;

[0026] The liquid pipeline is used to transport liquid, the water inlet is used to input liquid, the water outlet is used to output liquid, and the controller is used to control the temperature of the liquid;

[0027] The controller comprises:

[0028] A processor and a memory communicatively connected to the processor;

[0029] The memory stores computer program instructions executable by the processor, and when the computer program instructions are called by the processor, the processor executes any one of the liquid temperature control methods proposed in the first aspect, or executes the steps in any one of the implementations of any one of the liquid temperature control methods proposed in the first aspect.

[0030] In some embodiments, the electronic device is a water dispenser.

[0031] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which is stored computer program instructions executable by a processor, and when the computer program instructions are called by the processor, the processor executes any one of the liquid temperature control methods proposed in the first aspect, or executes the steps in any one of the implementations of any one of the liquid temperature control methods proposed in the first aspect.

[0032] Beneficial effects of the embodiments of the present invention: Different from the prior art, the liquid temperature control method provided by the embodiments of the present invention is applied to electronic equipment, and the method includes: obtaining a target temperature value and an ambient temperature value; inputting the target temperature value and the ambient temperature value into a temperature compensation model to obtain a temperature control value; and controlling the temperature of the liquid at the temperature control value.

[0033] This method takes into account the influence of ambient temperature on the temperature change of liquid, inputs the target temperature value and the ambient temperature value into the temperature compensation model to obtain an accurate temperature control value, and then accurately controls the temperature of the liquid with the temperature control value, so that the liquid with a temperature of the target temperature value can be output, thereby improving the accuracy of liquid temperature control. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection. For those of ordinary skill in the art, other related drawings can also be obtained based on these drawings without creative work.

[0035] Figure 1is a schematic diagram of an application scenario of a liquid temperature control method provided by some embodiments of the present invention;

[0036] Figure 2 is a schematic diagram of the structure of an electronic device provided by some embodiments of the present invention;

[0037] Figure 3 is a schematic diagram of the structure of a controller in an electronic device provided by some embodiments of the present invention;

[0038] Figure 4 It is a flow chart of a liquid temperature control method provided in some embodiments of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose and advantages of the embodiments of the present invention easier to understand, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The detailed description of the embodiments of the present invention in the drawings below does not limit the scope of protection claimed by the present invention, but only represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0040] It should be noted that, if no conflict is constituted, the various technical features involved in the embodiments of the present invention described below can be combined with each other, and are all within the scope of protection of the present invention. In addition, although the functional modules are divided in the device or structural schematic diagram, and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device, or in a different order than in the flow chart. In addition, the "first", "second", "third" and other similar expressions used herein do not limit the data and execution order, but are only for the purpose of convenience of explanation and to distinguish between the same or similar items with basically the same functions and effects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features.

[0041] Unless otherwise defined, the technical terms and scientific terms used in this specification have the same meanings as those generally understood by those of ordinary skill in the art of the present invention. The terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. It should be understood that the term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.

[0042] See also Figure 1 , Figure 1 The following is a schematic diagram showing an application scenario of the liquid temperature control method provided by some embodiments of the present invention.

[0043] like Figure 1 As shown, the application scenario includes: an electronic device 100. The electronic device 100 is used to output liquid at a first temperature. In some embodiments, the electronic device 100 includes a controller, a liquid pipeline, and a water inlet and a water outlet 122 ( Figure 1 Only the water outlet 122 is shown, and the remaining components are not shown).

[0044] The controller is used to control the temperature of the liquid, and the liquid pipeline is used to transport the liquid. The water inlet is set at the first end of the liquid pipeline for inputting the liquid. The water outlet is set at the second end of the liquid pipeline for outputting the liquid. After the controller controls the temperature of the liquid, the liquid is controlled to be input from the water inlet to the liquid pipeline, and the liquid is transported by the liquid pipeline and flows to the water outlet, and the liquid is output from the water outlet, so that the user can receive the liquid of the corresponding temperature at the water outlet.

[0045] In some embodiments, the electronic device 100 is a water dispenser. The water dispenser is equipped with a display device for inputting temperature. The user inputs the target temperature on the display device. The water dispenser obtains the current ambient temperature and obtains the temperature control value based on the target temperature input by the user and the current ambient temperature. Subsequently, the temperature control value is converted into a temperature control signal, and the temperature control signal is sent to the controller. After receiving the temperature control signal, the controller controls the temperature of the liquid at the temperature control value, thereby obtaining a liquid with a temperature of the temperature control value, and then transports the liquid through the liquid pipeline, and finally outputs the liquid at the target temperature from the water outlet.

[0046] It should be understood that Figure 1 In the application scenario shown, the electronic device 100 is a water dispenser, which does not impose any restrictions on the structure, type, quantity, etc. of the electronic device 100 in other application scenarios. For example, in some other application scenarios, the electronic device 100 can also be a coffee machine, a beverage machine, or other suitable types of equipment, devices, and machines. In addition, the electronic device 100 in some other application scenarios can also be more Figure 1 The illustrated water dispenser may include more or fewer components, or may have the same Figure 1 Different configurations of drinking fountains are shown.

[0047] To facilitate understanding of the liquid temperature control method provided by the embodiment of the present invention, the electronic device provided by the embodiment of the present invention is firstly introduced in detail.

[0048] See also Figure 2 , Figure 2 The structural diagram of the electronic device 100 provided in some embodiments of the present invention is schematically shown.

[0049] like Figure 2 As shown, the electronic device 100 includes: a controller 110, a liquid pipeline 120, and a water inlet 121 and a water outlet 122 arranged at both ends of the liquid pipeline 120. Among them, the controller 110 is used to control the temperature of the liquid, and the liquid pipeline 120 is used to transport the liquid. The water inlet 121 is arranged at the first end of the liquid pipeline 120 for inputting the liquid. The water outlet 122 is arranged at the second end of the liquid pipeline 120 for outputting the liquid.

[0050] It should be understood that Figure 2 The structure of the electronic device 100 shown in the embodiment is only for illustration and does not limit the structure of the electronic device 100. Figure 2 More or fewer components as shown, or with Figure 2 Different configurations shown.

[0051] See also Figure 3 , Figure 3 The structure diagram of the controller 110 in the electronic device 100 provided in some embodiments of the present invention is schematically shown.

[0052] like Figure 3 As shown, the controller 110 includes at least one processor 111 and a memory 112 that are communicatively connected. Figure 3 The bus system connection and a processor are taken as an example. The various components in the controller 110 are coupled together through the bus system 113, and the bus system 113 is used to realize the connection and communication between these components. It is easy to understand that the bus system 113 includes not only a data bus, but also a power bus, a control bus, and a status signal bus. However, for the sake of clarity and brevity, Figure 3 In the figure, various buses are labeled as bus system 113. It can be understood that Figure 3 The structure shown in the embodiment is only for illustration and does not impose any limitation on the structure of the controller 110. For example, the controller 110 may also include Figure 3 More or fewer components as shown, or with Figure 3 Different configurations shown.

[0053] Specifically, the processor 111 is used to provide computing and control capabilities to control the controller 110 to perform corresponding tasks. For example, the electronic device 100 is controlled to perform any one of the liquid temperature control methods provided in the embodiments of the present invention, or to perform any one of the steps in any possible implementation of any one of the liquid temperature control methods provided in the embodiments of the present invention. Those skilled in the art will appreciate that the processor 111 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0054] The memory 112, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs, instructions and modules, for example, programs, instructions and modules corresponding to the liquid temperature control method in the embodiment of the present invention. In some embodiments, the memory 112 may include a storage program area and a storage data area, and the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to the use of the processor 111, etc. The processor 111 executes various functional applications and data processing of the controller 110 by running the non-transitory software programs, instructions and modules stored in the memory 112 to implement any liquid temperature control method provided in the embodiment of the present invention, or execute any step in any possible implementation of any liquid temperature control method provided in the embodiment of the present invention. Among them, the memory 112 may include a high-speed random access memory, and may also include a non-transitory memory. For example, at least one disk storage device, a flash memory device or other non-transitory solid-state storage device. In some embodiments, the memory 112 may also include a memory remotely arranged relative to the processor 111, and these remotely arranged memories may be connected to the processor 111 through a communication network. It is understandable that examples of the above-mentioned communication network include but are not limited to the Internet, corporate intranet, local area network, mobile communication network and combinations thereof.

[0055] It is easy to understand that the implementation and execution subject of any liquid temperature control method provided in the embodiments of the present invention can be any suitable type of electronic device with certain computing and control capabilities. In some possible implementations, any liquid temperature control method provided in the embodiments of the present invention can be implemented by a processor calling computer program instructions stored in a memory.

[0056] It can be understood from the above that the liquid temperature control method provided in the embodiment of the present invention can be implemented by various suitable types of electronic devices with certain computing and control capabilities, for example, it can be implemented by the above electronic device 100. The liquid temperature control method provided in the embodiment of the present invention is described in detail below in conjunction with the exemplary application and implementation of the electronic device provided in the embodiment of the present invention.

[0057] See also Figure 4 , Figure 4 The flowchart of the liquid temperature control method provided by some embodiments of the present invention is schematically shown.

[0058] Those skilled in the art will appreciate that the liquid temperature control method provided in the embodiment of the present invention can be applied to the above electronic device (eg, electronic device 100). Specifically, the liquid temperature control method is executed by one or at least two processors of the electronic device.

[0059] like Figure 4 As shown, the liquid temperature control method includes but is not limited to the following steps S100-S300:

[0060] S100: Obtain target temperature value and ambient temperature value.

[0061] The target temperature value is a set temperature value of the liquid output. In some embodiments, the target temperature value is a temperature value of the liquid required by the user.

[0062] Specifically, the user can input the manually required target temperature value through a user interaction component such as a touch screen, a display screen, a display device, etc. equipped in the electronic device, and then the electronic device obtains the target temperature value input by the user from the user interaction component.

[0063] In some embodiments, the electronic device may pre-set one or more target temperature values ​​according to device operation requirements and specific application scenarios, and store the one or more target temperature values ​​in local storage. When necessary, the electronic device may obtain the target temperature value from the local storage.

[0064] Specifically, the electronic device can obtain the current ambient temperature value of the environment in which it is located in real time through a temperature sensor (for example, a thermocouple, a thermistor, etc.) equipped with the electronic device.

[0065] In some embodiments, the electronic device is connected to the Internet for communication, and can obtain local weather information through the Internet, and extract the current ambient temperature value from the weather information.

[0066] S200: Input the target temperature value and the ambient temperature value into the temperature compensation model to obtain a temperature control value.

[0067] The temperature compensation model is a mathematical model or algorithm used to calculate an accurate temperature control value based on the input target temperature value and the ambient temperature value.

[0068] Specifically, after obtaining the target temperature value and the ambient temperature value, the target temperature value and the ambient temperature value are input into the temperature compensation model, and after being calculated by the temperature compensation model, the temperature control value is outputted.

[0069] In some embodiments, after receiving the input target temperature value and ambient temperature value, the temperature compensation model subtracts the target temperature value from the ambient temperature value to obtain a temperature difference ΔT. Then, based on the temperature difference and other parameters (such as equipment characteristics, historical data, etc.), a specific algorithm is used to calculate the temperature control value.

[0070] For example, in some embodiments, a simple proportional control algorithm may be used: Tc=A*ΔT, wherein Tc is a temperature control value, and A is a proportional constant used to adjust the sensitivity of the temperature control value.

[0071] In some embodiments, the temperature compensation model can also use more complex algorithms or models (such as genetic algorithms (GA), reinforcement learning algorithms (RL) and machine learning models, etc.) to calculate more accurate temperature control values ​​to improve temperature control accuracy and response speed.

[0072] In some embodiments, the temperature compensation model is:

[0073]

[0074] Among them, T c represents the temperature control value to be calculated, T1 represents the obtained target temperature value, T2 represents the obtained ambient temperature value, K represents the proportional coefficient, K is a constant, and the proportional coefficient K can be calculated according to the actual application scenario and set as a constant.

[0075] t represents a time constant. In some embodiments, the time constant represents the time from the moment the temperature control value is obtained to the time the liquid is output, that is, the time from the moment the electronic device controls the liquid temperature to the temperature control value to the time the liquid is output from the electronic device.

[0076] In some embodiments, the time constant represents the length of time it takes for liquid to flow from the water inlet through the liquid pipeline to the water outlet, that is, when the electronic device controls the temperature of the liquid to a temperature control value, it immediately controls the liquid to enter from the water inlet, and the length of time it takes for the liquid to flow through the liquid pipeline to the water outlet.

[0077] In some embodiments, before calculating the temperature control value using the temperature compensation model, it is necessary to first calculate and obtain the proportionality coefficient of the temperature compensation model.

[0078] In some embodiments, before inputting the target temperature value and the ambient temperature value into the temperature compensation model and obtaining the temperature control value, the liquid temperature control method further includes but is not limited to the following steps S210-S220:

[0079] S210: Acquire an initial temperature value of the liquid at an initial time, and a reference temperature value of the liquid at a reference time.

[0080] It can be understood that after the electronic device performs PID temperature control to obtain a stable temperature control value, the temperature values ​​of the sampled liquid at several sampling moments are obtained. Among them, the initial moment is the moment corresponding to when the liquid obtains a stable temperature control value after the electronic device performs PID temperature control, and the reference moment is the moment corresponding to when the liquid flows out of the water outlet of the electronic device after the electronic device performs PID temperature control.

[0081] It is worth noting that the time from when the electronic device performs PID temperature control on the liquid to when the liquid is input from the water inlet is extremely short, and the time can be considered to be 0. Therefore, in some embodiments, the initial moment can be the first sampling moment, and correspondingly, the initial temperature value at the initial moment is the temperature value (i.e., temperature control value) when the liquid flows in from the water inlet. The reference moment can be the last sampling moment, and correspondingly, the reference temperature value at the reference moment is the temperature value when the liquid flows out from the water outlet.

[0082] Specifically, the electronic device can detect the initial temperature value of the liquid at the initial moment through a temperature sensor (e.g., a thermocouple, a thermistor, etc.) equipped with the electronic device, thereby obtaining the initial temperature value of the liquid at the initial moment. Also, the electronic device can detect the initial temperature value of the liquid at the reference moment through a temperature sensor (e.g., a thermocouple, a thermistor, etc.), thereby obtaining the reference temperature value of the liquid at the reference moment.

[0083] In some embodiments, before obtaining the initial temperature value of the liquid at the initial moment, the temperature of the liquid needs to be controlled first, so as to obtain the initial temperature value of the liquid at the initial moment and the reference temperature value of the liquid at the reference moment.

[0084] In some embodiments, before obtaining the initial temperature value of the liquid at the initial time, the liquid temperature control method further includes but is not limited to the following steps S201:

[0085] S201: Perform PID temperature control on the liquid with a first temperature value as a target.

[0086] PID (Proportional-Integral-Derivative) control is a feedback control algorithm widely used in industrial control systems, which achieves and maintains a set target value by adjusting a control variable. This embodiment uses PID control to achieve precise control of liquid temperature.

[0087] For liquid temperature control, the PID controller can adjust the temperature control device in real time based on the temperature data fed back by the temperature sensor to keep the liquid temperature near the target value.

[0088] Specifically, the PID controller takes the first temperature value as a target, generates a corresponding temperature control signal, and sends the temperature control signal to a temperature control device (such as a heater, a cooler, a heat exchanger, etc.). After receiving the temperature control signal, the temperature control device starts working and heats or cools the liquid. Thus, the initial temperature value of the liquid can be obtained at the initial moment, and the reference temperature value of the liquid can be obtained at the reference moment. It can be understood that the first temperature value can be determined according to the actual application scenario and historical experience data settings. For example, the first temperature value can be 70°C, 80°C or other temperature values, and the embodiments of the present invention do not impose any restrictions on this.

[0089] S220: Substitute the initial temperature value, the reference temperature value and the ambient temperature value into a first formula to calculate a proportionality coefficient of the temperature compensation model, where the first formula is a deformation formula of the temperature compensation model.

[0090] The first formula is a deformation formula of the temperature compensation model. The temperature compensation model is deformed by derivation to obtain the first formula. By using the first formula, the proportionality coefficient of the temperature compensation model can be calculated.

[0091] Specifically, after obtaining the initial temperature value, the reference temperature value and the ambient temperature value, the initial temperature value, the reference temperature value and the ambient temperature value are substituted into the first formula, and the proportionality coefficient K of the temperature compensation model is calculated using the first formula.

[0092] In some embodiments, the first formula is:

[0093] T a =T e +(T0-T e )*e -Kt

[0094] Among them, T aIndicates the obtained reference temperature value, T e represents the obtained ambient temperature value, T0 represents the obtained initial temperature value, and K represents the proportional coefficient to be calculated.

[0095] t represents the difference between the reference time and the initial time. When the initial time and the reference time are determined, t can be determined based on the initial time and the reference time. In some embodiments, the initial time can be the time when the liquid flows in from the water inlet, and the reference time can be the time when the liquid flows out from the water outlet. In this case, t represents the time for the liquid to flow from the water inlet through the liquid pipeline to the water outlet.

[0096] After determining the difference t between the reference time and the initial time, the initial temperature value, the reference temperature value and the ambient temperature value are substituted into the above first formula to calculate the proportionality coefficient K.

[0097] According to life experience, a cup of stationary liquid will continue to cool down or heat up until the liquid temperature approaches the current ambient temperature. The higher or lower the starting temperature of the liquid, the faster the cooling or heating rate. As time goes by, the temperature change begins to slow down until it is consistent with the current ambient temperature and the temperature change rate drops to 0. It can be seen that the change in liquid temperature does not present a linear change. If the traditional temperature compensation algorithm is used, it can only be tested through continuous differentiation to find the temperature compensation value of each sub-stage, and establish a temperature compensation mapping table or linear stage coefficient value. However, due to the large differences in environmental changes and the different types of liquids, a large amount of data testing is very time-consuming and accuracy cannot be guaranteed.

[0098] Newton's law of cooling states that when there is a temperature difference between an object and its surroundings, the cooling rate of the object (i.e., the rate of temperature change) is proportional to the temperature difference. In other words, the amount of heat lost or absorbed by an object per unit area per unit time is proportional to the temperature difference.

[0099] In some embodiments, a mathematical model may be established based on Newton's law of cooling:

[0100]

[0101] in, It represents the amount of heat lost or absorbed by an object from a unit area per unit time, K represents the proportionality coefficient, T represents the temperature of the object at time t, and T e Indicates the ambient temperature value.

[0102] Solve the mathematical model, the specific solution process is:

[0103] Let y = TT e , then the mathematical model is simplified to the second formula:

[0104] Transform the second formula to get the third formula: Among them, because T e is the ambient temperature value, which is a constant. Therefore,

[0105] So the third formula becomes: Solve the third formula and get the general solution: y = y0*e -Kt ;

[0106] Set y = TT e Substituting the general solution, we get the fourth formula: TT e =(T0-T e )*e -Kt ;

[0107] Transpose the fourth formula to obtain the first formula: T = T e +(T0-T e )*e -Kt . Where T corresponds to the reference temperature value T a , T e corresponds to the ambient temperature value, and T0 corresponds to the initial temperature value.

[0108] S300: Control the temperature of the liquid according to the temperature control value.

[0109] Specifically, after the temperature control value is obtained, the temperature control value is input into the temperature control system. The temperature control system generates a corresponding temperature control signal according to the received temperature control value, and sends the temperature control signal to the temperature control device (such as a heater, a cooler, a heat exchanger, etc.). After receiving the temperature control signal, the temperature control device starts working and performs heating or cooling operation on the liquid to obtain a liquid with a temperature of the temperature control value. When the liquid is transported to the water outlet through the liquid pipeline, the temperature is close to and stabilized at the target temperature value, so that the liquid with a temperature of the target temperature value can be obtained.

[0110] In some embodiments, the temperature control system may be any one or more of a programmable logic controller (PLC), a temperature controller, and a PID controller, or may be any other suitable component, device, or equipment, and the embodiments of the present invention do not impose any limitations on this.

[0111] In some embodiments, the temperature control system can obtain the actual temperature of the liquid detected in real time by the temperature sensor, compare the actual temperature of the liquid with the temperature control value, calculate the temperature difference between the actual temperature of the liquid and the temperature control value, and then adjust the power output of the temperature control device according to the temperature difference, so that the actual temperature of the liquid gradually approaches and stabilizes at the temperature control value.

[0112] In summary, the liquid temperature control method provided in an embodiment of the present invention is applied to an electronic device, and the method includes: obtaining a target temperature value and an ambient temperature value; inputting the target temperature value and the ambient temperature value into a temperature compensation model to obtain a temperature control value; and controlling the temperature of the liquid at the temperature control value.

[0113] In this embodiment, the method takes into account the influence of ambient temperature on the temperature change of liquid, inputs the target temperature value and the ambient temperature value into the temperature compensation model to obtain an accurate temperature control value, and then accurately controls the temperature of the liquid with the temperature control value, so that the liquid with a temperature of the target temperature value can be output, thereby improving the accuracy of liquid temperature control.

[0114] An embodiment of the present invention provides a computer-readable storage medium, on which computer program instructions executable by a processor are stored. When the computer program instructions are called by the processor, the processor executes any one of the liquid temperature control methods provided by the embodiments of the present invention, or executes the steps in any one of the possible implementation methods of any one of the liquid temperature control methods provided by the embodiments of the present invention.

[0115] In some embodiments, the storage medium may be a flash memory, a hard disk, an optical disk, a register, a magnetic surface storage, a removable disk, a CD-ROM, a random access memory (RAM), a read-only memory (ROM), an electrically programmable ROM, and an electrically erasable programmable ROM, or any other form of storage medium known in the technical field, or various devices including one or any combination of the above storage media.

[0116] In some embodiments, computer program instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0117] As an example, computer program instructions may, but do not necessarily, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0118] As an example, the computer program instructions may be deployed to be executed on a computing device (including devices such as smart terminals and servers), or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network. It is easy to understand that all or part of the steps of the method described in the embodiments of the present invention may be directly implemented using electronic hardware or processor executable computer program instructions, or a combination of the two.

[0119] Those skilled in the art will appreciate that the embodiments provided by the present invention are only illustrative, and the order of writing the steps in the method of the embodiment does not mean a strict execution order and does not constitute any limitation on the implementation process. The order can be adjusted, merged and deleted according to actual needs, and the modules or sub-modules, units or sub-units in the device or system of the embodiment can be merged, divided and deleted according to actual needs. For example, the division of units is only a logical function division, and there can be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0120] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course can also be implemented by hardware. Those skilled in the art can understand that all or part of the processes in the above embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0121] It should be noted that the above embodiments are intended to illustrate the technical concept and features of the present invention, and their purpose is to enable people familiar with this technology to understand the content of the present invention and implement it accordingly, and cannot be used to limit the scope of protection of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiments can be implemented according to the technical solutions recorded in the embodiments of the present invention, or some of the technical features can be equivalently replaced. It can be understood that these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and should be regarded as equal changes and modifications based on the embodiments of the present invention, and should all fall within the scope of the claims of the present invention.

Claims

1. A liquid temperature control method, applied to electronic equipment, characterized in that: The method comprises: Get the target temperature value and the ambient temperature value; Inputting the target temperature value and the ambient temperature value into a temperature compensation model to obtain a temperature control value; The temperature of the liquid is controlled at the temperature control value.

2. The method according to claim 1, characterized in that The temperature compensation model is: Among them, T c represents the temperature control value, T1 represents the target temperature value, T2 represents the ambient temperature value, K represents the proportional coefficient, and t represents the time constant.

3. The method according to claim 2, characterized in that The time constant represents the time length from the time when the temperature control value is obtained to the time when the liquid is output.

4. The method according to claim 2, characterized in that: The electronic device includes a liquid pipeline and a water inlet and a water outlet located at both ends of the liquid pipeline. The time constant represents the time length for the liquid to flow from the water inlet through the liquid pipeline to the water outlet.

5. The method according to any one of claims 1 to 4, characterized in that: Before inputting the target temperature value and the ambient temperature value into a temperature compensation model to obtain a temperature control value, the method further includes: Acquiring an initial temperature value of the liquid at an initial time and a reference temperature value of the liquid at a reference time; The initial temperature value, the reference temperature value and the ambient temperature value are substituted into a first formula to calculate a proportionality coefficient of the temperature compensation model, where the first formula is a deformation formula of the temperature compensation model.

6. The method according to claim 5, characterized in that The first formula is: T a =T e +(T0-T e )*e -Kt Among them, T a Represents the reference temperature value, T e represents the ambient temperature value, T0 represents the initial temperature value, K represents the proportionality coefficient, and t represents the difference between the reference time and the initial time.

7. The method according to claim 6, characterized in that Before obtaining the initial temperature value of the liquid at the initial moment, the method further includes: The liquid is subjected to PID temperature control with a first temperature value as a target.

8. The method according to claim 7, characterized in that The initial time is the time when the liquid obtains a stable temperature control value after PID temperature control, and the reference time is the time when the liquid flows out of the water outlet of the electronic device, and the water outlet is used to output the liquid.

9. An electronic device, characterized in that: include: A controller, a liquid pipeline, and a water inlet and a water outlet arranged at both ends of the liquid pipeline; The liquid pipeline is used to transport liquid, the water inlet is used to input liquid, the water outlet is used to output liquid, and the controller is used to control the temperature of the liquid; The controller comprises: A processor and a memory communicatively connected to the processor; The memory stores computer program instructions executable by the processor, and when the computer program instructions are called by the processor, the processor executes the liquid temperature control method according to any one of claims 1 to 8.

10. The device according to claim 9, characterized in that The electronic device is a water dispenser.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions executable by a processor, and when the computer program instructions are called by the processor, the processor executes the liquid temperature control method according to any one of claims 1 to 8.