Summary of the invention
The main object of the present invention is to propose a kind of control method of electric heater, it is intended to reduce the energy consumption of electric heater.
To achieve the above object, the control method of a kind of electric heater proposed by the present invention, comprising the following steps:
Obtain user's water habits situation, and according to user's water habits situation judge current slot whether needs
Heating;
When current slot needs to heat, average consumption corresponding with the current slot is obtained, according to described
Average consumption controls the water in the liner of heater heating electric water heater.
Preferably, it is described according to the average consumption control heater heating electric water heater liner in water the step of
Include:
The average consumption and preset first standard quantity of water are compared;
When the average consumption is less than or equal to first standard quantity of water, controls the heater and used according to first
Water in the liner of water heating electric water heater is to the first temperature;
When the average consumption is greater than first standard quantity of water, controls the heater and add according to the second water consumption
Water in the liner of heating electric water heater is to second temperature;
Wherein, second water consumption is greater than first water consumption, and the second temperature is greater than or equal to described first
Temperature.
Preferably, it is described according to the average consumption control heater heating electric water heater liner in water the step of
Further include:
When the average consumption is greater than first standard quantity of water, by the average consumption and the second standard quantity of water
It compares;
When the average consumption is less than or equal to second standard quantity of water, the heater is controlled according to described the
Water in the liner of two water consumption heating electric water heaters is to the second temperature;
When the average consumption is greater than second standard quantity of water, the interior of the heater heating electric water heater is controlled
Whole water in gallbladder are to user's set temperature.
Preferably, in the acquisition user water habits situation, when judging current according to user's water habits situation
Between before whether section need the step of heating, further includes:
The accumulative with waterside number of each period of the previous day of user on the day of is obtained, accumulative by each period uses water
Number is compared with standard number value;
For each period, when the period is when adding up to be greater than the standard number value with waterside number, judgement is at this
There are user's water habits in period, and user's water habits situation of each period is stored;
The acquisition user water habits situation, according to user's water habits situation judge current slot whether need
The step of heating include:
Obtain whether current slot there are user's water habits;
If so, determining that current slot needs to heat.
Preferably, the accumulative of each period of the previous day of the acquisition user on the day of includes: with the step of waterside number
For each period of every day before the same day, record receives the flow signal that flow sensor is fed back
Receive number;
If the receive number is greater than or equal to 1 time, the accumulative with waterside number of corresponding period is accumulated once, and to this
The accumulative of period is stored with waterside number.
Preferably, the standard number value is calculated by formula N=([D/7] -1) * 4;
Wherein, N be the standard number value, D be user on the day of before use water heater number of days.
Preferably, the step of acquisition average consumption corresponding with the current slot includes:
The opposite water consumption of each period of every day before user is obtained on the day of, then will be each before the same day
The opposite water consumption of it same time period is averaged, and the average consumption of each period in one day is obtained;
Obtain average consumption corresponding with the current slot.
Preferably, the step of opposite water consumption of each period of every day before the acquisition user is on the day of, wraps
It includes:
For each period, judge whether to receive the flow signal that the flow sensor is fed back;
If so, control timer obtains current time, control temperature sensor obtains real-time in the liner of electric heater
Water temperature, and the control flow sensor obtain user's water consumption of the period;
According to the current time, the mild user's water consumption of Real-time Water, the opposite water consumption of the period is calculated, and right
The opposite water consumption of the period is stored.
Preferably, the opposite water consumption is by formulaIt is calculated;
Wherein, t is the current time, and L (t) is user's water consumption, and T (t) is the real time temperature, LRIt is described
Opposite water consumption.
The present invention also proposes a kind of computer readable storage medium, is stored with electric heating on the computer readable storage medium
Hydrophone controls program, when electric heater control program is executed by processor, the step of realizing the control method of electric heater,
The step includes:
Obtain user's water habits situation, and according to user's water habits situation judge current slot whether needs
Heating;
When current slot needs to heat, average consumption corresponding with the current slot is obtained, according to described
Average consumption controls the water in the liner of heater heating electric water heater.
The present invention also proposes a kind of electric heater, comprising:
Heater, the heater is for the water in the liner of heating electric water heater;
Memory is stored with electric heater control program on the memory;And
Processor realizes the control method of electric heater when the processor executes the electric heater control program
Step, the step include:
Obtain user's water habits situation, and according to user's water habits situation judge current slot whether needs
Heating;
When current slot needs to heat, average consumption corresponding with the current slot is obtained, according to described
Average consumption controls the water in the liner of heater heating electric water heater.
Technical solution of the present invention determines by obtaining user's water habits situation, and according to user's water habits situation
Whether current slot, which needs, is heated.When the current slot needs to heat, the corresponding average use of current slot is obtained
Water controls the water in heater heating electric water heater liner further according to average consumption.Electric heater is avoided in no institute
The water in the period heating inner liner of user's water habits is stated, to reduce the energy consumption of electric heater.Further, since user exists
Water consumption in different time periods is different, and the corresponding average consumption of current slot is obtained, further according to average consumption control
Water in heater heating electric water heater liner processed, rather than blindly according to the water in a certain water heating electric water heater liner,
Further save the energy consumption of electric heater.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, it is not intended to limit the present invention.
Every other embodiment obtained by those of ordinary skill in the art without making creative efforts, belongs to this hair
The range of bright protection.
Technical solution between each embodiment can be combined with each other, but must be with those of ordinary skill in the art's energy
It is enough realize based on, will be understood that the knot of this technical solution when conflicting or cannot achieve when occurs in the combination of technical solution
Conjunction is not present, also not the present invention claims protection scope within.
A kind of control method of electric heater proposed by the present invention.
In one embodiment of this invention, as shown in Figure 1, the control method of the electric heater the following steps are included:
Step S10 obtains user's water habits situation, judges that current slot is according to user's water habits situation
It is no to need to heat;
Step S20, when the current slot needs to heat, acquisition is corresponding with the current slot averagely to use water
Amount controls the water in the liner of heater heating electric water heater according to the average consumption.
In the present embodiment, the processor of electric heater obtains user's water habits situation, and according to user's water
Habit situation judges whether current slot needs to heat.When the processor knows in current slot have user to be practised with water
It is used, then deciding that current slot needs to heat.When the current slot needs to heat, acquisition and institute in memory
The corresponding average consumption of current slot is stated, in the liner that heater heating electric water heater is controlled according to the average consumption
Water.
Technical solution of the present invention determines by obtaining user's water habits situation, and according to user's water habits situation
Whether current slot, which needs, is heated.When the current slot needs to heat, the corresponding average use of current slot is obtained
Water controls the water in heater heating electric water heater liner further according to average consumption.Electric heater is avoided in no institute
The water in the period heating inner liner of user's water habits is stated, to reduce the energy consumption of electric heater.Further, since user exists
Water consumption in different time periods is different, and the corresponding average consumption of current slot is obtained, further according to average consumption control
Water in heater heating electric water heater liner processed, rather than blindly according to the water in a certain water heating electric water heater liner,
Further save the energy consumption of electric heater.
In the present embodiment, as shown in Fig. 2, described control heater heating electric water heater according to the average consumption
The step of water in liner includes:
Step S21 compares the average consumption and default first standard quantity of water;
Step S22, when the average consumption be less than or equal to first standard quantity of water when, control the heater according to
Water in the liner of first water consumption heating electric water heater is to the first temperature;
When the average consumption is greater than first standard quantity of water, controls the heater and add according to the second water consumption
Water in the liner of heating electric water heater is to second temperature;
Wherein, second water consumption is greater than first water consumption, and the second temperature is greater than or equal to described first
Temperature.
Specifically, in the present embodiment, first standard quantity of water is 20L, and first water consumption is 20L, described the
Two water consumptions are 40L, and first temperature and the second temperature are equal, are all 40 DEG C.If processor is obtained from memory
When the average consumption taken is less than or equal to 20L, then it is assumed that be non-bathing water, then control the heater according to 20L water
Water in heating inner liner is to 40 DEG C.When the average consumption obtained from memory such as processor is greater than 20L, then control is described adds
Hot device is according to the water in the liner of 40L water heating electric water heater to 40 DEG C.
The average consumption and default first standard quantity of water are compared, heater heating is controlled according to comparison result
Water in liner.When the average consumption is less than or equal to first standard quantity of water, the heater is controlled according to first
Water in the liner of water consumption heating electric water heater is to the first temperature;It is greater than first standard quantity of water in the average consumption
When, the heater is controlled according to the water in the liner of the second water consumption heating electric water heater to second temperature.So as to avoid
Water in blindness heating electric water heater liner makes the water of heating and water temperature all meet actual demand, reduces unnecessary energy
Consumption.
Further, in the present embodiment, as shown in figure 3, described control heater heating according to the average consumption
The step of water in the liner of electric heater further include:
Step S23, when the average consumption is greater than first standard quantity of water, by the average consumption and second
Standard quantity of water compares;
Step S24, when the average consumption be less than or equal to second standard quantity of water when, control the heater according to
Water in the liner of the second water consumption heating electric water heater is to the second temperature;
When the average consumption is greater than second standard quantity of water, the interior of the heater heating electric water heater is controlled
Whole water in gallbladder are to user's set temperature.
In the present embodiment, specifically, second standard quantity of water is 40L, and user's set temperature is set by the user.
Generally, user's set temperature is higher than 40 DEG C.When the average consumption that processor is obtained from memory be greater than 20L, and
When less than or equal to 40L, then the heater is controlled according to the water in the liner of 40L water heating electric water heater to 40 DEG C;Work as place
When the average consumption that reason device is obtained from memory is greater than 40L, then in the liner for controlling the heater heating electric water heater
Whole water to user's set temperature.
Similarly, when the average consumption is greater than first standard quantity of water, by the average consumption and second
Standard quantity of water compares, and the water in heater heating inner liner is controlled according to comparison result.When the average consumption is less than
When equal to second standard quantity of water, control in liner of the heater according to the second water consumption heating electric water heater
Water is to the second temperature;When the average consumption is greater than second standard quantity of water, the heater heating electricity is controlled
Whole water in the liner of water heater are to user's set temperature.So as to avoid the water in blindness heating electric water heater liner, make
The water and water temperature of heating all meet actual demand, reduce unnecessary energy consumption.
It is understood that can recycle in other embodiments and execute multiple step S21 and step S22.For example,
In one embodiment, following steps can also be performed:
When the average consumption is greater than second standard quantity of water, by the average consumption and third standard quantity of water
Compare;
When the average consumption is less than or equal to the third standard quantity of water, the heater is controlled according to third water
The water in the liner of heating electric water heater is measured to third temperature;
When the average consumption is greater than the third standard quantity of water, the interior of the heater heating electric water heater is controlled
Whole water in gallbladder are to user's set temperature.
In the present embodiment, it as shown in figure 4, in the acquisition user water habits situation, is practised according to the user with water
Before used situation judges whether current slot needs the step of heating, further includes:
Step S11 obtains the accumulative with waterside number of each period of the previous day on the day of of user, by each period
It is accumulative to be compared with waterside number and standard number value;
Step S12, for each period, when the period accumulative is greater than the standard number value with waterside number,
Judgement has user's water habits during this period of time, and user's water habits situation of each period is stored;
The acquisition user water habits situation, according to user's water habits situation judge current slot whether need
The step of heating include:
Step S13, obtains whether current slot has user's water habits;
Step S14, if so, determining that current slot needs to heat.
Further, in the present embodiment, as shown in figure 5, each period of the previous day of the acquisition user on the day of
Accumulative include: with the step of waterside number
Step S15, for each period of every day before the same day, record receives what flow sensor was fed back
The receive number of flow signal;
Step S16 accumulates once the accumulative of corresponding period and uses waterside if the receive number is greater than or equal to 1 time
Number, and the accumulative of the period is stored with waterside number.
Specifically, the standard number value is calculated by formula N=([D/7] -1) * 4;
Wherein, N be the standard number value, D be user on the day of before use water heater number of days.
Specifically, in the present embodiment, will be respectively 02:00-06:00,06:00-10:00,10:00-14 every day:
00, tetra- periods of 14:00-18:00 and 18:00-02:00.By taking the 14:00-18:00 period as an example, it is assumed that user uses institute
The time for stating electric heater just and having one week, if the same day is Monday, using first day of the electric heater, i.e. last Monday,
Within the 14:00-18:00 period, user is greater than or equal to 1 time (such as 2 times) with waterside number, that is, receives flow sensor institute
The receive number of the flow signal of feedback is greater than or equal to 1 time, then recording the accumulative of the period with waterside number is 1 time.Make
With second day of the electric heater, i.e. last Tuesday, within the 14:00-18:00 period, user was greater than or equal to 1 with waterside number
Secondary (such as 1 time), that is, the receive number for receiving the flow signal that flow sensor is fed back are greater than or equal to 1 time, then add up
The primary period it is accumulative with waterside number, i.e. the accumulative of period at this time with waterside number is 2 times.Using the electric hot water
The third day of device, i.e. last Wednesday, within the 14:00-18:00 period, user, less than 1 time, as 0 time, that is, does not have with waterside number
The flow signal that flow sensor is fed back is received, then the period is accumulative constant with waterside number, i.e. period at this time
It is accumulative with waterside number be still 2 times.And so on, until last Sunday, it is assumed that adding up for the period is 5 with waterside number, at this time
User on the day of before using water heater number of days be 7 days, i.e., the value of D be 7, using formula calculate standard number value N be 4, by
With waterside number it is 5 times in the accumulative of the period of the previous day (i.e. last Sunday) on the same day, is greater than standard number value 4 times, then sentences
There are user's water habits in the fixed period, and will determine that result is mapped with the period, and store to memory.?
The same day, i.e. Monday, it is assumed that current slot is the 14:00-18:00 period, and processor, which is known in current slot, user's use
Water habit, then determine that current slot needs to heat, and then executes S20 step.
It is appreciated that the division of period is not limited to the situation in the present embodiment, in other embodiments, can also incite somebody to action
It is each to be divided into six periods or eight periods etc..
Obviously, user has different water habits situations in different times in section.For example, in 18:00-02:00
Between in section, user generally requires using the washing bath in electric heater, therefore usually has within the 18:00-02:00 period and use water
Habit.Within the 02:00-06:00 period, in this period, user is typically in not state, therefore in 02:00-06:00
Between usually not water habits in section.According to the difference of user's water habits in different time period, to determine current slot
Whether need to heat, avoids water of the electric heater in the period heating inner liner of no user's water habits, thus
Reduce the energy consumption of electric heater.
In the present embodiment, as shown in fig. 6, the step of acquisition average consumption corresponding with the current slot
Include:
Step S25, obtain user on the day of before every day each period opposite water consumption, then by the same day it
The opposite water consumption of the same time period of preceding every day is averaged, and the average consumption of each period in one day is obtained;
Step S26 obtains average consumption corresponding with the current slot.
In addition, in the present embodiment, as shown in fig. 7, it is described obtain user on the day of before every day each period
Opposite water consumption the step of include:
Step S27 judges whether to receive the flow signal that the flow sensor is fed back for each period;
Step S28, if so, control timer obtains current time, control temperature sensor obtains the liner of electric heater
In real-time water temperature, and the control flow sensor obtains user's water consumption of the period;
Step S29 calculates the opposite use of the period according to the current time, the mild user's water consumption of Real-time Water
Water, and the opposite water consumption of the period is stored.
Specifically, the opposite water consumption is by formulaIt is calculated;
Wherein, t is the current time, and L (t) is user's water consumption, and T (t) is the real time temperature, LRIt is described
Opposite water consumption.
Specifically, in the present embodiment, will be respectively 02:00-06:00,06:00-10:00,10:00-14 every day:
00, tetra- periods of 14:00-18:00 and 18:00-02:00.By taking the 14:00-18:00 period as an example, it is assumed that user uses institute
The time for stating electric heater just and having one week, if the same day is Monday, using first day of the electric heater, i.e. last Monday,
User has within the 14:00-18:00 period using the water in electric heater, then controls timer and obtain current time t, control
Temperature sensor obtains the real-time water temperature T (t) in the liner of electric heater, while controlling the flow sensor and obtaining the time
The user water consumption L (t) of section.It will be apparent that the real-time water temperature T (t) and the current time t have one-to-one relationship, institute
State the function that real-time water temperature T (t) is the current time t.The user water consumption L (t) and the current time t also have one
One corresponding relationship, the user water consumption L (t) are also the function of the current time t.Utilize formula
The opposite water consumption L in the period can be calculatedR.Assuming that using first day of the electric heater, i.e. last Monday, user
It is L in the opposite water consumption of the periodR1, at second day of the use electric heater, i.e. last Tuesday, user was in the period
Opposite water consumption be LR2, and so on, until last Sunday, opposite water consumption of the user in the period is LR7, then time
The corresponding average consumption of section isOn the day of, i.e. Monday, it is assumed that current slot 14:00-
The 18:00 period, processor, which is known in current slot, user's water habits, then determines that current slot needs to heat, so
Preprocessor obtains the corresponding average consumption of the current slotThen the step of executing S21 to S24.
Clearly as in water utilizing process, the real-time water temperature of the water in inner container of electric water heater be it is continually changing, it is simple
Consider that user's water consumption is the demand for being not enough to measure user to hot water.For example, if user needs 50 DEG C in a certain period of time
Hot water 2L, can obtain there are two types of mode.First, directly allowing the water of electric water heater heating 2L to 50 DEG C;Second, allowing electric hot water
Device heats the water of 1L to 100 DEG C, then cold water (being assumed to be 0 DEG C) 1L is taken to be blended into wherein to get to 50 DEG C of hot water 2L.If such feelings
Condition only considers user's water consumption, i.e., only considers that user has used the water in how many electric heater, then the former is 2L, Hou Zheshi
1L, the two be it is skimble-scamble, and the demand to hot water of actually user be it is single, that is, need 50 DEG C of hot water 2L.In order to
The accurate demand for measuring user to hot water by user's water supply standard of different water temperatures in real time, and introduces opposite water consumption
LRConcept, and utilize formulaCalculate opposite water consumption LR.It is appreciated that in other embodiments,
FormulaIn " 40 " can be replaced according to the actual situation by other numbers, such as " 30 ", " 50 ".
In addition, opposite water consumption is also different within the same period not on the same day.In order to which further accurate measure is used
The opposite water consumption of the same time period of every day before the same day is averaged, is obtained in one day by demand of the family to hot water
The average consumption of each period, the average consumption from statistical angle, more can accurate response user to hot water
Demand.
The present invention also proposes a kind of computer readable storage medium, is stored with electric hot water on the computer readable storage medium
Device controls program, when electric heater control program is executed by processor, the step of realizing the control method of electric heater.It should
The specific steps of the control method of electric heater are referring to above-described embodiment, since this computer readable storage medium is using above-mentioned
Whole technical solutions of all embodiments, thus it is at least all beneficial to effect brought by the technical solution with above-described embodiment
Fruit, this is no longer going to repeat them.
The present invention also proposes a kind of electric heater, which includes heater, memory and processor.The storage
Electric heater control program is stored on device;When the processor executes the electric heater control program, electric heater is realized
Control method the step of.The specific steps of the control method of the electric heater are referring to above-described embodiment, due to this electric heater
Using whole technical solutions of above-mentioned all embodiments, therefore at least institute brought by the technical solution with above-described embodiment
There is beneficial effect, this is no longer going to repeat them.Wherein, the heater is for the water in the liner of heating electric water heater.
The above description is only a preferred embodiment of the present invention, is not intended to limit its scope of the patents, all to utilize the present invention
Equivalent structure or equivalent flow shift made by specification and accompanying drawing content is directly or indirectly used in other relevant technology necks
Domain is included within the scope of the present invention.