Water heater constant temperature control method and device and water heater

By combining the principle of energy conservation with a positional PID control model and a lag compensation model in the water heater, the problem of slow response speed in the constant temperature control algorithm of the water heater is solved, and faster power regulation and more stable outlet water temperature are achieved.

CN113531883BActive Publication Date: 2026-06-05QINGDAO ECONOMIC AND TECHNOLOGICAL DEVELOPMENT ZONE HAIER WATER HEATER CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
QINGDAO ECONOMIC AND TECHNOLOGICAL DEVELOPMENT ZONE HAIER WATER HEATER CO LTD
Filing Date
2021-06-30
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Existing water heater thermostat control algorithms have slow response speeds and poor thermostat performance. In particular, the PID control algorithm has a slow parameter correction speed, resulting in slow response to temperature changes and large overshoot.

Method used

A water temperature control mathematical model based on the principle of energy conservation is adopted, combined with a positional PID control model and a hysteresis compensation model. The real-time theoretical power value is determined by obtaining the operating parameters of the water heater, and the temperature difference is processed based on the positional PID control model and the hysteresis compensation model to obtain the power control output value, which drives the heating module to perform heating.

Benefits of technology

It improves the power regulation response speed of the water heater, enhances the stability and robustness of the outlet water temperature, and improves the constant temperature effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113531883B_ABST
    Figure CN113531883B_ABST
Patent Text Reader

Abstract

The application discloses a water heater constant temperature control method and device and a water heater, and relates to the technical field of water heaters, and in particular relates to a water heater constant temperature control method, a water heater constant temperature control device and a water heater. The method comprises the following steps: acquiring an operation parameter of the water heater; determining a real-time power theoretical value at a sampling time according to the operation parameter; establishing a water temperature control mathematical model based on the principle of energy conservation; determining a positional PID control model and a lag compensation model according to a water flow parameter and the water temperature control mathematical model; processing a temperature difference between a set temperature and an outlet water temperature based on the positional PID control model and the lag compensation model to obtain a power control output value; determining a target power value according to the power control output value and the real-time power theoretical value; and driving a heating module to perform heating according to the target power value. The application establishes a water temperature control mathematical model, deduces a PID control model and a lag compensation model, combines the PID control model and the lag compensation model with a real-time power theoretical value to obtain a target power value for heating, improves the stability and robustness of outlet water temperature, and shortens the response time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of water heater heating control technology, and in particular to a water heater constant temperature control method, device and water heater. Background Technology

[0002] An instant water heater is a device that rapidly heats running water using electronic heating elements. Instant water heaters have the advantages of maintaining a constant water temperature and heating water quickly, and are widely used in daily washing, bathing, and other scenarios.

[0003] The key to the water output performance of instant water heaters lies in constant temperature calculation. When there is a temperature difference between the output water temperature and the set temperature, a constant temperature algorithm is used to correct the temperature difference and ensure that the correction effect can be sustained.

[0004] Existing water heater temperature control algorithms typically employ either logic calculations or PID control algorithms. The pure logic calculation method, which controls temperature based on each calculation deviation, suffers from slow response times and inaccurate calculations. It only activates temperature control when a deviation exists, resulting in poor temperature control performance. The existing PID control algorithm, which adjusts its parameters based on temperature differences, also exhibits slow parameter correction and a slow response to temperature changes, leading to significant overshoot and impacting temperature control effectiveness. Summary of the Invention

[0005] This invention provides a constant temperature control method for water heaters, which solves the problems of slow response speed and poor constant temperature effect of existing constant temperature control algorithms, and helps to improve the adjustment response speed and improve the constant temperature effect.

[0006] In a first aspect, embodiments of the present invention provide a method for constant temperature control of a water heater, comprising the following steps:

[0007] Obtain the operating parameters of the water heater, including the set temperature, inlet water temperature, outlet water temperature, water flow parameters, and voltage parameters;

[0008] The theoretical real-time power value at the sampling time is determined based on the operating parameters.

[0009] A mathematical model for water temperature control was established based on the principle of energy conservation.

[0010] Based on the water flow parameters and the water temperature control mathematical model, determine the positional PID control model and the hysteresis compensation model;

[0011] Based on the positional PID control model and the hysteresis compensation model, the temperature difference between the set temperature and the outlet water temperature is processed to obtain the power control output value.

[0012] The target power value is determined based on the power control output value and the real-time theoretical power value.

[0013] The heating module is driven to perform heating according to the target power value.

[0014] Optionally, the water heater constant temperature control method further includes the following steps: determining a power control fuzzy value based on the set temperature, the outlet water temperature, and the water flow parameters; correcting the power control output value based on the power control fuzzy value to obtain a power control corrected output value; replacing the power control output value with the power control corrected output value and determining the target power value with the real-time theoretical power value.

[0015] Optionally, determining the power control fuzzy value based on the set temperature, the outlet water temperature, and the water flow parameters includes the following steps: establishing a preset fuzzy value table based on the water flow rate and the temperature difference; obtaining the temperature difference between the set temperature and the outlet water temperature and the inlet water flow rate; and determining the power control fuzzy value by looking up the preset fuzzy value table based on the inlet water flow rate and the temperature difference.

[0016] Optionally, determining the real-time theoretical power value at the sampling time based on the operating parameters includes the following steps: determining the real-time power coefficient based on the voltage parameters; and determining the real-time theoretical power value based on the real-time power coefficient, the set temperature, the inlet water temperature, and the water flow parameters.

[0017] Optionally, determining the positional PID control model and the hysteresis compensation model based on the water flow parameters and the water temperature control mathematical model includes the following steps: adjusting the parameters of the water temperature control mathematical model according to the water flow parameters to obtain a real-time water temperature control mathematical model; determining the hysteresis compensation model based on the real-time water temperature control mathematical model; adjusting the parameters of the positional PID control based on the water flow parameters, and determining the positional PID control model based on the parameter adjustment results.

[0018] Optionally, processing the temperature difference between the set temperature and the outlet water temperature based on the positional PID control model and the hysteresis compensation model to obtain a power control output value includes the following steps: obtaining a predicted deviation function between the set temperature and the outlet water temperature based on the hysteresis compensation model; obtaining the actual temperature difference between the set temperature and the outlet water temperature; determining a predicted temperature difference based on the actual temperature difference and the predicted deviation function; and determining the power control output value based on the predicted temperature difference using the positional PID control model.

[0019] Optionally, the water heater constant temperature control method further includes the following steps: obtaining a preset single-step limit value; determining whether the target power value exceeds the preset single-step limit value; if the target power value exceeds the preset single-step limit value, then using the preset single-step limit value to replace the target power value and driving the heating module to perform heating.

[0020] Optionally, the water heater constant temperature control method further includes the following steps: determining a first incremental PID control model based on the change in the set temperature and / or the inlet water temperature; determining a second incremental PID control model based on the change in the water flow parameters; the first incremental PID control model is used to process the temperature difference between the set temperature and the outlet water temperature to obtain a first compensated power control output value; the second incremental PID control model is used to process the temperature difference between the set temperature and the outlet water temperature to obtain a second compensated power control output value; weighting and summing the power control output value, the first compensated power control output value, and the second compensated power control output value based on a preset neural network model to obtain a combined power output value; replacing the power control output value with the combined power output value and determining the target power value with the real-time theoretical power value.

[0021] Secondly, embodiments of the present invention also provide a water heater constant temperature control device, comprising:

[0022] The detection unit is used to acquire the operating parameters of the water heater, including the set temperature, inlet water temperature, outlet water temperature, water flow parameters, and voltage parameters.

[0023] Theoretical calculation unit, used to determine the real-time theoretical power value at the sampling time based on the operating parameters;

[0024] The model acquisition unit is used to establish a water temperature control mathematical model based on the principle of energy conservation, determine a positional PID control model and a hysteresis compensation model according to the water flow parameters and the water temperature control mathematical model, and process the temperature difference between the set temperature and the outlet water temperature based on the positional PID control model and the hysteresis compensation model to obtain the power control output value.

[0025] A power correction unit is used to determine a target power value based on the power control output value and the real-time theoretical power value.

[0026] A heating drive unit is used to drive the heating module to perform heating according to the target power value.

[0027] Thirdly, embodiments of the present invention also provide a water heater, including: the above-mentioned water heater constant temperature control device.

[0028] The water heater provided in this invention includes a constant temperature control device. This device executes a constant temperature control method by acquiring the water flow rate, set temperature, inlet water temperature, and outlet water temperature of the water heater. Based on these parameters, it determines the real-time theoretical power value at the sampling time. A water temperature control mathematical model is established based on the principle of energy conservation. A positional PID control model and a hysteresis compensation model are determined based on the water flow parameters and the water temperature control mathematical model. The temperature difference between the set temperature and the outlet water temperature is processed using the positional PID control model and the hysteresis compensation model to obtain a power control output value. A target power value is determined based on the power control output value and the real-time theoretical power value. The heating module is then driven to perform heating based on the target power value. This solves the problems of slow response speed and poor constant temperature effect in existing constant temperature control algorithms, improving the response speed of power regulation, enhancing the stability and robustness of the outlet water temperature, and improving the constant temperature effect. Attached Figure Description

[0029] Figure 1 This is a flowchart of a water heater constant temperature control method provided in Embodiment 1 of the present invention;

[0030] Figure 2 This is a schematic diagram of the control principle of a constant temperature control method for a water heater provided in Embodiment 1 of the present invention;

[0031] Figure 3 This is a flowchart of a water heater constant temperature control method provided in Embodiment 2 of the present invention;

[0032] Figure 4 This is a flowchart of a water heater constant temperature control method provided in Embodiment 3 of the present invention;

[0033] Figure 5 This is a flowchart of a water heater constant temperature control method provided in Embodiment 4 of the present invention;

[0034] Figure 6 This is a schematic diagram of the structure of a water heater constant temperature control device provided in Embodiment 5 of the present invention;

[0035] Figure 7 This is a schematic diagram of the structure of a water heater provided in Embodiment Six of the present invention. Detailed Implementation

[0036] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.

[0037] Example 1

[0038] Figure 1 This is a flowchart of a water heater constant temperature control method provided in Embodiment 1 of the present invention. This embodiment can be applied to application scenarios of constant temperature control of the outlet water temperature of instant water heaters. The method can be executed by a PID control system configured with specific functional modules.

[0039] like Figure 1 As shown, the constant temperature control method for this water heater specifically includes the following steps:

[0040] Step S1: Obtain the operating parameters of the water heater, including but not limited to: set temperature, inlet water temperature, outlet water temperature, water flow parameters, and voltage parameters.

[0041] Optionally, a temperature sensor can be used to collect the inlet and outlet water temperatures of the water heater in real time, a water flow sensor can be used to collect the water flow rate of the water heater in real time, a voltage sampling unit can be used to collect the power supply voltage (i.e., mains voltage) of the water heater in real time, and the user-set temperature can be obtained through the system.

[0042] Step S2: Determine the theoretical real-time power value P0 at the sampling time based on the operating parameters.

[0043] Among them, the real-time theoretical power value P0 is the heating power corresponding to the amount of heat absorbed by water to heat it to the set temperature value. It is obtained through pure calculation, which is fast and simple to calculate, and can be used as the basic power value for constant temperature control.

[0044] Step S3: Establish a mathematical model for water temperature control based on the principle of energy conservation.

[0045] In this embodiment, the water temperature control system of the instantaneous water heater is a multi-input, single-output system, wherein the system inputs include the cold water temperature T. c (t), water flow rate F w (t) and the output power of the thyristor; the system output includes: hot water temperature T h (t). Based on the principle of energy conservation, a mathematical model for water temperature control can be established as shown in Formula 1:

[0046]

[0047] Among them, Q g Let E be the system input heat, η be the system thermal efficiency, t be time, and E be the system thermal efficiency. M (t) represents the rate of change of system energy, c represents the specific heat capacity of water, and t d This is the time constant of the system's lag element.

[0048] Furthermore, to facilitate the research of control algorithms, the mathematical model shown in Formula 1 can be subjected to Laplace transform and simplification to obtain a first-order inertial system with pure time delay. The simplified mathematical model for water temperature control is shown in Formula 2:

[0049]

[0050] in, This is the system proportionality coefficient. Let M be the system time constant and M be the mass of water.

[0051] According to Formula 2, in this water temperature control mathematical model, the system time constant T, the system proportional coefficient K, and the system lag element time constant t are... d All are related to water flow rate F w (t) is related, and based on this, the following step S4 is performed.

[0052] Step S4: Determine the positional PID control model and lag compensation model based on the water flow parameters and water temperature control mathematical model.

[0053] Among them, the water flow parameter can be the water flow rate at the sampling time.

[0054] Optionally, the parameters of the positional PID control model include: proportional coefficient, derivative coefficient, and integral coefficient. The hysteresis compensation model is used to estimate the temperature difference between the set temperature and the outlet water temperature, and the estimation result is fed back to the positional PID control system.

[0055] Step S5: Based on the positional PID control model and the hysteresis compensation model, process the temperature difference between the set temperature and the outlet water temperature to obtain the power control output value.

[0056] Step S6: Determine the target power value based on the power control output value and the real-time theoretical power value.

[0057] Step S7: Drive the heating module to perform heating according to the target power value.

[0058] Optionally, the heating module may include a silicon controlled rectifier (SCR) and a heating element driven by the SCR, wherein the output power of the SCR is equal to the target power value, and the heating element is used to heat cold water in the water heater under the drive of the SCR.

[0059] Specifically, in the water temperature control system, there is a pure time lag element. A time lag compensation model is used to predict the dynamic response of the outlet water temperature, and the prediction result is used as feedback to provide to the positional PID control model. The temperature difference between the set temperature and the outlet water temperature is predicted in advance. The positional PID control system adjusts the output value according to the predicted temperature difference, and accumulates the integral part of all predicted temperature differences before the sampling time to obtain the power control output value. The real-time power theoretical value is compensated by the power control output value to obtain the target power value of the thyristor. The heating element is driven to perform heating according to the target power value so that the outlet water temperature follows the set temperature. This solves the problems of slow response speed and poor temperature constant effect of the existing constant temperature control algorithm. It is beneficial to improve the response speed of power regulation, improve the stability and robustness of the outlet water temperature, and improve the temperature constant effect.

[0060] Optionally, the theoretical real-time power value at the sampling time is determined based on the operating parameters, including the following steps: determining the real-time power coefficient A based on the voltage parameters; and determining the theoretical real-time power value based on the real-time power coefficient A, the set temperature, the inlet water temperature, and the water flow parameters.

[0061] Specifically, if we define the water flow rate as F at the current sampling time... w Set the temperature to T set The inlet water temperature is T in The amount of heat Q required to heat water to the set temperature can be calculated using Formula 3 as shown below:

[0062] Q = c * M * ΔT = c * F w *t*(T set -T in (Formula 3)

[0063] Where c is the specific heat capacity of water, M is the mass of water at the sampling time, and t is the water flow heating time.

[0064] Furthermore, by decomposing Formula 3, we obtain Formula 4 as shown below:

[0065] P0 = A * F w *(T set -T in (Formula 4)

[0066] Where P0 is the real-time theoretical power value at the sampling time, and A is the power coefficient. The power coefficient A is negatively correlated with the voltage value of the voltage parameter. When the voltage value of the voltage parameter is equal to AC 220V (i.e., the mains voltage is AC 220V), the power coefficient A is equal to 70. If the voltage parameter changes, the power coefficient A changes accordingly.

[0067] For example, if the voltage value of the voltage parameter is equal to 220V, then the theoretical real-time power value P0 = 70 * F w *(T set -T in If the voltage parameter is defined as U, then the theoretical real-time power value is...

[0068] Optionally, the positional PID control model and the hysteresis compensation model are determined based on the water flow parameters and the water temperature control mathematical model, including the following steps: adjusting the parameters of the water temperature control mathematical model according to the water flow parameters to obtain the real-time water temperature control mathematical model; determining the hysteresis compensation model based on the real-time water temperature control mathematical model; adjusting the positional PID control parameters based on the water flow parameters, and determining the positional PID control model based on the parameter adjustment results.

[0069] Optionally, the lag compensation model can employ the Smith predictor control algorithm. The parameters of the Smith predictor control algorithm can be determined by the transfer function in the process control function that does not contain a pure lag component. The parameters of this transfer function are consistent with the parameters in the water temperature control mathematical model. The system proportional coefficient and system time constant can be calculated by combining Formula 2 above with the real-time sampled water flow to determine the parameters of the lag compensation model.

[0070] Optionally, the correspondence between water flow parameters and positional PID control model can be established through calibration, and the proportional coefficient, derivative coefficient, and integral coefficient of the positional PID control model at the sampling time can be determined by the water flow rate at the sampling time.

[0071] Figure 2 This is a schematic diagram illustrating the control principle of a constant temperature control method for a water heater provided in Embodiment 1 of the present invention.

[0072] Optionally, combined Figure 2 As shown, in this PID control system, the input parameter r(t) is the set temperature, the control quantity u(t) is the power control output value, and the output parameter y(t) is the outlet water temperature. Step S5 includes the following steps: obtaining the estimated deviation function y between the set temperature and the outlet water temperature based on the hysteresis compensation model. τ (t); Obtain the actual temperature difference e1(t) between the set temperature and the outlet water temperature; Based on the actual temperature difference e1(t) and the estimated deviation function y τ (t) Determine the estimated temperature difference e2(t); The positional PID control model determines the power control output value based on the estimated temperature difference e2(t).

[0073] Specifically, the positional PID control model is shown in Equation 5:

[0074]

[0075] Where e(k) is the deviation value of the input and output (input), u(k) is the control quantity (output), T is the system sampling period, and K is the system output. P This is the proportionality coefficient. T is the integral coefficient. I The integral time constant is... T is the differential coefficient. D is the differential time constant.

[0076] If the pure time delay is defined as τ, then the output y of the lag compensation model (for example, the lag compensation model could be a Smith pure time delay compensator) τ (k) can be expressed by the following formula six:

[0077]

[0078] Among them, e -τs It is a pure time-delay element in the system.

[0079] If we define the system sampling period as T, perform a Z-transform on Equation 6, and transform the equation after the Z-transform into a difference equation, we can obtain Equation 7 as shown below:

[0080]

[0081] Specifically, based on the water flow rate F at the current sampling time w Determine the parameter values ​​for the positional PID control model and the lag compensation model, and combine them with Formula 7 and the set temperature T at the current sampling time. set With outlet water temperature T in The actual temperature difference e1(t) between the two can be used to obtain the estimated temperature difference e2(t) at the current sampling time. The positional PID control model uses the estimated temperature difference e2(t) as the input parameter to calculate the power control output value, thereby compensating for system errors in advance, avoiding overshoot and response delay caused by control lag, which is conducive to improving the response speed of power regulation and enhancing the constant temperature control effect.

[0082] Example 2

[0083] Figure 3 This is a flowchart of a water heater constant temperature control method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment performs secondary optimization through fuzzy control in the PID control calculation process.

[0084] Optionally, such as Figure 3 As shown, the water heater constant temperature control method also includes the following steps:

[0085] Step S510: Determine the fuzzy value for power control based on the set temperature, outlet water temperature, and water flow parameters.

[0086] Step S520: Correct the power control output value based on the power control fuzzy value to obtain the power control corrected output value.

[0087] Step S530: Replace the power control output value with the power control correction output value, determine the target power value with the real-time theoretical power value, and continue to execute step S7.

[0088] In this embodiment, the power control fuzzy value is used to reflect the power demand at the current sampling time. For example, a power correction factor can be used as the power control fuzzy value to correct the power control output value.

[0089] Specifically, if the power demand value at the current sampling time increases, the power control fuzzy value is increased; if the power demand value at the current sampling time decreases, the power control fuzzy value is decreased.

[0090] Optionally, the fuzzy power control value is determined based on the set temperature, outlet water temperature, and water flow parameters, including the following steps: establishing a preset fuzzy value table based on the water flow rate and temperature difference, wherein the temperature difference can be the difference between the outlet water temperature and the set temperature, and the fuzzy power control value is positively correlated with the water flow rate and the temperature difference; obtaining the temperature difference between the set temperature and the outlet water temperature and the inlet water flow rate at the sampling time; and determining the fuzzy power control value by looking up the preset fuzzy value table based on the inlet water flow rate and the temperature difference.

[0091] Specifically, water flow rate and temperature difference are key factors affecting constant temperature control. Based on this, water flow rate and temperature difference can be segmented. By calibrating, recording and storing the power control fuzzy values ​​corresponding to different water flow rates and temperature differences, a preset fuzzy value table can be established. When performing constant temperature control, the actual required power control fuzzy value can be determined by looking up the table.

[0092] For example, if a first water flow threshold and a second water flow threshold (the first water flow threshold being higher than the second water flow threshold) are set to segment the water flow parameters, and a first temperature difference threshold and a second temperature difference threshold (the first temperature difference threshold being higher than the second temperature difference threshold) are set to segment the temperature difference values, then the selection principle for the fuzzy power control value can be set as follows:

[0093] If the inflow rate at the sampling time is higher than the first flow threshold and the temperature difference at the sampling time is higher than the first temperature difference threshold, then the power control fuzzy value is the first correction coefficient.

[0094] If the inflow rate at the sampling time is lower than the second flow threshold and the temperature difference at the sampling time is higher than the first temperature difference threshold, then the power control fuzzy value is the second correction coefficient.

[0095] If the inflow rate at the sampling time is higher than the first water flow threshold and the temperature difference at the sampling time is lower than the second temperature difference threshold, then the power control fuzzy value is the third correction coefficient.

[0096] If the inflow rate at the sampling time is lower than the second flow threshold and the temperature difference at the sampling time is lower than the second temperature difference threshold, then the power control fuzzy value is the fourth correction coefficient.

[0097] The first correction factor is higher than the second, which is higher than the third, which is higher than the fourth, and there are no restrictions on their specific values. For example, the first correction factor can be set to be greater than 1, and the fourth correction factor to be less than 1.

[0098] Therefore, this embodiment optimizes the PID control algorithm calculation value by setting fuzzy values, keeping the output value of the PID control model within a reasonable range under different water temperatures and temperature differences. The algorithm is simple, which helps to improve the system response speed and improve the constant temperature control effect.

[0099] Example 3

[0100] Figure 4 This is a flowchart of a water heater constant temperature control method provided in Embodiment 3 of the present invention. Based on the above embodiments, this embodiment adopts amplitude limiting control measurement to avoid excessively large algorithm calculation values, control the heating power within a reasonable and stable range, and improve system stability.

[0101] Optionally, such as Figure 4 As shown, the water heater constant temperature control method also includes the following steps:

[0102] Step S401: Obtain the preset single-step limit value.

[0103] Step S402: Determine whether the target power value exceeds the preset single-step limit value.

[0104] If the target power value exceeds the preset single-step limit value, then proceed to step S403; otherwise, return to step S402.

[0105] Step S403: Replace the target power value with a preset single-step limit value and drive the heating module to perform heating.

[0106] Specifically, a preset single-step limit value can be set according to the output power limit value of the constant temperature control system. Limit control is performed in each calculation cycle. If the algorithm calculation value exceeds the preset single-step limit value, the preset single-step limit value is used to drive the thyristor to work and realize heating regulation. This helps to avoid the problem of excessive algorithm calculation value caused by integral accumulation and improves system stability.

[0107] Optionally, the constant temperature control method for the water heater further includes: obtaining a preset integral saturation value and determining whether the integral part of the PID control model exceeds the preset integral saturation value; if the integral part exceeds the preset integral saturation value, then in the subsequent closed-loop control loop, the integral coefficient is set to 0, the integral part is discarded, and the cumulative integral value is prevented from reaching saturation, which helps to avoid the problem of excessively large algorithm calculation values ​​and improve system stability.

[0108] Example 4

[0109] Figure 5 This is a flowchart of a water heater constant temperature control method provided in Embodiment 4 of the present invention. Based on the above embodiments, this embodiment adopts a multi-algorithm fusion control strategy, including neural network, incremental PID control, and positional PID control. It monitors disturbances based on the fluctuations of multiple parameters of the water temperature control system and compensates for the real-time theoretical power value based on the monitoring results.

[0110] Optionally, such as Figure 5 As shown, the water heater constant temperature control method specifically includes the following steps:

[0111] Step S501: Determine the first incremental PID control model based on the change in set temperature and / or inlet water temperature.

[0112] Step S502: Determine the second incremental PID control model based on the changes in water flow parameters.

[0113] Step S503: Based on the first incremental PID control model, process the temperature difference between the set temperature and the outlet water temperature to obtain the first compensated power control output value.

[0114] Step S504: Based on the second incremental PID control model, process the temperature difference between the set temperature and the outlet water temperature to obtain the second compensated power control output value.

[0115] Step S505: Based on the preset neural network model, the power control output value, the first compensation power control output value, and the second compensation power control output value are weighted and summed to obtain the combined power output value.

[0116] Step S506: Replace the power control output value with the combined power output value, determine the target power value with the real-time theoretical power value, and continue to execute step S7.

[0117] In this embodiment, a preset neural network model can be established by debugging and training the neural network model to optimize the weight matrix corresponding to the power control output value, the first compensation power control output value, and the second compensation power control output value. The weight matrix of the preset neural network model is different under different water flow parameters, temperatures, and power, and there is no limitation on this.

[0118] Alternatively, the incremental PID control algorithm is shown in Formula 8:

[0119] Δu(k)=u(k)-u(k-1)

[0120] =K P [e(k)-e(k-1)]+K I *e(k)+K D *[e(k)-2e(k-1)+e(k-2)]

[0121] (Formula 8)

[0122] Where u(k) is the control quantity, e(k) is the deviation between the two control quantities, and K P This is the proportional gain coefficient. The integral coefficient is... is the differential coefficient, and T is the sampling period.

[0123] In this embodiment, the parameter values ​​of the first incremental PID control model are determined by combining the change in the set temperature and / or the inlet water temperature, and the parameter values ​​of the second incremental PID control model are determined by combining the change in the water flow parameters.

[0124] When the system experiences temperature changes (e.g., changes in inlet water temperature, changes in set temperature, or both), the first incremental PID control model quickly responds to the temperature difference between the outlet water temperature and the set temperature, adjusting the power output value to achieve rapid response and eliminate system disturbances.

[0125] When the water flow rate of the system changes abruptly, the outlet water temperature will also change abruptly under the existing heating power. The second incremental PID control model is used to quickly respond to the temperature difference between the outlet water temperature and the set temperature and adjust the power output value. After the water flow stabilizes, the power output value of part of the second incremental PID control model is cleared to avoid affecting the subsequent system. This helps to reduce the error caused by water flow disturbance and improve the system stability.

[0126] Optionally, in this embodiment, the three power control output values, the first compensated power control output value, and the second compensated power control output value can be optimized a second time using power control fuzzy values, and a preset neural network model can be used to perform a weighted summation of the fuzzy control optimized power control output value, the first compensated power control output value, and the second compensated power control output value to obtain a combined power output value.

[0127] Therefore, this embodiment integrates multiple control algorithms, employs a positional PID control model and a lag compensation model to predict system deviations in advance, and cumulatively adjusts system disturbances to maintain stable system output. A first incremental PID control model responds in real-time to temperature difference changes, and a second incremental PID control model responds in real-time to water flow changes. Each algorithm implements constant temperature closed-loop control based on a preset control strategy. Through modular functional design, modifications to the software later only require changes to the corresponding algorithm code, avoiding abnormal calculation values ​​caused by modifying the entire algorithm. This solves the problems of slow response speed and poor constant temperature effect of existing constant temperature control algorithms, which helps improve the response speed of power regulation, enhances the stability and robustness of the outlet water temperature, and improves the constant temperature effect.

[0128] Example 5

[0129] Figure 6 This is a schematic diagram of a water heater constant temperature control device provided in Embodiment 5 of the present invention. The water heater constant temperature control device provided in this embodiment of the present invention can execute the water heater constant temperature control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0130] like Figure 6 As shown, the water heater constant temperature control device 00 includes: a detection unit 10, a theoretical calculation unit 20, a model acquisition unit 30, a power correction unit 40, and a heating drive unit 50. The detection unit 10 is used to acquire the operating parameters of the water heater, including the set temperature, inlet water temperature, outlet water temperature, water flow parameters, and voltage parameters. The theoretical calculation unit 20 is used to determine the real-time theoretical power value at the sampling time based on the operating parameters. The model acquisition unit 30 is used to establish a water temperature control mathematical model based on the principle of energy conservation, determine a positional PID control model and a hysteresis compensation model based on the water flow parameters and the water temperature control mathematical model, and process the temperature difference between the set temperature and the outlet water temperature based on the positional PID control model and the hysteresis compensation model to obtain the power control output value. The power correction unit 40 is used to determine the target power value based on the power control output value and the real-time theoretical power value. The heating drive unit 50 is used to drive the heating module to perform heating according to the target power value.

[0131] Optionally, the water heater constant temperature control device 00 further includes: a fuzzy value acquisition unit, which is used to determine the power control fuzzy value according to the set temperature, the outlet water temperature and the water flow parameters, and to correct the power control output value according to the power control fuzzy value to obtain the power control corrected output value; the power correction unit 40 is also used to replace the power control output value with the power control corrected output value and determine the target power value with the real-time theoretical power value.

[0132] Optionally, the fuzzy value acquisition unit is used to store a preset fuzzy value table based on the water flow rate and temperature difference, and to acquire the temperature difference between the set temperature and the outlet water temperature and the inlet water flow rate, and to look up the preset fuzzy value table based on the inlet water flow rate and temperature difference to determine the power control fuzzy value.

[0133] Optionally, the theoretical calculation unit 20 is used to determine the real-time power coefficient based on the voltage parameters; and to determine the real-time theoretical power value based on the real-time power coefficient, the set temperature, the inlet water temperature, and the water flow parameters.

[0134] Optionally, the model acquisition unit 30 is used to adjust the parameters of the water temperature control mathematical model according to the water flow parameters to obtain the real-time water temperature control mathematical model; determine the hysteresis compensation model according to the real-time water temperature control mathematical model; adjust the parameters of the position PID control based on the water flow parameters, and determine the position PID control model according to the parameter adjustment results.

[0135] Optionally, the model acquisition unit 30 is further configured to acquire the estimated deviation function between the set temperature and the outlet water temperature based on the hysteresis compensation model; acquire the actual temperature difference between the set temperature and the outlet water temperature; determine the estimated temperature difference based on the actual temperature difference and the estimated deviation function; and determine the power control output value based on the estimated temperature difference using a positional PID control model.

[0136] Optionally, the power correction unit 40 is also used to obtain a preset single-step limit value; determine whether the target power value exceeds the preset single-step limit value; if the target power value exceeds the preset single-step limit value, the power correction unit 40 uses the preset single-step limit value to replace the target power value and drives the heating module to perform heating.

[0137] Optionally, the water heater constant temperature control device 00 further includes: a first compensated PID model acquisition unit, used to determine a first incremental PID control model based on the change in the set temperature and / or the inlet water temperature, the first incremental PID control model being used to process the temperature difference between the set temperature and the outlet water temperature to obtain a first compensated power control output value; a second compensated PID model acquisition unit, used to determine a second incremental PID control model based on the change in water flow parameters, the second incremental PID control model being used to process the temperature difference between the set temperature and the outlet water temperature to obtain a second compensated power control output value; a fusion calculation unit, used to perform a weighted summation of the power control output value, the first compensated power control output value, and the second compensated power control output value based on a preset neural network model to obtain a combined power output value; and a power correction unit 40, used to replace the power control output value with the combined power output value and determine the target power value with the real-time theoretical power value.

[0138] The water heater constant temperature control device provided in this invention implements a water heater constant temperature control method. It acquires the water flow rate, set temperature, inlet water temperature, and outlet water temperature of the water heater, and determines the real-time theoretical power value at the sampling time based on these parameters. A water temperature control mathematical model is established based on the principle of energy conservation. A positional PID control model and a hysteresis compensation model are determined based on the water flow parameters and the water temperature control mathematical model. The temperature difference between the set temperature and the outlet water temperature is processed based on the positional PID control model and the hysteresis compensation model to obtain the power control output value. A target power value is determined based on the power control output value and the real-time theoretical power value, and the heating module is driven to perform heating based on the target power value. This solves the problems of slow response speed and poor temperature control effect of existing constant temperature control algorithms, which helps to improve the response speed of power regulation, enhance the stability and robustness of the outlet water temperature, and improve the temperature control effect.

[0139] Example 6

[0140] Based on the above embodiments, Embodiment Six of the present invention provides a water heater.

[0141] Figure 7 This is a schematic diagram of the structure of a water heater provided in Embodiment Six of the present invention.

[0142] like Figure 7 As shown, the water heater 100 includes the aforementioned water heater thermostat control device 00.

[0143] The water heater provided in this invention includes a constant temperature control device. This device executes a constant temperature control method by acquiring the water flow rate, set temperature, inlet water temperature, and outlet water temperature of the water heater. Based on these parameters, it determines the real-time theoretical power value at the sampling time. A water temperature control mathematical model is established based on the principle of energy conservation. A positional PID control model and a hysteresis compensation model are determined based on the water flow rate and the water temperature control mathematical model. The temperature difference between the set temperature and the outlet water temperature is processed using the positional PID control model and the hysteresis compensation model to obtain the power control output value. A target power value is determined based on the power control output value and the real-time theoretical power value. The heating module is then driven to perform heating based on the target power value. This solves the problems of slow response speed and poor temperature control effect of existing constant temperature control algorithms, improving the response speed of power regulation, enhancing the stability of the temperature heating system, and improving the temperature control effect.

[0144] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A method for constant temperature control of a water heater, characterized in that, Includes the following steps: Obtain the operating parameters of the water heater, including the set temperature, inlet water temperature, outlet water temperature, water flow parameters, and voltage parameters; The theoretical real-time power value at the sampling time is determined based on the operating parameters. A mathematical model for water temperature control was established based on the principle of energy conservation. Based on the water flow parameters and the water temperature control mathematical model, determine the positional PID control model and the hysteresis compensation model; Based on the positional PID control model and the hysteresis compensation model, the temperature difference between the set temperature and the outlet water temperature is processed to obtain the power control output value. The target power value is determined based on the power control output value and the real-time theoretical power value. The heating module is driven to perform heating according to the target power value; It also includes the following steps: The power control fuzzy value is determined based on the set temperature, the outlet water temperature, and the water flow parameters. The power control output value is corrected based on the power control fuzzy value to obtain the power control corrected output value; The target power value is determined by replacing the power control output value with the power control correction output value and comparing it with the real-time theoretical power value. The process of determining the power control fuzzy value based on the set temperature, the outlet water temperature, and the water flow parameters includes the following steps: A preset fuzzy value table is established based on the magnitude of water flow and temperature difference; Obtain the temperature difference between the set temperature and the outlet water temperature, as well as the inlet water flow rate; The power control fuzzy value is determined by looking up the preset fuzzy value table based on the inlet water flow rate and the temperature difference.

2. The water heater constant temperature control method according to claim 1, characterized in that, Determining the real-time theoretical power value at the sampling time based on the operating parameters includes the following steps: The real-time power factor is determined based on the voltage parameters; The theoretical value of real-time power is determined based on the real-time power coefficient, the set temperature, the inlet water temperature, and the water flow parameters.

3. The water heater constant temperature control method according to claim 1, characterized in that, The positional PID control model and hysteresis compensation model are determined based on the water flow parameters and the water temperature control mathematical model, including the following steps: The parameters of the water temperature control mathematical model are adjusted according to the water flow parameters to obtain a real-time water temperature control mathematical model; The hysteresis compensation model is determined based on the real-time water temperature control mathematical model. The positional PID control parameters are adjusted based on the water flow parameters, and the positional PID control model is determined based on the parameter adjustment results.

4. The water heater constant temperature control method according to claim 1, characterized in that, The temperature difference between the set temperature and the outlet water temperature is processed based on the positional PID control model and the hysteresis compensation model to obtain the power control output value, including the following steps: Based on the hysteresis compensation model, the estimated deviation function between the set temperature and the outlet water temperature is obtained; Obtain the actual temperature difference between the set temperature and the outlet water temperature; The estimated temperature difference is determined based on the actual temperature difference and the estimated deviation function. The positional PID control model determines the power control output value based on the estimated temperature difference.

5. The water heater constant temperature control method according to claim 1, characterized in that, It also includes the following steps: Get the preset single-step limit value; Determine whether the target power value exceeds the preset single-step limit value; If the target power value exceeds the preset single-step limit value, the preset single-step limit value is used to replace the target power value, and the heating module is driven to perform heating.

6. The water heater constant temperature control method according to claim 1, characterized in that, It also includes the following steps: The first incremental PID control model is determined based on the set temperature and / or the change in the inlet water temperature. The second incremental PID control model is determined based on the changes in the water flow parameters. The first incremental PID control model is used to process the temperature difference between the set temperature and the outlet water temperature to obtain the first compensated power control output value. The second incremental PID control model is used to process the temperature difference between the set temperature and the outlet water temperature to obtain the second compensated power control output value. Based on a preset neural network model, the power control output value, the first compensated power control output value, and the second compensated power control output value are weighted and summed to obtain a combined power output value. The combined power output value is used to replace the power control output value, and the target power value is determined together with the real-time theoretical power value.

7. A constant temperature control device for a water heater, characterized in that, include: The detection unit is used to acquire the operating parameters of the water heater, including the set temperature, inlet water temperature, outlet water temperature, water flow parameters, and voltage parameters. Theoretical calculation unit, used to determine the real-time theoretical power value at the sampling time based on the operating parameters; The model acquisition unit is used to establish a water temperature control mathematical model based on the principle of energy conservation, determine a positional PID control model and a hysteresis compensation model according to the water flow parameters and the water temperature control mathematical model, and process the temperature difference between the set temperature and the outlet water temperature based on the positional PID control model and the hysteresis compensation model to obtain the power control output value. A power correction unit is used to determine a target power value based on the power control output value and the real-time theoretical power value. A heating drive unit is used to drive the heating module to perform heating according to the target power value; The fuzzy value acquisition unit is used to determine the fuzzy value of power control based on the set temperature, the outlet water temperature and the water flow parameters, and to correct the power control output value based on the fuzzy value of power control to obtain the corrected power control output value. The power correction unit is further configured to replace the power control output value with the power control correction output value and determine the target power value with the real-time theoretical power value; The fuzzy value acquisition unit is also used to store a preset fuzzy value table based on the water flow rate and temperature difference, and to acquire the temperature difference between the set temperature and the outlet water temperature and the inlet water flow rate, and to look up the preset fuzzy value table based on the inlet water flow rate and the temperature difference to determine the power control fuzzy value.

8. A water heater, characterized in that, include: The water heater constant temperature control device according to claim 7.