Temperature control method and device of gas water heater, gas water heater and medium

Through the application of first-order nonlinear self-immune disturbance controller, differential tracker, nonlinear state error feedback compensator and observer, the stability problem in the temperature control of gas water heater is solved, and high frequency and high amplitude disturbance is achieved The effective control of the water outlet temperature improves the stability.

CN118935747APending Publication Date: 2024-11-12GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411176092.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing gas water heaters have large time lag and weak anti-interference ability in temperature control, resulting in unstable water outlet temperature, especially when the water flow fluctuates effectively.

Method used

The first-order nonlinear self-immune disturbance controller is adopted to generate the target effluent temperature through a differential tracker, a nonlinear state error feedback compensator and a nonlinear expansion state observer.

Benefits of technology

It significantly improves the control stability of the gas water heater on the outlet water temperature, and can be effectively controlled especially in the case of high-frequency and high-amplitude disturbances, enhancing the system's immunity performance and control accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118935747A_ABST
    Figure CN118935747A_ABST
Patent Text Reader

Abstract

The invention discloses a temperature control method and device of a gas water heater, the gas water heater and a medium. The method comprises the steps that the set temperature and input power of the gas water heater are obtained; and the first-order nonlinear active-disturbance-rejection controller is used for conducting active-disturbance-rejection control processing on the gas water heater based on the set temperature and the input power, and the target outlet water temperature is generated. The first-order nonlinear active-disturbance-rejection controller is adopted for conducting active-disturbance-rejection control processing on the gas water heater based on the set temperature and the input power, the high-frequency high-amplitude disturbance can be well controlled, and the stability of the gas water heater for controlling the outlet water temperature can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of gas water heaters, and in particular to a temperature control method and device for a gas water heater, a gas water heater and a medium. Background Art

[0002] The gas water heater control system has the characteristics of large time lag, weak anti-interference ability and large inertia. In the actual operation of the gas water heater, the fluctuation of water flow will cause the gas water heater model to change. In addition, in order to ensure the combustion efficiency of the gas and avoid the incomplete combustion of the gas to produce different concentrations of carbon monoxide, which will pollute the environment, the advanced gas water heaters in the industry usually design the fire row slices into three sections, and switch the opening and closing of the section valve according to different working conditions to control the combustion area of ​​the fire row slices. By switching the section valve, changing the combustion area of ​​the fire row slice will also cause changes in the gas water heater model parameters, and there will be problems with manual and automatic control switching in the process of switching the section valve. Therefore, there are various interferences in the actual gas water heater control, which requires the controller of the gas water heater system to have a strong anti-interference ability.

[0003] Due to the complexity of actual working conditions, the existing gas water heater uses a second-order anti-disturbance controller constructed by an anti-disturbance control algorithm for temperature control. Since there are many interference quantities in the water heater system, such as: water inlet temperature, gas flow, water flow, air flow and other interference quantities, the fluctuation of each interference quantity will cause the fluctuation of the outlet water temperature. Therefore, the existing method is difficult to ensure the stability of the outlet water temperature control of the gas water heater. Summary of the invention

[0004] The embodiments of the present invention provide a temperature control method and device for a gas water heater, a gas water heater and a medium, so as to improve the stability of the gas water heater in controlling the outlet water temperature.

[0005] In a first aspect, an embodiment of the present invention provides a temperature control method for a gas water heater, comprising:

[0006] Get the set temperature and input power of the gas water heater;

[0007] The gas water heater is subjected to an auto-disturbance rejection control process based on the set temperature and the input power by a first-order nonlinear auto-disturbance rejection controller to generate a target water outlet temperature.

[0008] In a second aspect, an embodiment of the present invention provides a temperature control device for a gas water heater, comprising:

[0009] A parameter acquisition unit, used to obtain the set temperature and input power of the gas water heater;

[0010] The automatic disturbance rejection processing unit is used to perform an automatic disturbance rejection control process on the gas water heater based on the set temperature and the input power through a first-order nonlinear automatic disturbance rejection controller to generate a target water outlet temperature.

[0011] In a third aspect, an embodiment of the present invention provides a gas water heater, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the temperature control method of the gas water heater described in the first aspect when executing the computer program.

[0012] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the temperature control method of the gas water heater described in the first aspect above.

[0013] The embodiment of the present invention provides a temperature control method, device, gas water heater and medium for a gas water heater, the method comprising: obtaining a set temperature and input power of the gas water heater; performing an auto-disturbance rejection control process on the gas water heater based on the set temperature and the input power by a first-order nonlinear auto-disturbance rejection controller to generate a target outlet water temperature. The embodiment of the present invention uses a first-order nonlinear auto-disturbance rejection controller to perform an auto-disturbance rejection control process on the gas water heater based on the set temperature and the input power, which can achieve a higher control effect on high-frequency and high-amplitude disturbances, and is conducive to improving the stability of the gas water heater in controlling the outlet water temperature. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0015] Figure 1 A schematic flow chart of a temperature control method for a gas water heater provided in an embodiment of the present invention;

[0016] Figure 2 A schematic diagram of a sub-flow chart of a temperature control method for a gas water heater provided in an embodiment of the present invention;

[0017] Figure 3 A schematic diagram of a sub-flow chart of a temperature control method for a gas water heater provided in an embodiment of the present invention;

[0018] Figure 4 A schematic diagram of a sub-flow chart of a temperature control method for a gas water heater provided in an embodiment of the present invention;

[0019] Figure 5 A schematic diagram of a sub-flow chart of a temperature control method for a gas water heater provided in an embodiment of the present invention;

[0020] Figure 6 A schematic flow chart of a temperature control method for a gas water heater provided in another embodiment of the present invention;

[0021] Figure 7 A schematic diagram of the system control effect provided by an embodiment of the present invention;

[0022] Figure 8 A schematic diagram of a large disturbance effect of a system setting provided in an embodiment of the present invention;

[0023] Fig. 9 A schematic diagram of the effect of estimating the disturbance amount of the observer provided in an embodiment of the present invention;

[0024] Fig.10 A schematic diagram of a simulation effect of a control variable change provided by an embodiment of the present invention;

[0025] Fig.11 A schematic diagram of an actual output effect estimated by an observer provided in an embodiment of the present invention;

[0026] Fig.12 A schematic block diagram of a temperature control device for a gas water heater provided in an embodiment of the present invention;

[0027] Fig.13 A schematic block diagram of a gas water heater provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0030] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0031] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0032] See also Figure 1 , Figure 1 A flow chart of a temperature control method for a gas water heater provided in an embodiment of the present invention. The temperature control method for a gas water heater provided in an embodiment of the present invention is applied to a gas water heater.

[0033] S1. Obtain the set temperature and input power of the gas water heater.

[0034] Specifically, the algorithm used in the embodiment of the present application is the ADRC algorithm, which is called Active Disturbance Rejection Control. This algorithm is an advanced control algorithm that achieves precise control of the system by real-time estimation and compensation of internal and external disturbances of the system. The scenario to be used in the embodiment of the present application is to control the outlet water temperature of the gas water heater. Therefore, in the embodiment of the present application, the set temperature and input power of the gas water heater are used as the input of the entire system, and the water flow rate can be used as the interference quantity.

[0035] The set temperature refers to the outlet water temperature of the gas water heater that the user wants to set. The specific problem is set by the user according to the actual situation. The input power refers to the initial power of the gas water heater. The user can also set the corresponding power level of the gas water heater. One power level corresponds to one input power.

[0036] S2. Performing an auto-disturbance rejection control process on the gas water heater based on the set temperature and the input power through a first-order nonlinear auto-disturbance rejection controller to generate a target water outlet temperature.

[0037] Specifically, the existing method is to use a second-order linear anti-disturbance control controller to control the temperature of the gas water heater. However, in order to solve the limitations of linear anti-disturbance control and further ensure the accuracy of the model, this method needs to continuously adjust the relevant parameters of LADRC to ensure the reliability of the control algorithm, reduce the disturbance as much as possible, and use the method of switching models and parameters to control it in sections for large disturbances, but the improvement effect is not significant. The embodiment of the present application uses a first-order nonlinear anti-disturbance control controller to perform anti-disturbance control on the gas water heater based on the set temperature and input power to generate the target water outlet temperature, which can achieve a higher control effect on high-frequency and high-amplitude disturbances, and is conducive to improving the stability of the gas water heater's control of the water outlet temperature. The embodiment of the present application uses a first-order nonlinear anti-disturbance control controller to perform anti-disturbance control on the gas water heater, which is an effective control strategy. It realizes precise control of the system through three core parts: differential tracker, nonlinear state error feedback compensator and nonlinear extended state observer, and has the advantages of not relying on accurate mathematical models, strong anti-disturbance performance and high control accuracy.

[0038] Compared with the linear ADRC, the embodiment of the present application uses a linear extended observer and a PI controller if the LADCR is set to the same large-amplitude disturbance. No matter how the relevant parameters are adjusted, the system cannot effectively suppress disturbances and achieve control effects, and the nonlinear ADRC automatically has higher system adaptability and robustness, and also has better control effects on changes in the system transfer function caused by water flow disturbances. If the system center transfer function is changed, for the linear ADRC, it is necessary to readjust the parameters to achieve better control effects. However, for the nonlinear ADRC (NLADRC), if the transfer function is changed, the same parameters can still allow the system to quickly achieve a stable effect without the need to readjust the parameters. Among them, the first-order nonlinear ADRC includes a differential tracker, a nonlinear state error feedback compensator, and a nonlinear extended state observer.

[0039] See also Figure 2 , Figure 2 A specific implementation of step S2 is shown, which is described in detail as follows:

[0040] S21: The differential tracker performs a smooth transition calculation based on the set temperature to generate a transition temperature.

[0041] Specifically, the differential tracker (Tracking Differentiator, TD) can smooth the set temperature signal. This helps to reduce the overshoot of the system to temperature changes and improve the dynamic response performance of the system. The differential tracker is designed as a link with a filtering function, which can eliminate noise in the input signal and generate a smooth tracking signal. In an embodiment of the present application, a smooth transition calculation is performed based on the set temperature by the differential tracker to generate a transition temperature, which is used as one of the inputs of the nonlinear state error feedback compensator.

[0042] S22: Obtain system model parameters, and generate state estimation values ​​and disturbance estimation values ​​based on the input power, the system model parameters and the output value of the gas water heater through the nonlinear extended state observer.

[0043] Specifically, the Nonlinear Extended State Observer (NESO) estimates the state variables and total disturbance of the system in real time based on the input and output data of the gas water heater (such as input power, water outlet temperature, etc.). The Nonlinear Extended State Observer observes the unknown disturbance as an extended state of the system, thereby achieving real-time estimation and compensation of the disturbance. This observer design enables the controller to better cope with system uncertainties and external disturbances.

[0044] Among them, the state estimate is the estimate of the current state of the system calculated by NESO based on the input and output data of the system through a specific algorithm. In the gas water heater, these state estimates are the outlet water temperature estimates, which are based on the changes in input power and outlet water temperature. NESO can estimate the outlet water temperature inside the water heater. This helps the controller understand the current water temperature state and adjust the gas flow and water flow to achieve the target outlet water temperature.

[0045] Specifically, the disturbance estimate is the result of NESO's real-time estimation of various disturbance factors that affect the system output. In a gas water heater, these disturbance factors may include: Water temperature fluctuations: Water temperature fluctuations caused by changes in external ambient temperature or changes in the heat exchange efficiency inside the water heater. Water pressure changes: Instability in water supply pressure affects water flow and outlet water temperature. Gas pressure changes: Changes in gas pressure directly affect combustion efficiency and heat output. Among them, the system model parameters are estimates of system gains.

[0046] Furthermore, the embodiment of the present application provides a discretization formula of a nonlinear extended state observer:

[0047]

[0048] Among them, the nonlinear error tracking function is:

[0049]

[0050] Wherein, e(k) is the deviation between the set temperature and the outlet water temperature, y(k) is the outlet water temperature, z1(k) is the state estimation value, z2(k) is the disturbance estimation value, β 01 , β 02 is the observer gain, α, α1, α2 and δ are the parameters of the nonlinear error tracking function, u(k) represents the control input value at time point k, b is the system model coefficient, bu(k) represents the influence of the control input value u(k) on the system state through the system model coefficient b at time point k.

[0051] See also Figure 3 , Figure 3 A specific implementation of step S22 is shown, which is described in detail as follows:

[0052] S221: Acquire the system model parameters, and acquire the initial water outlet temperature of the gas water heater through a sensor.

[0053] S222: Convert the initial water outlet temperature into an electrical signal to generate an output value of the gas water heater.

[0054] S223: Generate a first input of the nonlinear extended state observer according to the system model coefficient and the input power, and use the output value of the gas water heater as a second input.

[0055] S224: Calculate estimated values ​​based on the first input and the second input by the nonlinear extended state observer to generate the state estimated value and the disturbance estimated value.

[0056] Specifically, if the first-order nonlinear anti-disturbance controller does not control the gas water heater, the outlet water temperature at this time is used as the output value of the gas water heater, that is, as the second output; if the first-order nonlinear anti-disturbance controller controls the gas water heater, the output of the gas water heater, that is, the processed outlet water temperature, is obtained as the second output. In addition, the system model coefficient is multiplied by the input power, and the multiplication result is used as the first input of the nonlinear extended state observer; finally, the nonlinear extended state observer performs an estimated value calculation based on the first input and the second input to generate a state estimated value and a disturbance estimated value.

[0057] S23: The nonlinear state error feedback compensator performs compensation calculation based on the transition temperature, the system model parameters, the state estimation value, the input power and the disturbance estimation value to generate control power.

[0058] Specifically, the nonlinear state error feedback compensator (NLSEF) calculates the control input based on the output of the differential tracker (i.e., the smoothed set temperature) and the estimated results of the extended state observer (i.e., the estimated values ​​of the system state and total disturbance) to compensate for the nonlinear characteristics and external disturbances within the system. A nonlinear combination method is used to improve the control performance and robustness of the system. By adjusting the control input in real time, the system output (i.e., the outlet water temperature) can quickly and accurately track the set temperature.

[0059] See also Figure 4 , Figure 4 A specific implementation of step S23 is shown, which is described in detail as follows:

[0060] S231: Perform error calculation on the transition temperature and the state estimation value to generate an error signal.

[0061] Specifically, the difference between the transition temperature and the state estimate is calculated by a simple subtraction operation, that is, error = transition temperature - state estimate. This difference reflects the degree of deviation between the current system state and the target state. The calculated error value is output as an error signal. This error signal will be used in subsequent compensation calculations to guide the control system on how to adjust its output to reduce the error.

[0062] S232: Perform calculation based on the input power, the system model parameters and the disturbance estimation value to generate a power estimation value.

[0063] See also Figure 5 , Figure 5 A specific implementation of step S232 is shown, which is described in detail as follows:

[0064] S2321: Calculate the difference between the input power and the disturbance estimation value to generate a power error value.

[0065] S2322: Multiply the reciprocal of the system model coefficient by the power error value to obtain the power estimation value.

[0066] Specifically, first, extract the current input power value and disturbance estimate. The input power value represents the amount of energy currently supplied to the water heater, while the disturbance estimate reflects the impact of external factors (such as water temperature fluctuations, pressure changes, etc.) on system performance. Next, calculate the difference between the input power and the disturbance estimate. The purpose of this step is to quantify the actual impact of the disturbance on the input power, so as to obtain a power error value. This error value represents the amount of additional or reduced power required by the system to offset the impact of the disturbance. Finally, multiply the inverse of the system model coefficient by the power error value to obtain the power estimate.

[0067] It should be noted that the "difference calculation" here may not be a simple subtraction operation, but a specific algorithm designed according to system characteristics and control strategies. In some cases, it may also be necessary to weight or transform the disturbance estimate to more accurately reflect its impact on the input power.

[0068] S233: Generate the control power by performing compensation calculation based on the error signal and the power estimation value using the state estimation value and the disturbance estimation value.

[0069] Specifically, the error signal, state estimation value, disturbance estimation value and power estimation value obtained in the previous steps are used to perform compensation calculation to generate the final control power. The specific process is as follows:

[0070] Comprehensive information analysis: First, comprehensively analyze the error signal, state estimation value, disturbance estimation value and power estimation value to understand the overall state of the current system and the direction that needs to be adjusted.

[0071] Compensation strategy formulation: Based on the above analysis, a compensation strategy is formulated. This strategy aims to reduce the error by adjusting the control power, while considering the impact of disturbances on the system to ensure that the system can stably approach the target state.

[0072] Control power calculation: According to the compensation strategy, the final control power value is calculated through a nonlinear function.

[0073] Output control power: Finally, the calculated control power value is output to the gas water heater's actuator (such as gas valve, water pump, etc.) to adjust the water heater's operating state and achieve precise control of the outlet water temperature.

[0074] S24: Calculating the outlet water temperature of the gas water heater based on the control power to obtain the target outlet water temperature.

[0075] Specifically, the above steps have calculated the control power of the gas water heater, so the outlet water temperature of the gas water heater can be calculated according to the control power to obtain the target outlet water temperature.

[0076] See also Figure 6 , Figure 6 A specific implementation method before step S24 is shown, which is described in detail as follows:

[0077] S241: Collecting the water flow, water inlet temperature and power of the gas water heater.

[0078] S242: Taking the water flow, the water inlet temperature and the power as input quantities, and the temperature rise as output quantity, the parameter identification toolbox of MATLAB is used to estimate the state space equation model based on the input quantities and output quantities, so as to obtain the physical model of the gas water heater.

[0079] Specifically, a physical model of the gas water heater can be constructed, and the outlet water temperature can be calculated based on the control power according to the physical model to obtain the target outlet water temperature. Then, the water flow, inlet water temperature and power are used as input quantities, and the temperature rise is used as the output quantity. The parameter identification toolbox of MATLAB is used to estimate the state space equation model based on the input quantity and the output quantity to obtain the physical model of the gas water heater.

[0080] Among them, MATLAB (Matrix Laboratory) is a mathematical computing software developed by MathWorks, which is widely used in algorithm development, data analysis, visualization and numerical calculation of advanced technical computing language and interactive environment. MATLAB's parameter identification toolbox (System Identification Toolbox) is a powerful toolbox that is specifically used to deal with system identification problems, that is, to estimate the dynamic model of the system based on the input and output data of the system. This toolbox provides a variety of model structures and parameter estimation methods to help users extract the mathematical model of the system from experimental data.

[0081] See also Figures 7 to 11 , Figure 7 A schematic diagram of the system control effect provided by an embodiment of the present invention; Figure 8 A schematic diagram of a large disturbance effect of a system setting provided in an embodiment of the present invention; Fig. 9 A schematic diagram of the effect of estimating the disturbance amount of the observer provided in an embodiment of the present invention; Fig.10 A schematic diagram of a simulation effect of a control variable change provided by an embodiment of the present invention; Fig.11 A schematic diagram of an actual output effect estimated by an observer provided in an embodiment of the present invention.

[0082] In order to verify the feasibility of the algorithm corresponding to the first-order nonlinear active disturbance rejection controller adopted in the embodiment of the present application, the embodiment of the present application performs simulation verification on the algorithm.

[0083] First, the state space equation model of the gas water heater is constructed. When establishing the state space equation model, the water heater temperature control algorithm is deleted and only the water heater open-loop control logic is retained. That is, the temperature control algorithm in the gas water heater is deleted during modeling, and only a power signal of the model is given. Then the water flow, water inlet temperature, and power are taken as input quantities, and the temperature rise is taken as the output quantity. Multiple sets of data are collected, and the state space equation model is estimated using the parameter identification toolbox of MATLAB. After the state space equation model is established, it is deduced that the physical model of the gas water heater and its system transfer function are a first-order high-delay system, and the system has one pole and zero zeros. Then, based on the existing second-order nonlinear active disturbance rejection control algorithm (ADRC) formula, the logic formula of the currently used first-order nonlinear active disturbance rejection algorithm is derived. Among them, the first-order linear active disturbance rejection algorithm adopts nonlinear state error feedback and nonlinear expansion error observer, and the second-order nonlinear expansion observer in the second-order nonlinear active disturbance rejection algorithm is reduced to a first-order nonlinear expansion observer. The observer input is the system output (temperature) and the system control quantity (input power), and the observer observes the system output and the total disturbance of the system. Then, an open-loop test is conducted on the actual water heater system, and the transfer function of the actual water heater system is derived using the parameter identification method. Finally, a simulation model is built based on the transfer function and the ADRC algorithm to verify the algorithm parameters and observe the control effect.

[0084] like Figures 7 to 11 It can be seen that the first-order nonlinear auto-disturbance rejection algorithm based on the gas water heater model has a significant control effect, the output and disturbance estimated by the observer are accurate, and it has a good control effect on various disturbances. Compared with linear LADRC, if LADCR is set to the same large-amplitude disturbance, the linear expansion observer and the PI controller are used, no matter how the relevant parameters are adjusted, the system cannot effectively suppress the disturbance and achieve the control effect. Moreover, nonlinear auto-disturbance rejection has higher system adaptability and robustness, and has a better control effect on the change of system transfer function caused by water flow disturbance. From the simulation effect, if the system center transfer function is changed during the simulation of nonlinear auto-disturbance rejection control, for linear auto-disturbance rejection control (LADRC), it is necessary to readjust the parameters to achieve a better control effect. However, for nonlinear auto-disturbance rejection control (NLADRC), if the transfer function is changed, the same parameters can still allow the system to quickly reach a stable effect without the need to readjust the parameters. Therefore, through the verification of the Simulink simulation model, the first-order nonlinear anti-disturbance controller has excellent control effect on the transfer function of the gas water heater, can make a high estimation and tracking of various disturbance errors of the system, and the system output can quickly track the input response with fast speed, low overshoot and easy parameter adjustment.

[0085] In the embodiment of the present application, the set temperature and input power of the gas water heater are obtained; the gas water heater is subjected to auto-disturbance rejection control based on the set temperature and the input power by a first-order nonlinear auto-disturbance rejection controller to generate a target outlet water temperature. The embodiment of the present invention uses a first-order nonlinear auto-disturbance rejection controller to perform auto-disturbance rejection control on the gas water heater based on the set temperature and the input power, which can achieve a higher control effect on high-frequency and high-amplitude disturbances, and is beneficial to improving the stability of the gas water heater in controlling the outlet water temperature.

[0086] The embodiment of the present invention further provides a temperature control device for a gas water heater, which is used to execute any embodiment of the temperature control method for a gas water heater. Fig.12 , Fig.12 A schematic block diagram of a temperature control device for a gas water heater provided in an embodiment of the present invention.

[0087] Among them, Fig.12 As shown, the temperature control device 3 of the gas water heater includes a parameter acquisition unit 31 and an automatic control disturbance processing unit 32.

[0088] A parameter acquisition unit 31 is used to acquire a set temperature and input power of the gas water heater;

[0089] The automatic disturbance rejection processing unit 32 is used to perform an automatic disturbance rejection control process on the gas water heater based on the set temperature and the input power through a first-order nonlinear automatic disturbance rejection controller to generate a target water outlet temperature.

[0090] Furthermore, the discretization formula of the nonlinear extended state observer is:

[0091]

[0092] Among them, the nonlinear error tracking function is:

[0093]

[0094] Wherein, e(k) is the deviation between the set temperature and the outlet water temperature, y(k) is the outlet water temperature, z1(k) is the state estimation value, z2(k) is the disturbance estimation value, β 01 , β 02 is the observer gain, α, α1, α2 and δ are the parameters of the nonlinear error tracking function, u(k) represents the control input value at time point k, b is the system model coefficient, bu(k) represents the influence of the control input value u(k) on the system state through the system model coefficient b at time point k; the system model coefficient refers to the sampling step.

[0095] Further, the self-control disturbance processing unit 32 includes:

[0096] A differential tracker processing unit, configured to perform a smooth transition calculation based on the set temperature through the differential tracker to generate a transition temperature;

[0097] A nonlinear extended state observer processing unit, used for acquiring system model parameters, and generating a state estimation value and a disturbance estimation value based on the input power, the system model parameters and the output value of the gas water heater through the nonlinear extended state observer;

[0098] a nonlinear state error feedback compensator processing unit, configured to generate control power by performing compensation calculation based on the transition temperature, the system model parameter, the state estimation value, the input power and the disturbance estimation value through the nonlinear state error feedback compensator;

[0099] The target outlet water temperature generating unit is used to calculate the outlet water temperature of the gas water heater based on the control power to obtain the target outlet water temperature.

[0100] Furthermore, the nonlinear extended state observer processing unit includes:

[0101] An initial outlet water temperature unit, used to obtain the system model parameters and obtain the initial outlet water temperature of the gas water heater through a sensor;

[0102] An output value conversion unit, used for converting the initial water outlet temperature into an electrical signal to generate an output value of the gas water heater;

[0103] An input generating unit, configured to generate a first input of the nonlinear extended state observer according to the system model coefficient and the input power, and to use the output value of the gas water heater as a second input;

[0104] An estimated value calculation unit is used to perform estimated value calculation based on the first input and the second input through the nonlinear extended state observer to generate the state estimated value and the disturbance estimated value.

[0105] Furthermore, the nonlinear state error feedback compensator processing unit includes:

[0106] an error signal generating unit, configured to perform error calculation between the transition temperature and the state estimation value to generate an error signal;

[0107] A power estimation value generating unit, configured to generate a power estimation value by performing calculation based on the input power, the system model parameter and the disturbance estimation value;

[0108] A control power generation unit is used to generate the control power by performing compensation calculation based on the error signal and the power estimation value through the state estimation value and the disturbance estimation value.

[0109] Further, controlling the power includes:

[0110] a difference calculation unit, configured to perform a difference calculation between the input power and the disturbance estimation value to generate a power error value;

[0111] The power estimation value calculation unit is used to multiply the reciprocal of the system model coefficient by the power error value to obtain the power estimation value.

[0112] Furthermore, the target outlet water temperature generating unit also includes:

[0113] A parameter collection unit, used to collect water flow, water inlet temperature and power in the gas water heater;

[0114] The physical model building unit is used to take the water flow, the water inlet temperature and the power as input quantities, take the temperature rise as output quantity, use the parameter identification toolbox of MATLAB to estimate the state space equation model based on the input quantities and output quantities, and obtain the physical model of the gas water heater.

[0115] In the embodiment of the present application, the set temperature and input power of the gas water heater are obtained; the gas water heater is subjected to auto-disturbance rejection control based on the set temperature and the input power by a first-order nonlinear auto-disturbance rejection controller to generate a target outlet water temperature. The embodiment of the present invention uses a first-order nonlinear auto-disturbance rejection controller to perform auto-disturbance rejection control on the gas water heater based on the set temperature and the input power, which can achieve a higher control effect on high-frequency and high-amplitude disturbances, and is beneficial to improving the stability of the gas water heater in controlling the outlet water temperature.

[0116] The temperature control device of the gas water heater can be implemented in the form of a computer program. The computer program can be used in Fig.13 Shown running on gas water heater.

[0117] See also Fig.13 , Fig.13 5 is a schematic block diagram of a gas water heater provided by an embodiment of the present invention. The gas water heater 500 includes a processor 502 , a memory and a network interface 505 connected via a device bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .

[0118] The storage medium 503 can store an operating device 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute a temperature control method for a gas water heater.

[0119] The processor 502 is used to provide computing and control capabilities to support the operation of the entire gas water heater 500 .

[0120] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the temperature control method of the gas water heater.

[0121] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art can understand that the structure shown in the embodiment of the present application is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the gas water heater 500 to which the solution of the present invention is applied. The specific gas water heater 500 may include more or less components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0122] The processor 502 is used to run the computer program 5032 stored in the memory to implement the temperature control method of the gas water heater disclosed in the embodiment of the present invention.

[0123] Those skilled in the art can understand that the embodiments of the gas water heater shown in the embodiments of the present application do not constitute a limitation on the specific structure of the gas water heater. In other embodiments, the gas water heater may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, in some embodiments, the gas water heater may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are consistent with the above-mentioned embodiments, and will not be described in detail here.

[0124] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0125] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the temperature control method of the gas water heater disclosed in the embodiment of the present invention is implemented.

[0126] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0127] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.

[0128] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

[0129] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0130] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a background server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), disk or optical disk and other media that can store program codes.

[0131] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A temperature control method for a gas water heater, characterized in that: include: Get the set temperature and input power of the gas water heater; The gas water heater is subjected to an auto-disturbance rejection control process based on the set temperature and the input power by a first-order nonlinear auto-disturbance rejection controller to generate a target water outlet temperature.

2. The temperature control method of a gas water heater according to claim 1, characterized in that: The first-order nonlinear auto-disturbance rejection controller includes a differential tracker, a nonlinear state error feedback compensator and a nonlinear extended state observer. The first-order nonlinear auto-disturbance rejection controller performs auto-disturbance rejection control on the gas water heater based on the set temperature and the input power to generate a target water outlet temperature, including: Performing a smooth transition calculation based on the set temperature by the differential tracker to generate a transition temperature; Acquire system model parameters, and generate state estimation values ​​and disturbance estimation values ​​based on the input power, the system model parameters and the output value of the gas water heater through the nonlinear extended state observer; Performing compensation calculation based on the transition temperature, the system model parameter, the state estimation value, the input power and the disturbance estimation value by the nonlinear state error feedback compensator to generate control power; The outlet water temperature of the gas water heater is calculated based on the control power to obtain the target outlet water temperature.

3. The temperature control method of a gas water heater according to claim 2, characterized in that: The discretization formula of the nonlinear extended state observer is: Among them, the nonlinear error tracking function is: Wherein, e(k) is the deviation between the set temperature and the outlet water temperature, y(k) is the outlet water temperature, z1(k) is the state estimation value, z2(k) is the disturbance estimation value, β 01 , β 02 is the observer gain, α, α1, α2 and δ are the parameters of the nonlinear error tracking function, u(k) represents the control input value at time point k, b is the system model coefficient, bu(k) represents the influence of the control input value u(k) on the system state through the system model coefficient b at time point k.

4. The temperature control method of a gas water heater according to claim 2, characterized in that: The acquiring of the system model parameters, and generating the state estimation value and the disturbance estimation value based on the input power, the system model parameters and the output value of the gas water heater by the nonlinear extended state observer, comprises: Acquire the system model parameters, and acquire the initial water outlet temperature of the gas water heater through a sensor; Converting the initial water outlet temperature into an electrical signal to generate an output value of the gas water heater; Generate a first input of the nonlinear extended state observer according to the system model coefficient and the input power, and use the output value of the gas water heater as a second input; The nonlinear extended state observer performs estimated value calculation based on the first input and the second input to generate the state estimated value and the disturbance estimated value.

5. The temperature control method of a gas water heater according to claim 2, characterized in that: The nonlinear state error feedback compensator performs compensation calculation based on the transition temperature, the system model parameter, the state estimation value, the input power and the disturbance estimation value to generate control power, and the generating control power includes: Perform error calculation on the transition temperature and the state estimation value to generate an error signal; Performing calculation based on the input power, the system model parameters and the disturbance estimate to generate a power estimate; The control power is generated by performing compensation calculation based on the error signal and the power estimation value using the state estimation value and the disturbance estimation value.

6. The temperature control method of the gas water heater according to claim 5, characterized in that: The calculating based on the input power, the system model parameter and the disturbance estimation value to generate the power estimation value comprises: Calculating the difference between the input power and the disturbance estimate to generate a power error value; The power estimation value is obtained by multiplying the reciprocal of the system model coefficient by the power error value.

7. The temperature control method of a gas water heater according to any one of claims 2 to 6, characterized in that: Before calculating the outlet water temperature of the gas water heater based on the control power to obtain the target outlet water temperature, the method further includes: Collecting water flow, water inlet temperature and power in the gas water heater; The water flow, the water inlet temperature and the power are taken as input quantities, and the temperature rise is taken as output quantity. The parameter identification toolbox of MATLAB is used to estimate the state space equation model based on the input quantities and output quantities to obtain the physical model of the gas water heater.

8. A temperature control device for a gas water heater, characterized in that: include: A parameter acquisition unit, used to obtain the set temperature and input power of the gas water heater; The automatic disturbance rejection processing unit is used to perform an automatic disturbance rejection control process on the gas water heater based on the set temperature and the input power through a first-order nonlinear automatic disturbance rejection controller to generate a target water outlet temperature.

9. A gas water heater, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the temperature control method of the gas water heater according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the temperature control method of the gas water heater according to any one of claims 1 to 7.

Citation Information

Cited By

  • Control parameter adjusting method and device of gas water heater, controller and water heater

    CN120488512A