Control method and system of heating device, heating device and medium
By detecting the water temperature and generating control pulses to control controllable switching elements, combined with water pump flow regulation, the problem that existing heating devices cannot quickly and accurately control the heating power, achieving rapid reach of the target water outlet temperature and reducing economic costs.
Patent Information
- Application Number
- CN202310652181.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-02
- Publication Date
- 2024-12-03
AI Technical Summary
The existing heating devices cannot quickly and accurately control the heating power of the heating element, resulting in the inability to quickly reach the target water outlet temperature, and control methods such as the use of relays or thyristor components have problems with electromagnetic compatibility and high economic costs.
By detecting the water temperature, calculating the target heating power and generating a control pulse to control the on- or off of the controllable switching element, combined with water pump flow regulation to achieve fast and precise control of the heating power.
It realizes rapid and precise control of heating power, improves the adjustment speed and accuracy of the outlet temperature, and reduces the economic cost of the system.
Smart Images

Figure CN119063257A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of heating devices, and in particular to a control method and system for a heating device, a heating device and a medium. Background Art
[0002] The heating device is generally composed of a water tank, a water pump and a heating element. In order to control the outlet water temperature of the heating device, it is necessary to control the heating power output by the heating element. In the existing heating device, a relay is generally used to control the heating power of the heating element. Because the relay cannot directly adjust the power, the heating element is segmented, and each section of the heating element is controlled by a relay. In the above manner, the heating element can output several gears of heating power. However, the control of the output power of the heating element achieved in this way is limited. First, the heating power output by the heating element has only a limited number of gears, and it is impossible to achieve multiple gears of outlet water temperature, let alone stepless temperature adjustment. Secondly, since the heating power of the heating element has only a few fixed gears, if the outlet water temperature needs to be accurately controlled, it is necessary to adjust the flow rate of the water pump according to the heating power of the heating device. If the speed of adjusting the water pump is too slow, the outlet water temperature of the heating device cannot quickly reach the target outlet water temperature. If the speed of adjusting the water pump is too fast, it is easy to cause overshoot, causing the outlet water flow of the heating device to be large and small. Both of these situations will reduce the user experience.
[0003] In addition to using a relay to control the heating power output by the heating element, the control method in the prior art also includes: using a thyristor element to adjust the heating power of the heating element. By performing chopping control on the thyristor element, fine control of the heating power of the heating element can be achieved. However, when performing chopping control, the EMC (Electro Magnetic Compatibility) problem is relatively large. If the EMC problem is to be solved, a filtering device needs to be added to the front end of the thyristor element. The cost of the filtering device is high, which will increase the economic cost of the heating device, so this method is not often used. Summary of the invention
[0004] The technical problem to be solved by the present invention is to overcome the defect in the prior art that the heating device cannot quickly and accurately control the heating power of the heating element, resulting in the inability to quickly reach the target water outlet temperature, and to provide a control method, system, heating device and medium for a heating device.
[0005] The present invention solves the above technical problems through the following technical solutions:
[0006] The present invention provides a control method for a heating device, the heating device comprising a water tank, a water pump, a heating element, a controllable switch element and a water outlet, the water outlet of the water tank is connected to the water inlet of the heating element through the water pump, the water outlet of the heating element is connected to the water outlet, the heating element is connected to an AC power supply through the controllable switch element, and the control method comprises:
[0007] Detecting a first outlet water temperature at the water outlet;
[0008] Calculating a target heating power according to the first water outlet temperature and the target water outlet temperature;
[0009] A control pulse is generated according to the target heating power and the rated power of the heating element; wherein the control pulse is used to control the on or off of the controllable switch element.
[0010] Preferably, the step of generating a control pulse according to the target heating power and the rated power of the heating element specifically comprises:
[0011] If the target heating power is a positive number and is less than the rated power of the heating element, a first number of useful pulses and a second number of useless pulses are calculated according to a ratio of the target heating power to the rated power; wherein the useful pulses and the useless pulses constitute the control pulses;
[0012] The first number of useful pulses and the second number of useless pulses are generated; the useful pulses are used to control the controllable switch element to be turned on, and the useless pulses are used to control the controllable switch element to be turned off.
[0013] Preferably, there is no common divisor between the first number and the second number; and / or,
[0014] The useful pulses and the useless pulses are generated at intervals until the number of generated useful pulses reaches the first number or the number of generated useless pulses reaches the second number.
[0015] Preferably, the step of generating a control pulse according to the target heating power and the rated power of the heating element further comprises:
[0016] If the target heating power is a negative number, a useless pulse is generated; the useless pulse constitutes the control pulse; or,
[0017] If the target heating power is not less than the rated power, a useful pulse is generated; the useful pulse constitutes the control pulse.
[0018] Preferably, the control method further includes:
[0019] If the target heating power is a negative number or is not less than the rated power, the water outlet flow rate of the water pump is adjusted according to the first water outlet temperature and the target water outlet temperature.
[0020] Preferably, the control method further includes:
[0021] If the target heating power is a positive number and is less than the rated power of the heating element, the actual heating power is calculated according to the rated power, the first quantity and the second quantity;
[0022] If the actual heating power is inconsistent with the target heating power, the water outlet flow rate of the water pump is adjusted according to the actual heating power, the target heating power, the target water outlet temperature and the second water outlet temperature of the water tank.
[0023] Preferably, the control method further includes:
[0024] After the first outlet water temperature reaches the target outlet water temperature, if the outlet water flow rate of the water pump has not reached the maximum flow rate and the actual heating power of the heating element has not reached the maximum power, the outlet water flow rate of the water pump is controlled to increase; or,
[0025] After the first water outlet temperature reaches the target water outlet temperature, if the water outlet flow rate of the water pump reaches the maximum flow rate and / or the actual heating power of the heating element reaches the maximum power, then the first number of useful pulses, the second number of useless pulses and / or the water outlet flow rate of the water pump are recorded.
[0026] The present invention also provides a control system for a heating device, the heating device comprising a water tank, a water pump, a heating element, a controllable switch element and a water outlet, the water outlet of the water tank is connected to the water inlet of the heating element through the water pump, the water outlet of the heating element is connected to the water outlet, the heating element is connected to an AC power supply through the controllable switch element, and the control system comprises:
[0027] A detection module, used for detecting a first outlet water temperature of the water outlet;
[0028] a calculation module, configured to calculate a target heating power according to the first outlet water temperature and a target outlet water temperature;
[0029] A control pulse generating module is used to generate a control pulse according to the target heating power and the rated power of the heating element; wherein the control pulse is used to control the on or off of the controllable switch element.
[0030] The present invention also provides a heating device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned control method of the heating device when executing the computer program.
[0031] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the control method of the heating device described above is implemented.
[0032] The positive and progressive effect of the present invention is that the present invention controls the conduction or disconnection of the controllable switch element by controlling the pulse, thereby controlling the heating power of the heating element, thereby achieving rapid and accurate control of the heating power. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 This is a schematic structural diagram of the heating device provided in Example 1 of the present invention.
[0034] Figure 2 This is a flow chart of the control method of the heating device provided in Example 1 of the present invention.
[0035] Figure 3 This is a schematic diagram of the structure of the control system of the heating device provided in Example 2 of the present invention.
[0036] Figure 4 Another structural schematic diagram of the heating device provided in Example 3 of the present invention. DETAILED DESCRIPTION
[0037] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.
[0038] Example 1
[0039] This embodiment provides a control method for a heating device, such as Figure 1 As shown, the heating device includes a water tank 11, a water pump 12, a heating element 13, a controllable switch element 14 and a water outlet 15. The water outlet of the water tank 11 is connected to the water inlet of the heating element 13 through the water pump 12, the water outlet of the heating element 13 is connected to the water outlet 15, and the heating element 13 is connected to an AC power supply through the controllable switch element 14. Figure 2 As shown, the control method includes:
[0040] S101, detecting a first water outlet temperature at a water outlet.
[0041] S102: Calculate a target heating power according to the first water outlet temperature and the target water outlet temperature.
[0042] Specifically, the PID algorithm can be used to calculate the target heating power through the following formula. In addition to the PID algorithm, the target outlet water temperature can also be calculated using a control algorithm such as a fuzzy algorithm, a neural network control algorithm, an LQR (Linear Quadratic Regulator) algorithm, and an adaptive control algorithm, which is not limited in this embodiment.
[0043] P 1 =U(t)=Kp1*e(t)+Ki1*∑e(t)+Kd1*(e(t)-e(t-1))
[0044] e(t)=Tset–NTC2(t)
[0045] Among them, P 1 represents the target heating power, e(t) represents the current error, e(t-1) represents the previous error, Tset represents the target water outlet temperature, NTC2(t) represents the current first water outlet temperature at the water outlet, Kp1, Ki1 and Kd1 are PID system parameters, which can be set empirically according to actual conditions.
[0046] S103 . Generate a control pulse according to the target heating power and the rated power of the heating element.
[0047] The control pulse is used to control the on or off of the controllable switch element.
[0048] This embodiment provides a control method for a heating device. The control method controls the on or off of a controllable switch element by controlling a pulse, thereby controlling the heating power of the heating element, thereby achieving rapid and accurate control of the heating power.
[0049] In an optional implementation, step S103 specifically includes:
[0050] S1031. If the target heating power is a positive number and is less than the rated power of the heating element, a first number of useful pulses and a second number of useless pulses are calculated according to a ratio of the target heating power to the rated power.
[0051] Among them, useful pulses and useless pulses constitute control pulses. The first number of useful pulses and the second number of useless pulses together constitute a control cycle of the control pulse. The duration of a single useful pulse and a single useless pulse can be determined according to actual conditions, and this embodiment does not impose any restrictions on this. Generally speaking, for the convenience of control, the duration of a single useful pulse and a single useless pulse is the same as half of the AC cycle, which is 0.01 seconds. Specifically, the following formula can be used to calculate the first number of useful pulses and the second number of useless pulses:
[0052] N 1≈(X*P 1 ) / P
[0053] N 2 =XN 1
[0054] Among them, N 1 The first number of useful pulses is characterized, and rounding operation needs to be performed during calculation. X represents the pulse base value, which can be determined according to actual conditions, and is not limited in this embodiment. 1 Indicates the target heating power, P indicates the rated heating power, N 2 A second number characterizing useless pulses.
[0055] S1032. Generate a first number of useful pulses and a second number of useless pulses.
[0056] Among them, the useful pulse is used to control the controllable switch element to be turned on, and the useless pulse is used to control the controllable switch element to be turned off.
[0057] In an optional implementation, in order to shorten the control period of the control pulse and increase the control speed of the control pulse so that the heating device can achieve a quick response, there is no common divisor between the first number and the second number.
[0058] Specifically, after obtaining the initial first number and the second number, the initial first number and the second number will be conventionally calculated using the values of 2, 3, 5 and 7 respectively, so that the final first number and the second number are minimized in the same proportion.
[0059] Next, we will use a specific example to describe how to calculate the first quantity and the second quantity: If X = 50, P = 2200W, P 1 =1500W, the duration of a single useful pulse and a single useless pulse is 0.01 seconds; then N 1 =50*1500 / 2200≈34, N 2 =50-34=16; then use the common divisor 2 to N 1 and N 2 Simplify the common divisor respectively and get N 1 =17,N 2 =8. At this time, there are 17+8=25 pulses in the control cycle of the control pulse, of which there are 17 useful pulses and 8 useless pulses, and the duration of the control cycle is 0.25 seconds. 1 and N 2 Simplifying the common divisor, there are 34+16=50 pulses in the control pulse control cycle, of which there are 34 useful pulses and 16 useless pulses. The duration of the control cycle is 0.5 seconds, which is twice as long as 0.25 seconds. 1 and N2 Carry out the convention so that the final N 1 and N 2 At the same ratio, the control period of the control pulse can be shortened, the control speed of the control pulse can be increased, and the heating device can achieve rapid response.
[0060] In an optional implementation, in order to avoid temperature fluctuations, useful pulses and useless pulses are generated at intervals before the generated useful pulses reach a first number or the generated useless pulses reach a second number.
[0061] Specifically, when filling a control cycle of the control pulse, first arrange one useful pulse, then arrange one useless pulse, and arrange the useful pulses and useless pulses alternately until the number of useful pulses in the control cycle reaches the first number or the number of useless pulses reaches the second number, so that the heating power is distributed as evenly as possible in one control cycle. If useful pulses or useless pulses appear continuously in one control cycle, the heating element outputs full power for a period of time and does not output power for a period of time, thereby causing the temperature to fluctuate. After all pulses are filled, the calculation of the first number and the second number starts again.
[0062] In an optional implementation, step S103 specifically includes:
[0063] S1033. If the target heating power is a negative number, a useless pulse is generated; the useless pulse constitutes a control pulse.
[0064] Specifically, in this case, all the control pulses are useless pulses.
[0065] In an optional implementation, step S103 specifically includes:
[0066] S1034. If the target heating power is not less than the rated power, a useful pulse is generated; the useful pulse constitutes a control pulse.
[0067] Specifically, in this case, all the control pulses are useful pulses.
[0068] In an optional implementation, if the target heating power is a negative number or the target heating power is not less than the rated power, the control method further includes:
[0069] S107, adjusting the water outlet flow rate of the water pump according to the first water outlet temperature and the target water outlet temperature.
[0070] Specifically, the PID algorithm can be used to calculate the water pump voltage regulation amount through the following formula, and then the water output flow of the water pump can be adjusted according to the voltage regulation amount. In addition to the PID algorithm, control algorithms such as the fuzzy algorithm, neural network control algorithm, LQR algorithm, and adaptive control algorithm can also be used to calculate the target outlet water temperature, and this embodiment does not limit this.
[0071] △U(t) = Kp2 * (e(t) - e(t - 1)) + Ki2 * e(t) + Kd2 * (e(t) – 2 * e(t - 1) + e(t - 2))
[0072] e(t) = Tset – NTC2(t)
[0073] Among them, △U(t) represents the current voltage regulation amount, e(t) represents the current error, e(t - 1) represents the previous error, Tset represents the target outlet water temperature, NTC2(t) represents the current first outlet water temperature at the water outlet end, Kp2, Ki2, and Kd2 are the system parameters of the PID. Ki2 and Kd2 can be set empirically according to the actual situation. The value of Kp2 is related to the flow regulation amount △F. Generally, 0.3 * △F < Kp2 < 2 * △F. The formula for calculating the flow regulation amount △F is as follows:
[0074] △F = (△P * t) / (C * △T)
[0075] △P = P - P 1
[0076] △T = Tset – NTC1
[0077] Among them, △F represents the flow regulation amount, t represents the duration, C represents the specific heat capacity of water, generally taken as 4200, △P represents the power deviation, P 1 represents the target heating power, P represents the rated heating power, △T represents the temperature deviation, Tset represents the target outlet water temperature, and NTC1 represents the second outlet water temperature at the water outlet of the water tank.
[0078] In an alternative embodiment, if the target heating power is positive and less than the rated power of the heating element, the above control method further includes:
[0079] S108. Then calculate the actual heating power according to the rated power, the first quantity, and the second quantity.
[0080] Specifically, because generally a rounding operation is performed when calculating N 1 there may be a deviation between the actual heating power output by the heating element controlled by the control pulse and the target heating power. The actual heating power can be calculated according to the following formula:
[0081] P *=P*N 1 / (N 1 +N 2 )
[0082] Among them, P * Indicates the actual heating power, P indicates the rated heating power, N 1 Characterizes the first number of useful pulses, N 2 A second number characterizing useless pulses.
[0083] S109. If the actual heating power is inconsistent with the target heating power, the water outlet flow rate of the water pump is adjusted according to the actual heating power, the target heating power, the target water outlet temperature and the second water outlet temperature of the water tank.
[0084] Specifically, the water flow rate fine-tuning amount can be calculated based on the actual heating power, target heating power, target water outlet temperature and the second water outlet temperature, and then the water outlet flow rate of the water pump can be adjusted based on the water flow rate fine-tuning amount. In this way, the heating power of the heating element is first quickly controlled by controlling the pulse, and then the water outlet flow rate of the water pump is fine-tuned step by step according to the deviation between the actual heating power and the target heating power, so that the first water outlet temperature and the water outlet flow rate of the water pump can be better controlled. The formula for calculating the water flow rate fine-tuning amount is as follows:
[0085] △F=(△P*t) / (C*△T)
[0086] △P=P 1 -P *
[0087] △T=Tset–NTC1
[0088] Among them, △F represents the fine-tuning amount of the water flow rate, △P represents the power deviation, t represents the duration, C represents the specific heat capacity of water, which is generally 4200, △T represents the temperature deviation, Tset represents the target water outlet temperature, NTC1 represents the second water outlet temperature of the water tank outlet, P 1 represents the target heating power, P represents the rated heating power, P * Characterizes the actual heating power.
[0089] In an optional implementation, in order to improve the water outlet experience, the control method further includes:
[0090] S110. After the first outlet water temperature reaches the target outlet water temperature, if the outlet water flow rate of the water pump has not reached the maximum flow rate and the actual heating power of the heating element has not reached the maximum power, the outlet water flow rate of the water pump is controlled to increase.
[0091] Specifically, after the first water outlet temperature stabilizes, confirm again whether the actual heating power has reached the maximum power, or whether the water outlet flow rate of the water pump has reached the maximum flow rate. If the actual heating power has not reached the maximum power and the water outlet flow rate of the water pump has not reached the maximum flow rate, fine-tune the water pump so that the water outlet flow rate of the water pump slowly increases. Because of temperature detection and power feedback, the power will inevitably increase gradually.
[0092] In an optional implementation, the control method further includes:
[0093] S111. After the first water outlet temperature reaches the target water outlet temperature, if the water outlet flow rate of the water pump reaches the maximum flow rate and / or the actual heating power of the heating element reaches the maximum power, then the first number of useful pulses, the second number of useless pulses and / or the water outlet flow rate of the water pump are recorded.
[0094] Specifically, when the heating device is used later and the same temperature condition is encountered, the recorded data can be directly called to make the water outlet speed the fastest and the first water outlet temperature quickly reach stability.
[0095] Example 2
[0096] This embodiment provides a control system for a heating device, the heating device comprising a water tank, a water pump, a heating element, a controllable switch element and a water outlet, the water outlet of the water tank is connected to the water inlet of the heating element through the water pump, the water outlet of the heating element is connected to the water outlet, and the heating element is connected to an AC power supply through the controllable switch element. Figure 3 As shown, the control system 20 includes a detection module 21 , a calculation module 22 and a control pulse generation module 23 .
[0097] The detection module is used to detect the first outlet water temperature of the water outlet.
[0098] The calculation module is used to calculate the target heating power according to the first water outlet temperature and the target water outlet temperature.
[0099] Specifically, the calculation module can use the PID algorithm to calculate the target heating power through the following formula. In addition to the PID algorithm, the target water outlet temperature can also be calculated using a control algorithm such as a fuzzy algorithm, a neural network control algorithm, an LQR algorithm, and an adaptive control algorithm, which is not limited in this embodiment.
[0100] P 1 =U(t)=Kp1*e(t)+Ki1*∑e(t)+Kd1*(e(t)-e(t-1))
[0101] e(t)=Test–NTC2(t)
[0102] Among them, P 1represents the target heating power, e(t) represents the current error, e(t-1) represents the previous error, Tset represents the target water outlet temperature, NTC2(t) represents the current first water outlet temperature at the water outlet, Kp1, Ki1 and Kd1 are PID system parameters, which can be set empirically according to actual conditions.
[0103] The control pulse generating module is used to generate a control pulse according to the target heating power and the rated power of the heating element.
[0104] The control pulse is used to control the on or off of the controllable switch element.
[0105] This embodiment provides a control system for a heating device, which controls the conduction or disconnection of a controllable switch element by controlling pulses, thereby controlling the heating power of the heating element, thereby achieving rapid and accurate control of the heating power.
[0106] In an optional embodiment, the control pulse generation module is specifically used to: if the target heating power is a positive number and is less than the rated power of the heating element, calculate the first number of useful pulses and the second number of useless pulses according to the ratio of the target heating power to the rated power; and generate a first number of useful pulses and a second number of useless pulses.
[0107] Among them, useful pulses and useless pulses constitute control pulses. The first number of useful pulses and the second number of useless pulses together constitute a control cycle of the control pulse. The duration of a single useful pulse and a single useless pulse can be determined according to actual conditions, and this embodiment does not impose any restrictions on this. Generally speaking, for the convenience of control, the duration of a single useful pulse and a single useless pulse is the same as half of the AC cycle, which is 0.01 seconds. Specifically, the following formula can be used to calculate the first number of useful pulses and the second number of useless pulses:
[0108] N 1 ≈(X*P 1 ) / P
[0109] N 2 =XN 1
[0110] Among them, N 1 The first number of useful pulses is characterized, and rounding operation needs to be performed during calculation. X represents the pulse base value, which can be determined according to actual conditions, and is not limited in this embodiment. 1 Indicates the target heating power, P indicates the rated heating power, N 2 A second number characterizing useless pulses.
[0111] Among them, the useful pulse is used to control the controllable switch element to be turned on, and the useless pulse is used to control the controllable switch element to be turned off.
[0112] In an optional implementation, in order to shorten the control period of the control pulse and increase the control speed of the control pulse so that the heating device can achieve a quick response, there is no common divisor between the first number and the second number.
[0113] Specifically, after obtaining the initial first number and the second number, the initial first number and the second number will be conventionally calculated using the values of 2, 3, 5 and 7 respectively, so that the final first number and the second number are minimized in the same proportion.
[0114] In an optional implementation, in order to avoid temperature fluctuations, useful pulses and useless pulses are generated at intervals before the generated useful pulses reach a first number or the generated useless pulses reach a second number.
[0115] Specifically, when filling a control cycle of the control pulse, first arrange one useful pulse, then arrange one useless pulse, and arrange the useful pulses and useless pulses alternately until the number of useful pulses in the control cycle reaches the first number or the number of useless pulses reaches the second number, so that the heating power is distributed as evenly as possible in one control cycle. If useful pulses or useless pulses appear continuously in one control cycle, the heating element outputs full power for a period of time and does not output power for a period of time, thereby causing the temperature to fluctuate. After all pulses are filled, the calculation of the first number and the second number starts again.
[0116] In an optional implementation, the control pulse generation module is specifically used to: generate useless pulses if the target heating power is a negative number; the useless pulses constitute the control pulses.
[0117] Specifically, in this case, all the control pulses are useless pulses.
[0118] In an optional implementation, the control pulse generating module is specifically used to: generate a useful pulse if the target heating power is not less than the rated power; the useful pulse constitutes the control pulse.
[0119] Specifically, in this case, all the control pulses are useful pulses.
[0120] In an optional implementation, the control system further includes a water pump regulating module.
[0121] The water pump regulating module is used to: if the target heating power is a negative number or the target heating power is not less than the rated power, then adjust the water outlet flow rate of the water pump according to the first water outlet temperature and the target water outlet temperature.
[0122] Specifically, the PID algorithm can be used to calculate the water pump voltage regulation amount through the following formula, and then the water output flow of the water pump can be adjusted according to the voltage regulation amount. In addition to the PID algorithm, control algorithms such as the fuzzy algorithm, neural network control algorithm, LQR algorithm, and adaptive control algorithm can also be used to calculate the target water outlet temperature, which is not limited in this embodiment.
[0123] △U(t) = Kp2 * (e(t) - e(t - 1)) + Ki2 * e(t) + Kd2 * (e(t) – 2 * e(t - 1) + e(t - 2))
[0124] e(t) = Tset – NTC2(t)
[0125] Wherein, △U(t) represents the current voltage regulation amount, e(t) represents the current error, e(t - 1) represents the previous error, Tset represents the target water outlet temperature, NTC2(t) represents the current first water outlet temperature at the water outlet end, Kp2, Ki2, and Kd2 are the system parameters of the PID. Ki2 and Kd2 can be set empirically according to the actual situation. The value of Kp2 is related to the flow regulation amount △F. Generally, 3 * △F < Kp2 < 2 * △F. The formula for calculating the flow regulation amount △F is as follows:
[0126] △F = (△P * t) / (C * △T)
[0127] △P = P - P 1
[0128] △T = Tset – NTC1
[0129] Wherein, △F represents the flow regulation amount, t represents the duration, C represents the specific heat capacity of water, generally taken as 4200, △P represents the power deviation, P 1 represents the target heating power, P represents the rated heating power, △T represents the temperature deviation, Tset represents the target water outlet temperature, and NTC1 represents the second water outlet temperature at the water tank outlet.
[0130] In an alternative embodiment, the above control system further includes an actual power calculation module and a water output flow regulation module.
[0131] The actual power calculation module is used for: if the target heating power is positive and less than the rated power of the heating element, calculate the actual heating power according to the rated power, the first quantity, and the second quantity.
[0132] Specifically, because generally an integer operation is performed when calculating N 1 there may be a deviation between the actual heating power output by the heating element controlled by the control pulse and the target heating power. The actual heating power can be calculated according to the following formula:
[0133] P * =P*N 1 / (N 1 +N 2 )
[0134] Among them, P * Indicates the actual heating power, P indicates the rated heating power, N 1 Characterizes the first number of useful pulses, N 2 A second number characterizing useless pulses.
[0135] The water outlet flow regulating module is used to: if the actual heating power is inconsistent with the target heating power, the water outlet flow of the water pump is adjusted according to the actual heating power, the target heating power, the target water outlet temperature and the second water outlet temperature of the water tank.
[0136] Specifically, the water flow rate fine-tuning amount can be calculated based on the actual heating power, target heating power, target water outlet temperature and the second water outlet temperature, and then the water outlet flow rate of the water pump can be adjusted based on the water flow rate fine-tuning amount. In this way, the heating power of the heating element is first quickly controlled by controlling the pulse, and then the water outlet flow rate of the water pump is fine-tuned step by step according to the deviation between the actual heating power and the target heating power, so that the first water outlet temperature and the water outlet flow rate of the water pump can be better controlled. The formula for calculating the water flow rate fine-tuning amount is as follows:
[0137] △F=(△P*t) / (C*△T)
[0138] △P=P 1 -P *
[0139] △T=Tset–NTC1
[0140] Among them, △F represents the fine-tuning amount of the water flow rate, △P represents the power deviation, t represents the duration, C represents the specific heat capacity of water, which is generally 4200, △T represents the temperature deviation, Tset represents the target water outlet temperature, NTC1 represents the second water outlet temperature of the water tank outlet, P 1 represents the target heating power, P represents the rated heating power, P * Characterizes the actual heating power.
[0141] In an optional embodiment, in order to improve the water outlet experience, the control system further includes a fine-tuning module.
[0142] The fine-tuning module is used to control the water outlet flow of the water pump to increase after the first water outlet temperature reaches the target water outlet temperature, if the water outlet flow of the water pump has not reached the maximum flow and the actual heating power of the heating element has not reached the maximum power.
[0143] Specifically, after the first water outlet temperature stabilizes, confirm again whether the actual heating power has reached the maximum power, or whether the water outlet flow rate of the water pump has reached the maximum flow rate. If the actual heating power has not reached the maximum power and the water outlet flow rate of the water pump has not reached the maximum flow rate, fine-tune the water pump so that the water outlet flow rate of the water pump slowly increases. Because of temperature detection and power feedback, the power will inevitably increase gradually.
[0144] In an optional implementation, the control system further includes a recording module.
[0145] The recording module is used for: after the first water outlet temperature reaches the target water outlet temperature, if the water outlet flow rate of the water pump reaches the maximum flow rate and / or the actual heating power of the heating element reaches the maximum power, then the first number of useful pulses, the second number of useless pulses and / or the water outlet flow rate of the water pump are recorded at this time.
[0146] Specifically, when the heating device is used later and the same temperature condition is encountered, the recorded data can be directly called to make the water outlet speed the fastest and the first water outlet temperature quickly reach stability.
[0147] Example 3
[0148] Figure 4 This is a schematic diagram of the structure of a heating device provided in Example 3 of the present invention. It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the control method of the heating device in Example 1 is implemented. Figure 4 The heating device 30 shown is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
[0149] The heating device 30 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the heating device 30 may include but are not limited to: at least one processor 31, at least one memory 32, and a bus 33 connecting different system components (including the memory 32 and the processor 31).
[0150] The bus 33 includes a data bus, an address bus, and a control bus.
[0151] The memory 32 may include a volatile memory, such as a random access memory (RAM) 321 and / or a cache memory 322 , and may further include a read-only memory (ROM) 323 .
[0152] The memory 32 may also include a program / utility 325 having a set (at least one) of program modules 324, such program modules 324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0153] The processor 31 executes various functional applications and data processing by running the computer programs stored in the memory 32, such as the control method of the heating device of the first embodiment of the present invention.
[0154] The heating device 30 may also communicate with one or more external devices 34 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 35. Furthermore, the model-generated heating device 30 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 36. As shown, the network adapter 36 communicates with other modules of the model-generated heating device 30 via a bus 33. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the model-generated heating device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (RAID) systems, tape drives, and data backup storage systems, etc.
[0155] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0156] Example 4
[0157] The present invention also provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, the control method of the heating device of the aforementioned embodiment 1 is implemented.
[0158] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0159] In a possible implementation manner, the present invention may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the control method for the heating device of Example 1.
[0160] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.
[0161] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims
1. A method for controlling a heating device, It is characterized in that The heating device comprises a water tank, a water pump, a heating element, a controllable switch element and a water outlet, the water outlet of the water tank is connected to the water inlet of the heating element through the water pump, the water outlet of the heating element is connected to the water outlet, the heating element is connected to an AC power supply through the controllable switch element, and the control method comprises: Detecting a first outlet water temperature at the water outlet; Calculating a target heating power according to the first water outlet temperature and the target water outlet temperature; A control pulse is generated according to the target heating power and the rated power of the heating element; wherein the control pulse is used to control the on or off of the controllable switch element.
2. The control method of the heating device according to claim 1, It is characterized in that The step of generating a control pulse according to the target heating power and the rated power of the heating element specifically comprises: If the target heating power is a positive number and is less than the rated power of the heating element, a first number of useful pulses and a second number of useless pulses are calculated according to a ratio of the target heating power to the rated power; wherein the useful pulses and the useless pulses constitute the control pulses; The first number of useful pulses and the second number of useless pulses are generated; the useful pulses are used to control the controllable switch element to be turned on, and the useless pulses are used to control the controllable switch element to be turned off.
3. The control method of the heating device according to claim 2, It is characterized in that There is no common divisor between the first number and the second number; and / or, The useful pulses and the useless pulses are generated at intervals until the number of generated useful pulses reaches the first number or the number of generated useless pulses reaches the second number.
4. The control method of the heating device according to claim 1, It is characterized in that The step of generating a control pulse according to the target heating power and the rated power of the heating element specifically includes: If the target heating power is a negative number, a useless pulse is generated; the useless pulse constitutes the control pulse; or, If the target heating power is not less than the rated power, a useful pulse is generated; the useful pulse constitutes the control pulse.
5. The control method of the heating device according to claim 4, It is characterized in that The control method further comprises: If the target heating power is a negative number or is not less than the rated power, the water outlet flow rate of the water pump is adjusted according to the first water outlet temperature and the target water outlet temperature.
6. The control method of the heating device according to claim 2, It is characterized in that The control method further comprises: If the target heating power is a positive number and is less than the rated power of the heating element, the actual heating power is calculated according to the rated power, the first quantity and the second quantity; If the actual heating power is inconsistent with the target heating power, the water outlet flow rate of the water pump is adjusted according to the actual heating power, the target heating power, the target water outlet temperature and the second water outlet temperature of the water tank.
7. The control method of the heating device according to claim 2, It is characterized in that The control method further comprises: After the first outlet water temperature reaches the target outlet water temperature, if the outlet water flow rate of the water pump has not reached the maximum flow rate and the actual heating power of the heating element has not reached the maximum power, the outlet water flow rate of the water pump is controlled to increase; or, After the first water outlet temperature reaches the target water outlet temperature, if the water outlet flow rate of the water pump reaches the maximum flow rate and / or the actual heating power of the heating element reaches the maximum power, then the first number of useful pulses, the second number of useless pulses and / or the water outlet flow rate of the water pump are recorded.
8. A control system for a heating device, It is characterized in that The heating device comprises a water tank, a water pump, a heating element, a controllable switch element and a water outlet, the water outlet of the water tank is connected to the water inlet of the heating element through the water pump, the water outlet of the heating element is connected to the water outlet, the heating element is connected to an AC power supply through the controllable switch element, and the control system comprises: A detection module, used for detecting a first outlet water temperature of the water outlet; a calculation module, configured to calculate a target heating power according to the first outlet water temperature and a target outlet water temperature; A control pulse generating module is used to generate a control pulse according to the target heating power and the rated power of the heating element; wherein the control pulse is used to control the on or off of the controllable switch element.
9. A heating device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the control method of the heating device according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the control method of the heating device according to any one of claims 1 to 7 is implemented.
