Gas water heater control method and device, controller and gas water heater
By establishing an inverse correlation between water flow and update time, the opening of the bypass valve of the gas water heater is dynamically adjusted, solving the problem of low accuracy and stability of constant temperature control in gas water heaters, and achieving higher control accuracy and stability.
Patent Information
- Application Number
- CN202611322495.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-27
AI Technical Summary
The temperature control accuracy and stability of existing gas water heaters are relatively low, mainly because the fixed frequency adjustment method is difficult to adapt to complex and changing operating conditions, resulting in temperature response lag, overshoot, or oscillation.
A correlation between water flow and update time is established, and the opening of the bypass valve is dynamically adjusted. The target update time is determined based on the current water flow, and the opening of the bypass valve is adjusted at intervals of the target update time. The adjustment is optimized by combining PID algorithm and other methods.
It improves the accuracy and stability of constant temperature control in gas water heaters, enhances dynamic response capabilities, reduces temperature fluctuations, and improves user experience.
Smart Images

Figure CN123174758A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of hot water supply equipment technology, and in particular to a gas water heater control method, device, controller, and gas water heater. Background Technology
[0002] As a commonly used hot water supply device in modern households, the stability of the outlet water temperature of gas water heaters directly affects the user experience. To improve temperature stability, existing technologies typically involve connecting a bypass pipe in parallel between the cold water inlet and hot water outlet of the heat exchanger in the gas water heater, and installing a bypass valve on this bypass pipe. By detecting the temperature difference between the user-set target temperature and the real-time outlet water temperature, the control system adjusts the opening of the bypass valve, thereby changing the mixing ratio of cold and hot water and achieving dynamic adjustment of the outlet water temperature, making the actual outlet water temperature approach the set temperature.
[0003] However, existing control schemes generally use a fixed adjustment frequency to control the bypass valve. This fixed-frequency adjustment method is difficult to adapt to the complex and variable actual operating conditions of gas water heaters, resulting in problems such as temperature response lag, overshoot, or oscillation under certain operating conditions, affecting the accuracy and stability of constant temperature control. Summary of the Invention
[0004] The first technical problem solved by this invention is to provide a gas water heater control method that effectively solves the problems of low accuracy and low stability of constant temperature control in current gas water heaters.
[0005] The second technical problem solved by this invention is to provide a gas water heater control device that effectively solves the problems of low accuracy and low stability of constant temperature control in current gas water heaters.
[0006] The third technical problem solved by this invention is to provide a controller that effectively addresses the issues of low accuracy and low stability in the constant temperature control of current gas water heaters.
[0007] The fourth technical problem solved by this invention is to provide a gas water heater that effectively solves the problems of low accuracy and low stability of constant temperature control in current gas water heaters.
[0008] The first technical problem mentioned above is solved by the following technical solution: A method for controlling a gas water heater, the method comprising: After the gas water heater starts working, the current water flow rate of the gas water heater is obtained in real time; Based on the current water flow rate and the correspondence between water flow rate and update time, the target update time for the bypass valve opening is determined. The correspondence between water flow rate and update time indicates that there is an inverse correlation between water flow rate and update time. Adjust the bypass valve opening of the gas water heater based on the interval target update time.
[0009] Compared with the prior art, the gas water heater control method of the present invention has the following advantages: It establishes a correspondence between the indicated water flow rate and the update time, showing an inverse relationship. Using this correspondence, the target update time for the bypass valve opening is calculated. This allows for a larger target update time when the current water flow rate is low, avoiding frequent adjustments to the bypass valve due to minor temperature fluctuations and improving the stability of the thermostatic control. Conversely, a smaller target update time is used when the current water flow rate is high, enabling the bypass valve to respond quickly to water temperature changes and promptly correct temperature deviations, thus improving the dynamic response capability and accuracy of the thermostatic control. Furthermore, after the gas water heater starts operating, the current water flow rate is acquired in real time. Combining the current water flow rate with the correspondence between the water flow rate and the update time, the target update time for the bypass valve opening is determined. The bypass valve opening is adjusted at intervals corresponding to the target update time, allowing for dynamic and adaptive updates of the target update time based on changes in the current water flow rate. This ensures the target update time matches the current water flow rate, thereby improving the accuracy and stability of the gas water heater's thermostatic control.
[0010] In one embodiment, the target update duration for the bypass valve opening is determined based on the current water flow rate and the correspondence between water flow rate and update duration, including: If the current water flow rate is greater than or equal to the first preset water flow rate, the target update duration is determined to be the first preset duration. If the current water flow is less than the first preset water flow but greater than the second preset water flow, substitute the current water flow into the preset formula for calculation to obtain the target update time; If the current water flow is less than or equal to the second preset water flow, the target update duration is determined to be the second preset duration, wherein the second preset duration is longer than the first preset duration.
[0011] In one embodiment, the preset relationship is obtained by linear interpolation or fitting based on the first preset water flow rate, the second preset water flow rate, the first preset duration, and the second preset duration.
[0012] In one embodiment, the first preset duration corresponds to the minimum update duration of the gas water heater, and the second preset duration corresponds to the maximum update duration of the gas water heater.
[0013] In one embodiment, adjusting the opening of the bypass valve of the gas water heater includes: Get the current outlet water temperature of the gas water heater; The target bypass valve opening is determined based on the temperature difference between the target outlet water temperature and the current outlet water temperature. Adjust the bypass valve opening of the gas water heater based on the difference between the target bypass valve opening and the current bypass valve opening of the gas water heater.
[0014] In one embodiment, adjusting the bypass valve opening of the gas water heater based on the opening difference between the target bypass valve opening and the current bypass valve opening of the gas water heater includes: If the opening difference is less than or equal to the maximum single adjustment opening, the opening of the bypass valve of the gas water heater is adjusted according to the opening difference. The maximum single adjustment opening is used to characterize the maximum adjustment range of the bypass valve opening of the gas water heater in a single adjustment. If the difference in opening degree is greater than the maximum single adjustment opening degree, adjust the opening degree of the bypass valve of the gas water heater according to the maximum single adjustment opening degree.
[0015] In one embodiment, after adjusting the bypass valve opening of the gas water heater at target update intervals, the method further includes: Update the current water flow rate, and based on the updated current water flow rate and the correspondence between water flow rate and update duration, update the target update duration; Adjust the bypass valve opening of the gas water heater based on the target update interval after the interval update.
[0016] The second technical problem mentioned above is solved by the following technical solution: A gas water heater control device, the device comprising: The water flow acquisition module is used to acquire the current water flow of the gas water heater in real time after the gas water heater starts working; The update duration determination module is used to determine the target update duration of the bypass valve opening based on the current water flow rate and the correspondence between water flow rate and update duration. The correspondence between water flow rate and update duration indicates that there is an inverse correlation between water flow rate and update duration. The bypass valve opening adjustment module is used to adjust the bypass valve opening of the gas water heater at intervals of target update.
[0017] The third technical problem mentioned above is solved by the following technical solution: A controller, comprising: The system includes a memory and a processor, which are interconnected and communicate with each other. The memory stores computer instructions, and the processor executes these computer instructions to perform the gas water heater control method described in any of the above embodiments.
[0018] The fourth technical problem mentioned above is solved by the following technical solution: A gas water heater includes a controller, a water flow sensor, a bypass valve, an inlet pipe, an outlet pipe, and a bypass pipe connected between the inlet pipe and the outlet pipe; The water flow sensor is installed on the inlet pipe, and the bypass valve is installed on the bypass pipe. The controller is used to execute the gas water heater control method described in any of the above embodiments. Attached Figure Description
[0019] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram of the structure of a gas water heater provided in an embodiment of the present invention; Figure 2 This is a schematic flowchart of a gas water heater control method provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the process of adjusting the opening of the bypass valve in a gas water heater control method provided in an embodiment of the present invention; Figure 4 This is a structural block diagram of a gas water heater control device provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the hardware structure of a controller provided in an embodiment of the present invention; Explanation of reference numerals in the attached figures: 1. Water flow sensor; 2. Bypass valve; 3. Inlet pipe; 4. Outlet pipe; 5. Bypass pipe; 6. Inlet water temperature sensor; 7. Outlet water temperature sensor. Detailed Implementation
[0021] 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, and 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.
[0022] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "multiple" means two or more.
[0023] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0024] Current gas water heater outlet temperature control schemes generally use a fixed adjustment frequency to control the bypass valve. This fixed-frequency adjustment method is difficult to adapt to the complex and variable actual operating conditions of gas water heaters. Specifically, under low flow conditions, the bypass valve will frequently adjust its opening due to small temperature fluctuations, causing the outlet water temperature to fluctuate and oscillate within a small range. Under high flow conditions, the opening adjustment of the bypass valve cannot respond quickly to temperature changes, easily leading to continuous oscillation of the outlet water temperature exceeding the limit, affecting the accuracy and stability of constant temperature control.
[0025] To address the aforementioned technical problems, this invention provides a gas water heater control method. It establishes an inverse correlation between indicated water flow rate and update time, and uses this correlation to calculate the target update time for the bypass valve opening. This allows for a larger target update time when the current water flow rate is low, avoiding frequent adjustments to the bypass valve due to minor temperature fluctuations and improving the stability of thermostatic control. Conversely, a smaller target update time is used when the current water flow rate is high, enabling the bypass valve to respond quickly to water temperature changes and promptly correct temperature deviations, thus improving the dynamic response capability and accuracy of thermostatic control. Furthermore, after the gas water heater begins operation, the current water flow rate is acquired in real-time. Combining the current water flow rate with the correlation between water flow rate and update time, the target update time for the bypass valve opening is determined. The bypass valve opening is adjusted at intervals corresponding to the target update time, allowing for dynamic and adaptive updates of the target update time based on changes in the current water flow rate. This ensures the target update time matches the current water flow rate, thereby improving the accuracy and stability of the gas water heater's thermostatic control.
[0026] The following is combined Figures 1 to 5 The following describes embodiments of the present invention.
[0027] According to an embodiment of the present invention, a gas water heater is provided. Figure 1 This is a structural schematic diagram of a gas water heater provided in an embodiment of the present invention, as shown below. Figure 1As shown, the gas water heater includes: a controller, a water flow sensor 1, a bypass valve 2, an inlet pipe 3, an outlet pipe 4, and a bypass pipe 5 connecting the inlet pipe 3 and the outlet pipe 4. The inlet pipe 3 is connected to the heat exchanger of the gas water heater, delivering cold water into the inlet pipe 3 to the heat exchanger for heating; the outlet pipe 4 is connected to the heat exchanger of the gas water heater, outputting hot water heated by the heat exchanger; the water flow sensor 1 is installed on the inlet pipe 3 to detect the water flow rate of the gas water heater in real time; the bypass valve 2 is installed on the bypass pipe 5 to control the ratio of water in the inlet pipe 3 flowing to the heat exchanger and the outlet pipe 4, thereby controlling the outlet water temperature of the gas water heater.
[0028] In this embodiment, the gas water heater also includes an inlet water temperature sensor 6 and an outlet water temperature sensor 7. The inlet water temperature sensor 6 is installed on the inlet water pipe 3 and is used to detect the inlet water temperature in real time; the outlet water temperature sensor 7 is installed on the outlet water pipe 4 and is used to detect the outlet water temperature in real time.
[0029] In this embodiment, although Figure 1 As not shown, the controller of the gas water heater is connected to the water flow sensor 1, the inlet water temperature sensor 6, the outlet water temperature sensor 7, and the bypass valve 2 respectively. The controller receives the information detected by the water flow sensor 1, the inlet water temperature sensor 6, and the outlet water temperature sensor 7, and controls the bypass valve 2 based on this information, thereby executing the gas water heater control method described in any embodiment to improve the accuracy and stability of the constant temperature control of the gas water heater.
[0030] According to an embodiment of the present invention, in another aspect, a gas water heater control method is provided. Figure 2 This is a flowchart illustrating a gas water heater control method provided in an embodiment of the present invention, as shown below. Figure 2 As shown, the method includes: Step S201: After the gas water heater starts working, obtain the current water flow rate of the gas water heater in real time.
[0031] In this embodiment, "operation" of the gas water heater refers to the working state it enters after being turned on and receiving the corresponding operating command. At this time, the gas water heater heats the water supplied to it to raise the outlet water to a specified temperature or maintain it near a specified temperature. After the gas water heater starts operating, the current water flow rate of the gas water heater is obtained in real time through the water flow sensor installed within it.
[0032] Step S202: Based on the current water flow rate and the correspondence between water flow rate and update duration, determine the target update duration for the bypass valve opening.
[0033] In this embodiment, the correspondence between water flow rate and update time is a pre-configured mapping relationship between water flow rate and update time stored in the gas water heater. The update time is the interval between two adjustments to the opening of the gas water heater's bypass valve, which is the duration of one control cycle for the gas water heater to control the bypass valve opening. The correspondence between water flow rate and update time indicates an inverse correlation between them. Specifically, for larger water flow rates, the corresponding update time is relatively smaller, allowing the bypass valve to quickly respond to water temperature changes and promptly correct temperature deviations. For smaller water flow rates, the corresponding update time is relatively larger, to avoid frequent adjustments to the bypass valve due to minor temperature fluctuations.
[0034] In this embodiment, after obtaining the current water flow rate, the update time corresponding to the current water flow rate is determined based on the correspondence between the water flow rate and the update time, and the target update time is obtained. The target update time is the interval time corresponding to the next bypass valve opening adjustment, and it is also the duration of the current control cycle.
[0035] Step S203: Adjust the opening of the bypass valve of the gas water heater at the interval target update time.
[0036] In this embodiment, after determining the target update time for the bypass valve opening, the bypass valve opening is adjusted after an interval of the target update time from the last time the bypass valve opening was adjusted. The specific method for adjusting the bypass valve opening can be an algorithm such as PID, ADRC, or LADRC, and no specific limitation is made here.
[0037] In one embodiment, after adjusting the bypass valve opening of the gas water heater at target update intervals, the gas water heater enters a new control cycle. In the new control cycle, the above steps are repeated to update the current water flow rate. Based on the updated current water flow rate and the correspondence between water flow rate and update interval, the target update interval is updated. The bypass valve opening of the gas water heater is then adjusted at intervals following the updated target update interval. Thus, the target update interval is dynamically adjusted according to the real-time changing current water flow rate, ensuring that the target update interval matches the current actual water flow rate, thereby improving the accuracy and stability of the gas water heater's constant temperature control.
[0038] In one embodiment, to avoid fluctuations in water flow, such as those caused by user adjustments to water flow or bypass valve opening, which could lead to fluctuations and oscillations in the target update duration, the target update duration is determined based on the current water flow and the correspondence between water flow and update duration when the current water flow is detected to be stable. Specifically, the stability of the current water flow can be determined by the fluctuation range of the water flow over a certain period. If the fluctuation range of the water flow over a certain period is less than a preset value, then the current water flow is determined to be stable.
[0039] In one embodiment, a correspondence between water flow rate and update time is configured for different models of gas water heaters, and the corresponding correspondence for each model is stored in the controller of the gas water heater, thereby achieving precise adjustment of the target update time.
[0040] In one embodiment, the correspondence between water flow rate and update duration can be divided into multiple segments based on segmented control logic, thereby achieving refined control of the target update duration. For example, the correspondence between water flow rate and update duration can be divided into three segments according to different water flow rates, and different correspondences can be constructed in each segment. For instance, when the water flow rate is greater than or equal to a first preset water flow rate, the update duration corresponding to the water flow rate is set to a fixed first preset duration; when the water flow rate is less than or equal to a second preset water flow rate, the update duration corresponding to the water flow rate is set to a fixed second preset duration; when the water flow rate is between the second preset water flow rate and the first preset water flow rate, a preset relationship indicating an inverse correlation between the water flow rate and the update duration is set, and the first preset duration is set to be less than the second preset duration. Accordingly, when determining the target update duration of the bypass valve opening based on the current water flow rate and the correspondence between water flow rate and update duration, the current water flow rate is compared with the first preset water flow rate and the second preset water flow rate to determine which correspondence is used to determine the target update duration. If the current water flow rate is greater than or equal to the first preset water flow rate, the target update duration is determined to be the first preset duration. If the current water flow rate is less than the first preset water flow rate but greater than the second preset water flow rate, the current water flow rate is substituted into the preset relationship for calculation to obtain the target update duration. If the current water flow rate is less than or equal to the second preset water flow rate, the target update duration is determined to be the second preset duration. For example, the first preset water flow rate can be set to 12 L / min, and the second preset water flow rate can be set to 4 L / min.
[0041] In one embodiment, to ensure the continuity between multiple correspondences and avoid jumps in the target update duration, the preset relationship is obtained by linear interpolation or fitting based on the first preset water flow rate, the second preset water flow rate, the first preset duration, and the second preset duration. The preset relationship obtained by linear interpolation or fitting can take the form of a specific functional relationship, a fitted curve, or a numerical mapping table; no specific limitations are imposed here.
[0042] In one embodiment, the first preset duration corresponds to the minimum update duration of the gas water heater, and the second preset duration corresponds to the maximum update duration of the gas water heater. For example, the first preset duration can be set to 10ms, and the second preset duration can be set to 500ms.
[0043] It should be noted that the above is just an example of dividing the correspondence between water flow and update duration into three segments. In practical applications, the correspondence between water flow and update duration can be divided into more or fewer segments according to specific application requirements. No specific restrictions are imposed here.
[0044] In one embodiment, in step S203 above, a PID algorithm can be used to adjust the opening degree of the bypass valve to improve the accuracy and stability of the bypass valve opening adjustment, thereby improving the accuracy and stability of the constant temperature control of the gas water heater. Specifically, Figure 3 This is a flowchart illustrating the adjustment of the bypass valve opening in a gas water heater control method provided in an embodiment of the present invention. Figure 3 As shown, step S203 above may include the following steps: Step S301: Obtain the current outlet water temperature of the gas water heater.
[0045] In this embodiment, the current outlet water temperature of the gas water heater is obtained in real time through an outlet water temperature sensor.
[0046] Step S302: Determine the target bypass valve opening based on the temperature difference between the target outlet water temperature and the current outlet water temperature.
[0047] In this embodiment, the target outlet water temperature is the temperature set by the user based on their water usage needs. Based on the temperature difference between the target outlet water temperature and the current outlet water temperature, the bypass valve opening required to reach the target outlet water temperature under the current operating conditions is calculated, which is the target bypass valve opening.
[0048] In one embodiment, a PID algorithm can be used to determine the target bypass valve opening, which can then be determined by the following formula:
[0049] in, for The bypass valve opening at any given time, i.e., the target bypass valve opening; for Temperature deviation at any time for Temperature deviation at any given time, and , , To set the target outlet water temperature, for The current outlet water temperature at any given moment. for The current outlet water temperature at any given moment; From the initial moment to The accumulated temperature deviation over time, i.e., the sum of temperature deviations; This is a proportionality coefficient, which determines the strength of the response to the current temperature deviation; This is the integral coefficient, which determines the intensity of the response to accumulated temperature deviations and is used to eliminate steady-state errors; The differential coefficient determines the strength of the response to the rate of change of temperature deviation, and is used to suppress overshoot and oscillation; The sampling period is the target update time.
[0050] Step S303: Based on the opening difference between the target bypass valve opening and the current bypass valve opening of the gas water heater, adjust the bypass valve opening of the gas water heater.
[0051] In this embodiment, the bypass valve opening is adjusted using an incremental adjustment method. Specifically, the opening difference between the target bypass valve opening and the current bypass valve opening is calculated, and the bypass valve opening is adjusted based on this opening difference.
[0052] In one embodiment, to avoid excessive adjustment of the bypass valve opening in a single adjustment, which could lead to loss of synchronization or impact, the maximum single adjustment of the bypass valve opening is limited in one adjustment to ensure the stability and reliability of the bypass valve opening adjustment. Specifically, if the opening difference is less than or equal to the maximum single adjustment opening, the bypass valve opening of the gas water heater is adjusted according to the opening difference; if the opening difference is greater than the maximum single adjustment opening, the bypass valve opening of the gas water heater is adjusted according to the maximum single adjustment opening; wherein, the maximum single adjustment opening is used to characterize the maximum adjustment range of the bypass valve opening of the gas water heater in a single adjustment.
[0053] The gas water heater control method provided by this invention establishes an inverse correlation between indicated water flow rate and update time. Using this correlation, a target update time for the bypass valve opening is calculated. This allows for a larger target update time when the current water flow rate is low, avoiding frequent adjustments to the bypass valve due to minor temperature fluctuations and improving the stability of thermostatic control. Conversely, a smaller target update time is used when the current water flow rate is high, enabling the bypass valve to respond quickly to water temperature changes and promptly correct temperature deviations, thus improving the dynamic response capability and accuracy of thermostatic control. Furthermore, after the gas water heater starts operating, the current water flow rate is acquired in real time. Combining the current water flow rate with the correlation between water flow rate and update time, the target update time for the bypass valve opening is determined. The bypass valve opening is adjusted at intervals corresponding to the target update time, allowing for dynamic and adaptive updates of the target update time based on changes in the current water flow rate. This ensures the target update time matches the current water flow rate, thereby improving the accuracy and stability of the gas water heater's thermostatic control.
[0054] According to an embodiment of the present invention, in another aspect, a gas water heater control device is provided for implementing the above embodiments and preferred embodiments, which will not be repeated hereafter. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated. Figure 4 As shown, the device includes: The water flow acquisition module 401 is used to acquire the current water flow of the gas water heater in real time after the gas water heater is working. The update duration determination module 402 is used to determine the target update duration of the bypass valve opening based on the current water flow rate and the correspondence between water flow rate and update duration. The correspondence between water flow rate and update duration indicates that there is an inverse correlation between water flow rate and update duration. The bypass valve opening adjustment module 403 is used to adjust the bypass valve opening of the gas water heater at interval target update intervals.
[0055] In one embodiment, the update duration determination module 402 includes: The first determining unit is used to determine the target update duration as the first preset duration if the current water flow is greater than or equal to the first preset water flow. The second determining unit is used to calculate the target update time by substituting the current water flow into a preset formula if the current water flow is less than the first preset water flow and greater than the second preset water flow. The third determining unit is used to determine the target update duration as the second preset duration if the current water flow is less than or equal to the second preset water flow, wherein the second preset duration is longer than the first preset duration.
[0056] In one embodiment, the preset relationship is obtained by linear interpolation or fitting based on the first preset water flow rate, the second preset water flow rate, the first preset duration, and the second preset duration.
[0057] In one embodiment, the first preset duration corresponds to the minimum update duration of the gas water heater, and the second preset duration corresponds to the maximum update duration of the gas water heater.
[0058] In one embodiment, the bypass valve opening adjustment module 403 includes: The outlet water temperature acquisition unit is used to acquire the current outlet water temperature of the gas water heater; The bypass valve opening determination unit is used to determine the target bypass valve opening based on the temperature difference between the target outlet water temperature and the current outlet water temperature. The bypass valve opening adjustment unit is used to adjust the bypass valve opening of the gas water heater based on the opening difference between the target bypass valve opening and the current bypass valve opening of the gas water heater.
[0059] In one embodiment, the bypass valve opening adjustment unit includes: The first adjustment subunit is used to adjust the opening of the bypass valve of the gas water heater according to the opening difference if the value of the opening difference is less than or equal to the maximum single adjustment opening. The maximum single adjustment opening is used to characterize the maximum adjustment range of the bypass valve opening of the gas water heater in a single adjustment. The second regulating subunit is used to adjust the opening of the bypass valve of the gas water heater according to the maximum single adjustment opening if the value of the opening difference is greater than the maximum single adjustment opening.
[0060] In one embodiment, the device further includes: The update duration determination module 402 is also used to update the current water flow rate and update the target update duration based on the updated current water flow rate and the correspondence between water flow rate and update duration. The bypass valve opening adjustment module 403 is also used to adjust the bypass valve opening of the gas water heater after the target update time after the interval update.
[0061] The gas water heater control device provided in this embodiment of the invention can execute the gas water heater control method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as in the corresponding embodiments described above, and will not be repeated here.
[0062] Figure 5This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0063] The following is a detailed reference. Figure 5 The diagram illustrates a structural schematic suitable for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from memory 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device. The processor 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0064] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.
[0065] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a memory 508, or installed from a ROM 502. When the computer program is executed by the processor 501, it performs the functions defined in the gas water heater control method of the embodiments of the present invention.
[0066] Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present invention.
[0067] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the gas water heater control method shown in the above embodiments is implemented.
[0068] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0069] In the specific implementation of the above embodiments, the technical features can be combined in any non-contradictory way. For the sake of brevity, not all possible combinations of the above technical features are described. However, as long as the combination of these technical features is not contradictory, it should be considered to be within the scope of this specification.
[0070] The specific embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.
Claims
1. A method for controlling a gas water heater, characterized in that, The method includes: After the gas water heater starts working, the current water flow rate of the gas water heater is obtained in real time; Based on the current water flow rate and the correspondence between water flow rate and update duration, the target update duration for the bypass valve opening is determined, wherein the correspondence between water flow rate and update duration indicates an inverse correlation between water flow rate and update duration; Adjust the opening degree of the bypass valve of the gas water heater at intervals of the target update time.
2. The method according to claim 1, characterized in that, The determination of the target update time for the bypass valve opening based on the current water flow rate and the correspondence between water flow rate and update time includes: If the current water flow rate is greater than or equal to the first preset water flow rate, the target update duration is determined to be the first preset duration; If the current water flow rate is less than the first preset water flow rate but greater than the second preset water flow rate, the current water flow rate is substituted into the preset formula for calculation to obtain the target update time; If the current water flow rate is less than or equal to the second preset water flow rate, the target update duration is determined to be the second preset duration, wherein the second preset duration is longer than the first preset duration.
3. The method according to claim 2, characterized in that, The preset relationship is obtained by linear interpolation or fitting based on the first preset water flow rate, the second preset water flow rate, the first preset duration, and the second preset duration.
4. The method according to claim 2 or 3, characterized in that, The first preset duration corresponds to the minimum update duration of the gas water heater, and the second preset duration corresponds to the maximum update duration of the gas water heater.
5. The method according to claim 1, characterized in that, Adjusting the opening of the bypass valve of the gas water heater includes: Obtain the current outlet water temperature of the gas water heater; The target bypass valve opening is determined based on the temperature difference between the target outlet water temperature and the current outlet water temperature. The opening degree of the bypass valve of the gas water heater is adjusted based on the opening degree difference between the target bypass valve opening degree and the current bypass valve opening degree of the gas water heater.
6. The method according to claim 5, characterized in that, The step of adjusting the bypass valve opening of the gas water heater based on the opening difference between the target bypass valve opening and the current bypass valve opening of the gas water heater includes: If the value of the opening difference is less than or equal to the maximum single adjustment opening, the opening of the bypass valve of the gas water heater is adjusted according to the opening difference, wherein the maximum single adjustment opening is used to characterize the maximum adjustment range of the single adjustment of the bypass valve opening of the gas water heater. If the value of the opening difference is greater than the maximum single adjustment opening, the opening of the bypass valve of the gas water heater is adjusted according to the maximum single adjustment opening.
7. The method according to claim 1, characterized in that, After adjusting the bypass valve opening of the gas water heater at intervals specified in the target update interval, the method further includes: Update the current water flow rate, and based on the updated current water flow rate and the correspondence between water flow rate and update duration, update the target update duration; The target update time after the interval update is used to adjust the opening degree of the bypass valve of the gas water heater.
8. A control device for a gas water heater, characterized in that, The device includes: The water flow acquisition module is used to acquire the current water flow of the gas water heater in real time after the gas water heater starts working; The update duration determination module is used to determine the target update duration of the bypass valve opening based on the current water flow rate and the correspondence between water flow rate and update duration, wherein the correspondence between water flow rate and update duration indicates that there is an inverse correlation between water flow rate and update duration; The bypass valve opening adjustment module is used to adjust the opening of the bypass valve of the gas water heater at intervals of the target update time.
9. A controller, characterized in that, include: The system includes a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the gas water heater control method according to any one of claims 1 to 7.
10. A gas-fired water heater, characterized in that, Includes a controller, a water flow sensor, a bypass valve, an inlet pipe, an outlet pipe, and a bypass pipe connecting the inlet pipe and the outlet pipe; The water flow sensor is installed on the inlet pipe, and the bypass valve is installed on the bypass pipe; The controller is used to execute the gas water heater control method according to any one of claims 1-7.
