Disclosure of Invention
The invention provides a refrigerator, a defrosting control method and device thereof, and a computer readable storage medium, and aims to solve the technical problem that the defrosting control of the refrigerator in the prior art does not combine the room temperature change condition and the door opening condition.
The invention provides a refrigerator defrosting control method, which comprises the following steps:
collecting the temperature of the chamber at a first interval after the compressor is started every time and storing the temperature in a first data structure;
if the total number of elements of the first data structure after the current round of starting is less than or equal to the total number of elements of the first data structure after the previous round of starting, calculating to obtain corresponding door opening correction time according to different conditions when the compartment is opened and the variation condition of the integral average temperature when the compressor runs;
and judging whether the accumulated defrosting time of the refrigerator exceeds the maximum defrosting time and removing the value after the door opening correction time, and starting defrosting if the accumulated defrosting time of the refrigerator exceeds the maximum defrosting time.
Further, the calculating the corresponding door opening correction time according to the different conditions when the compartment is opened and the variation condition of the integral average temperature during the operation of the compressor specifically includes:
comparing the instantaneous temperature of the compartment during door opening with the door opening temperature limit value to obtain different door opening correction coefficients;
judging whether the change rate of the integral average temperature is more than or equal to a first percentage when the compressor operates;
and if so, calculating to obtain the door opening correction time based on the accumulated door opening cooling time and the door opening correction coefficient corresponding to the door opening at this time.
Further, when the door opening is the first door opening after the starting of the current round, the door opening correction time is obtained by multiplying the accumulated door opening cooling time by the door opening correction coefficient corresponding to the current door opening.
Further, when the door opening is the Nth door opening after the starting of the current round, and N is more than or equal to 2, the door opening correction time is obtained by adding the product of the accumulated door opening cooling time and the door opening correction coefficient corresponding to the current door opening to the last door opening correction time.
Further, the refrigerator defrosting control method of the present invention further comprises:
collecting real-time environment temperature every second time interval;
determining the value of an environment state variable according to the acquired real-time environment temperature;
and if the current environment temperature state variable is the same as the last value of the environment temperature state variable, detecting whether the compartment is opened.
Further, the refrigerator defrosting control method of the present invention further comprises: taking the first time length as a sampling period of the real-time environment temperature;
after each sampling period is finished, the time of the lowest environmental temperature of the sampling period is obtained;
after the door opening correction time corresponding to the door opening is obtained, if the instantaneous temperature of the compartment during door opening is less than or equal to the door opening temperature limit value, judging whether the change rate of the integral average temperature during the operation of the compressor is greater than or equal to a second percentage or not before judging the accumulated defrosting time of the refrigerator, if so, judging whether the current time is within X time before and after the time of the lowest environment temperature of the previous sampling period, and if so, starting defrosting.
Further, the defrosting control method for the refrigerator further comprises the following steps:
taking the first time length as a sampling period of the real-time environment temperature;
after each sampling period is finished, the time of the lowest environmental temperature of the sampling period is obtained;
after the door opening correction time corresponding to the door opening is obtained, if the instantaneous temperature when the compartment is opened is larger than the door opening temperature limit value and the accumulated defrosting time of the refrigerator does not exceed the maximum defrosting time and the value obtained after the door opening correction time is removed, whether the change rate of the integral average temperature during the operation of the compressor is larger than or equal to a second percentage is judged, if yes, whether the current time is within X time before and after the time of the lowest environment temperature of the previous sampling period is judged, and if yes, defrosting is started.
Further, the first period of time is 24 hours.
Further, before judging whether the change rate of the integral average temperature of the running of the compressor is larger than or equal to a second percentage, judging whether the total number of elements of the first data structure after the starting of the current round is smaller than or equal to the total number of elements of the first data structure after the starting of the previous round, if so, judging whether the change rate of the integral average temperature of the running of the compressor is larger than or equal to the second percentage, and otherwise, starting defrosting.
Further, the defrosting control method for the refrigerator further comprises the following steps: and if the total number of the elements of the first data structure after the current round of starting is greater than the total number of the elements of the first data structure after the previous round of starting, starting defrosting.
Further, the defrosting control method for the refrigerator further comprises the following steps: and if the accumulated defrosting time of the refrigerator does not exceed the value obtained by removing the door opening correction time from the maximum defrosting time, returning to the previous step and continuously comparing the sum of the elements of the first data structure after the current round of starting with the sum of the elements of the first data structure after the previous round of starting.
Further, the first data structure is an array.
Further, the accumulated defrosting time of the refrigerator is obtained by calculating the sum of the accumulated power-on time of the refrigerator and the minimum defrosting time.
The defrosting control device provided by the invention comprises a controller for running a computer program, and the computer program executes the refrigerator defrosting control method in the technical scheme when running.
The refrigerator provided by the invention comprises the defrosting control device in the technical scheme.
The computer-readable storage medium provided by the invention is used for storing a computer program, and the computer program executes the refrigerator defrosting control method in the technical scheme when running.
According to the invention, the influence of the compartment door opening and closing on the compartment temperature is judged, the compartment temperature rise value (namely the compartment instantaneous temperature) after the door opening is judged to determine the door opening correction coefficient, and the door opening correction time is obtained by combining the time required by the compartment temperature to return to the stable state after the door opening. And then, the changes of the running time length of the press and the running integral average temperature when the room temperature is in a stable state are further monitored, namely, defrosting is carried out when the room temperature is influenced under the condition of eliminating the influence of external factors, so that the efficiency loss caused by the accumulation of the frost layer of the evaporator is reduced, and the effect of saving energy is further achieved.
Furthermore, the invention starts to execute the defrosting control of the invention by detecting the real-time environment temperature under the condition of stable environment temperature, thereby avoiding the influence of the real-time environment temperature on the defrosting control accuracy of the invention.
Furthermore, the defrosting time is optimized according to the ambient temperature, so that the aims of reducing the influence of refrigerator defrosting on the use of a user and saving energy are fulfilled. In the present invention, when it is determined that defrosting is necessary, the defrosting time is further preferably selected. The defrosting time is preferably selected at midnight with lower ambient temperature while the requirement of accumulated maximum power-on time is met, so that the influence of defrosting on the use of a user is reduced.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Thus, a feature indicated in this specification will serve to explain one of the features of one embodiment of the invention and does not imply that every embodiment of the invention must have the explained feature. Further, it should be noted that this specification describes many features. Although some features may be combined to show a possible system design, these features may also be used in other combinations not explicitly described. Thus, the combinations illustrated are not intended to be limiting unless otherwise specified.
The refrigerator defrosting control method of the invention is based on different conditions when the door of the compartment is opened and the variation condition of the integral average temperature when the compressor runsThe corresponding door opening correction time is obtained through calculation, whether the refrigerator needs defrosting or not is comprehensively judged according to the door opening correction time, the change of the starting time of a compressor of the refrigerator and the operation integral average temperature condition, and the influence of environmental factors on defrosting judgment is eliminated. The invention simultaneously monitors the outdoor environment temperature, combines the influence of the opening and closing of the compartment on the instantaneous temperature of the compartment, and combines the occurrence time t of the lowest environment temperature in the previous sampling period s And furthermore, the defrosting time of the refrigerator is optimized, so that the effects of saving energy and reducing the influence of the defrosting of the refrigerator on the use of a user are achieved.
As shown in fig. 1, the defrosting control method for a refrigerator according to the present invention collects the compartment temperature at a first time interval after each start of the compressor and stores the temperature in a first data structure, wherein the first time interval according to the present invention can be set by a technician according to specific actual needs.
If the total number of elements of the first data structure after the compressor is started in the current round is smaller than or equal to the total number of elements of the first data structure after the previous round is started, and because the first time interval between the room temperatures collected twice is the same when each round is used for collecting the room temperature, if the total number of elements of the first data structure after the current round is started is smaller than or equal to the total number of elements of the first data structure after the previous round is started, the current time for starting the compressor in the current round is smaller than or equal to the starting time of the compressor in the previous round, the corresponding door opening correction time is calculated according to different conditions when the room is opened and the variation condition of the integral average temperature during the operation of the compressor, then whether the accumulated defrosting time of the refrigerator exceeds the maximum defrosting time or not is judged, the value after the door opening correction time is removed, and if the accumulated defrosting time exceeds the maximum defrosting time, the defrosting is started.
The first data structure may be an array, or may be another data structure storing a plurality of elements, which is not limited in the present invention. In one embodiment, the compartment temperatures are collected every Δ t after each compressor turn-on, and the compartment temperatures collected during each compressor turn-on period are stored in an array Arr.
The detailed process of calculating the corresponding door opening correction time according to the different conditions when the compartment is opened and the variation condition of the integral average temperature when the compressor operates is as follows.
When the door opening of the compartment is detected, comparing the instantaneous temperature when the door is opened with the door opening temperature limit value to obtain different door opening correction coefficients. Setting a door opening temperature limit value To, comparing the detected instantaneous temperature T of the chamber when the chamber is opened with the door opening temperature limit value To, and if the instantaneous temperature T of the chamber is greater than the door opening temperature limit value To, i.e. T is greater than To, then taking n as the door opening correction coefficient m . If the instantaneous temperature T of the compartment is less than or equal To the door opening temperature limit value To, namely T is less than or equal To, the door opening correction coefficient is n s . The door opening temperature limit value is a standard set by technicians for measuring the influence of the door opening and closing of the compartment on the compartment temperature, and is compared with the door opening temperature limit value for judging the influence of the door opening on the compartment, and correction coefficients obtained by different influences are different.
The case where the instantaneous compartment temperature is greater than the door opening temperature limit will be described. If the instantaneous compartment temperature T is greater than the limiting value To of the door opening temperature, then judging whether the variation rate of the integral average temperature during the operation of the compressor is greater than or equal To a first percentage, the variation rate of the integral average temperature during the operation of the compressor can be specifically determined according To a formula (F) n+1 – F n )/F n Is calculated to obtain wherein F n+1 For the current integrated average temperature of the compressor, F n+1 The data calculated is based on all the data in the array Arr of the currently stored compartment temperatures. F n Is the last integrated average temperature of the compressor, F n The data calculated is based on all the data in the array Arr of the compartment instantaneous temperature saved the nth time. The first percentage is set by the skilled person as a function of the actual situation, and in a particular embodiment the first percentage may be 5%. If judged to be (F) n+1 – F n )/F n More than or equal to 5 percent, calculating the door opening correction time based on the accumulated door opening cooling time and the door opening correction coefficient corresponding to the door opening at this time, and calculating the door opening correction time t k =+(n m Sum), wherein n m The door opening repair is performed when the instantaneous temperature of the compartment is greater than the door opening temperature limit valuePositive coefficient, sum is defrosting return steady state duration, i.e. cumulative door opening and cooling time, and each defrosting return steady state duration sum starts from the time of closing the compartment until the judgment is not satisfied (F) n+1 – F n )/F n Cut off is more than or equal to 5 percent. When the door opening is the first door opening after the starting of the current round, the door opening correction time is obtained by multiplying the accumulated door opening cooling time by the door opening correction coefficient corresponding to the current door opening, namely t k =n m Sum. When the door opening is the Nth door opening after the starting of the current round, N is more than or equal to 2, the door opening correction time is obtained by adding the product of the accumulated door opening cooling time and the door opening correction coefficient corresponding to the current door opening to the last door opening correction time, namely t k =+(n m *sum)。
The above integral average temperature can be calculated using the existing integral average temperature formula.
In specific implementation, the For cycle can be executed once every time the door is opened until the condition of jumping out of the For cycle is met.
The condition that the instantaneous temperature of the chamber is less than or equal To the door opening temperature limit value is described below, if the instantaneous temperature T of the chamber is less than or equal To the door opening temperature limit value To, the door opening correction coefficient is n s First, whether the change rate of the integral average temperature during the operation of the compressor is greater than or equal to a first percentage is judged, and the change rate of the integral average temperature during the operation of the compressor can be specifically determined according to a formula (F) n+1 – F n )/F n Is calculated to obtain wherein F n+1 For the current integrated average temperature of the compressor, F n+1 The calculated data is based on all data in the array Arr of the room temperature stored at this time. F n Is the last integrated average temperature of the compressor, F n The data basis for the calculation is all the data in the nth save readgroup Arr. The first percentage is set by the skilled person as a function of the circumstances and in a particular embodiment the first percentage may be 5%. If judged to be (F) n+1 – F n )/F n More than or equal to 5 percent, calculating the door opening correction time based on the accumulated door opening cooling time and the door opening correction coefficient corresponding to the door opening at this time, and calculating the door opening correction time t k =+(n s Sum), wherein n s Is the instantaneous temperature of the compartmentAnd (4) when the door opening correction coefficient is greater than the door opening temperature limit value, sum is the defrosting return steady state duration, namely, the door opening cooling time is accumulated. When the door opening is the first door opening after the starting of the current round, the door opening correction time is obtained by multiplying the accumulated door opening cooling time by the door opening correction coefficient corresponding to the current door opening, namely t k =n s Sum. When the door opening is the Nth door opening after the starting of the current round, N is more than or equal to 2, the door opening correction time is obtained by adding the product of the accumulated door opening cooling time and the door opening correction coefficient corresponding to the current door opening to the last door opening correction time, namely t k =+(n s Sum), after the door open correction time is obtained. The method comprises the steps of firstly judging whether the accumulated defrosting time of the refrigerator exceeds the maximum defrosting time or not, then removing the door opening correction time, then judging whether the change rate of the integral average temperature is larger than or equal to a second percentage or not when the compressor runs, and if not, continuously collecting the chamber temperature every delta t time and storing the chamber temperature in an array Arr. In one embodiment, the second percentage is 8% in one embodiment, if the rate of change of the integrated average temperature is greater than or equal to the second percentage, i.e., (F) n+1 - F n )/F n Not less than 8%, the time at which the lowest ambient temperature of the last sampling period is located, i.e. the time t at which the lowest ambient temperature appears is taken s And judging whether the current time is within X time before and after the time of the lowest environment temperature of the previous sampling period, and if so, starting defrosting. In a specific embodiment, X may be 3 hours, that is, within three hours before and after the time when the lowest ambient temperature is determined, if the time is within this time period, defrosting is directly started, the lowest ambient temperature indicates that the time is a night in the middle of a day, and defrosting is performed at this time, so that influence of defrosting on use of a user can be avoided.
If the accumulated defrosting time of the refrigerator exceeds the maximum defrosting time and the value after the door opening correction time is removed is judged, and defrosting is directly started at the moment if the accumulated defrosting time of the refrigerator exceeds the value after the door opening correction time is removed. The accumulated defrosting time of the refrigerator can be t l +t min Thus obtaining the compound. Wherein t is l Cumulative power-on time for the refrigerator (i.e. both the power-on time and the shutdown time of the compressor), t min The minimum defrosting time. In one embodiment, t min The value may be 16. t is t min The specific value of (2) can be set according to the actual situation by a person skilled in the art, because the different manufacturers have corresponding differences according to the different types of the refrigerators. In a specific embodiment, the maximum defrosting time may be 80, and the specific value of the maximum defrosting time may also vary according to different models and manufacturers of the refrigerator, and may be set by a person skilled in the art according to actual conditions. Thus, by judging t l And +16 is less than or equal to 80-tk, determining whether the quit of the For cycle is quit because the current accumulated maximum power-on time is reached, directly defrosting and clearing sum if the quit is yes, and continuously collecting the compartment temperature every delta t time and storing the compartment temperature in an array Arr if the quit is not reached, and further judging. The invention considers the maximum defrosting time and the influence of the door opening correction time, thereby further improving the accuracy of defrosting control. And if the accumulated defrosting time of the refrigerator does not exceed the value obtained by removing the door opening correction time from the maximum defrosting time, continuously collecting the compartment temperature every delta t time and storing the compartment temperature in an array Arr, returning to the previous step, and continuously comparing the element sum of the first data structure after the current round of starting with the element sum of the first data structure after the previous round of starting.
Because the invention collects the room temperature when the compressor starts each round, if the total number of elements of the first data structure after the start of the round is larger than the total number of elements of the first data structure after the start of the last round, namely Arr n+1 .length-Arr n .length>1, when the refrigeration effect of the refrigerator is obviously reduced, defrosting is started. Before judging whether the change rate of the integral average temperature is larger than or equal to a second percentage during the running of the compressor, the total number of elements of the first data structure after the current round of starting is judged to be larger than the total number of elements of the first data structure after the previous round of starting, and if the first number after the current round of starting is larger than the second numberAnd judging whether the change rate of the integral average temperature during the operation of the compressor is greater than or equal to a second percentage or not according to the condition that the total number of the elements of the structure is less than or equal to the total number of the elements of the first data structure after the last round of starting, otherwise, starting defrosting.
The case where the instantaneous compartment temperature is greater than the door opening temperature limit is described below. The door opening correction time t is obtained through calculation k And then, if the instantaneous temperature T of the compartment is greater than the door opening temperature limit value To, judging whether the accumulated defrosting time of the refrigerator exceeds the maximum defrosting time, and removing the value after the door opening correction time, and if so, starting defrosting. If not, the total number of elements of the first data structure after the starting of the round is judged firstly, then whether the change rate of the integral average temperature is more than or equal to a second percentage or not when the running time of the compressor is judged, as when the instantaneous temperature of the compartment is less than or equal to the door opening temperature limit value, then judging whether the current time is within X time before and after the time of the lowest environment temperature of the previous sampling period, if the current time is not within X times before and after the lowest ambient temperature of the previous sampling period in the last judgment, then, it is judged again whether the accumulated defrosting time of the refrigerator exceeds the maximum defrosting time and the value obtained after the door opening correction time is removed, so that it can be seen that, and when the instantaneous compartment temperature T is greater than the door opening temperature limit value To, in each judgment cycle, firstly judging whether the accumulated defrosting time of the refrigerator exceeds the value obtained by removing the door opening correction time from the maximum defrosting time. The accumulated defrosting time of the refrigerator can be t l +t min Thus obtaining the product. Wherein t is l Cumulative power-on time for the refrigerator (i.e. both the power-on time and the shutdown time of the compressor), t min To minimize the defrosting time. In a particular embodiment, t min The value may be 16. t is t min The specific value of (2) can be set according to the actual situation by a person skilled in the art, because the different manufacturers have corresponding differences according to the different types of the refrigerators. In a specific embodiment, the maximum defrosting time can be 80, the specific value of the maximum defrosting time can be different according to different refrigerator models and different manufacturers, and a person skilled in the art can determine the actual defrosting time according to the actual defrosting timeAs the case may be. Thus, by judging t l And +16 is less than or equal to 80-tk, determining whether the quit of the For cycle is quit because the current accumulated maximum power-on time is reached, directly defrosting and clearing sum if the quit is yes, and continuously collecting the chamber temperature every delta t time and storing the chamber temperature in an array Arr if the quit is not the current accumulated maximum power-on time, and further judging. The invention considers the maximum defrosting time and the influence of the door opening correction time, thereby further improving the accuracy of defrosting control.
In a preferred embodiment, it is preferable that the environmental temperature does not change within a certain time, and when the door opening of the compartment is detected, the door opening correction time of the present invention is calculated, so that the influence of the environmental temperature on the algorithm can be avoided, and the defrosting control of the present invention can be more accurate.
In specific implementation, the real-time ambient temperature is collected every second time interval, and the second time interval of the present invention can be set by a technician according to specific actual needs. Determining the value of the environment state variable according to the acquired real-time environment temperature; and if the current environment temperature state variable is the same as the last value of the environment temperature state variable, detecting whether the compartment is opened.
In one embodiment, the first duration is used as a sampling period of the real-time ambient temperature, and the number of samples in each sampling period is more than one, i.e. a plurality of times of sampling are performed in each sampling period. The first time period is 24 hours, and specifically, a daily time period of 00: 00 to 23: 59 as a first time period, the real-time ambient temperature may be sampled at intervals during the day. By obtaining the record of the real-time ambient temperature within a 24-hour period, the time when the highest ambient temperature and the lowest ambient temperature appear can be obtained and recorded as t m (time at which the highest ambient temperature occurs), t s (the moment when the lowest environment temperature appears), comparing the real-time environment temperature acquired by the environment temperature sensor with the load temperature mark Th, and recording the value of the environment state variable I at the moment according to different comparison results, wherein the environment temperature is higher than the load temperature mark T h When the load is higher than the set load, recording an environment state variable I =1 as a high load state; when the ambient temperature is lower than the load temperature indicator Th, the ambient state variable I = -1, and the low load state is recorded. The load temperature indicator Th of the present invention is a set value.
The influence of the environmental temperature on the algorithm precision of the invention is avoided by judging the change of the value of the environmental state variable I recorded twice adjacently, if I n+1 - I n If not equal to 0, the environment state variable is continuously recorded, wherein the variable is I n+1 This environmental state variable, I n Is the last environmental state variable; if I n+1 - I n If it is stated that the ambient temperature does not change at this time, it is further determined whether the compartment door of the refrigerator is opened.
The invention aims to continuously keep collecting the compartment temperature every delta t time and storing the compartment temperature in the array Arr, the updating of the array Arr is interrupted when the judgment condition is not met, the updating of the array Arr is continued when the judgment condition is not met, and the array Arr is continuously updated when other processes are carried out after the compressor is started every time.
The invention judges whether defrosting is needed or not by detecting real-time environment temperature, combining the influence of compartment opening and closing doors on the compartment temperature, comparing the starting time variation of the compressor with the running integral average temperature, and combining the occurrence moment of the lowest environment temperature within 24 hours to further optimize the defrosting moment of the refrigerator, thereby achieving the effects of saving energy and reducing the influence of the defrosting of the refrigerator on the use of users.
The invention protects a defrosting control device which comprises a controller for running a computer program, wherein the computer program executes the defrosting control method of the refrigerator in the technical scheme when running. Meanwhile, the invention also protects a corresponding refrigerator, and the refrigerator comprises the defrosting control device in the technical scheme. Further, the present invention also protects a computer-readable storage medium, which is used for storing a computer program, and the computer program executes the refrigerator control method described in the above technical solution of the present invention when running.
The above description is intended to be illustrative of the preferred embodiment of the present invention and should not be taken as limiting the invention, but rather, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.