Control method, system, device and storage medium for water pump of water heater
By obtaining the corresponding relationship between the working mode of the water heater, the PWM wave duty cycle and the water flow rate, the pump speed is adjusted in real time, which solves the problems of water flow fluctuations and unsatisfactory boosting effect caused by the pump speed deviation, and realizes efficient water pump control, improving user experience and service life.
Patent Information
- Application Number
- CN202310780192.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2043-06-29
AI Technical Summary
The prior art has increased the design complexity and production costs by changing the hardware to solve the water pump control problem, resulting in a deviation from the preset speed of the water pump, resulting in water flow fluctuations and unsatisfactory boosting effect, reducing the service life and user experience of the water pump.
By obtaining the corresponding relationship between the working mode of the water heater, the PWM wave duty cycle, the pump speed and the water flow rate, the pump speed is adjusted in real time to achieve efficient control of the water pump and avoid hardware changes.
It realizes real-time adjustment of the pump speed without changing the hardware, improves the operating efficiency and service life of the pump, improves the user experience, and avoids problems caused by hardware changes.
Smart Images

Figure CN116697615B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of household appliances, and in particular to a control method, system, device and storage medium for a water pump of a water heater. Background Art
[0002] Common household gas water heaters with water pumps can experience deviations between the actual pump speed and the programmed speed (the speed set by the program) due to factors such as varying water quality (varying levels of dissolved salts in the water), changes in friction between the motor bearings (if the motor is not rotating for a long time, friction between the bearings will increase, which will decrease after a period of rotation), changes in water resistance (the resistance to water pressure within the pipe, which is related to factors such as water flow rate, resistance coefficient, and pipe diameter), and water flow fluctuations. Therefore, when using a water pump for boosting, problems such as water flow fluctuations (water fluctuations can cause water temperature fluctuations), unsatisfactory boosting effects, and pump stalls may occur due to the pump, reducing the user experience. Furthermore, due to the above reasons, if the pump is not operating within the appropriate speed range, operating too slowly or too quickly, it may reduce the pump's service life (if the actual pump speed is too slow, it may be stalled, and if the control current is too high, it may cause high loads on the pump and its control board; if the pump speed is too fast, it will wear out faster).
[0003] Currently, the solution to the above problem is to change the hardware, such as changing the water pump structure, optimizing the pipeline, etc. This method increases the design complexity and production cost. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to overcome the defect in the prior art that solving the water pump control problem by changing the hardware increases the design complexity and production cost, and to provide a control method, system, device and storage medium for the water pump of a water heater.
[0005] The present invention solves the above technical problems through the following technical solutions:
[0006] The present invention provides a method for controlling a water pump of a water heater, comprising:
[0007] Obtain the corresponding relationship between the water heater's operating mode, PWM wave duty cycle, water pump speed, and water flow rate;
[0008] Obtaining the current working mode, current duty cycle, current water flow rate and actual speed of the water pump;
[0009] The rotational speed of the water pump is adjusted according to the current working mode, the current duty cycle, the current water flow, the actual rotational speed and the corresponding relationship.
[0010] Preferably, adjusting the rotation speed of the water pump according to the current working mode, the current duty cycle, the current water flow, the actual rotation speed and the corresponding relationship includes:
[0011] determining a theoretical speed of the water pump according to the current working mode, the current duty cycle, the current water flow rate, and the corresponding relationship;
[0012] The rotation speed of the water pump is adjusted according to the actual rotation speed and the theoretical rotation speed.
[0013] Preferably, the adjusting the speed of the water pump according to the actual speed and the theoretical speed includes:
[0014] When a first difference between the actual rotational speed and the theoretical rotational speed is greater than a first preset threshold within a first preset time period, the rotational speed of the water pump is reduced.
[0015] Preferably, the adjusting the speed of the water pump according to the actual speed and the theoretical speed further includes:
[0016] When a second difference between the theoretical rotational speed and the actual rotational speed is greater than a second preset threshold within a second preset time period, the rotational speed of the water pump is increased.
[0017] Preferably, the adjusting the speed of the water pump according to the actual speed and the theoretical speed further includes:
[0018] When the actual rotation speed is less than a third preset threshold within a third preset time period, a water pump fault alarm is issued to warn that the water pump is currently in a serious stalled state.
[0019] Preferably, the adjusting the speed of the water pump according to the actual speed and the theoretical speed further includes:
[0020] When the absolute value of the first difference is smaller than a fourth preset threshold, information indicating that the water pump is in a normal working state is generated.
[0021] Preferably, the rotation speed of the water pump is positively correlated with the duty cycle of the PWM wave;
[0022] The adjusting the rotation speed of the water pump comprises:
[0023] The rotation speed is adjusted by adjusting the duty cycle of the output PWM wave.
[0024] The present invention also provides a control system for a water pump of a water heater, comprising: an acquisition module and a speed control module;
[0025] The acquisition module is used to obtain the corresponding relationship between the working mode of the water heater, the PWM wave duty cycle, the water pump speed and the water flow rate;
[0026] The acquisition module is further used to acquire the current working mode, the current duty cycle, the current water flow rate and the actual speed of the water pump;
[0027] The speed control module is used to adjust the speed of the water pump according to the current working mode, the current duty cycle, the current water flow, the actual speed and the corresponding relationship.
[0028] Preferably, the speed control module includes: a theoretical speed determination unit and a speed adjustment unit;
[0029] The theoretical speed determination unit is used to determine the theoretical speed of the water pump according to the current working mode, the current duty cycle, the current water flow rate and the corresponding relationship;
[0030] The speed regulating unit is used to regulate the speed of the water pump according to the actual speed and the theoretical speed.
[0031] Preferably, the speed regulating unit is specifically configured to reduce the speed of the water pump when a first difference between the actual speed and the theoretical speed is greater than a first preset threshold within a first preset time period.
[0032] Preferably, the speed regulating unit is further configured to increase the speed of the water pump when a second difference between the theoretical speed and the actual speed is greater than a second preset threshold within a second preset time period.
[0033] Preferably, the speed regulating unit is further configured to issue a water pump fault alarm when the actual speed is less than a third preset threshold value within a third preset time period, so as to warn that the water pump is currently in a serious stalled state.
[0034] Preferably, the speed regulating unit is further configured to generate information indicating that the water pump is in a normal working state when the absolute value of the first difference is smaller than a fourth preset threshold.
[0035] Preferably, the rotation speed of the water pump is positively correlated with the duty cycle of the PWM wave;
[0036] The speed regulating unit is further configured to regulate the speed by adjusting the duty cycle of the output PWM wave.
[0037] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned method for controlling a water pump of a water heater when executing the computer program.
[0038] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the aforementioned method for controlling the water pump of the water heater when executed by a processor.
[0039] The positive progressive effect of the present invention is that the actual speed of the water pump is obtained in real time when the water pump is running, the theoretical speed of the water pump is obtained through the working mode of the water heater, the PWM wave duty cycle, the measured correspondence between the water pump speed and the water flow rate, and the operating status of the water pump is judged according to the theoretical speed and the actual speed, thereby achieving efficient control of the water pump, which is used to solve the water pump control defects existing in the prior art without making hardware changes, and also avoids the problems caused by hardware solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 This is a flow chart of a method for controlling a water pump of a water heater according to embodiment 1 of the present invention.
[0041] Figure 2 This is a flowchart of a specific implementation of step S13 of the method for controlling the water pump of the water heater according to embodiment 1 of the present invention.
[0042] Figure 3 This is a module diagram of a control system for a water pump of a water heater according to embodiment 2 of the present invention.
[0043] Figure 4 This is a schematic structural diagram of an electronic device according to embodiment 3 of the present invention. DETAILED DESCRIPTION
[0044] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.
[0045] Example 1
[0046] The present invention provides a method for controlling a water pump of a water heater, referring to Figure 1 , control methods include:
[0047] S11. Obtain the corresponding relationship between the water heater's operating mode, PWM wave duty cycle, water pump speed, and water flow rate.
[0048] S12. Obtain the current working mode, current duty cycle, current water flow rate and actual speed of the water pump.
[0049] S13. Adjust the speed of the water pump according to the current working mode, the current duty cycle, the current water flow, the actual speed and the corresponding relationship.
[0050] The current operating mode refers to the water heater's current operating mode, the current duty cycle refers to the current PWM duty cycle, and the current water flow rate refers to the currently collected water flow rate, which can be the cold water flow rate at the water inlet or the hot water flow rate at the water outlet. It only needs to correspond to the water flow rate in the corresponding relationship.
[0051] In the control of the water heater, the duty cycle of the PWM (pulse width modulation) wave output by the microcontroller is used to control the rotation of the water pump. Users can select different working modes, such as boost mode and circulation mode, through buttons, mobile phone APP (application), remote control, etc.
[0052] For example, the boost mode can be set to have three levels of boost: one-stage boost, two-stage boost, and three-stage boost. Assume that the PWM wave duty cycle of the one-stage boost is 40%, the PWM wave duty cycle of the two-stage boost is 60%, and the PWM wave duty cycle of the three-stage boost is 80%.
[0053] For another example, the circulation mode can be set to include: half-hour circulation mode and full-day circulation mode. Assume that the duty cycle of the PWM wave that controls the rotation of the water pump in both circulation modes is 60%. In the half-hour circulation mode, the water pump automatically stops working after intermittent work for half an hour, and in the full-day circulation mode, the water pump works intermittently 24 hours a day. The working principle of the circulation mode is to determine whether the water pump is working based on the water temperature in the circulation pipe. That is, if the water temperature in the circulation pipe is lower than the set temperature, for example, the water temperature in the circulation pipe is 5 degrees lower than the user-set temperature, the water heater works and the water pump starts working; otherwise, the water heater does not work and the water pump does not work.
[0054] The combination of working mode and PWM wave duty cycle can be set according to actual conditions.
[0055] The correspondence between the working mode, PWM wave duty cycle, water pump speed and water flow rate can be determined through experiments. For example, the correspondence between the measured water pump speed and water flow rate under the same combination of working mode and PWM wave duty cycle can be determined through experiments.
[0056] For this example, we'll use the combination of two-stage boost mode and a 60% PWM duty cycle. The units for water flow are L / min (liters per minute), and the units for speed are r / min (revolutions per minute). The table below shows the measured data, which provides an equation for the relationship between the pump's actual speed and water flow rate in two-stage boost mode with a 60% PWM duty cycle. This example data is provided solely to illustrate the testing method and is not relevant to any specific water heater model.
[0057]
[0058] To avoid contingencies, we can find more water pumps of the same model and perform the same test on the gas water heater. Through data processing, we can obtain the universal relationship equation.
[0059] The general relationship between the actual speed of the water pump and the water flow rate under the duty cycle of 40% PWM wave duty cycle of the first-stage boost, 80% PWM wave duty cycle of the third-stage boost and 60% PWM wave duty cycle of the cyclic mode can be determined by the same experimental method.
[0060] For ease of explanation, it is assumed here that the corresponding relationship between the water pump speed and the water flow in the two-stage boost mode is represented by an expression, which is approximately y=ax+b, where y represents the water pump speed and x represents the water flow in the water pipe.
[0061] The above assumed formula is used to calculate the theoretical speed of the water pump in the two-stage boost mode when the water flow is a (collected by the microcontroller through the water flow sensor) when the gas water heater is working. By comparing the theoretical speed with the actual speed of the water pump collected by the speed feedback microcontroller, the operating status of the water pump at this time can be judged, including abnormal conditions such as stalling (speed too low), no rotation, and a large difference between the actual speed and the theoretical speed.
[0062] This embodiment obtains the actual speed of the water pump in real time when the water pump is running, and obtains the theoretical speed of the water pump through the working mode of the water heater, the PWM wave duty cycle, the measured correspondence between the water pump speed and the water flow rate. The operating status of the water pump is judged according to the theoretical speed and the actual speed, thereby achieving efficient control of the water pump, which is used to solve the water pump control defects existing in the existing technology without making hardware changes, and also avoids the problems caused by hardware solutions.
[0063] When implementing it, refer to Figure 2 , step S13 includes:
[0064] S131. Determine the theoretical speed of the water pump according to the current working mode, the current duty cycle, the current water flow rate, and the corresponding relationship.
[0065] S132. Adjust the speed of the water pump according to the actual speed and the theoretical speed.
[0066] Among them, the corresponding relationship can be used to determine the theoretical speed that the water pump should have when working normally under the current circumstances. The theoretical speed can be used as a reference standard in combination with the actual speed to judge the operating status of the water pump, thereby achieving efficient control of the water pump, which is used to solve the water pump control defects existing in the existing technology without making hardware changes, and also avoids the problems caused by hardware solutions.
[0067] In specific implementation, step S132 includes:
[0068] When a first difference between the actual rotational speed and the theoretical rotational speed is greater than a first preset threshold within a first preset time period, the rotational speed of the water pump is reduced.
[0069] The first difference between the actual speed and the theoretical speed is greater than the first preset threshold S1 within the first preset time period, that is:
[0070] Actual speed - theoretical speed > S1, indicating that the actual speed is too high and the speed needs to be lowered to achieve a lower actual speed.
[0071] The first preset time period (for example, the duration of this time period) and the first preset threshold can be set according to the actual situation.
[0072] In specific implementation, step S132 further includes:
[0073] When the second difference between the theoretical speed and the actual speed is greater than the second preset threshold within the second preset time period, increase the speed of the water pump.
[0074] Among them, the second difference between the theoretical speed and the actual speed being greater than the second preset threshold S2 within the second preset time period means that:
[0075] Theoretical speed - actual speed > S2, indicating that the actual speed is on the low side and the speed needs to be increased to reach a higher actual speed.
[0076] The second preset time period (for example, the duration of this time period) and the second preset threshold can be set according to the actual situation.
[0077] In specific implementation, step S132 further includes:
[0078] When the actual speed is less than the third preset threshold within the third preset time period, give an alarm for the water pump failure to warn that the water pump is currently in a serious blocked rotation state.
[0079] Among them, the actual speed being less than the third preset threshold S3 within the third preset time period means that:
[0080] Actual speed < S3, indicating that the water pump is currently in a serious blocked rotation state and an alarm is needed.
[0081] The third preset time period (for example, the duration of this time period) and the third preset threshold can be set according to the actual situation.
[0082] In specific implementation, step S132 further includes:
[0083] When the absolute value of the first difference is less than the fourth preset threshold, generate information indicating that the working state of the water pump is normal.
[0084] Among them, the absolute value of the first difference being less than the fourth preset threshold S4 means that:
[0085] |Actual speed - theoretical speed| < S4, indicating that the water pump is currently in a normal working state and no processing is required.
[0086] The fourth preset time period (for example, the duration of this time period) and the fourth preset threshold can be set according to the actual situation.
[0087] In specific implementation, the speed of the water pump is positively correlated with the duty cycle of the PWM wave.
[0088] In step S132, "adjusting the speed of the water pump" includes:
[0089] The speed is adjusted by adjusting the duty cycle of the output PWM wave.
[0090] Example 2
[0091] The present invention also provides a water pump control system for a water heater, referring to Figure 3 The control system includes: an acquisition module 1 and a speed control module 2.
[0092] The acquisition module 1 is used to obtain the corresponding relationship between the working mode of the water heater, the PWM wave duty cycle, the water pump speed and the water flow rate.
[0093] The acquisition module 1 is further used to acquire the current working mode, the current duty cycle, the current water flow rate and the actual speed of the water pump.
[0094] The speed control module 2 is used to adjust the speed of the water pump according to the current working mode, the current duty cycle, the current water flow, the actual speed and the corresponding relationship.
[0095] The current operating mode refers to the water heater's current operating mode, the current duty cycle refers to the current PWM duty cycle, and the current water flow rate refers to the currently collected water flow rate, which can be the cold water flow rate at the water inlet or the hot water flow rate at the water outlet. It only needs to correspond to the water flow rate in the corresponding relationship.
[0096] In the control of the water heater, the duty cycle of the PWM (pulse width modulation) wave output by the microcontroller is used to control the rotation of the water pump. Users can select different working modes, such as boost mode and circulation mode, through buttons, mobile phone APP (application), remote control, etc.
[0097] For example, the boost mode can be set to have three levels of boost: one-stage boost, two-stage boost, and three-stage boost. Assume that the PWM wave duty cycle of the one-stage boost is 40%, the PWM wave duty cycle of the two-stage boost is 60%, and the PWM wave duty cycle of the three-stage boost is 80%.
[0098] For another example, the circulation mode can be set to include: half-hour circulation mode and full-day circulation mode. Assume that the duty cycle of the PWM wave that controls the rotation of the water pump in both circulation modes is 60%. In the half-hour circulation mode, the water pump automatically stops working after intermittent work for half an hour, and in the full-day circulation mode, the water pump works intermittently 24 hours a day. The working principle of the circulation mode is to determine whether the water pump is working based on the water temperature in the circulation pipe. That is, if the water temperature in the circulation pipe is lower than the set temperature, for example, the water temperature in the circulation pipe is 5 degrees lower than the user-set temperature, the water heater works and the water pump starts working; otherwise, the water heater does not work and the water pump does not work.
[0099] The combination of working mode and PWM wave duty cycle can be set according to actual conditions.
[0100] The correspondence between the working mode, PWM wave duty cycle, water pump speed and water flow rate can be determined through experiments. For example, the correspondence between the measured water pump speed and water flow rate under the same combination of working mode and PWM wave duty cycle can be determined through experiments.
[0101] For this example, we'll use the combination of two-stage boost mode and a 60% PWM duty cycle. The units for water flow are L / min (liters per minute), and the units for speed are r / min (revolutions per minute). The table below shows the measured data, which provides an equation for the relationship between the pump's actual speed and water flow rate in two-stage boost mode with a 60% PWM duty cycle. This example data is provided solely to illustrate the testing method and is not relevant to any specific water heater model.
[0102]
[0103]
[0104] To avoid contingencies, we can find more water pumps of the same model and perform the same test on the gas water heater. Through data processing, we can obtain the universal relationship equation.
[0105] The general relationship between the actual speed of the water pump and the water flow rate under the duty cycle of 40% PWM wave duty cycle of the first-stage boost, 80% PWM wave duty cycle of the third-stage boost and 60% PWM wave duty cycle of the cyclic mode can be determined by the same experimental method.
[0106] For ease of explanation, it is assumed here that the corresponding relationship between the water pump speed and the water flow in the two-stage boost mode is represented by an expression, which is approximately y=ax+b, where y represents the water pump speed and x represents the water flow in the water pipe.
[0107] The above assumed formula is used to calculate the theoretical speed of the water pump in the two-stage boost mode when the water flow is a (collected by the microcontroller through the water flow sensor) when the gas water heater is working. By comparing the theoretical speed with the actual speed of the water pump collected by the speed feedback microcontroller, the operating status of the water pump at this time can be judged, including abnormal conditions such as stalling (speed too low), no rotation, and a large difference between the actual speed and the theoretical speed.
[0108] This embodiment obtains the actual speed of the water pump in real time when the water pump is running, and obtains the theoretical speed of the water pump through the working mode of the water heater, the PWM wave duty cycle, the measured correspondence between the water pump speed and the water flow rate. The operating status of the water pump is judged according to the theoretical speed and the actual speed, thereby achieving efficient control of the water pump, which is used to solve the water pump control defects existing in the existing technology without making hardware changes, and also avoids the problems caused by hardware solutions.
[0109] In a specific implementation, the speed control module 2 includes: a theoretical speed determination unit 21 and a speed adjustment unit 22 .
[0110] The theoretical speed determination unit 21 is used to determine the theoretical speed of the water pump according to the current working mode, the current duty cycle, the current water flow rate and the corresponding relationship.
[0111] The speed regulating unit 22 is used to regulate the speed of the water pump according to the actual speed and the theoretical speed.
[0112] Among them, the corresponding relationship can be used to determine the theoretical speed that the water pump should have when working normally under the current circumstances. The theoretical speed can be used as a reference standard in combination with the actual speed to judge the operating status of the water pump, thereby achieving efficient control of the water pump, which is used to solve the water pump control defects existing in the existing technology without making hardware changes, and also avoids the problems caused by hardware solutions.
[0113] In a specific implementation, the speed regulating unit 22 is specifically configured to reduce the speed of the water pump when a first difference between the actual speed and the theoretical speed is greater than a first preset threshold within a first preset time period.
[0114] The first difference between the actual speed and the theoretical speed is greater than the first preset threshold S1 within the first preset time period, that is:
[0115] Actual speed - theoretical speed > S1, indicating that the actual speed is too high and the speed needs to be lowered to achieve a lower actual speed.
[0116] The first preset time period (eg, the length of the time period) and the first preset threshold value may be set according to actual conditions.
[0117] In a specific implementation, the speed regulating unit 22 is further configured to increase the speed of the water pump when a second difference between the theoretical speed and the actual speed is greater than a second preset threshold within a second preset time period.
[0118] The second difference between the theoretical speed and the actual speed is greater than the second preset threshold S2 within the second preset time period, that is:
[0119] The theoretical speed - actual speed > S2 indicates that the actual speed is on the low side, and the speed needs to be increased to achieve a higher actual speed.
[0120] The second preset time period (such as the duration of this time period) and the second preset threshold can be set according to the actual situation.
[0121] During specific implementation, the speed regulation unit 22 is further configured to issue a water pump fault warning when the actual speed is less than the third preset threshold within the third preset time period, so as to warn that the water pump is currently in a serious locked - rotor state.
[0122] Among them, the actual speed is less than the third preset threshold S3 within the third preset time period, that is:
[0123] Actual speed < S3 indicates that the water pump is currently in a serious locked - rotor state and a warning is required.
[0124] The third preset time period (such as the duration of this time period) and the third preset threshold can be set according to the actual situation.
[0125] During specific implementation, the speed regulation unit 22 is further configured to generate normal water pump working state information when the absolute value of the first difference is less than the fourth preset threshold.
[0126] Among them, the absolute value of the first difference is less than the fourth preset threshold S4, that is:
[0127] |Actual speed - theoretical speed| < S4 indicates that the water pump is currently in a normal working state and no processing is required.
[0128] The fourth preset time period (such as the duration of this time period) and the fourth preset threshold can be set according to the actual situation.
[0129] During specific implementation, the speed of the water pump is positively correlated with the duty cycle of the PWM wave.
[0130] The speed regulation unit 22 is further configured to adjust the speed by adjusting the duty cycle of the output PWM wave.
[0131] Embodiment 3
[0132] Figure 4 It is a schematic structural diagram of an electronic device provided in Embodiment 3 of the present invention. The electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the control method of the water pump of the water heater in Embodiment 1. Figure 4 The displayed electronic device 30 is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.
[0133] The electronic device 30 may be a general-purpose computing device, such as a server device. Components of the electronic device 30 may include, but are not limited to, the at least one processor 31, the at least one memory 32, and a bus 33 connecting various system components (including the memory 32 and the processor 31).
[0134] The bus 33 includes a data bus, an address bus, and a control bus.
[0135] The memory 32 may include a volatile memory, such as a random access memory (RAM) 321 and / or a cache memory 322 , and may further include a read-only memory (ROM) 323 .
[0136] The memory 32 may also include a program / utility 325 having a set (at least one) of program modules 324, such program modules 324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0137] The processor 31 executes various functional applications and data processing by running computer programs stored in the memory 32 , such as the control method of the water pump of the water heater in the first embodiment of the present invention.
[0138] The electronic device 30 can also communicate with one or more external devices 34 (e.g., buttons, pointing devices, etc.). This communication can occur via an input / output (I / O) interface 35. Furthermore, the model-generated electronic device 30 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 36. As shown, the network adapter 36 communicates with other modules of the model-generated electronic device 30 via a bus 33. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with the model-generated electronic device 30, including but not limited to microcode, device drivers, redundant processors, external disk drive arrays, RAID (RAID) systems, tape drives, and data backup storage systems.
[0139] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more units / modules described above may be embodied in one unit / module; conversely, the features and functions of one unit / module described above may be further divided and embodied by multiple units / modules.
[0140] Example 4
[0141] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for controlling the water pump of the water heater in Embodiment 1 is implemented.
[0142] The readable storage medium may include, but is not limited to, a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0143] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the control method for the water pump of the water heater in Example 1.
[0144] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or entirely on the remote device.
[0145] Although specific embodiments of the present invention have been described above, those skilled in the art will appreciate that these are merely illustrative and that the scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, and such changes and modifications are intended to fall within the scope of the present invention.
Claims
1. A method for controlling a water pump of a water heater, characterized in that: include: Obtain the corresponding relationship between the water heater's operating mode, PWM wave duty cycle, water pump speed, and water flow rate; Obtain the current working mode, current duty cycle, current water flow rate and actual speed of the water pump; The rotational speed of the water pump is adjusted according to the current working mode, the current duty cycle, the current water flow, the actual rotational speed and the corresponding relationship.
2. The method for controlling a water pump of a water heater according to claim 1, wherein: The adjusting the speed of the water pump according to the current working mode, the current duty cycle, the current water flow, the actual speed and the corresponding relationship includes: determining a theoretical speed of the water pump according to the current working mode, the current duty cycle, the current water flow rate, and the corresponding relationship; The rotation speed of the water pump is adjusted according to the actual rotation speed and the theoretical rotation speed.
3. The method for controlling a water pump of a water heater according to claim 2, wherein: The adjusting the speed of the water pump according to the actual speed and the theoretical speed includes: When a first difference between the actual rotational speed and the theoretical rotational speed is greater than a first preset threshold within a first preset time period, the rotational speed of the water pump is reduced.
4. The method for controlling a water pump of a water heater according to claim 3, wherein: The adjusting the speed of the water pump according to the actual speed and the theoretical speed further includes: When a second difference between the theoretical rotational speed and the actual rotational speed is greater than a second preset threshold within a second preset time period, the rotational speed of the water pump is increased.
5. The method for controlling a water pump of a water heater according to claim 3, wherein: The adjusting the speed of the water pump according to the actual speed and the theoretical speed further includes: When the actual rotation speed is less than a third preset threshold within a third preset time period, a water pump fault alarm is issued to warn that the water pump is currently in a serious stalled state.
6. The method for controlling a water pump of a water heater according to claim 3, wherein: The adjusting the speed of the water pump according to the actual speed and the theoretical speed further includes: When the absolute value of the first difference is smaller than a fourth preset threshold, information indicating that the water pump is in a normal working state is generated.
7. The method for controlling a water pump of a water heater according to claim 2, wherein: The rotation speed of the water pump is positively correlated with the duty cycle of the PWM wave; The adjusting the rotation speed of the water pump comprises: The rotation speed is adjusted by adjusting the duty cycle of the output PWM wave.
8. A water pump control system for a water heater, characterized in that: include: Acquisition module and speed control module; The acquisition module is used to obtain the corresponding relationship between the working mode of the water heater, the PWM wave duty cycle, the water pump speed and the water flow rate; The acquisition module is further used to acquire the current working mode, the current duty cycle, the current water flow rate and the actual speed of the water pump; The speed control module is used to adjust the speed of the water pump according to the current working mode, the current duty cycle, the current water flow, the actual speed and the corresponding relationship.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for controlling a water pump of a water heater according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for controlling a water pump of a water heater according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Intelligent pressurization control method of gas water heater
CN111121302A
Water pump control method and equipment of hydrogen fuel cell system and storage medium
CN113346107A