Disclosure of Invention
The invention mainly aims to provide a control method of an electric water heater, aiming at reducing the energy consumption of the electric water heater.
In order to achieve the above object, the present invention provides a control method of an electric water heater, comprising the following steps:
acquiring a water use habit condition of a user, and judging whether heating is needed in the current time period according to the water use habit condition of the user;
when heating is needed in the current time period, the average water consumption corresponding to the current time period is obtained, and water in an inner container of the electric water heater is heated by the heater according to the average water consumption.
Preferably, the step of controlling the heater to heat the water in the inner container of the electric water heater according to the average water usage amount comprises the following steps:
comparing the average water consumption with a preset first standard water quantity;
when the average water consumption is less than or equal to the first standard water quantity, controlling the heater to heat water in the inner container of the electric water heater to a first temperature according to the first water quantity;
when the average water consumption is larger than the first standard water quantity, controlling the heater to heat water in an inner container of the electric water heater to a second temperature according to a second water quantity;
wherein the second amount of water is greater than the first amount of water, and the second temperature is greater than or equal to the first temperature.
Preferably, the step of controlling the heater to heat the water in the inner container of the electric water heater according to the average water usage further comprises:
when the average water consumption is greater than the first standard water amount, comparing the average water consumption with a second standard water amount;
when the average water consumption is less than or equal to the second standard water quantity, controlling the heater to heat water in the inner container of the electric water heater to the second temperature according to the second water quantity;
and when the average water consumption is larger than the second standard water quantity, controlling the heater to heat all water in the inner container of the electric water heater to the temperature set by the user.
Preferably, before the step of obtaining the water usage habit of the user and determining whether the current time period needs to be heated according to the water usage habit of the user, the method further includes:
acquiring the accumulated water consumption times of the user in each time period of the day before the day, and comparing the accumulated water consumption times of each time period with a standard time value;
for each time period, when the accumulated water use times of the time period is greater than the standard times, judging that the water use habit of the user in the time period is available, and storing the water use habit conditions of the user in each time period;
the step of acquiring the water use habit condition of the user and judging whether the current time period needs to be heated according to the water use habit condition of the user comprises the following steps:
acquiring whether a user has a water habit in the current time period;
and if so, judging that the current time period needs heating.
Preferably, the step of obtaining the accumulated water usage times of the user in each time period of the day before the day includes:
recording the receiving times of receiving the flow signals fed back by the flow sensor for each time period of each day before the current day;
and if the receiving times are more than or equal to 1 time, accumulating the accumulated water using times of the corresponding time period once, and storing the accumulated water using times of the time period.
Preferably, the standard secondary value is calculated from the formula N ([ D/7] -1) × 4;
and N is the standard times value, and D is the number of days for which the user uses the water heater before the current day.
Preferably, the step of acquiring the average water usage corresponding to the current time period comprises:
obtaining the relative water consumption of a user in each time period of each day before the day, and then averaging the relative water consumption in the same time period of each day before the day to obtain the average water consumption in each time period of one day;
and acquiring the average water consumption corresponding to the current time period.
Preferably, the step of obtaining the relative water usage of the user at each time period of each day before the current day comprises:
judging whether a flow signal fed back by the flow sensor is received or not for each time period;
if so, controlling the timer to acquire the current time, controlling the temperature sensor to acquire the real-time water temperature in the inner container of the electric water heater, and controlling the flow sensor to acquire the water consumption of the user in the time period;
and calculating the relative water consumption of the time period according to the current time, the real-time water temperature and the water consumption of the user, and storing the relative water consumption of the time period.
Preferably, the relative water usage is formulated by the formula
Calculating to obtain;
wherein t is the current time, L (t) is the user water consumption, T (t) is the real-time temperature, L (t)RThe relative water usage is stated.
The invention also provides a computer-readable storage medium, in which an electric water heater control program is stored, and when the electric water heater control program is executed by a processor, the steps of the control method of the electric water heater are realized, and the steps include:
acquiring a water use habit condition of a user, and judging whether heating is needed in the current time period according to the water use habit condition of the user;
when heating is needed in the current time period, the average water consumption corresponding to the current time period is obtained, and water in an inner container of the electric water heater is heated by the heater according to the average water consumption.
The invention also provides an electric water heater, comprising:
the heater is used for heating water in the inner container of the electric water heater;
a memory having an electric water heater control program stored thereon; and
the processor, when said processor carries out the said electric water heater control program, realize the step of the control method of the electric water heater, this step includes:
acquiring a water use habit condition of a user, and judging whether heating is needed in the current time period according to the water use habit condition of the user;
when heating is needed in the current time period, the average water consumption corresponding to the current time period is obtained, and water in an inner container of the electric water heater is heated by the heater according to the average water consumption.
According to the technical scheme, whether heating is needed in the current time period is judged according to the water using habit condition of the user by acquiring the water using habit condition of the user. And when the current time period needs heating, acquiring the average water consumption corresponding to the current time period, and controlling the heater to heat the water in the inner container of the electric water heater according to the average water consumption. The electric water heater is prevented from heating water in the liner in a time period when the user is not accustomed to water, so that the energy consumption of the electric water heater is reduced. In addition, because the water consumption of the user in different time periods is different, the average water consumption corresponding to the current time period is obtained, the water in the liner of the electric water heater is heated by the heater according to the average water consumption, and the water in the liner of the electric water heater is not heated according to a certain water quantity blindly, so that the energy consumption of the electric water heater is further saved.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments obtained by a person skilled in the art without making any inventive step are within the scope of protection of the present invention.
Technical solutions between various embodiments may be combined with each other, but must be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The invention provides a control method of an electric water heater.
In an embodiment of the present invention, as shown in fig. 1, the control method of the electric water heater includes the following steps:
step S10, acquiring the habit of water use by the user, and judging whether the current time period needs to be heated according to the habit of water use by the user;
and step S20, when the current time period needs heating, acquiring the average water consumption corresponding to the current time period, and controlling the water in the inner container of the heater heating electric water heater according to the average water consumption.
In this embodiment, a processor of the electric water heater obtains a water usage habit of a user, and determines whether heating is needed in a current time period according to the water usage habit of the user. When the processor knows that the water habit of the user is available in the current time period, the processor judges that the heating is needed in the current time period. And when the current time period needs heating, acquiring the average water consumption corresponding to the current time period from a memory, and controlling the water in the inner container of the heater heating electric water heater according to the average water consumption.
According to the technical scheme, whether heating is needed in the current time period is judged according to the water using habit condition of the user by acquiring the water using habit condition of the user. And when the current time period needs heating, acquiring the average water consumption corresponding to the current time period, and controlling the heater to heat the water in the inner container of the electric water heater according to the average water consumption. The electric water heater is prevented from heating water in the liner in a time period when the user is not accustomed to water, so that the energy consumption of the electric water heater is reduced. In addition, because the water consumption of the user in different time periods is different, the average water consumption corresponding to the current time period is obtained, the water in the liner of the electric water heater is heated by the heater according to the average water consumption, and the water in the liner of the electric water heater is not heated according to a certain water quantity blindly, so that the energy consumption of the electric water heater is further saved.
In this embodiment, as shown in fig. 2, the step of controlling the heater to heat the water in the inner container of the electric water heater according to the average water usage amount includes:
step S21, comparing the average water consumption with a preset first standard water quantity;
step S22, when the average water consumption is less than or equal to the first standard water quantity, controlling the heater to heat the water in the inner container of the electric water heater to a first temperature according to the first water quantity;
when the average water consumption is larger than the first standard water quantity, controlling the heater to heat water in an inner container of the electric water heater to a second temperature according to a second water quantity;
wherein the second amount of water is greater than the first amount of water, and the second temperature is greater than or equal to the first temperature.
Specifically, in this embodiment, the first standard water amount is 20L, the first water amount is 20L, the second water amount is 40L, and the first temperature and the second temperature are equal and both are 40 ℃. If the average water consumption obtained from the memory by the processor is less than or equal to 20L, the processor considers that the water is not used for bathing, and the heater is controlled to heat the water in the inner container to 40 ℃ according to the water quantity of 20L. And if the average water consumption obtained from the memory by the processor is more than 20L, controlling the heater to heat the water in the inner container of the electric water heater to 40 ℃ according to the water quantity of 40L.
And comparing the average water consumption with a preset first standard water quantity, and controlling the heater to heat the water in the liner according to a comparison result. When the average water consumption is less than or equal to the first standard water quantity, controlling the heater to heat water in an inner container of the electric water heater to a first temperature according to the first water quantity; and when the average water consumption is larger than the first standard water quantity, controlling the heater to heat the water in the inner container of the electric water heater to a second temperature according to a second water quantity. Therefore, the blind heating of the water in the inner container of the electric water heater is avoided, the heated water quantity and the heated water temperature both meet the actual requirements, and the unnecessary energy consumption is reduced.
Further, in this embodiment, as shown in fig. 3, the step of controlling the heater to heat the water in the inner container of the electric water heater according to the average water usage further includes:
step S23, when the average water consumption is larger than the first standard water quantity, comparing the average water consumption with a second standard water quantity;
step S24, when the average water consumption is less than or equal to the second standard water quantity, controlling the heater to heat the water in the inner container of the electric water heater to the second temperature according to the second water quantity;
and when the average water consumption is larger than the second standard water quantity, controlling the heater to heat all water in the inner container of the electric water heater to the temperature set by the user.
In this embodiment, specifically, the second standard water amount is 40L, and the user-set temperature is set by a user. Typically, the user-set temperature is above 40 ℃. When the average water consumption obtained by the processor from the storage is more than 20L and less than or equal to 40L, controlling the heater to heat the water in the inner container of the electric water heater to 40 ℃ according to the water quantity of 40L; and when the average water consumption obtained from the memory by the processor is more than 40L, controlling the heater to heat all water in the inner container of the electric water heater to the temperature set by the user.
Similarly, when the average water consumption is larger than the first standard water amount, the average water consumption is compared with a second standard water amount, and the heater is controlled to heat the water in the liner according to the comparison result. When the average water consumption is less than or equal to the second standard water quantity, controlling the heater to heat water in the inner container of the electric water heater to the second temperature according to the second water quantity; and when the average water consumption is larger than the second standard water quantity, controlling the heater to heat all water in the inner container of the electric water heater to the temperature set by the user. Therefore, the blind heating of the water in the inner container of the electric water heater is avoided, the heated water quantity and the heated water temperature both meet the actual requirements, and the unnecessary energy consumption is reduced.
It is understood that, in other embodiments, the steps S21 and S22 may be executed in a loop. For example, in one embodiment, the following steps may also be performed:
comparing the average water usage to a third standard water usage when the average water usage is greater than the second standard water usage;
when the average water consumption is less than or equal to the third standard water quantity, controlling the heater to heat water in the inner container of the electric water heater to a third temperature according to the third water quantity;
and when the average water consumption is larger than the third standard water quantity, controlling the heater to heat all water in the inner container of the electric water heater to the temperature set by the user.
In this embodiment, as shown in fig. 4, before the step of acquiring a water usage habit of a user and determining whether the current time period needs to be heated according to the water usage habit of the user, the method further includes:
step S11, acquiring the accumulated water consumption times of the user in each time period of the day before the day, and comparing the accumulated water consumption times of each time period with the standard times;
step S12, for each time section, when the accumulated water use times of the time section is larger than the standard times, judging that the water use habit of the user is available in the time section, and storing the water use habit conditions of the user in each time section;
the step of acquiring the water use habit condition of the user and judging whether the current time period needs to be heated according to the water use habit condition of the user comprises the following steps:
step S13, acquiring whether the user has water habit in the current time period;
and step S14, if yes, judging that the heating is needed in the current time period.
Further, in this embodiment, as shown in fig. 5, the step of acquiring the accumulated water usage times of the user in each time period of the day before the day includes:
step S15, recording the receiving times of the flow signal fed back by the flow sensor for each time section of each day before the current day;
and step S16, if the receiving times is more than or equal to 1 time, accumulating the accumulated water use times of the corresponding time period once, and storing the accumulated water use times of the time period.
Specifically, the standard secondary value is calculated by the formula N ([ D/7] -1) × 4;
and N is the standard times value, and D is the number of days for which the user uses the water heater before the current day.
Specifically, in this example, each day is divided into 02:00-06:00, 06:00-10:00, 10:00-14:00, 14: 00-18:00 and 18: four time periods 00-02: 00. And (3) in a ratio of 14: for the 00-18:00 time period as an example, suppose that the user has just one week of using the electric water heater, if the day is Monday, on the first day of using the electric water heater, namely last Monday, at 14: and in the time period of 00-18:00, the water consumption frequency of the user is more than or equal to 1 (for example, 2), namely the receiving frequency of the flow signal fed back by the flow sensor is more than or equal to 1, and the accumulated water consumption frequency of the time period is recorded as 1. On the second day of use of the electric water heater, last Tuesday, at 14: in the time period of 00-18:00, the water consumption number of the user is more than or equal to 1 (for example, 1), namely, the receiving number of the flow signal fed back by the flow sensor is more than or equal to 1, and then the accumulated water consumption number of the time period is accumulated once, namely, the accumulated water consumption number of the time period is 2. On the third day of use of the electric water heater, the last wednesday, at 14: in the time period of 00-18:00, the water consumption frequency of the user is less than 1 time, namely 0 time, namely the flow signal fed back by the flow sensor is not received, the accumulated water consumption frequency of the time period is not changed, namely the accumulated water consumption frequency of the time period is still 2 times. And analogizing in sequence until the last weekday, assuming that the accumulated water use frequency of the time period is 5, the number of days that the user uses the water heater before the current day is 7 days, namely the value of D is 7, calculating a standard frequency value N to be 4 by using a formula, judging that the water use habit of the user in the time period is available because the accumulated water use frequency of the time period of the previous day (namely the last weekday) is 5 times and is 4 times greater than the standard frequency value, and storing the judgment result in the memory corresponding to the time period. On the day, monday, assume that the current time period is 14: and in the time period of 00-18:00, the processor knows that the water habit of the user is used in the current time period, judges that the current time period needs heating, and then executes the step S20.
It is understood that the time period division is not limited to the case of the present embodiment, and in other embodiments, each time period may be divided into six time periods, or eight time periods, etc.
Obviously, the user has different water usage habit conditions in different time periods. For example, at 18: in the time period of 00-02:00, users often need to take a bath by using water in an electric heater, so that the bath temperature is 18: water usage is typically used during the 00-02:00 time period. In the time period of 02:00-06:00, the user is generally in a rest state, so that no water is used in the time period of 02:00-06: 00. According to the difference of the water using habits of the user in different time periods, whether the water in the inner container needs to be heated in the current time period is judged, so that the electric water heater is prevented from heating the water in the inner container in the time period without the water using habits of the user, and the energy consumption of the electric water heater is reduced.
In this embodiment, as shown in fig. 6, the step of acquiring the average water consumption corresponding to the current time period includes:
step S25, obtaining the relative water consumption of the user in each time period of each day before the current day, and then averaging the relative water consumption in the same time period of each day before the current day to obtain the average water consumption in each time period of one day;
and step S26, acquiring the average water consumption corresponding to the current time period.
In addition, in this embodiment, as shown in fig. 7, the step of obtaining the relative water consumption of the user in each time period of each day before the current day includes:
step S27, for each time segment, judging whether a flow signal fed back by the flow sensor is received;
step S28, if yes, controlling the timer to obtain the current time, controlling the temperature sensor to obtain the real-time water temperature in the inner container of the electric water heater, and controlling the flow sensor to obtain the water consumption of the user in the time period;
and step S29, calculating the relative water consumption of the time period according to the current time, the real-time water temperature and the water consumption of the user, and storing the relative water consumption of the time period.
Specifically, the relative water consumption is represented by the formula
Calculating to obtain;
wherein t is the current time, L (t) is the user water consumption, T (t) is the real-time temperature, L (t)RThe relative water usage is stated.
Specifically, in this example, each day is divided into 02:00-06:00, 06:00-10:00, 10:00-14:00, 14: 00-18:00 and 18: four time periods 00-02: 00. And (3) in a ratio of 14: for the 00-18:00 time period as an example, assuming that the user has just one week of using the electric water heater, if the day is Monday, on the first day of using the electric water heater, namely last Monday, the user is at 14: when water in the electric water heater is used in a time period of 00-18:00, the timer is controlled to obtain the current time t, the temperature sensor is controlled to obtain the real-time water temperature T (t) in the inner container of the electric water heater, and meanwhile, the flow sensor is controlled to obtain the water consumption L (t) of a user in the time period. Obviously, the real-time water temperature t (t) has a one-to-one correspondence relationship with the current time t, and the real-time water temperature t (t) is a function of the current time t. The user water consumption l (t) also has a one-to-one correspondence with the current time t, and is also a function of the current time t. Using formulas
The relative water consumption L in the time period can be calculated
R. Suppose that the relative water usage of the user during the first day of use of the electric water heater, i.e., last Monday, is L
R1On the next day of using the electric water heater, namely, on the last Tuesday, the relative water consumption of the user in the time period is L
R2And the rest can be analogized until the last week, and the relative water consumption of the user in the time period is L
R7Then the average water consumption corresponding to the time period is
On the day, monday, assume that the current time period is 14: in the time period of 00-18:00, the processor learns the water habit of users in the current time period, the processor judges that the current time period needs to be heated, and then the processor obtains the average water consumption corresponding to the current time period
The steps of S21 to S24 are then performed.
Obviously, because in the process of using water, the electric heat is generatedThe real-time water temperature of water in the inner container of the water heater is constantly changed, and the water consumption of a user is not enough to measure the requirement of the user on hot water by simply considering the water consumption of the user. For example, if a user needs 2L of hot water at 50 ℃ for a certain period of time, it can be obtained in two ways. Firstly, an electric water heater is directly used for heating 2L of water to 50 ℃; secondly, the electric water heater heats 1L of water to 100 ℃, and then 1L of cold water (assumed to be 0 ℃) is taken and added into the water, thus obtaining 2L of hot water at 50 ℃. If the water consumption of the user is only considered, namely, the water in the electric water heater is used by the user, the water consumption is 2L, the water consumption is 1L, the water consumption and the water consumption are not uniform, and the actual demand of the user for hot water is single, namely, 2L of hot water at 50 ℃ is needed. In order to accurately measure the requirement of a user on hot water, the water consumption of the user at different real-time water temperatures is standardized, and the relative water consumption L is introduced
RAnd using a formula
Calculating the relative water consumption L
R. It is understood that in other embodiments, the formula
The "40" can be replaced by other numbers according to actual conditions, such as "30", "50", and the like.
Furthermore, the relative water usage is also different during the same time period on different days. In order to further accurately measure the hot water demand of the user, the relative water consumption in the same time period of each day before the day is averaged to obtain the average water consumption in each time period in one day, and the average water consumption can more accurately reflect the hot water demand of the user from the statistical viewpoint.
The invention also provides a computer readable storage medium, wherein the computer readable storage medium is stored with an electric water heater control program, and when the electric water heater control program is executed by a processor, the steps of the control method of the electric water heater are realized. The specific steps of the control method of the electric water heater refer to the above embodiments, and since the computer-readable storage medium adopts all technical solutions of all the above embodiments, at least all beneficial effects brought by the technical solutions of the above embodiments are achieved, and are not described in detail herein.
The invention also provides an electric water heater, which comprises a heater, a memory and a processor. The memory is stored with an electric water heater control program; and when the processor executes the control program of the electric water heater, the steps of the control method of the electric water heater are realized. The specific steps of the control method of the electric water heater refer to the above embodiments, and the electric water heater adopts all the technical schemes of all the above embodiments, so that the electric water heater at least has all the beneficial effects brought by the technical schemes of the above embodiments, and the detailed description is omitted. The heater is used for heating water in the inner container of the electric water heater.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes that can be directly or indirectly applied to other related technical fields using the contents of the present specification and the accompanying drawings are included in the scope of the present invention.