Electric water heater control method, device, computer equipment and storage medium

By acquiring and preprocessing the data information of the electric water heater, the water flow rate is regulated to keep the water outlet temperature constant, and the problem of water outlet temperature deviation of the instant-heating electric water heater under different grid voltages is solved, achieving constant water outlet temperature and reducing grid interference.

CN115289686BActive Publication Date: 2025-03-07SHENZHEN WATER WORLD INFORMATION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210929220.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-03
Publication Date
2025-03-07
Estimated Expiration
2042-08-03

AI Technical Summary

Technical Problem

The existing instant electric water heater has a deviation in the water outlet temperature at different grid voltages, and it interferes with the power grid, affecting the water outlet temperature.

Method used

By obtaining the current data information of the electric water heater, including the inlet temperature and the target outlet temperature, the mains are pre-treated to obtain real-time voltage and power, and the water flow speed is regulated based on this information to keep the outlet temperature constant.

Benefits of technology

The constant water outlet temperature under different grid voltage conditions is achieved, which reduces interference to the power grid and improves the stability and use efficiency of the electric water heater.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115289686B_ABST
    Figure CN115289686B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of water heaters. The present application provides an electric water heater control method, device, computer equipment and storage medium, obtains the current data information of the electric water heater, pre-processes the mains electricity, obtains the real-time voltage of the electric water heater, calculates the real-time power of the electric water heater according to the real-time voltage, and adjusts the water flow rate of the electric water heater to keep the outlet water temperature constant by combining the data information and the real-time power. The above steps control the water heater to make dynamic adjustments under different grid conditions by identifying the grid voltage, so as to keep the outlet water temperature constant.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of water heaters, and in particular to a control method, device, computer equipment and storage medium for an electric water heater. Background Art

[0002] Instant electric water heaters (also known as quick-heating electric water heaters in the industry) generally require a current of more than 10 amperes, heat up immediately after turning on, keep the water temperature constant, have high heating efficiency, and require a small installation space. They have internal low-pressure treatment and can be used to heat daily drinking water. They can also be installed in the bathroom, where they can be used for showering or washing. They are energy-saving and environmentally friendly for general household use. However, the instant electric water heaters in the prior art are relatively sensitive to the grid voltage, and the outlet water temperature deviates under different grid voltages such as 220V and 240V. In addition, since the power of the instant electric water heater is relatively large, it will also cause relatively large interference to the grid, which will further affect the outlet water temperature. Summary of the invention

[0003] The main purpose of the present application is to provide an electric water heater control method, device, computer equipment and storage medium, which can solve the technical problem of deviation in the outlet water temperature of instant electric water heaters in the prior art.

[0004] The present application provides an electric water heater control method, comprising:

[0005] Acquiring current data information of the electric water heater, wherein the data information includes a current water inlet temperature and a set target water outlet temperature;

[0006] Preprocessing the mains electricity to obtain the real-time voltage of the electric water heater, and calculating the real-time power of the electric water heater according to the real-time voltage;

[0007] In combination with the data information and the real-time power, the water flow rate of the electric water heater is regulated to keep the outlet water temperature constant.

[0008] Furthermore, before the step of obtaining the current data information of the electric water heater, the step includes:

[0009] Acquire the current atmospheric pressure of the electric water heater, and determine the water boiling point of the environment where the electric water heater is located according to the atmospheric pressure;

[0010] The maximum temperature of the target water outlet temperature is determined according to the water boiling point.

[0011] Furthermore, the step of preprocessing the mains electricity to obtain the real-time voltage of the electric water heater, and calculating the real-time power of the electric water heater according to the real-time voltage includes:

[0012] Performing voltage transformation on the mains power according to a preset method to obtain a real-time peak-to-peak value of the mains power;

[0013] Obtaining a preset voltage of the electric water heater and a reference peak-to-peak value corresponding to the preset voltage;

[0014] Obtaining a real-time voltage of the electric water heater according to the preset voltage, the real-time peak-to-peak value and the reference peak-to-peak value;

[0015] The real-time power of the electric water heater is calculated according to the real-time voltage.

[0016] Furthermore, the step of combining the data information and the real-time power to adjust the water flow rate of the electric water heater to keep the outlet water temperature constant includes:

[0017] Obtain the temperature difference based on the current water inlet temperature and the set target water outlet temperature;

[0018] According to the temperature difference, obtaining the energy required to increase the current water inlet temperature to the target water outlet temperature;

[0019] According to the real-time power and the energy, obtaining the water flow rate required by the electric water heater;

[0020] The water flow rate is regulated by a water pump and a flow meter to keep the outlet water temperature constant.

[0021] Furthermore, the step of regulating the water flow rate by means of a water pump and a flow meter to keep the outlet water temperature constant comprises:

[0022] Obtaining the actual water output through the flow meter;

[0023] Monitor the current pulse width modulation (PWM) of the water pump, and obtain the theoretical water output through the relationship curve between the pulse width modulation (PWM) duty cycle and the water flow rate;

[0024] Calculating the difference between the actual water output and the theoretical water output to determine whether the water pump function needs to be compensated;

[0025] If it is necessary to compensate the water pump function, adjust the relationship curve between the pulse width modulation (PWM) duty cycle and the water flow rate, and then adjust the actual water output by changing the pulse width modulation (PWM) duty cycle until the actual water output after adjustment reaches a set relationship with the theoretical water output to keep the water outlet temperature constant.

[0026] Furthermore, the step of obtaining the actual water output through the flow meter includes:

[0027] The flow meter records the number of pulses of each water outflow and the water volume of a single pulse in real time;

[0028] The actual water output is calculated based on the pulse number and the single pulse water volume.

[0029] Further, after the step of regulating the water flow rate by a water pump and a flow meter to keep the outlet water temperature constant, the method further comprises:

[0030] Get the real-time outlet water temperature through the outlet water thermometer;

[0031] Calculate the difference between the actual outlet water temperature and the target outlet water temperature to determine whether the water flow rate of the water pump needs to be adjusted;

[0032] If it is necessary to adjust the water flow rate of the water pump, the duty cycle of the pulse width modulation (PWM) is adjusted to adjust the control voltage of the water pump, thereby regulating the water flow rate to keep the outlet water temperature constant.

[0033] The present application also provides an electric water heater control device, comprising:

[0034] An acquisition module, used to acquire current data information of the electric water heater, wherein the data information includes a current water inlet temperature and a set target water outlet temperature;

[0035] A calculation module, used for preprocessing the mains electricity to obtain the real-time voltage of the electric water heater, and calculating the real-time power of the electric water heater according to the real-time voltage;

[0036] The control module is used to combine the data information and the real-time power to control the water flow rate of the electric water heater to keep the outlet water temperature constant.

[0037] The present application also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.

[0038] The present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.

[0039] Compared with the prior art, the present application provides an electric water heater control method, device, computer equipment and storage medium, which obtains the current data information of the electric water heater, pre-processes the mains electricity, obtains the real-time voltage of the electric water heater, and calculates the real-time power of the electric water heater according to the real-time voltage, and combines the data information and the real-time power to adjust the water flow rate of the electric water heater to keep the outlet water temperature constant. The above steps control the water heater to make dynamic adjustments under different grid conditions by identifying the grid voltage, so as to keep the outlet water temperature constant. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 This is a working block diagram of the electric water heater control method of this application;

[0041] Figure 2 A schematic diagram of the steps of an electric water heater control method in an embodiment of the present application;

[0042] Figure 3 This is a schematic diagram of the steps of an electric water heater control method in another embodiment of the present application;

[0043] Figure 4 It is a structural block diagram of an electric water heater control device in an embodiment of the present application;

[0044] Figure 5 This is a schematic block diagram of the structure of an embodiment of a computer device of the present application.

[0045] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0046] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

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

[0048] Reference Figure 2 , a method for controlling an electric water heater according to an embodiment of the present application includes:

[0049] S1. Acquire current data information of the electric water heater, wherein the data information includes a current water inlet temperature and a set target water outlet temperature;

[0050] S2, preprocessing the mains electricity to obtain the real-time voltage of the electric water heater, and calculating the real-time power of the electric water heater according to the real-time voltage;

[0051] S3. Combining the data information and the real-time power, regulating the water flow rate of the electric water heater to keep the outlet water temperature constant.

[0052] Reference Figure 1The electric water heater includes a power supply part, a control part and a heating water circuit. The power supply part includes a water pump, a flow meter, a water inlet thermometer, a heating tube and a water outlet thermometer. The power supply part includes an AC zero-crossing detection module, an AC coupling coil, a heating tube switch and a control board power supply module. The control part includes a heating control module, an air pressure sensor, a voltage acquisition module, a temperature acquisition module, a flow acquisition module, and a water pump control module. Among them, the water pump, the water pump control module, and the heating control module are connected by signals in sequence; the flow meter, the flow acquisition module, and the heating control module are connected by signals in sequence; the water inlet thermometer and the water outlet thermometer are both connected to the temperature acquisition module, and the temperature acquisition module is connected to the heating control module by signals; the heating tube, the heating switch, and the heating control module are connected by signals in sequence. In step S1, the current water inlet temperature can be obtained through the water inlet thermometer, and the target water outlet temperature is set by the user according to actual needs. In step S2, the AC power supply is used to detect the zero-crossing point of the city power through the AC zero-crossing detection module, so that the heating tube is turned on at the voltage zero point to reduce interference with the power grid. The AC coupling coil reduces the AC voltage by a ratio of N:1. After the AC zero-crossing detection module detects the voltage zero point, it samples the maximum and minimum values ​​of the voltage within a voltage cycle, and converts it by a ratio of 1:N to obtain the current working voltage of the electric water heater. In the above step S3, since the energy required to increase the current water inlet temperature to the target water outlet temperature is constant, the working voltage of the electric water heater is in a variable state. Therefore, the energy stability can be maintained by regulating the heating time of the water flowing through the heating pipe. The above heating time is related to the water flow speed of the heating water pipe. When the heating time required is less, the heating time is shortened by increasing the water flow speed. Therefore, the required water flow speed can be achieved through water pump regulation and flow feedback.

[0053] Furthermore, before the step S1 of acquiring the current data information of the electric water heater, the following steps are included:

[0054] S01, obtaining the current atmospheric pressure of the electric water heater, and confirming the water boiling point of the environment where the electric water heater is located according to the atmospheric pressure;

[0055] S02. Determine the maximum temperature of the target water outlet temperature according to the water boiling point.

[0056] Since the electric water heaters in the prior art cannot adapt to the changes in boiling point at different altitudes, when the water temperature reaches the boiling point of the environment, it may cause water vapor to scald people. In step S11, the current atmospheric pressure of the electric water heater is obtained through the above-mentioned air pressure sensor, and the water boiling point of the environment where the electric water heater is located is confirmed according to the atmospheric pressure. The air pressure sensor sends the water boiling point information to the heating control module, and the heating control module sets the maximum temperature of the electric water heater. The maximum temperature should be lower than the temperature that reaches the boiling point in the area where the electric water heater is located.

[0057] Further, refer to Figure 3 The step S2 of preprocessing the mains electricity to obtain the real-time voltage of the electric water heater and calculating the real-time power of the electric water heater according to the real-time voltage comprises:

[0058] S21, transforming the mains power according to a preset method to obtain a real-time peak-to-peak value of the mains power;

[0059] S22, obtaining a preset voltage of the electric water heater and a reference peak-to-peak value corresponding to the preset voltage;

[0060] S23, obtaining the real-time voltage of the electric water heater according to the preset voltage, the real-time peak-to-peak value and the reference peak-to-peak value;

[0061] S24. Calculate the real-time power of the electric water heater according to the real-time voltage.

[0062] In the above steps, the real-time voltage of the mains is reduced by the ratio of N:1 through the AC coupling coil. After the AC zero-crossing detection module detects the voltage zero point, it samples the maximum and minimum values ​​of the voltage within a voltage cycle, and calculates the real-time peak-to-peak value of the mains based on the maximum and minimum values. When the software is implemented, the preset voltage of the electric water heater, such as 220V, is sampled to obtain the reference peak-to-peak value corresponding to the voltage at this time. In the actual power grid, the real-time peak-to-peak value is sampled and obtained, and compared with the reference peak-to-peak value to obtain the real-time working voltage of the electric water heater; real-time working voltage / 220=real-time peak-to-peak value / reference peak-to-peak value. Therefore, the real-time power of the electric water heater = the square of the real-time working voltage / heating tube resistance.

[0063] Furthermore, the step S3 of adjusting the water flow rate of the electric water heater to keep the outlet water temperature constant by combining the data information and the real-time power includes:

[0064] S31, obtaining a temperature difference based on the current water inlet temperature and the set target water outlet temperature;

[0065] S32, acquiring energy required to increase the current water inlet temperature to the target water outlet temperature according to the temperature difference;

[0066] S33, obtaining the water flow rate required by the electric water heater according to the real-time power and the energy;

[0067] S34, regulating the water flow rate through a water pump and a flow meter to keep the outlet water temperature constant.

[0068] The above steps obtain the temperature difference through the current water inlet temperature and the set target water outlet temperature, and obtain the required energy based on the temperature difference. Since the total amount of energy for heating is constant, the energy (water temperature) can be maintained stable by adjusting the heating time. The heating time here is related to the water flow rate of the heating water pipe. When the heating time needs to be short, the water flow rate becomes faster. The required water flow rate is achieved through water pump regulation and flow feedback.

[0069] Furthermore, the step of regulating the water flow rate by means of a water pump and a flow meter to keep the outlet water temperature constant S34 includes:

[0070] S341, obtaining the actual water output through the flow meter;

[0071] S342, monitoring the current PWM (Pulse width modulation) of the water pump, and obtaining the theoretical water output through the relationship curve between PWM duty cycle and water flow speed;

[0072] S343, calculating the difference between the actual water output and the theoretical water output, and determining whether the water pump function needs to be compensated;

[0073] S344. If it is necessary to compensate the water pump function, adjust the relationship curve between the PWM duty cycle and the water flow rate, and then adjust the actual water output by changing the PWM duty cycle until the actual water output after adjustment reaches a set relationship with the theoretical water output to keep the water outlet temperature constant.

[0074] Specifically, step S341 includes:

[0075] S3411, recording the number of pulses of each water outflow and the water volume of a single pulse in real time through the flow meter;

[0076] S3412. Calculate the actual water output according to the pulse number and the single pulse water volume.

[0077] In the water pipe, within a certain flow range, the flow of liquid drives the turbine to rotate. The speed of the turbine is proportional to the flow rate of the fluid. The speed of the turbine is converted into electrical pulses, and the number of pulses of each water discharge is recorded in real time. Based on the single pulse water volume, the actual water output is calculated = single pulse water volume * pulse number.

[0078] In step S344, the PWM of the water pump is proportional to the water outlet speed v: PWM*coefficient=water outlet speed. Monitor the current PWM of the water pump to obtain the theoretical water output = water outlet speed v*time=(PWM*K)*time. Based on the difference between the actual water output and the theoretical water output, determine whether the water pump function needs to be compensated. When the water pump function compensation is required, the relationship between the PWM duty cycle and the water outlet speed is adjusted by adjusting the above-mentioned K value, and the relationship between the output voltage of the water pump and the PWM curve is adjusted, that is, the PWM value is adjusted by adjusting the duty cycle, and then the output voltage of the water pump is adjusted, thereby achieving proportional regulation-water outlet speed-water output. Among them, the square of the real-time voltage of the water heater*the opening time of the thyristor T'=water outlet speed v*intermediate coefficient R, and the water outlet speed v is proportional to the output voltage of the water pump. Therefore, the square of the real-time voltage of the water heater * the opening time of the thyristor = the output voltage of the water pump * the fixed coefficient. The square of the real-time voltage of the water heater has been calculated. When the water pump voltage changes, the balance is maintained by adjusting the opening time of the thyristor. Under the condition of a certain PWM wave frequency, the voltage is adjusted by changing the size of its duty cycle. For example, when the duty cycle is 100%, the full voltage is output, and when the duty cycle is 0, the output voltage is 0. For example, if the total output is 30V, then the duty cycle corresponding to the output 2-22V is 2 / 30-22 / 30, that is, the duty cycle is about 7%-73%. The duty cycle controls the output voltage, because the duty cycle control is to modulate the pulse width of the voltage signal of a certain frequency applied to the working actuator by the electronic control unit, that is, duty cycle control, to achieve accurate and continuous control of the working condition of the component. After the flow meter feedback reaches the required theoretical water output, the adjustment is completed. The setting relationship is that the actual water output is equal to the theoretical water output, or the difference between the actual water output and the theoretical water output is within the allowable range.

[0079] Furthermore, after the step S344, the following steps are included:

[0080] S345, obtaining the real-time outlet water temperature through the outlet water thermometer;

[0081] S346, calculating the difference between the actual outlet water temperature and the target outlet water temperature, and determining whether it is necessary to adjust the water flow rate of the water pump;

[0082] S347: If it is necessary to adjust the water flow rate of the water pump, the water flow rate is regulated to keep the outlet water temperature constant by adjusting the duty cycle of PWM and adjusting the control voltage of the water pump.

[0083] Since the control of the water outlet temperature requires the coordination of multiple electrical components in the electric water heater, there will be some deviation between the actual water outlet temperature and the target water outlet temperature. For example, in this embodiment, the actual water outlet volume is obtained by a flow meter. However, due to the influence of the processing technology of the flow meter and the ambient temperature of the flow meter, the flow meter will have a certain detection accuracy error. In this way, when the electric water heater is working normally, the detection accuracy error of the flow meter will affect the constant temperature of the electric water heater, making the constant temperature characteristics of the electric water heater worse. The above steps calculate the difference between the actual water outlet temperature and the target water outlet temperature. If the difference is large, the water flow rate of the water pump is adjusted to keep the water outlet temperature constant. The specific adjustment process can be referred to step S44, so it will not be repeated here.

[0084] Furthermore, the method further comprises:

[0085] S4, obtaining the voltage output when the electric water heater leaks electricity;

[0086] S5, rectifying the voltage, and generating an alarm signal when the rectified voltage meets a set condition;

[0087] S6. Prompt a leakage warning and / or cut off the power supply according to the alarm signal.

[0088] In the above steps, the device for detecting and providing an alarm signal prompt is provided on the electric water heater as a part of the electric water heater, or, as a separate device, when the electric water heater is subjected to leakage detection according to user needs, the device is connected to the corresponding leakage detection output port on the electric water heater. Rectifying the voltage includes: converting the voltage into a DC voltage, so as to facilitate determining the leakage state of the electric water heater. When the electric water heater is leaking, the output voltage is a power frequency voltage, which is a sinusoidal alternating current. Since the direction and amplitude of the alternating current will change periodically over time, it is not convenient to perform leakage detection and logical analysis on whether there is leakage, resulting in untimely reminders and potential dangers to users. Therefore, the present disclosure rectifies the voltage before determining whether the electric water heater is leaking. The power supply is cut off according to the alarm signal and a leakage prompt is provided at the same time. The device for providing a leakage prompt performs a power-off process in a timely and effective manner to avoid safety hazards to users, and provides a leakage prompt to remind users to check in time and make effective treatments. The device for providing leakage warning in the embodiment of the present disclosure uses a buzzer or an external device, such as a user mobile terminal, a Bluetooth speaker, a smart TV, or other interconnected smart device, to remind the user in a striking manner, so that the user can obtain the alarm information in a timely and effective manner.

[0089] Reference Figure 4 The present application also provides an electric water heater control device, comprising:

[0090] An acquisition module, used to acquire current data information of the electric water heater, wherein the data information includes a current water inlet temperature and a set target water outlet temperature;

[0091] A calculation module, used for preprocessing the mains electricity to obtain the real-time voltage of the electric water heater, and calculating the real-time power of the electric water heater according to the real-time voltage;

[0092] The control module is used to combine the data information and the real-time power to control the water flow rate of the electric water heater to keep the outlet water temperature constant.

[0093] Furthermore, the electric water heater control device further comprises:

[0094] A water boiling point acquisition module is used to acquire the current atmospheric pressure of the electric water heater and determine the water boiling point of the environment where the electric water heater is located according to the atmospheric pressure;

[0095] The temperature setting module is used to determine the maximum temperature of the target water outlet temperature according to the water boiling point.

[0096] Furthermore, the computing module comprises:

[0097] A real-time peak-to-peak value acquisition submodule is used to transform the mains power according to a preset method to obtain the real-time peak-to-peak value of the mains power;

[0098] A reference peak-to-peak value acquisition submodule is used to acquire a preset voltage of the electric water heater and a reference peak-to-peak value corresponding to the preset voltage;

[0099] A real-time working voltage calculation submodule, which obtains the real-time voltage of the electric water heater according to the preset voltage, the real-time peak-to-peak value and the reference peak-to-peak value;

[0100] The real-time power calculation submodule calculates the real-time power of the electric water heater according to the real-time voltage.

[0101] Furthermore, the control module includes:

[0102] The temperature difference acquisition submodule acquires the temperature difference based on the current inlet water temperature and the set target outlet water temperature;

[0103] an energy acquisition submodule, for acquiring energy required to increase the current water inlet temperature to the target water outlet temperature according to the temperature difference;

[0104] A water flow rate acquisition submodule, which acquires the water flow rate required by the electric water heater according to the real-time power and the energy;

[0105] The regulating submodule regulates the water flow rate through a water pump and a flow meter to keep the outlet water temperature constant.

[0106] Furthermore, the regulatory submodule includes:

[0107] An actual water output acquisition submodule is used to acquire the actual water output through the flow meter;

[0108] Theoretical water output acquisition submodule is used to monitor the current PWM of the water pump and obtain the theoretical water output through the relationship curve between PWM duty cycle and water flow speed;

[0109] A judgment submodule, used to calculate the difference between the actual water output and the theoretical water output, and judge whether the water pump function needs to be compensated;

[0110] The output voltage regulation submodule is used to adjust the relationship curve between the PWM duty cycle and the water flow rate if compensation for the water pump function is required, and then adjust the actual water output by changing the PWM duty cycle until the actual water output after adjustment reaches a set relationship with the theoretical water output to keep the water outlet temperature constant.

[0111] Furthermore, the actual water output acquisition submodule includes:

[0112] A real-time recording submodule, used to record the number of pulses of each water outflow and the water volume of a single pulse in real time through the flow meter;

[0113] The actual water output calculation submodule is used to calculate the actual water output according to the pulse number and the single pulse water volume.

[0114] Furthermore, the device also includes:

[0115] The outlet water temperature acquisition submodule is used to obtain the real-time outlet water temperature through the outlet water thermometer;

[0116] The second judgment submodule is used to calculate the difference between the actual outlet water temperature and the target outlet water temperature to determine whether the water flow rate of the water pump needs to be adjusted;

[0117] The second regulating submodule is used to adjust the water flow rate of the water pump by adjusting the duty cycle of PWM and adjusting the control voltage of the water pump if it is necessary to adjust the water flow rate to keep the outlet water temperature constant.

[0118] Furthermore, the device also includes:

[0119] A voltage acquisition module, used to acquire the voltage output when the electric water heater leaks electricity;

[0120] an alarm signal generating module, used for rectifying the voltage and generating an alarm signal when the rectified voltage meets a set condition;

[0121] The leakage execution module is used to give a leakage prompt and / or cut off the power supply according to the alarm signal.

[0122] Reference Figure 4 In an embodiment of the present application, a computer device is also provided, the internal structure of which can be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface, a display device and an input device connected through a system bus. Among them, the network interface of the computer device is used to communicate with an external terminal through a network connection. The display device of the computer device is used to display an interactive page. The input device of the computer device is used to receive user input. The processor designed for the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium. The non-volatile storage medium stores an operating system, a computer program and a database. The database of the computer device is used to store raw data. When the computer program is executed by the processor, an electric water heater control method is implemented.

[0123] The processor executes the electric water heater control method, obtains the current data information of the electric water heater, pre-processes the mains electricity, obtains the real-time voltage of the electric water heater, calculates the real-time power of the electric water heater according to the real-time voltage, and adjusts the water flow rate of the electric water heater in combination with the data information and the real-time power to keep the outlet water temperature constant. The above steps control the water heater to make dynamic adjustments under different grid conditions by identifying the grid voltage, so as to keep the outlet water temperature constant.

[0124] The present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor, an electric water heater control method is implemented, including: obtaining the current data information of the electric water heater, preprocessing the city power, obtaining the real-time voltage of the electric water heater, and calculating the real-time power of the electric water heater according to the real-time voltage, and combining the data information and the real-time power to adjust the water flow rate of the electric water heater to keep the outlet water temperature constant. The above steps control the water heater to make dynamic adjustments under different grid conditions by identifying the grid voltage, so as to keep the outlet water temperature constant.

[0125] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0126] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0127] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for controlling an electric water heater, characterized in that: include: Acquiring current data information of the electric water heater, wherein the data information includes a current water inlet temperature and a set target water outlet temperature; Preprocessing the mains electricity to obtain the real-time voltage of the electric water heater, and calculating the real-time power of the electric water heater according to the real-time voltage; In combination with the data information and the real-time power, regulating the water flow rate of the electric water heater to keep the outlet water temperature constant; Before the step of obtaining the current data information of the electric water heater, the method includes: Acquiring the atmospheric pressure of the current environment of the electric water heater, and determining the water boiling point of the environment where the electric water heater is located according to the atmospheric pressure; Determine the maximum temperature of the target water outlet temperature according to the water boiling point; The step of preprocessing the mains electricity to obtain the real-time voltage of the electric water heater, and calculating the real-time power of the electric water heater according to the real-time voltage comprises: Performing voltage transformation on the mains power according to a preset method to obtain a real-time peak-to-peak value of the mains power; Obtaining a preset voltage of the electric water heater and a reference peak-to-peak value corresponding to the preset voltage; Obtaining a real-time voltage of the electric water heater according to the preset voltage, the real-time peak-to-peak value and the reference peak-to-peak value; Calculating the real-time power of the electric water heater according to the real-time voltage; The step of combining the data information and the real-time power to adjust the water flow rate of the electric water heater to keep the outlet water temperature constant includes: Obtain the temperature difference based on the current water inlet temperature and the set target water outlet temperature; According to the temperature difference, obtaining the energy required to increase the current water inlet temperature to the target water outlet temperature; According to the real-time power and the energy, obtaining the water flow rate required by the electric water heater; The water flow rate is regulated by a water pump and a flow meter to keep the outlet water temperature constant.

2. The electric water heater control method according to claim 1, characterized in that: The step of regulating the water flow rate by means of a water pump and a flow meter to keep the outlet water temperature constant comprises: Obtaining the actual water output through the flow meter; Monitor the current pulse width modulation (PWM) of the water pump, and obtain the theoretical water output through the relationship curve between the pulse width modulation (PWM) duty cycle and the water flow rate; Calculating the difference between the actual water output and the theoretical water output to determine whether the water pump function needs to be compensated; If it is necessary to compensate the water pump function, adjust the relationship curve between the pulse width modulation (PWM) duty cycle and the water flow rate, and then adjust the actual water output by changing the pulse width modulation (PWM) duty cycle until the actual water output after adjustment reaches a set relationship with the theoretical water output to keep the water outlet temperature constant.

3. The electric water heater control method according to claim 2, characterized in that: The step of obtaining the actual water output through the flow meter includes: The flow meter records the number of pulses of each water outflow and the water volume of a single pulse in real time; The actual water output is calculated based on the pulse number and the single pulse water volume.

4. The electric water heater control method according to claim 1, characterized in that: After the step of regulating the water flow rate by means of a water pump and a flow meter to keep the outlet water temperature constant, the method further comprises: Get the real-time outlet water temperature through the outlet water thermometer; Calculate the difference between the actual outlet water temperature and the target outlet water temperature to determine whether the water flow rate of the water pump needs to be adjusted; If it is necessary to adjust the water flow rate of the water pump, the duty cycle of the pulse width modulation (PWM) is adjusted to adjust the control voltage of the water pump, thereby regulating the water flow rate to keep the outlet water temperature constant.

5. An electric water heater control device, characterized in that: The method for controlling an electric water heater according to any one of claims 1 to 4 comprises: An acquisition module, used to acquire current data information of the electric water heater, wherein the data information includes a current water inlet temperature and a set target water outlet temperature; A calculation module, used for preprocessing the mains electricity to obtain the real-time voltage of the electric water heater, and calculating the real-time power of the electric water heater according to the real-time voltage; The control module is used to combine the data information and the real-time power to control the water flow rate of the electric water heater to keep the outlet water temperature constant.

6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Electric water heater and control method thereof

    CN103925703A

  • Method and device for controlling water heater capable of saving energy and preventing scale

    CN104807192A