Water heater control method and device, water heater and storage medium
By calculating the compressor's heat output per second and operating time in the water heater, the problem of temperature measurement after the temperature sensor is damaged is solved, thus improving system stability and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GREE ELECTRIC APPLIANCE INC OF ZHUHAI
- Filing Date
- 2023-08-11
- Publication Date
- 2026-06-12
Smart Images

Figure CN117029281B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of water heater technology, and in particular to a water heater control method, device, water heater and storage medium. Background Technology
[0002] Water heaters, as a common heating device, are widely used in large residences, shopping malls, hotels, and various commercial and industrial locations. Furthermore, with the improvement of living standards, people have increasingly higher requirements for the comfort of using water heaters, demanding that they guarantee a suitable water temperature without fluctuations. Therefore, this requires the water tank temperature sensor in the water heater to have high reliability, and also necessitates a temporary backup function that can automatically calculate the temperature in the event of sensor failure, ensuring the water heater can continue operating until repair. However, currently, existing technology lacks a temporary backup function that can automatically calculate the temperature in the event of sensor failure. Summary of the Invention
[0003] This application provides a water heater control method, device, water heater, and storage medium to address the lack of a temporary remedial function in the prior art that can automatically calculate the temperature in the event of a damaged temperature sensor.
[0004] In a first aspect, this application provides a water heater control method, the water heater control method comprising: in the event of a temperature sensor failure, acquiring the current water temperature, the target water temperature, and the compressor's heat output per second; calculating, based on the current water temperature, the target water temperature, and the compressor's heat output per second, a first operating time required for the compressor to heat the current water temperature to the target water temperature; and controlling the compressor to operate for the first operating time.
[0005] In one embodiment, obtaining the compressor's heat output per second includes: during the commissioning phase, obtaining an initial value of the compressor's heat output per second as the compressor's heat output per second; and during normal use, obtaining a corrected value of the compressor's heat output per second as the compressor's heat output per second.
[0006] In one embodiment, the step of obtaining the initial value of the compressor's heat output per second as the compressor's heat output per second during the debugging phase includes: during the debugging phase, obtaining the water tank volume in liters, the second duration for which the compressor runs at a preset temperature, and calculating the initial value of the compressor's heat output per second based on the water tank volume in liters, the preset temperature, and the second duration.
[0007] In one embodiment, calculating the initial value of the compressor's heat output per second based on the water tank volume, the preset temperature, and the second duration includes: calculating the initial value of the compressor's heat output per second using the following formula (1) based on the water tank volume, the preset temperature, and the second duration:
[0008]
[0009] Where J1 is the initial value of heat output per second by the compressor, N is the number of liters of water in the water tank, L is the preset temperature, R is the specific heat capacity of water, and T1 is the second duration.
[0010] In one embodiment, obtaining the compressor's heat output correction value per second as the compressor's heat output value per second during normal use includes: obtaining a first water temperature value before each heating cycle, a second water temperature value after each heating cycle, a third duration of compressor operation during each heating cycle, and the number of liters of water in the water tank; and calculating the compressor's heat output correction value per second based on the first water temperature value, the second water temperature value, the third duration, and the number of liters of water in the water tank.
[0011] In one embodiment, the step of calculating the compressor's heat output correction value per second based on the first water temperature value, the second water temperature value, the third duration, and the water tank volume includes: calculating the compressor's heat output correction value per second using the following formula (2) based on the first water temperature value, the second water temperature value, the third duration, and the water tank volume.
[0012] J2=[(S2-S1)*(R*N)] / T2 Formula (2)
[0013] Wherein, J2 is the compressor's heat output correction value per second, S2 is the second water temperature value, S1 is the first water temperature value, R is the specific heat capacity of water, N is the water volume in the tank, and T2 is the third duration.
[0014] In one embodiment, calculating the first operating time required for the compressor to heat the current water temperature to the target water temperature based on the current water temperature, the target water temperature, and the compressor's heat output per second includes: calculating the first operating time required for the compressor to heat the current water temperature to the target water temperature using the following formula (3) based on the current water temperature, the target water temperature, and the compressor's heat output per second:
[0015] ΔW=W2-W1=(J*T) / (R*N) Formula (3)
[0016] Where W1 is the current water temperature, W2 is the target water temperature, J is the heat output per second of the compressor, T is the first duration, R is the specific heat capacity of water, and N is the number of liters of water in the tank.
[0017] Secondly, this application provides a water heater control device, which includes: an acquisition module for acquiring the current water temperature, the target water temperature, and the compressor's heat output per second when the temperature sensor fails; a calculation module for calculating, based on the current water temperature, the target water temperature, and the compressor's heat output per second, the first operating time required for the compressor to heat the current water temperature to the target water temperature; and a control module for controlling the compressor to operate for the first operating time.
[0018] Thirdly, this application provides a water heater, including: a processor and a memory for storing a computer program capable of running on the processor; wherein, when the processor runs the computer program, it performs the steps of any of the methods described above.
[0019] Fourthly, this application also provides a computer storage medium storing computer-executable instructions for performing the steps of the methods described in any of the preceding claims of this application.
[0020] Compared with the prior art, the above-mentioned technical solution provided in this application has the following advantages: In the event of a faulty temperature sensor, the method provided in this application uses the pre-stored heat output value of the compressor per second to estimate the running time required for the compressor to raise the water temperature in the tank to the target water temperature. The compressor is controlled to operate according to the estimated running time, which can ensure that the water outlet temperature of the water heater is appropriate, and ensure system stability and user experience comfort. Attached Figure Description
[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0023] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0024] Figure 1 A flowchart illustrating a water heater control method provided in an embodiment of this application;
[0025] Figure 2A schematic diagram of the working process of a water heater provided in this application embodiment;
[0026] Figure 3 This is a schematic diagram of the structure of a water heater control device provided in an embodiment of this application;
[0027] Figure 4 This is a schematic diagram of the internal structure of a water heater provided in an embodiment of this application. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0029] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0030] To address the technical problem that existing technologies lack a temporary remedial function that can automatically calculate temperature in the event of a faulty temperature sensor, this application provides a water heater control method, device, water heater, and storage medium that can effectively prevent machine downtime caused by sudden temperature sensor failure, thereby enhancing system stability and user experience comfort.
[0031] Figure 1 This is a flowchart illustrating a water heater control method provided in an embodiment of this application.
[0032] like Figure 1 As shown, the water heater control method provided in this embodiment includes:
[0033] Step 101: In the event of a malfunctioning temperature sensor, obtain the current water temperature, the target water temperature, and the compressor's heat output per second;
[0034] Step 102: Based on the current water temperature, the target water temperature, and the heat output per second of the compressor, calculate the first operating time required for the compressor to heat the current water temperature to the target water temperature;
[0035] Step 103: Control the compressor to run for the first duration.
[0036] The method in this embodiment can be applied to water heater equipment in various situations, such as water heater equipment in large residences, various commercial venues, and various industrial venues.
[0037] This embodiment can still estimate the water temperature even when the water tank temperature sensor fails, which is of great significance to the user experience and can greatly improve the user experience.
[0038] Specifically, the compressor's heat output per second varies depending on the stage of operation of the water heater. Specifically: during the commissioning stage, the initial value of the compressor's heat output per second is obtained as the compressor's heat output per second value; during normal use, the corrected value of the compressor's heat output per second is obtained as the compressor's heat output per second value.
[0039] During the commissioning phase, this embodiment determines the compressor's output heat value per second by calculating the heat provided by the compressor.
[0040] In one embodiment, obtaining the initial value of the compressor's heat output per second during the commissioning phase includes: obtaining the water tank volume in liters and the second duration for which the compressor operates at a preset water temperature during the commissioning phase; and calculating the initial value of the compressor's heat output per second based on the water tank volume in liters, the preset temperature, and the second duration.
[0041] Here, the preset temperature can be set according to the situation. For example, the preset stability can be set to 1℃. That is, during the commissioning phase, the compressor runs for a second period of time after obtaining the water volume in the tank and raising the water temperature by 1℃.
[0042] During the commissioning phase, the hot water machine will record the number of liters of water N after the water tank is full and the initial water temperature C1. Then, the compressor will be turned on to heat the water. Heating will stop when the water temperature reaches C1+L℃, and the second running time T1 of the compressor will be recorded at this time.
[0043] Then, based on the water tank volume N, the preset temperature L, and the second duration T1, the initial value of the compressor's heat output per second is calculated using the following formula (1):
[0044]
[0045] Where J1 is the initial value of heat output per second by the compressor, N is the number of liters of water in the water tank, L is the preset temperature, R is the specific heat capacity of water, and T1 is the second duration.
[0046] In this embodiment, during the commissioning phase, the initial value of the heat output per second of the compressor is calculated by calculating the heat provided by the compressor, using the mass relationship between heat and water, and the specific heat capacity formula.
[0047] During normal use, this embodiment determines the compressor's heat output per second through a correction method.
[0048] Specifically, in one embodiment, obtaining the compressor's heat output correction value per second during normal use includes: obtaining a first water temperature value before each heating cycle, a second water temperature value after each heating cycle, a third duration of compressor operation during each heating cycle, and the number of liters of water in the tank; and calculating the compressor's heat output correction value per second based on the first water temperature value, the second water temperature value, the third duration, and the number of liters of water in the tank.
[0049] During normal use, the water heater intermittently heats the water in the tank to maintain a suitable water temperature. Therefore, in each heating cycle, the water heater records the first water temperature value S1 through the water tank temperature sensor before the compressor starts, and records the second water temperature value S2 through the water tank temperature sensor after the compressor stops. It also records the compressor running time, i.e., the third duration T2.
[0050] Therefore, in each heating cycle, based on the first water temperature value S1, the second water temperature value S2, the third duration T2, and the water tank volume N, the compressor output heat correction value per second can be calculated using the following formula (2).
[0051] J2=[(S2-S1)*(R*N)] / T2 Formula (2)
[0052] Wherein, J2 is the compressor's heat output correction value per second, S2 is the second water temperature value, S1 is the first water temperature value, R is the specific heat capacity of water, N is the water volume in the tank, and T2 is the third duration.
[0053] In this embodiment, during normal use, the relationship between water temperature and input heat is automatically corrected through automatic correction, and the correction value of the compressor's output heat per second is calculated.
[0054] In this embodiment, the water heater automatically corrects itself once per heating cycle, obtaining a revised value for the compressor's heat output per second. The water heater stores the latest calculated value for the compressor's heat output per second. Therefore, when the temperature sensor fails, this value for the compressor's heat output per second can be used for calculations in a timely manner.
[0055] In one embodiment, calculating the first operating time required for the compressor to heat the current water temperature to the target water temperature based on the current water temperature, the target water temperature, and the compressor's heat output per second includes: calculating the first operating time required for the compressor to heat the current water temperature to the target water temperature using the following formula (3) based on the current water temperature, the target water temperature, and the compressor's heat output per second:
[0056] ΔW=W2-W1=(J*T) / (R*N) Formula (3)
[0057] Where W1 is the current water temperature, W2 is the target water temperature, J is the heat output per second of the compressor, T is the first duration, R is the specific heat capacity of water, and N is the number of liters of water in the tank.
[0058] Specifically, when the temperature sensor fails, the system retrieves the last recorded effective water temperature value W1 and the user-set target water temperature value W2. Using ΔW = W2 - W1, the temperature difference ΔW is calculated. The compressor's heat output per second J, the water's specific heat capacity R, and the water tank's capacity N are determined. Using ΔW = (J*T) / (R*N), the system calculates the first operating time T required for the compressor to heat the current water to the target temperature, and then controls the compressor to shut down after running for the first time. The displayed water temperature is the user-set target water temperature value W2.
[0059] This embodiment effectively prevents machine downtime caused by sudden temperature sensor malfunctions through the above-described method, enhancing system stability and user experience comfort.
[0060] Furthermore, to enhance the user experience, timely alerts can be issued when the temperature sensor malfunctions. For example, a flashing warning light could be used. In smart home environments, alerts can also be sent to users via SMS.
[0061] The water heater control method provided in this invention, in the event of a temperature sensor failure, acquires the current water temperature, the target water temperature, and the compressor's heat output per second; based on the current water temperature, the target water temperature, and the compressor's heat output per second, it calculates the first operating time required for the compressor to heat the current water temperature to the target water temperature; and controls the compressor to run for the first operating time. The solution provided by this invention, in the event of a temperature sensor failure, utilizes the compressor's pre-stored heat output per second value to estimate the compressor's operating time required to raise the water temperature in the tank to the target water temperature, and controls the compressor's operation based on the estimated operating time, thus ensuring a suitable water temperature from the water heater, guaranteeing system stability and user comfort.
[0062] The following will describe the solution of this embodiment in detail based on a practical application scenario.
[0063] This embodiment can estimate and display the water temperature after the water tank temperature sensor fails, based on the compressor's running time. This embodiment can solve the following problems:
[0064] 1. Resolved the issue of the water tank temperature sensor failing to continue monitoring after malfunction.
[0065] 2. How to calculate the heat input to the water tank.
[0066] 3. Convert the heat input into the water tank into the water tank temperature.
[0067] This embodiment calculates the heat provided by the compressor, so that even if the water tank temperature sensor fails, the increase in water temperature can be calculated using the specific heat capacity formula based on the relationship between heat and water mass. Then, it is added to the original water temperature to obtain an estimated water temperature, effectively preventing machine downtime caused by sudden temperature sensor failure, and enhancing system stability and user experience comfort.
[0068] This system mainly includes the following components: a compressor, a relay, a water temperature sensor, and a controller (MCU). The controller is the core of data processing and judgment, responsible for controlling the compressor's start and stop, calculating the relationship between compressor operating time and output heat, and acquiring data from the water tank temperature sensor. The relay controls the compressor's start and stop according to the controller's instructions. The compressor heats the water in the water tank, and the water temperature sensor detects and acquires the water temperature in the tank.
[0069] The implementation process of the method in this embodiment is as follows:
[0070] After installing the water heater at the user's location, check that the water pipes and electrical circuits are installed correctly. Once the above installation work is confirmed to be correct, proceed to the test mode:
[0071] The first step is to fill the water tank with water and record the water temperature C1 at that time.
[0072] The second step is to turn on the compressor to heat the water. Once the water temperature reaches C1+1℃, stop heating and record the compressor running time T1.
[0073] The third step involves calculating the amount of heat the compressor can provide to the water in the tank per second based on the data obtained in the first two steps and the specific heat capacity formula, and storing this information in the controller.
[0074] The fourth step involves calculating the increase in water temperature based on the water level in the tank and the compressor's running time. This increase is then added to the water temperature before the compressor started to obtain the heated water temperature. This temperature is compared with the temperature detected by the temperature sensor, continuously adjusting the amount of heat the compressor can provide to the water in the tank per second. This ensures the accuracy of the temperature value obtained through this method should the temperature sensor fail.
[0075] See Figure 2 The implementation process of the method in this embodiment can also be as follows:
[0076] After the water heater is installed at the user's location, it will start normally upon startup without requiring any special operation from the user.
[0077] Upon first power-on, the unit will enter debugging mode, requiring you to ensure that all water and electrical circuits are installed.
[0078] The system will work in the following steps:
[0079] 1. The unit fills the water tank with any amount of water, N liters (1 liter weighs 1 kg, N liters is also N kg).
[0080] 2. After the water tank is filled with water, the MCU obtains the water temperature W1 through the water tank temperature sensor.
[0081] 3. After the MCU records the initial water temperature, it starts the compressor. The compressor is turned off when the water temperature increases by 1°C, and the compressor running time T1 is recorded.
[0082] 4. According to the specific heat capacity formula of water R=4200j / kg*℃, the heat J1 input to the water tank per second of the compressor operation can be calculated using the above formula (1). That is, the total heat of the water tank rising by 1℃ divided by the compressor operation time is the heat input to the water tank per second of the compressor.
[0083] 5. Based on the water tank temperature W1 before the compressor is turned on and the user-set water temperature W2, use J1 to calculate the compressor start-up time T, and then turn on the compressor.
[0084] After running for time T, the compressor is turned off. At this time, the water tank temperature is the set temperature W2 and is displayed.
[0085] Of course, here we can also use the following method: Based on J1 obtained in step four, we can combine it with the compressor running time to calculate the temperature rise of the water in the tank after the compressor is turned on, ΔW = (J1*T) / (R*N).
[0086] Let the water tank temperature before the compressor is turned on be W1. Then, its theoretical temperature after the compressor is turned off is W1 + ΔW.
[0087] 6. Automatic correction: During normal use, the system can automatically correct the J value in the following ways:
[0088] Before each compressor is turned on, the water tank temperature S1 is recorded by the water tank temperature sensor. After the compressor is turned off, the water tank temperature S2 is recorded, and the compressor running time is recorded as T2. Then, the latest J2 value after each compressor operation can be calculated according to the formula (2) above.
[0089] This system's method of automatically calibrating and correcting the relationship between water temperature and input heat will first perform automatic debugging after the user completes the installation. After completion, it will continue to automatically detect and correct. If the temperature sensor fails, it will immediately calculate and display the temperature value and remind the user that the temperature sensor needs to be repaired in time.
[0090] Thanks to a special method, the system can continue to estimate the water temperature even if the water tank temperature sensor fails. This is of great significance to the user experience, preventing machine downtime caused by sudden temperature sensor failure. Using this method can greatly improve the user experience, allowing the system to continue operating until maintenance personnel arrive even if the temperature sensor fails.
[0091] To implement the method of the embodiments of the present invention, the embodiments of the present invention also provide a water heater control device, such as... Figure 3 As shown, the water heater control device 300 includes: an acquisition module 301, a calculation module 302, and a control module 303; wherein,
[0092] The acquisition module 301 is used to acquire the current water temperature, the target water temperature, and the compressor's heat output per second in the event of a failure of the temperature sensor.
[0093] The calculation module 302 is used to calculate the first operating time required for the compressor to heat the current water temperature to the target water temperature based on the current water temperature, the target water temperature, and the heat output value per second of the compressor.
[0094] The control module 303 is used to control the compressor to run for the first duration.
[0095] In practical applications, the acquisition module 301, the calculation module 302, and the control module 303 can be implemented by the processor in the water heater control device.
[0096] It should be noted that the above-described apparatus, when executed, is only illustrated by the division of the program modules described above. In actual applications, the processing can be assigned to different program modules as needed, that is, the internal structure of the terminal can be divided into different program modules to complete all or part of the processing described above. Furthermore, the apparatus and method embodiments described above belong to the same concept, and their specific implementation processes are detailed in the method embodiments, and will not be repeated here.
[0097] To implement the method of the embodiments of the present invention, the present invention also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps of the above-described method.
[0098] like Figure 4 As shown in the figure, this application provides a water heater, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0099] Memory 113 is used to store computer programs;
[0100] In one embodiment of this application, the processor 111, when executing a program stored in the memory 113, implements the method provided in any of the foregoing method embodiments.
[0101] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0102] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0103] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0104] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0105] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0106] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0107] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0108] Computer-readable media include both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0109] It is understood that the memory in the embodiments of the present invention can be volatile memory or non-volatile memory, or both. Specifically, non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memories described in the embodiments of this invention are intended to include, but are not limited to, these and any other suitable types of memories.
[0110] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0111] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for controlling a water heater, characterized in that, The water heater control method includes: In the event of a malfunction of the temperature sensor, the current water temperature, the target water temperature, and the compressor's heat output per second are obtained, wherein the current water temperature is the last valid water temperature value recorded by the temperature sensor. Based on the current water temperature, the target water temperature, and the heat output per second of the compressor, calculate the first operating time required for the compressor to heat the current water temperature to the target water temperature; Control the compressor to run for the first duration; The process of obtaining the compressor's heat output per second includes: During the commissioning phase, the initial value of the compressor's heat output per second is obtained as the compressor's heat output per second value. During normal use, the compressor's heat output per second correction value is obtained as the compressor's heat output per second value; The step of obtaining the compressor's heat output correction value per second as the compressor's heat output value per second during normal use includes: During normal use, the first water temperature value before each heating cycle, the second water temperature value after each heating cycle, the third duration of compressor operation and the number of liters of water in the tank during each heating cycle are obtained. The compressor's heat output correction value per second is calculated based on the first water temperature value, the second water temperature value, the third duration, and the water tank volume.
2. The water heater control method according to claim 1, characterized in that, During the commissioning phase, obtaining the initial value of the compressor's heat output per second as the compressor's heat output per second includes: During the commissioning phase, the water tank volume in liters and the second duration of compressor operation to raise the water temperature to the preset temperature are obtained. The initial value of heat output per second by the compressor is calculated based on the water tank capacity, the preset temperature, and the second duration.
3. The water heater control method according to claim 2, characterized in that, The calculation of the initial value of heat output per second by the compressor based on the water tank volume, the preset temperature, and the second duration includes: Based on the water tank volume, the preset temperature, and the second duration, the initial value of the compressor's heat output per second is calculated using the following formula (1): Official (1) Where J1 is the initial value of heat output per second by the compressor, N is the number of liters of water in the water tank, L is the preset temperature, R is the specific heat capacity of water, and T1 is the second duration.
4. The water heater control method according to claim 1, characterized in that, The step of calculating the compressor's heat output correction value per second based on the first water temperature value, the second water temperature value, the third duration, and the water tank volume includes: Based on the first water temperature value, the second water temperature value, the third duration, and the water tank volume, the compressor output heat correction value per second is calculated using the following formula (2); Official (2) Wherein, J2 is the compressor's heat output correction value per second, S2 is the second water temperature value, S1 is the first water temperature value, R is the specific heat capacity of water, N is the water volume in the tank, and T2 is the third duration.
5. The water heater control method according to claim 1, characterized in that, The step of calculating the first operating time required for the compressor to heat the current water temperature to the target water temperature based on the current water temperature, the target water temperature, and the compressor's heat output per second includes: Based on the current water temperature, the target water temperature, and the compressor's heat output per second, the first operating time required for the compressor to heat the current water temperature to the target water temperature is calculated using the following formula (3): ΔW=W2-W1=(J*T) / (R*N) Formula (3) Where W1 is the current water temperature, W2 is the target water temperature, J is the heat output per second of the compressor, T is the first duration, R is the specific heat capacity of water, and N is the number of liters of water in the tank.
6. A water heater control device, characterized in that, The water heater control device includes: The acquisition module is used to acquire the current water temperature, target water temperature, and compressor heat output per second in the event of a temperature sensor failure. The calculation module is used to calculate the first operating time required for the compressor to heat the current water temperature to the target water temperature based on the current water temperature, the target water temperature, and the heat output value per second of the compressor. The control module is used to control the compressor to run for the first duration; The process of obtaining the compressor's heat output per second includes: During the commissioning phase, the initial value of the compressor's heat output per second is obtained as the compressor's heat output per second value. During normal use, the compressor's heat output per second correction value is obtained as the compressor's heat output per second value; The step of obtaining the compressor's heat output correction value per second as the compressor's heat output value per second during normal use includes: During normal use, the first water temperature value before each heating cycle, the second water temperature value after each heating cycle, the third duration of compressor operation and the number of liters of water in the tank during each heating cycle are obtained. The compressor's heat output correction value per second is calculated based on the first water temperature value, the second water temperature value, the third duration, and the water tank volume.
7. A water heater, characterized in that, include: A processor and memory for storing computer programs that can run on the processor; wherein, When the processor is used to run the computer program, it performs the steps of the method according to any one of claims 1 to 5.
8. A storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.