Water heater control method and device based on carbon emission and water heater control system

By obtaining the target carbon emissions and the preset carbon emission range, the target power of the water heater is calculated, which solves the problem of lack of carbon emission control in the existing technology and realizes the low-carbon emission operation of the water heater.

CN117433163BActive Publication Date: 2026-05-01STATE GRID BEIJING ELECTRIC POWER CO +2
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
STATE GRID BEIJING ELECTRIC POWER CO
Filing Date
2023-11-22
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Existing technologies lack methods for adjusting electrical appliance power based on carbon emissions to reduce total real-time carbon emissions, especially in the control of water heaters of different models and operating modes.

Method used

By acquiring the target carbon emissions, multiple preset carbon emissions, and the first target power, the target range is determined, and the target formula is obtained by querying the mapping relationship based on the target range. The second target power is then calculated, and finally the water heater is controlled to operate at the target temperature to optimize carbon emissions.

Benefits of technology

It enables the control of different models of water heaters based on real-time carbon signals, thereby reducing the carbon emissions of water heaters and optimizing carbon emission management under the power supply and demand relationship.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117433163B_ABST
    Figure CN117433163B_ABST
Patent Text Reader

Abstract

The application provides a water heater control method and device based on carbon emission and a water heater control system. The method comprises the following steps: obtaining a target carbon emission, a plurality of preset carbon emissions and a first target power, and determining a target interval according to matching between the target carbon emission and each preset carbon emission; obtaining a target formula according to the first mapping relationship of the target interval, and substituting the first target power into the target formula to obtain a second target power; obtaining a target temperature, and controlling the water heater to operate until the temperature of hot water in the water heater reaches the target temperature according to the second target power, wherein the target temperature is the water temperature in the water heater set by a user. The method solves the problem that there is no control method for controlling different models and different working modes of water heaters according to real-time carbon signals to reduce carbon emission in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of equipment control technology, and more specifically, to a water heater control method, apparatus, computer-readable storage medium, and water heater control system based on carbon emissions. Background Technology

[0002] The negative environmental impact of increasing carbon emissions is becoming increasingly significant, and low-carbon and carbon reduction have become a consensus for human societal development. The combustion of fossil fuels during electricity production emits large amounts of carbon dioxide. The efficiency and carbon emissions per unit of power generation of thermal power units vary under different load rates; therefore, under dynamic electricity demand, the carbon emission factor is a variable that changes with the electricity supply and demand situation. Furthermore, due to the large-scale integration of wind and solar power into the future power system, the randomness and volatility of renewable electricity will lead to even more drastic changes in carbon emissions per unit of electricity generation. Buildings, as end-users of the power system, constitute a major component of electricity consumption. Moreover, building electricity users can adjust their own power output, possessing a certain degree of dispatch flexibility.

[0003] Therefore, overall carbon emission reduction of the system can be achieved over a long period by adjusting the real-time operating power of the building's electrical terminals. However, current technology lacks a method for adjusting electrical power based on carbon emissions to reduce total real-time carbon emissions. Summary of the Invention

[0004] The main objective of this application is to provide a carbon emission-based water heater control method, apparatus, computer-readable storage medium, and water heater control system, so as to at least solve the problem that the prior art lacks a control method for controlling water heaters of different models and operating modes based on real-time carbon signals to reduce carbon emissions.

[0005] To achieve the above objectives, according to one aspect of this application, a carbon emission-based water heater control method is provided, comprising: acquiring a target carbon emission, multiple preset carbon emissions, and a first target power; determining a target range by matching the target carbon emission with each of the preset carbon emissions, wherein the target carbon emission is the carbon emission amount of the water heater at the current moment, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emission belongs; obtaining a target formula by querying a first mapping relationship according to the target range, and substituting the first target power into the target formula to obtain a second target power, wherein the target formula is a preset formula corresponding to the target range, and the first mapping relationship is a mapping relationship between the carbon emission range and the preset formula; acquiring a target temperature, and controlling the water heater to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, wherein the target temperature is the water temperature in the water heater set by the user.

[0006] Optionally, acquiring a target carbon emission, multiple preset carbon emissions, and a first target power, and determining a target interval based on matching the target carbon emission with each of the preset carbon emissions, includes: acquiring a target signal, wherein the target signal is the carbon emission signal of the water heater within a preset time period, the end time of the preset time period is the current time, and the duration of the preset time period is a preset duration; determining the target carbon emission based on the target signal and plotting a target curve, wherein the target curve is used to characterize the change relationship of carbon emissions over time; determining a first preset carbon emission, a second preset carbon emission, and a third preset carbon emission based on the target curve, wherein the first preset carbon emission is the maximum value of the peak value of the target curve, the second preset carbon emission is the minimum value of the trough value of the target curve, and the third preset carbon emission is the average value of the target curve; defining the carbon emission less than the second preset carbon emission as a first interval, defining the carbon emission greater than or equal to the second preset carbon emission and less than or equal to the third preset carbon emission as a second interval, defining the carbon emission greater than the third preset carbon emission and less than or equal to the first preset carbon emission as a third interval, and defining the carbon emission greater than the first preset carbon emission as a fourth interval.

[0007] Optionally, obtaining a target formula by querying a first mapping relationship based on the target interval, and substituting the first target power into the target formula to obtain a second target power, includes: when the target carbon emission is within the first interval, determining a first preset power as the second target power, wherein the first preset power is the upper limit of the output power of the water heater; and when the target carbon emission is within the fourth interval, determining a second preset power as the second target power, wherein the first preset power is the lower limit of the output power of the water heater.

[0008] Optionally, before determining the first preset power as the second target power or the second preset power as the second target power, the method further includes: obtaining a target mode, the target mode including a first mode and a second mode, the first mode being a user setting a first target water temperature, and the second mode being a user setting a third target power; when the target mode is the first mode, obtaining a second target water temperature, the second target water temperature being the actual water temperature of the water heater at the current moment; when the target mode is the first mode and the second target water temperature is greater than the first target water temperature, determining both the first preset power and the second preset power to 0; when the target mode is the first mode and the second target water temperature is less than the first target water temperature, calculating a fourth target power based on the target flow rate, the first target water temperature, and the second target water temperature, and obtaining the first preset power and the second preset power by querying a second mapping relationship based on the fourth target power, the second mapping relationship being a mapping relationship between the fourth target power and the first preset power and the second preset power; when the target mode is the second mode, obtaining the first preset power and the second preset power by querying a third mapping relationship based on the third target power, the third mapping relationship being a mapping relationship between the third target power and the first preset power and the second preset power.

[0009] Optionally, obtaining a target formula by querying a first mapping relationship based on the target interval, and substituting the first target power into the target formula to obtain a second target power includes: when the target carbon emissions are in the second interval, calculating the difference between the first preset power and the first target power to obtain a first difference; calculating the difference between the first preset carbon emissions and the third preset carbon emissions to obtain a second difference, and calculating the difference between the target carbon emissions and the third preset carbon emissions to obtain a third difference; and calculating the product of the third difference and the first difference, the ratio of the second difference to the first target power to obtain the second target power.

[0010] Optionally, obtaining a target formula by querying a first mapping relationship based on the target interval, and substituting the first target power into the target formula to obtain a second target power, includes: when the target carbon emission is in the third interval, calculating the difference between the first target power and the second preset power to obtain a fourth difference; calculating the difference between the third preset carbon emission and the second preset carbon emission to obtain a fifth difference and calculating the difference between the third preset carbon emission and the target carbon emission to obtain a sixth difference; calculating the ratio of the product of the fourth difference and the sixth difference to the fifth difference, and calculating the difference between the first target power and the ratio to obtain the second target power.

[0011] Optionally, controlling the water heater to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature includes: obtaining a third preset power and a fourth preset power, wherein the third preset power is less than the fourth preset power; determining the third preset power as a fifth target power when the second target power is greater than the third preset power and less than the fourth preset power; and controlling the water heater to operate according to the fifth target power until the temperature of the hot water in the water heater reaches the target temperature.

[0012] According to another aspect of this application, a carbon emission-based water heater control device is provided. The device includes: a first acquisition unit, configured to acquire a target carbon emission, multiple preset carbon emissions, and a first target power, and determine a target range by matching the target carbon emission with each of the preset carbon emissions, wherein the target carbon emission is the carbon emission amount of the water heater at the current time, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emission belongs; a first query unit, configured to query a first mapping relationship based on the target range to obtain a target formula, and substitute the first target power into the target formula to obtain a second target power, wherein the target formula is a preset formula corresponding to the target range, and the first mapping relationship is a mapping relationship between the carbon emission range and the preset formula; and a second acquisition unit, configured to acquire a target temperature, and control the water heater to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, wherein the target temperature is the water temperature in the water heater set by the user.

[0013] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform any of the methods described.

[0014] According to another aspect of this application, a communication system is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including methods for performing any one of the methods described.

[0015] Applying the technical solution of this application, in the above-mentioned carbon emission-based water heater control method, firstly, a target carbon emission, multiple preset carbon emissions, and a first target power are obtained. A target range is then determined by matching the target carbon emission with each of the preset carbon emissions. The target carbon emission is the carbon emission amount of the water heater at the current moment, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emission belongs. Then, a target formula is obtained by querying a first mapping relationship based on the target range, and the first target power is substituted into the target formula to obtain a second target power. The target formula is a preset formula corresponding to the target range, and the first mapping relationship is the mapping relationship between the carbon emission range and the preset formula. Finally, a target temperature is obtained, and the water heater is controlled to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, which is the water temperature set by the user. This application, based on the relationship between carbon emissions and electricity supply and demand, calibrates a method for calculating the optimal power of a water heater corresponding to different carbon emission ranges. Then, based on the current set power of the water heater, a target set power is calculated, and the water heater is controlled to operate at the target set power to reduce carbon emissions caused by water heater power consumption. This method solves the problem of the lack of a control method in the prior art that uses real-time carbon signals to control different models and operating modes of water heaters to reduce carbon emissions. Attached Figure Description

[0016] Figure 1 A hardware structure block diagram of a mobile terminal for a carbon emission-based water heater control method provided in an embodiment of this application is shown.

[0017] Figure 2 A schematic flowchart of a carbon emission-based water heater control method according to an embodiment of this application is shown.

[0018] Figure 3 A schematic flowchart of a specific carbon emission-based water heater control method according to an embodiment of this application is shown;

[0019] Figure 4 A structural block diagram of a carbon emission-based water heater control device according to an embodiment of this application is shown.

[0020] The above figures include the following reference numerals:

[0021] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. Detailed Implementation

[0022] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0023] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0025] As described in the background section, the prior art lacks a method for regulating the power of electrical appliances based on carbon emissions to reduce total real-time carbon emissions. To address the problem that the prior art lacks a control method for controlling different models and operating modes of water heaters based on real-time carbon signals to reduce carbon emissions, embodiments of this application provide a carbon emission-based water heater control method, apparatus, computer-readable storage medium, and water heater control system.

[0026] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0027] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a water heater control method based on carbon emissions, according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0028] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the device information display method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0029] This embodiment provides a Z method that runs on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Also, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0030] Figure 2 This is a flowchart of a carbon emission-based water heater control method according to an embodiment of this application. Figure 2 As shown, the method includes the following steps:

[0031] Step S201: Obtain the target carbon emissions, multiple preset carbon emissions and a first target power, and determine the target range by matching the target carbon emissions with each of the preset carbon emissions. The target carbon emissions are the carbon emissions of the water heater at the current time, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emissions belong.

[0032] Specifically, during the operation of the water heater, real-time carbon emission signals are monitored to determine the target carbon emission C(τ). Then, historical parameter sets are updated based on the real-time carbon emission, representing the carbon emissions over a period of time prior to the current moment. Multiple threshold values ​​are then determined based on these historical parameter sets to obtain the preset carbon emission. Finally, the current output power setting of the water heater is obtained to achieve the first target power.

[0033] Step S202: Based on the target interval, query the first mapping relationship to obtain the target formula, and substitute the first target power into the target formula to obtain the second target power. The target formula is a preset formula corresponding to the target interval, and the first mapping relationship is the mapping relationship between the carbon emission interval and the preset formula.

[0034] Specifically, the target formula is obtained by querying the preset formula based on the target interval, and then the first target power is substituted into the target formula to calculate the second target power.

[0035] Step S203: Obtain the target temperature, and control the water heater to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, which is the water temperature set by the user.

[0036] Specifically, the second target power is controlled to heat the water in the water heater until the water temperature in the water heater reaches the temperature set by the user.

[0037] In this embodiment, firstly, a target carbon emission, multiple preset carbon emissions, and a first target power are obtained. A target range is then determined by matching the target carbon emission with each of the preset carbon emissions. The target carbon emission is the carbon emission of the water heater at the current moment, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emission belongs. Next, a target formula is obtained by querying a first mapping relationship based on the target range, and the first target power is substituted into the target formula to obtain a second target power. The target formula is a preset formula corresponding to the target range, and the first mapping relationship is the mapping relationship between the carbon emission range and the preset formula. Finally, a target temperature is obtained, and the water heater is controlled to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, which is the water temperature set by the user. This application, based on the relationship between carbon emissions and electricity supply and demand, calibrates a method for calculating the optimal power of a water heater corresponding to different carbon emission ranges. Then, based on the current set power of the water heater, a target set power is calculated, and the water heater is controlled to operate at the target set power to reduce carbon emissions caused by water heater power consumption. This method solves the problem of the lack of a control method in the prior art that uses real-time carbon signals to control different models and operating modes of water heaters to reduce carbon emissions.

[0038] In order to determine the target range based on the target carbon emissions and multiple preset carbon emissions, in an optional embodiment, step S201 includes:

[0039] Step S2011: Obtain the target signal, which is the carbon emission signal of the water heater within a preset time period. The end time of the preset time period is the current time, and the duration of the preset time period is the preset duration.

[0040] Specifically, the target signal C(x) is acquired, and the acquisition time of the target signal is t, with the preset duration being T. Then, the target signal is the carbon emission signal monitored by the sensor within the time period [tT, t].

[0041] Step S2012: Determine the target carbon emissions based on the target signal and plot the target curve. The target curve is used to characterize the relationship between carbon emissions and time.

[0042] Specifically, the target curve is obtained by plotting the corresponding signal curve based on the aforementioned carbon emission signals.

[0043] Step S2013: Determine the first preset carbon emission, the second preset carbon emission, and the third preset carbon emission based on the target curve. The first preset carbon emission is the maximum value of the peak value of the target curve, the second preset carbon emission is the minimum value of the trough value of the target curve, and the third preset carbon emission is the average value of the target curve.

[0044] Specifically, the target curve is analyzed to obtain multiple peak values ​​and multiple trough values ​​of the target signal, and the average carbon emissions within the preset time period are calculated based on integral operations to obtain C. mean Then, by comparing the peak values, the maximum value of the peak value is determined, and the maximum carbon emission C within the preset time period is obtained. max By comparing the trough values, the minimum trough value is determined, thus obtaining the minimum carbon emission value C within the preset time period. min That is, the first preset carbon emissions, the second preset carbon emissions, and the third preset carbon emissions are obtained.

[0045] Step S2014: The carbon emissions less than the second preset carbon emissions are defined as the first interval; the carbon emissions greater than or equal to the second preset carbon emissions and less than or equal to the third preset carbon emissions are defined as the second interval; the carbon emissions greater than the third preset carbon emissions and less than or equal to the first preset carbon emissions are defined as the third interval; and the carbon emissions greater than the first preset carbon emissions are defined as the fourth interval.

[0046] Specifically, since carbon emissions do not have negative values, therefore, [0, C] min ) is determined as the first interval mentioned above, and [C] is... min C mean [Identified as the second interval above, (C)] mean C max [Identified as the third interval above, (C)] max , +∞) is determined as the fourth interval mentioned above.

[0047] In order to obtain the second target power based on the updated first target power, in an optional embodiment, step S202 includes:

[0048] Step S2021: When the target carbon emissions are within the first range, the first preset power is determined as the second target power, and the first preset power is the upper limit of the output power of the water heater.

[0049] Specifically, when the target carbon emissions are within the first range mentioned above, i.e., when C(τ) belongs to [0, C... min In the case of P, let the second target power mentioned above be P. set Then according to formula P set =P set,lower , where Pset,lower To achieve the first preset power, the power of the water heater is adjusted to the maximum power to ensure that the water temperature rises to the target temperature as quickly as possible.

[0050] Step S2022: When the target carbon emissions are within the fourth range, the second preset power is determined as the second target power, and the first preset power is the lower limit of the output power of the water heater.

[0051] Specifically, when the target carbon emissions fall within the fourth range mentioned above, i.e., when C(τ) belongs to (C max In the case of (+∞), then according to formula P set =P set,upper , where P set,upper To achieve the second preset power, the power of the water heater is adjusted to the minimum power to reduce the carbon emissions of the water heater.

[0052] In order to obtain the first preset power and the second preset power, in an optional embodiment, before determining the first preset power as the second target power or the second preset power as the second target power, the method further includes:

[0053] Step S301: Obtain the target mode, which includes a first mode and a second mode. The first mode is for the user to set a first target water temperature, and the second mode is for the user to set a third target power.

[0054] Specifically, the system acquires the user-set water heater control commands and then determines the user-selected water heater operating mode based on the control commands. One operating mode is where the user controls the water heater to a preset water temperature t. u The first mode controls the water heater to heat the water to the target temperature. The second mode allows the user to control the water heater to operate at a preset heating power P. u Control the water heater to use heating power P u Running, i.e., the second mode mentioned above.

[0055] Step S302: When the target mode is the first mode, obtain the second target water temperature, which is the actual water temperature of the water heater at the current moment.

[0056] Specifically, when the water heater is operating in the first mode described above, the current water temperature in the water heater is obtained to get the second target water temperature t. w .

[0057] Step S303: When the target mode is the first mode and the second target water temperature is greater than the first target water temperature, both the first preset power and the second preset power are set to 0.

[0058] Specifically, when the second target water temperature is greater than or equal to the first target water temperature, it is determined that the water heater does not need to heat water, that is, the required output power of the water heater is 0. At this time, the upper limit and lower limit of the power output of the water heater are set to 0, that is, the first preset power and the second preset power are both determined to be 0.

[0059] Step S304: When the target mode is the first mode and the second target water temperature is lower than the first target water temperature, calculate the fourth target power based on the target flow rate, the first target water temperature and the second target water temperature, and query the second mapping relationship based on the fourth target power to obtain the first preset power and the second preset power. The second mapping relationship is the mapping relationship between the fourth target power and the first preset power and the second preset power.

[0060] Specifically, when the water heater is operating in the first mode described above and the second target water temperature is lower than the first target water temperature, it is determined that the water heater needs to heat water, and at this time, the target flow rate G is obtained. w The first target water temperature t mentioned above u And the second target water temperature t mentioned above w Then substitute it into formula P d =G w (tu-t w Calculate the fourth target power. Then, based on the heat storage characteristics of the water heater tank, look up the second mapping relationship to obtain the minimum power P required to bring the second target water temperature to the first target water temperature. set,lower That is, the second preset power mentioned above, to obtain the highest power P that allows the second target water temperature to reach the first target water temperature. set,upper That is, the first preset power mentioned above.

[0061] Step S305: When the target mode is the second mode, the first preset power and the second preset power are obtained by querying the third mapping relationship based on the third target power. The third mapping relationship is the mapping relationship between the third target power and the first preset power and the second preset power.

[0062] Specifically, when the water heater is operating in the second mode, the third target power set by the customer is the heating power required by the water heater. Then, based on the heat storage characteristics of the water heater tank, the third mapping relationship is consulted to obtain the minimum power P required to bring the second target water temperature to the first target water temperature. set,lower That is, the second preset power mentioned above, to obtain the highest power P that allows the second target water temperature to reach the first target water temperature. set,upper That is, the first preset power mentioned above.

[0063] In order to obtain the second target power based on the updated first target power, in an optional embodiment, step S202 further includes:

[0064] Step S2023: When the target carbon emissions are within the second range, calculate the difference between the first preset power and the first target power to obtain the first difference value.

[0065] Specifically, when the target carbon emissions are within the second range mentioned above, i.e., when C(τ) belongs to [C min C mean In the case of ], according to the formula Calculate the first difference mentioned above.

[0066] Step S2024: Calculate the difference between the first preset carbon emission and the third preset carbon emission to obtain a second difference value, and calculate the difference between the target carbon emission and the third preset carbon emission to obtain a third difference value.

[0067] Specifically, according to formula C max -C mean Calculate the second difference mentioned above, according to C(τ)-C mean Calculate the third difference mentioned above.

[0068] Step S2025: Calculate the product of the third difference and the first difference, the ratio of the product of the second difference and the first difference, and the sum of the first target power to obtain the second target power.

[0069] Specifically, substituting the first difference, the second difference, and the third difference into the following formula yields the second target power:

[0070]

[0071] In order to obtain the second target power based on the updated first target power, in an optional embodiment, step S202 further includes:

[0072] Step S2026: When the target carbon emissions are in the third range, calculate the difference between the first target power and the second preset power to obtain the fourth difference.

[0073] Specifically, when the target carbon emissions fall within the third range mentioned above, i.e., when C(τ) belongs to (C mean C max In the case of ], according to the formula Calculate the fourth difference mentioned above.

[0074] Step S2027: Calculate the difference between the third preset carbon emission and the second preset carbon emission to obtain the fifth difference value, and calculate the difference between the third preset carbon emission and the target carbon emission to obtain the sixth difference value.

[0075] Specifically, according to formula C mean -C min Calculate the fifth difference mentioned above, according to C. mean -C(τ) calculates the sixth difference mentioned above.

[0076] Step S2028: Calculate the ratio of the product of the fourth difference and the sixth difference to the fifth difference, and calculate the difference between the first target power and the ratio to obtain the second target power.

[0077] Specifically, substituting the aforementioned fourth difference, fifth difference, and sixth difference into the following formula yields the aforementioned second target power:

[0078]

[0079] To reduce carbon emissions from water heaters, in one optional implementation, step S203 includes:

[0080] Step S2031: Obtain a third preset power and a fourth preset power, wherein the third preset power is less than the fourth preset power;

[0081] Specifically, when the water heater is a non-continuous gear adjustment, the power of each gear of the water heater is obtained, multiple gear ranges are determined, and then the lower limit value of each gear range is determined, the upper limit value of each gear range is determined, and then the upper and lower limits of the gear range to which it belongs are determined according to the second target power matching gear range, that is, the third preset power and the fourth preset power.

[0082] Step S2032: If the second target power is greater than the third preset power and less than the fourth preset power, the third preset power is determined as the fifth target power.

[0083] Specifically, after determining the above-mentioned gear range, the gear range is rounded down to obtain the power corresponding to the final operating gear of the water heater, which is the third preset power, and is determined as the fifth target power.

[0084] Step S2033: Control the operation of the water heater according to the fifth target power until the temperature of the hot water in the water heater reaches the target temperature.

[0085] Specifically, the water heater is controlled to operate at the fifth target power until the water temperature in the water heater reaches the target temperature.

[0086] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the carbon emission-based water heater control method of this application will be described in detail below with reference to specific embodiments.

[0087] This embodiment relates to a specific carbon emission-based water heater control method, such as... Figure 3 As shown, it includes the following steps:

[0088] Step S1: Obtain user input instructions. If the user instruction is for the water heater to operate in the second mode described above, generate a preset power signal according to the user instruction.

[0089] Step S2: If the user command is for the water heater to operate in the first mode described above, obtain the preset water temperature, the current water temperature of the water heater, and the water flow rate, and calculate the required heating power.

[0090] Step S3: Based on the water heater's operating mode, query the corresponding preset mapping relationship according to the preset power signal or the required heating power to obtain the upper and lower limits for adjustment;

[0091] Step S4: Acquire real-time power emission signals;

[0092] Step S5: Then, based on the real-time carbon signal, record the carbon emission signals from the previous period at the current moment to obtain a historical data set;

[0093] Step S6: Then determine the maximum, minimum, and average values ​​of the carbon emission signal based on the historical data set;

[0094] Step S7: Substitute the above data into the formula The second target power is obtained as described above;

[0095] Step S8: Determine whether the water heater can achieve continuous power adjustment, and if the water heater can achieve continuous power adjustment, determine the second target power as the final heating power Ph;

[0096] Step S9: If the water heater cannot achieve continuous power regulation, according to... Will The final heating power is determined to be, where This is the gear setting where the power is less than the second target power. This is the gear setting where the power output is greater than the second target power.

[0097] Step S10: Control the electric water heater to operate at the determined heating power according to the final heating power.

[0098] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0099] This application also provides a carbon emission-based water heater control device. It should be noted that this carbon emission-based water heater control device can be used to execute the carbon emission-based water heater control method provided in this application. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0100] The following describes the carbon emission-based water heater control device provided in the embodiments of this application.

[0101] Figure 4 This is a structural block diagram of a carbon emission-based water heater control device according to an embodiment of this application. Figure 4 As shown, the device includes:

[0102] The first acquisition unit 10 is used to acquire target carbon emissions, multiple preset carbon emissions and a first target power, and to determine a target range by matching the target carbon emissions with each of the preset carbon emissions. The target carbon emissions are the carbon emissions of the water heater at the current time, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emissions belong.

[0103] The first query unit 20 is used to query the first mapping relationship according to the target interval to obtain the target formula, and substitute the first target power into the target formula to obtain the second target power. The target formula is a preset formula corresponding to the target interval, and the first mapping relationship is the mapping relationship between the carbon emission interval and the preset formula.

[0104] The second acquisition unit 30 is used to acquire the target temperature and control the operation of the water heater according to the second target power until the temperature of the hot water in the water heater is the target temperature, which is the water temperature in the water heater set by the user.

[0105] In this embodiment, the first acquisition unit acquires the target carbon emissions, multiple preset carbon emissions, and a first target power, and determines a target range by matching the target carbon emissions with each of the preset carbon emissions. The target carbon emissions are the carbon emissions of the water heater at the current moment, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emissions belong. The first query unit queries a first mapping relationship based on the target range to obtain a target formula, and substitutes the first target power into the target formula to obtain a second target power. The target formula is a preset formula corresponding to the target range, and the first mapping relationship is the mapping relationship between the carbon emission range and the preset formula. The second acquisition unit acquires the target temperature and controls the water heater to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, which is the water temperature set by the user. This application, based on the relationship between carbon emissions and electricity supply and demand, calibrates a method for calculating the optimal power of a water heater corresponding to different carbon emission ranges. Then, based on the current set power of the water heater, a target set power is calculated, and the water heater is controlled to operate at the target set power to reduce carbon emissions caused by water heater power consumption. This method solves the problem of the lack of a control method in the prior art that uses real-time carbon signals to control different models and operating modes of water heaters to reduce carbon emissions.

[0106] In order to determine the target range based on the target carbon emissions and multiple preset carbon emissions, in an optional embodiment, the first acquisition unit includes:

[0107] The first acquisition module is used to acquire a target signal, wherein the target signal is the carbon emission signal of the water heater within a preset time period, the end time of the preset time period is the current time, and the duration of the preset time period is the preset duration.

[0108] Specifically, the target signal C(x) is acquired, and the acquisition time of the target signal is t, with the preset duration being T. Then, the target signal is the carbon emission signal monitored by the sensor within the time period [tT, t].

[0109] The first determining module is used to determine the target carbon emissions based on the target signal and plot the target curve, wherein the target curve is used to characterize the relationship between carbon emissions and time.

[0110] Specifically, the target curve is obtained by plotting the corresponding signal curve based on the aforementioned carbon emission signals.

[0111] The second determining module is used to determine the first preset carbon emission, the second preset carbon emission, and the third preset carbon emission based on the target curve. The first preset carbon emission is the maximum value of the peak value of the target curve, the second preset carbon emission is the minimum value of the trough value of the target curve, and the third preset carbon emission is the average value of the target curve.

[0112] Specifically, the target curve is analyzed to obtain multiple peak values ​​and multiple trough values ​​of the target signal, and the average carbon emissions within the preset time period are calculated based on integral operations to obtain C. mean Then, by comparing the peak values, the maximum value of the peak value is determined, and the maximum carbon emission C within the preset time period is obtained. max By comparing the trough values, the minimum trough value is determined, thus obtaining the minimum carbon emission value C within the preset time period. min That is, the first preset carbon emissions, the second preset carbon emissions, and the third preset carbon emissions are obtained.

[0113] The third determining module is used to determine the carbon emissions less than the second preset carbon emissions as the first interval, the carbon emissions greater than or equal to the second preset carbon emissions and less than or equal to the third preset carbon emissions as the second interval, the carbon emissions greater than the third preset carbon emissions and less than or equal to the first preset carbon emissions as the third interval, and the carbon emissions greater than the first preset carbon emissions as the fourth interval.

[0114] Specifically, since carbon emissions do not have negative values, therefore, [0, C] min ) is determined as the first interval mentioned above, and [C] is... min C mean [Identified as the second interval above, (C)] mean C max [Identified as the third interval above, (C)] max , +∞) is determined as the fourth interval mentioned above.

[0115] In order to obtain the second target power based on the updated first target power, in an optional embodiment, the first query unit includes:

[0116] The fourth determining module is used to determine the first preset power as the second target power when the target carbon emissions are within the first range, wherein the first preset power is the upper limit of the output power of the water heater.

[0117] Specifically, when the target carbon emissions are within the first range mentioned above, i.e., when C(τ) belongs to [0, C... min In the case of P, let the second target power mentioned above be P. set Then according to formula P set =P set,lower , where Pset,lower To achieve the first preset power, the power of the water heater is adjusted to the maximum power to ensure that the water temperature rises to the target temperature as quickly as possible.

[0118] The fifth determining module is used to determine the second preset power as the second target power when the target carbon emission is in the fourth range, and the first preset power is the lower limit of the output power of the water heater.

[0119] Specifically, when the target carbon emissions fall within the fourth range mentioned above, i.e., when C(τ) belongs to (C max In the case of (+∞), then according to formula P set =P set,upper , where P set,upper To achieve the second preset power, the power of the water heater is adjusted to the minimum power to reduce the carbon emissions of the water heater.

[0120] In order to obtain the aforementioned first preset power and the aforementioned second preset power, in an optional embodiment, the device further includes:

[0121] The third acquisition unit is used to acquire a target mode before determining the first preset power as the second target power or before determining the second preset power as the second target power. The target mode includes a first mode and a second mode. The first mode is for the user to set a first target water temperature, and the second mode is for the user to set a third target power.

[0122] Specifically, the system acquires the user-set water heater control commands and then determines the user-selected water heater operating mode based on the control commands. One operating mode is where the user controls the water heater to a preset water temperature t. u The first mode controls the water heater to heat the water to the target temperature. The second mode allows the user to control the water heater to operate at a preset heating power P. u Control the water heater to use heating power P u Running, i.e., the second mode mentioned above.

[0123] The fourth acquisition unit is used to acquire a second target water temperature when the target mode is the first mode, wherein the second target water temperature is the actual water temperature of the water heater at the current moment.

[0124] Specifically, when the water heater is operating in the first mode described above, the current water temperature in the water heater is obtained to get the second target water temperature t. w .

[0125] The determining unit is configured to determine both the first preset power and the second preset power to be 0 when the target mode is the first mode and the second target water temperature is greater than the first target water temperature.

[0126] Specifically, when the second target water temperature is greater than or equal to the first target water temperature, it is determined that the water heater does not need to heat water, that is, the required output power of the water heater is 0. At this time, the upper limit and lower limit of the power output of the water heater are set to 0, that is, the first preset power and the second preset power are both determined to be 0.

[0127] The second query unit is used to calculate the fourth target power based on the target flow rate, the first target water temperature and the second target water temperature when the target mode is the first mode and the second target water temperature is less than the first target water temperature, and to query the second mapping relationship based on the fourth target power to obtain the first preset power and the second preset power. The second mapping relationship is the mapping relationship between the fourth target power and the first preset power and the second preset power.

[0128] Specifically, when the water heater is operating in the first mode described above and the second target water temperature is lower than the first target water temperature, it is determined that the water heater needs to heat water, and at this time, the target flow rate G is obtained. w The first target water temperature t mentioned above u And the second target water temperature t mentioned above w Then substitute it into formula P d =G w (tu-t w Calculate the fourth target power. Then, based on the heat storage characteristics of the water heater tank, look up the second mapping relationship to obtain the minimum power P required to bring the second target water temperature to the first target water temperature. set,lower That is, the second preset power mentioned above, to obtain the highest power P that allows the second target water temperature to reach the first target water temperature. set,upper That is, the first preset power mentioned above.

[0129] The third query unit is used to obtain the first preset power and the second preset power by querying the third mapping relationship based on the third target power when the target mode is the second mode. The third mapping relationship is the mapping relationship between the third target power and the first preset power and the second preset power.

[0130] Specifically, when the water heater is operating in the second mode, the third target power set by the customer is the heating power required by the water heater. Then, based on the heat storage characteristics of the water heater tank, the third mapping relationship is consulted to obtain the minimum power P required to bring the second target water temperature to the first target water temperature.set,lower That is, the second preset power mentioned above, to obtain the highest power P that allows the second target water temperature to reach the first target water temperature. set,upper That is, the first preset power mentioned above.

[0131] In order to obtain the second target power based on the updated first target power, in an optional embodiment, the first query unit further includes:

[0132] The first calculation module is used to calculate the difference between the first preset power and the first target power to obtain a first difference value when the target carbon emission is in the second range.

[0133] Specifically, when the target carbon emissions are within the second range mentioned above, i.e., when C(τ) belongs to [C min C mean In the case of ], according to the formula Calculate the first difference mentioned above.

[0134] The second calculation module is used to calculate the difference between the first preset carbon emission and the third preset carbon emission to obtain a second difference value, and to calculate the difference between the target carbon emission and the third preset carbon emission to obtain a third difference value.

[0135] Specifically, according to formula C max -C mean Calculate the second difference mentioned above, according to C(τ)-C mean Calculate the third difference mentioned above.

[0136] The third calculation module is used to calculate the product of the third difference and the first difference, the ratio of the product of the second difference and the first difference, and the sum of the product of the first and second target powers to obtain the second target power.

[0137] Specifically, substituting the first difference, the second difference, and the third difference into the following formula yields the second target power:

[0138]

[0139] In order to obtain the second target power based on the updated first target power, in an optional embodiment, the first query unit further includes:

[0140] The fourth calculation module is used to calculate the difference between the first target power and the second preset power to obtain a fourth difference value when the target carbon emissions are in the third range.

[0141] Specifically, when the target carbon emissions fall within the third range mentioned above, i.e., when C(τ) belongs to (C mean C max In the case of ], according to the formula Calculate the fourth difference mentioned above.

[0142] The fifth calculation module is used to calculate the difference between the third preset carbon emission and the second preset carbon emission to obtain the fifth difference value, and to calculate the difference between the third preset carbon emission and the target carbon emission to obtain the sixth difference value.

[0143] Specifically, according to formula C mean -C min Calculate the fifth difference mentioned above, according to C. mean -C(τ) calculates the sixth difference mentioned above.

[0144] The first calculation module is used to calculate the ratio of the product of the fourth difference and the sixth difference to the fifth difference, and to calculate the difference between the first target power and the ratio to obtain the second target power.

[0145] Specifically, substituting the aforementioned fourth difference, fifth difference, and sixth difference into the following formula yields the aforementioned second target power:

[0146]

[0147] To reduce carbon emissions from water heaters, in one optional implementation, step S203 includes:

[0148] The second acquisition module is used to acquire a third preset power and a fourth preset power, wherein the third preset power is less than the fourth preset power.

[0149] Specifically, when the water heater is a non-continuous gear adjustment, the power of each gear of the water heater is obtained, multiple gear ranges are determined, and then the lower limit value of each gear range is determined, the upper limit value of each gear range is determined, and then the upper and lower limits of the gear range to which it belongs are determined according to the second target power matching gear range, that is, the third preset power and the fourth preset power.

[0150] The sixth determining module is used to determine the third preset power as the fifth target power when the second target power is greater than the third preset power and less than the fourth preset power.

[0151] Specifically, after determining the above-mentioned gear range, the gear range is rounded down to obtain the power corresponding to the final operating gear of the water heater, which is the third preset power, and is determined as the fifth target power.

[0152] The control module is used to control the operation of the water heater according to the fifth target power until the temperature of the hot water in the water heater reaches the target temperature.

[0153] Specifically, the water heater is controlled to operate at the fifth target power until the water temperature in the water heater reaches the target temperature.

[0154] The aforementioned carbon emission-based water heater control device includes a processor and a memory. The first acquisition unit, first query unit, and second acquisition unit, etc., are all stored as program units in the memory. The processor executes these program units stored in the memory to achieve the corresponding functions. All of the above modules reside in the same processor; alternatively, the modules may be located in different processors in any combination.

[0155] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can reduce the carbon emissions of electric water heaters.

[0156] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0157] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the carbon emission-based water heater control method.

[0158] Specifically, carbon emission-based water heater control methods include:

[0159] Step S201: Obtain the target carbon emissions, multiple preset carbon emissions and a first target power, and determine the target range by matching the target carbon emissions with each of the preset carbon emissions. The target carbon emissions are the carbon emissions of the water heater at the current time, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emissions belong.

[0160] Specifically, during the operation of the water heater, real-time carbon emission signals are monitored to determine the target carbon emission C(τ). Then, historical parameter sets are updated based on the real-time carbon emission, representing the carbon emissions over a period of time prior to the current moment. Multiple threshold values ​​are then determined based on these historical parameter sets to obtain the preset carbon emission. Finally, the current output power setting of the water heater is obtained to achieve the first target power.

[0161] Step S202: Based on the target interval, query the first mapping relationship to obtain the target formula, and substitute the first target power into the target formula to obtain the second target power. The target formula is a preset formula corresponding to the target interval, and the first mapping relationship is the mapping relationship between the carbon emission interval and the preset formula.

[0162] Specifically, the target formula is obtained by querying the preset formula based on the target interval, and then the first target power is substituted into the target formula to calculate the second target power.

[0163] Step S203: Obtain the target temperature, and control the water heater to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, which is the water temperature set by the user.

[0164] Specifically, the second target power is controlled to heat the water in the water heater until the water temperature in the water heater reaches the temperature set by the user.

[0165] This invention provides a processor for running a program, wherein the program executes the carbon emission-based water heater control method.

[0166] Specifically, carbon emission-based water heater control methods include:

[0167] Step S201: Obtain the target carbon emissions, multiple preset carbon emissions and a first target power, and determine the target range by matching the target carbon emissions with each of the preset carbon emissions. The target carbon emissions are the carbon emissions of the water heater at the current time, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emissions belong.

[0168] Specifically, during the operation of the water heater, real-time carbon emission signals are monitored to determine the target carbon emission C(τ). Then, historical parameter sets are updated based on the real-time carbon emission, representing the carbon emissions over a period of time prior to the current moment. Multiple threshold values ​​are then determined based on these historical parameter sets to obtain the preset carbon emission. Finally, the current output power setting of the water heater is obtained to achieve the first target power.

[0169] Step S202: Based on the target interval, query the first mapping relationship to obtain the target formula, and substitute the first target power into the target formula to obtain the second target power. The target formula is a preset formula corresponding to the target interval, and the first mapping relationship is the mapping relationship between the carbon emission interval and the preset formula.

[0170] Specifically, the target formula is obtained by querying the preset formula based on the target interval, and then the first target power is substituted into the target formula to calculate the second target power.

[0171] Step S203: Obtain the target temperature, and control the water heater to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, which is the water temperature set by the user.

[0172] Specifically, the second target power is controlled to heat the water in the water heater until the water temperature in the water heater reaches the temperature set by the user.

[0173] This invention provides a water heater control system, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:

[0174] Step S201: Obtain the target carbon emissions, multiple preset carbon emissions and a first target power, and determine the target range by matching the target carbon emissions with each of the preset carbon emissions. The target carbon emissions are the carbon emissions of the water heater at the current time, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emissions belong.

[0175] Step S202: Based on the target interval, query the first mapping relationship to obtain the target formula, and substitute the first target power into the target formula to obtain the second target power. The target formula is a preset formula corresponding to the target interval, and the first mapping relationship is the mapping relationship between the carbon emission interval and the preset formula.

[0176] Step S203: Obtain the target temperature, and control the water heater to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, which is the water temperature set by the user.

[0177] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:

[0178] Step S201: Obtain the target carbon emissions, multiple preset carbon emissions and a first target power, and determine the target range by matching the target carbon emissions with each of the preset carbon emissions. The target carbon emissions are the carbon emissions of the water heater at the current time, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emissions belong.

[0179] Step S202: Based on the target interval, query the first mapping relationship to obtain the target formula, and substitute the first target power into the target formula to obtain the second target power. The target formula is a preset formula corresponding to the target interval, and the first mapping relationship is the mapping relationship between the carbon emission interval and the preset formula.

[0180] Step S203: Obtain the target temperature, and control the water heater to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, which is the water temperature set by the user.

[0181] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0182] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0183] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0184] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0185] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0186] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0187] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0188] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0189] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0190] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0191] 1) The carbon emission-based water heater control method of this application, through this embodiment, firstly, obtains a target carbon emission, multiple preset carbon emissions, and a first target power, and determines a target range by matching the target carbon emission with each of the preset carbon emissions. The target carbon emission is the carbon emission of the water heater at the current time, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emission belongs. Then, a target formula is obtained by querying a first mapping relationship based on the target range, and the first target power is substituted into the target formula to obtain a second target power. The target formula is a preset formula corresponding to the target range, and the first mapping relationship is the mapping relationship between the carbon emission range and the preset formula. Finally, a target temperature is obtained, and the water heater is controlled to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, which is the water temperature set by the user. This application, based on the relationship between carbon emissions and electricity supply and demand, calibrates a method for calculating the optimal power of a water heater corresponding to different carbon emission ranges. Then, based on the current set power of the water heater, a target set power is calculated, and the water heater is controlled to operate at the target set power to reduce carbon emissions caused by water heater power consumption. This method solves the problem of the lack of a control method in the prior art that uses real-time carbon signals to control different models and operating modes of water heaters to reduce carbon emissions.

[0192] 2) The carbon emission-based water heater control device of this application comprises: a first acquisition unit acquiring a target carbon emission, multiple preset carbon emissions, and a first target power; and determining a target range by matching the target carbon emission with each of the preset carbon emissions, wherein the target carbon emission is the carbon emission of the water heater at the current moment, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emission belongs; a first query unit querying a first mapping relationship based on the target range to obtain a target formula, and substituting the first target power into the target formula to obtain a second target power, wherein the target formula is a preset formula corresponding to the target range, and the first mapping relationship is the mapping relationship between the carbon emission range and the preset formula; and a second acquisition unit acquiring a target temperature and controlling the water heater to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, wherein the target temperature is the water temperature in the water heater set by the user. This application, based on the relationship between carbon emissions and electricity supply and demand, calibrates a method for calculating the optimal power of a water heater corresponding to different carbon emission ranges. Then, based on the current set power of the water heater, a target set power is calculated, and the water heater is controlled to operate at the target set power to reduce carbon emissions caused by water heater power consumption. This method solves the problem of the lack of a control method in the prior art that uses real-time carbon signals to control different models and operating modes of water heaters to reduce carbon emissions.

[0193] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A water heater control method based on carbon emissions, characterized in that, include: The system acquires a target carbon emission, multiple preset carbon emissions, and a first target power. It then matches the target carbon emission with each of the preset carbon emissions to determine a target range. The target carbon emission is the carbon emission of the water heater at the current moment, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emission belongs. The target formula is obtained by querying the first mapping relationship according to the target interval, and the second target power is obtained by substituting the first target power into the target formula. The target formula is a preset formula corresponding to the target interval, and the first mapping relationship is the mapping relationship between the carbon emission interval and the preset formula. Obtain the target temperature, and control the water heater to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature, which is the water temperature in the water heater set by the user; Acquire a target carbon emission, multiple preset carbon emissions, and a first target power, and determine a target range by matching the target carbon emission with each of the preset carbon emissions, including: Acquire a target signal, wherein the target signal is the carbon emission signal of the water heater within a preset time period, the end time of the preset time period is the current time, and the duration of the preset time period is a preset duration; The target carbon emissions are determined based on the target signal and a target curve is plotted, the target curve being used to characterize the relationship between carbon emissions and time. The first preset carbon emission, the second preset carbon emission, and the third preset carbon emission are determined based on the target curve. The first preset carbon emission is the maximum value of the peak value of the target curve, the second preset carbon emission is the minimum value of the trough value of the target curve, and the third preset carbon emission is the average value of the target curve. The carbon emissions less than the second preset carbon emissions are defined as the first interval, the carbon emissions greater than or equal to the second preset carbon emissions and less than or equal to the third preset carbon emissions are defined as the second interval, the carbon emissions greater than the third preset carbon emissions and less than or equal to the first preset carbon emissions are defined as the third interval, and the carbon emissions greater than the first preset carbon emissions are defined as the fourth interval. The target formula is obtained by querying the first mapping relationship according to the target interval, and the second target power is obtained by substituting the first target power into the target formula, including: When the target carbon emissions are within the second range, the difference between the first preset power and the first target power is calculated to obtain the first difference value, where the first preset power is the upper limit of the output power of the water heater; The difference between the first preset carbon emission and the third preset carbon emission is calculated to obtain a second difference value, and the difference between the target carbon emission and the third preset carbon emission is calculated to obtain a third difference value; The second target power is obtained by summing the product of the third difference and the first difference with the ratio of the second difference and the first target power.

2. The method according to claim 1, characterized in that, The target formula is obtained by querying the first mapping relationship according to the target interval, and the second target power is obtained by substituting the first target power into the target formula, including: If the target carbon emissions are within the first range, the first preset power is determined as the second target power; When the target carbon emissions are within the fourth range, the second preset power is determined as the second target power, and the second preset power is the lower limit of the output power of the water heater.

3. The method according to claim 2, characterized in that, Before determining the first preset power as the second target power or the second preset power as the second target power, the method further includes: Obtain the target mode, which includes a first mode and a second mode. The first mode is for the user to set a first target water temperature, and the second mode is for the user to set a third target power. When the target mode is the first mode, a second target water temperature is obtained, and the second target water temperature is the actual water temperature of the water heater at the current moment; When the target mode is the first mode and the second target water temperature is greater than the first target water temperature, both the first preset power and the second preset power are set to 0. When the target mode is the first mode and the second target water temperature is less than the first target water temperature, the fourth target power is calculated based on the target flow rate, the first target water temperature and the second target water temperature, and the first preset power and the second preset power are obtained by querying the second mapping relationship based on the fourth target power. The second mapping relationship is the mapping relationship between the fourth target power and the first preset power and the second preset power. When the target mode is the second mode, the first preset power and the second preset power are obtained by querying the third mapping relationship according to the third target power. The third mapping relationship is the mapping relationship between the third target power and the first preset power and the second preset power.

4. The method according to claim 2, characterized in that, The target formula is obtained by querying the first mapping relationship according to the target interval, and the second target power is obtained by substituting the first target power into the target formula, including: When the target carbon emissions are within the third range, the difference between the first target power and the second preset power is calculated to obtain a fourth difference. The difference between the third preset carbon emission and the second preset carbon emission is calculated to obtain the fifth difference value, and the difference between the third preset carbon emission and the target carbon emission is calculated to obtain the sixth difference value; The product of the fourth difference and the sixth difference is calculated as the ratio of the fifth difference, and the difference between the first target power and the ratio is calculated to obtain the second target power.

5. The method according to claim 1, characterized in that, Controlling the water heater to operate according to the second target power until the temperature of the hot water in the water heater reaches the target temperature includes: Obtain a third preset power and a fourth preset power, wherein the third preset power is less than the fourth preset power; If the second target power is greater than the third preset power and less than the fourth preset power, the third preset power is determined as the fifth target power; The water heater is controlled to operate according to the fifth target power until the temperature of the hot water in the water heater reaches the target temperature.

6. A water heater control device based on carbon emissions, characterized in that, The water heater control device is used in the method according to any one of claims 1 to 5, the device comprising: The first acquisition unit is used to acquire target carbon emissions, multiple preset carbon emissions and a first target power, and to determine a target range by matching the target carbon emissions with each of the preset carbon emissions. The target carbon emissions are the carbon emissions of the water heater at the current time, the first target power is the set output power of the water heater, and the target range is the carbon emission range to which the target carbon emissions belong. The first query unit is used to query the first mapping relationship according to the target interval to obtain the target formula, and substitute the first target power into the target formula to obtain the second target power. The target formula is a preset formula corresponding to the target interval, and the first mapping relationship is the mapping relationship between the carbon emission interval and the preset formula. The second acquisition unit is used to acquire the target temperature and control the water heater to operate according to the second target power until the temperature of the hot water in the water heater is the target temperature, which is the water temperature in the water heater set by the user.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1 to 5.

8. A water heater control system, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising methods for performing any one of claims 1 to 5.

Citation Information

Patent Citations

  • Multi-objective optimization method and system for regenerative type electric heating to participate in wind power accommodation

    CN113864854A

  • Energy-saving and emission-reducing air-conditioning water heater system and method capable of realizing'carbon trading '

    CN115013976A