Summary of the invention
The present invention is intended to one of solve the problems of the technologies described above at least.
The sliding average filtering method can be automatically the rejection of data of mean value decimal point back after calculating mean value in the prior art.Cause like this, can 1 deviation can occur by five mean value of going into and the mean values of obtaining through existing method in theory.Cause temperature inaccurate of the chamber between refrigerator of gathering thus, thereby influenced refrigerator temperature controlling.
For this reason, one object of the present invention is to propose the room temperature degree control method of the more accurate refrigerator of a kind of room temperature degree that collects.
Another object of the present invention is to propose the more accurate room temperature degree control device of a kind of room temperature degree that collects.
A purpose more of the present invention is to propose a kind of refrigerator.
To achieve these goals, the room temperature degree control method according to the refrigerator of first aspect present invention embodiment may further comprise the steps: N temperature acquisition carried out to obtain N temperature sampling value at interval with preset time in chamber between said refrigerator; Said N temperature sampling value sued for peace obtains first temperature value, and calculates the mean value of said N temperature sampling value and said mean value is rounded to obtain second temperature value; According to the N value said first temperature value is got surplusly obtaining the remainder values of said first temperature value, and said remainder values and N/2 are compared, and obtain target temperature value according to comparative result and said second temperature value; With according to said target temperature value said room temperature degree is controlled.
According to the room temperature degree control method of the refrigerator of the embodiment of the invention, through remainder values and N/2 relatively, whether four houses or five are gone into can accurately to judge data behind the decimal point of mean value, and the precision of having avoided whole four houses to cause reduces.Particularly, the back target temperature values of four houses equate that with second temperature value five go into afterwards, and target temperature value is that second temperature value adds 1.Therefore, than the target temperature value that existing method obtains, the target temperature value that this method obtains is more accurate, with the actual temperature error can be above 0.5 ℃.
In addition, the room temperature degree control method of refrigerator according to the above embodiment of the present invention can also have following additional technical characterictic:
In one embodiment of the invention, said N=P+2*M, wherein, P is the integer more than or equal to 20, M is a positive integer.The N value is big more, and the temperature acquisition number of times is many more, and mean value tends to be steady more, thus, guarantees that further the target temperature value that calculates is more accurate.
In one embodiment of the invention, said remainder values and N/2 are compared, further comprise: judge that whether said remainder values is more than or equal to said N/2; If said remainder values more than or equal to said N/2, then is made as said second temperature value with target temperature value and adds 1, otherwise said target temperature value is made as said second temperature value.When remainder values more than or equal to said N/2; Data behind the decimal point behind the expression mean value are more than or equal to 0.5; On the contrary; Data behind the decimal point of expression behind the mean value are less than 0.5, and then realize four houses of mean value still five are gone into, and promptly whether second temperature value are added 1 to obtain target temperature value.For example, when mean value was 3.9 ℃, it was 3 ℃ that existing method calculates target temperature, and the target temperature that obtains through present embodiment is 4.0 ℃, and thus, target temperature value and actual temperature are more approaching, improved certainty of measurement.In addition, this method computation complexity is low, and is low to hardware requirement.
In one embodiment of the invention, said N temperature sampling value also comprised before suing for peace: said N temperature sampling value carried out A/D change said N temperature sampling value is converted into the sampled value of number format.Thus, convert the temperature sampling value of analog signal the temperature sampling value of data signal to, be convenient to calculate.
In one embodiment of the invention, calculate the remainder values of said first temperature value through formula remainder values=first temperature value %N.
According to the room temperature degree control device of the refrigerator of second aspect present invention embodiment, comprising: temperature collect module is used for N temperature acquisition carried out to obtain N temperature sampling value at interval with preset time in chamber between said refrigerator; Computing module, being used for said N temperature sampling value sued for peace obtains first temperature value, and calculates the mean value of said N temperature sampling value and said mean value is rounded to obtain second temperature value; The target temperature generation module is used for said first temperature value is got surplus obtaining the remainder values of said first temperature value, and said remainder values and N/2 is compared, and obtains target temperature value according to comparative result and said second temperature value; And temperature control modules, be used for said room temperature degree being controlled according to said target temperature value
According to the room temperature degree control device of the refrigerator of the embodiment of the invention, through remainder values and N/2 relatively, whether four houses or five are gone into can accurately to judge data behind the decimal point of mean value, and the precision of having avoided whole four houses to cause reduces.Particularly, the back target temperature values of four houses equate that with second temperature value five go into afterwards, and target temperature value is that second temperature value adds 1.Therefore, the target temperature value that this device obtains is more accurate, with the actual temperature error can be above 0.5 ℃.
In addition, the room temperature degree control device of refrigerator according to the above embodiment of the present invention can also have following additional technical characterictic:
In one embodiment of the invention, said N=P+2*M, wherein, P is the integer more than or equal to 20, M is a positive integer.
In one embodiment of the invention; Said target temperature generation module judges that whether said remainder values is more than or equal to said N/2; When judging said remainder values more than or equal to said N/2; Said target temperature value is made as said second temperature value adds 1, otherwise said target temperature value is made as said second temperature value.When remainder values more than or equal to said N/2; Data behind the decimal point behind the expression mean value are more than or equal to 0.5; On the contrary; Data behind the decimal point of expression behind the mean value are less than 0.5, and then realize four houses of mean value still five are gone into, and promptly whether second temperature value are added 1 to obtain target temperature value.For example, when mean value was 3.9 ℃, calculating target temperature through existing mode was 3 ℃, and the target temperature that the device through present embodiment obtains is 4.0 ℃, and thus, target temperature value and actual temperature are more approaching, the raising certainty of measurement.In addition, this apparatus structure is simple, and cost is low.
In one embodiment of the invention, also comprise: the A/D modular converter, be used for before said N temperature sampling value summation, said N temperature sampling value carried out the A/D conversion said N temperature sampling value is converted into the sampled value of number format.
In one embodiment of the invention, said target temperature generation module also is used for calculating the remainder values of said first temperature value through formula remainder values=first temperature value %N.
Refrigerator according to third aspect present invention embodiment comprises: the room temperature degree control device of refrigerator, the room temperature degree control device of said refrigerator are the room temperature degree control device of the refrigerator of above-mentioned second aspect embodiment.
Additional aspect of the present invention and advantage part in the following description provide, and part will become obviously from the following description, or recognize through practice of the present invention.
The specific embodiment
Describe embodiments of the invention below in detail, the example of said embodiment is shown in the drawings, and wherein identical from start to finish or similar label is represented identical or similar elements or the element with identical or similar functions.Be exemplary through the embodiment that is described with reference to the drawings below, only be used to explain the present invention, and can not be interpreted as limitation of the present invention.
In description of the invention; It will be appreciated that; The orientation of indications such as term " " center ", " vertically ", " laterally ", " on ", D score, " preceding ", " back ", " left side ", " right side ", " vertically ", " level ", " top ", " end ", " interior ", " outward " or position relation are for based on orientation shown in the drawings or position relation; only be to describe with simplifying for the ease of describing the present invention; rather than the device or the element of indication or hint indication must have specific orientation, with specific azimuth configuration and operation, therefore can not be interpreted as limitation of the present invention.In addition, term " first ", " second " only are used to describe purpose, and can not be interpreted as indication or hint relative importance.
In description of the invention, need to prove that only if clear and definite regulation and qualification are arranged in addition, term " installation ", " linking to each other ", " connection " should be done broad understanding, for example, can be to be fixedly connected, also can be to removably connect, or connect integratedly; Can be mechanical connection, also can be to be electrically connected; Can be directly to link to each other, also can link to each other indirectly through intermediary, can be the connection of two element internals.For those of ordinary skill in the art, can concrete condition understand above-mentioned term concrete implication in the present invention.
Below in conjunction with Fig. 1-2 the room temperature degree control method according to the refrigerator of the embodiment of the invention is described at first.
As shown in Figure 1, be the flow chart of the room temperature degree control method of the refrigerator of the embodiment of the invention.Room temperature degree control method according to the refrigerator of the embodiment of the invention may further comprise the steps:
Step S101 carries out N temperature acquisition to obtain N temperature sampling value to chamber between said refrigerator with predetermined time interval.
Particularly, as shown in Figure 2, one embodiment of the present of invention adopt temperature sensor, the temperature sampling value of chamber between gathering like NTC (negative temperature coefficient) thermistor.
Step S102, said N temperature sampling value sued for peace obtains first temperature value, and calculates the mean value of said N temperature sampling value and said mean value is rounded to obtain second temperature value.
As a concrete example; As shown in Figure 2; The temperature sampling value of utilizing memory cell 1 storage to collect by temperature sensor, and after collecting a temperature sampling value each time, current temperature sampling value that collects and the temperature sampling value that collects are before added up; Be memory cell 1 storage be temperature sampling value sum, be designated as D1.For sampling each time, simultaneously through writing down sampling numbers like the memory cell among Fig. 22.
After sampling each time, judge whether sampling number reaches pre-determined number N, in one embodiment of the invention, like sampling number N=P+2*M, wherein, P is the integer more than or equal to 20, and M is a positive integer, and for example N is 30 times.After arriving sampling number N, preserve the mean value of N temperature sampling value through memory cell 3, be designated as D2, D2=D1/N, this moment, the D1 value was first temperature value.Then D2 is rounded,, be designated as D3 to obtain second temperature value.
Step S103 gets surplusly obtaining the remainder values of said first temperature value to said first temperature value according to the N value, and said remainder values and N/2 are compared, and obtain target temperature value according to comparative result and said second temperature value.
Particularly, preserve remainder values, be designated as D4 through memory cell as shown in Figure 24.In further embodiment of the present invention, through formula: remainder values=first temperature value %N calculates remainder values D4, i.e. D4=D1%N.
In further embodiment of the present invention; Judge that then whether said remainder values is more than or equal to said N/2; If said remainder values more than or equal to said N/2, then is made as said second temperature value with target temperature value and adds 1, otherwise said target temperature value is made as said second temperature value.For example, D4>N/2? If set up, then with the second temperature value D3+1, and be saved in the result in the memory cell 5, be target temperature in the memory cell 5 promptly, be designated as D5.If be false, then the second temperature value D3 is saved in the memory cell 6, promptly storing in the compound 6 is target temperature, is designated as D6.
Step S104 controls said room temperature degree according to said target temperature value.
According to the room temperature degree control method of the refrigerator of the embodiment of the invention, through remainder values and N/2 relatively, whether four houses or five are gone into can accurately to judge data behind the decimal point of mean value, and the precision of having avoided whole four houses to cause reduces.Particularly, the back target temperature values of four houses equate that with second temperature value five go into afterwards, and target temperature value is that second temperature value adds 1.Therefore, than the target temperature value that existing method obtains, the target temperature value that this method obtains is more accurate, with the actual temperature error can be above 0.5 ℃.
More particularly; When remainder values more than or equal to said N/2; Data behind the decimal point behind the expression mean value are more than or equal to 0.5, and on the contrary, the data behind the decimal point behind the expression mean value are less than 0.5; And then realize four houses or five of mean value are gone into, promptly whether second temperature value is added 1 to obtain target temperature value.For example, when mean value was 3.9 ℃, it was 3 ℃ that existing method calculates target temperature, and the target temperature that obtains through present embodiment is 4.0 ℃, and thus, target temperature value and actual temperature are more approaching, improved certainty of measurement.In addition, this method computation complexity is low, and is low to hardware requirement.
In one embodiment of the invention, said N temperature sampling value also comprised before suing for peace: said N temperature sampling value carried out A/D change said N temperature sampling value is converted into the sampled value of number format.
As shown in Figure 3, the temperature control equipment 300 of further embodiment comprises temperature collect module 310, computing module 320, target temperature generation module 330 and temperature control modules (not shown) according to the present invention.
Temperature collect module 310 is used for N temperature acquisition carried out to obtain N temperature sampling value with predetermined time interval in chamber between said refrigerator.Computing module 320 is used for said N temperature sampling value sued for peace and obtains first temperature value, and calculates the mean value of said N temperature sampling value and said mean value is rounded to obtain second temperature value.Target temperature generation module 330 is used for according to the N value said first temperature value being got surplus obtaining the remainder values of said first temperature value, and said remainder values and N/2 are compared, and obtains target temperature value according to comparative result and said second temperature value.Temperature control modules is used for according to said target temperature value said room temperature degree being controlled.
In conjunction with Fig. 2, in one embodiment of the invention, at first, temperature collect module 310 is through temperature sensor, like the temperature sampling value of chamber between the collection of NTC (negative temperature coefficient) thermistor.
Then; The temperature sampling value that computing module 320 utilizes memory cell 1 storage to be collected by temperature sensor; And after collecting a temperature sampling value each time; Current temperature sampling value that collects and the temperature sampling value that collects are before added up, and what promptly memory cell 1 was stored is temperature sampling value sum, is designated as D1.For sampling each time, simultaneously through writing down sampling numbers like the memory cell among Fig. 22.After sampling each time, judge whether sampling number reaches pre-determined number N, in one embodiment of the invention, like sampling number N=P+2*M, wherein, P is the integer more than or equal to 20, and M is a positive integer, and for example N is 30 times.After arriving sampling number N, preserve the mean value of N temperature sampling value through memory cell 3, be designated as D2, D2=D1/N, this moment, the D1 value was first temperature value.Then D2 is rounded,, be designated as D3 to obtain second temperature value.
At last, target temperature generation module 330 is preserved remainder values through memory cell as shown in Figure 24, is designated as D4.In further embodiment of the present invention, through formula: remainder values=first temperature value %N calculates remainder values D4, i.e. D4=D1%N.In further embodiment of the present invention; Judge that then whether said remainder values is more than or equal to said N/2; If said remainder values more than or equal to said N/2, then is made as said second temperature value with target temperature value and adds 1, otherwise said target temperature value is made as said second temperature value.For example, D4>N/2? If set up, then with the second temperature value D3+1, and be saved in the result in the memory cell 5, be target temperature in the memory cell 5 promptly, be designated as D5.If be false, then the second temperature value D3 is saved in the memory cell 6, promptly storing in the compound 6 is target temperature, is designated as D6.And then temperature control modules is controlled said room temperature degree according to said target temperature value D5 or D6.
According to the room temperature degree control device 300 of the refrigerator of the embodiment of the invention, through remainder values and N/2 relatively, whether four houses or five are gone into can accurately to judge data behind the decimal point of mean value, and the precision of having avoided whole four houses to cause reduces.Particularly, the back target temperature values of four houses equate that with second temperature value five go into afterwards, and target temperature value is that second temperature value adds 1.Therefore, the target temperature value that this device obtains is more accurate, with the actual temperature error can be above 0.5 ℃.
More particularly; When remainder values more than or equal to said N/2; Data behind the decimal point behind the expression mean value are more than or equal to 0.5, and on the contrary, the data behind the decimal point behind the expression mean value are less than 0.5; And then realize four houses or five of mean value are gone into, promptly whether second temperature value is added 1 to obtain target temperature value.For example, when mean value was 3.9 ℃, calculating target temperature through existing mode was 3 ℃, and the target temperature that the device through present embodiment obtains is 4.0 ℃, and thus, target temperature value and actual temperature are more approaching, the raising certainty of measurement.In addition, this installs 300 simple in structure, and cost is low.
In one embodiment of the invention; Device 300 also comprises A/D modular converter (not shown); Be used for before said N temperature sampling value summation, said N temperature sampling value carried out the A/D conversion said N temperature sampling value is converted into the sampled value of number format.
Further, the refrigerator that the embodiment of the invention proposes comprises the room temperature degree control device of refrigerator, and the room temperature degree control device of said refrigerator is the room temperature degree control device of the refrigerator of above-mentioned second aspect embodiment.
Other structures and operation according to the refrigerator of the embodiment of the invention all are known for those of ordinary skills, no longer give unnecessary details here.
In the description of this specification, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means the concrete characteristic, structure, material or the characteristics that combine this embodiment or example to describe and is contained at least one embodiment of the present invention or the example.In this manual, the schematic statement to above-mentioned term not necessarily refers to identical embodiment or example.And concrete characteristic, structure, material or the characteristics of description can combine with suitable manner in any one or more embodiment or example.
Although illustrated and described embodiments of the invention; Those having ordinary skill in the art will appreciate that: under the situation that does not break away from principle of the present invention and aim, can carry out multiple variation, modification, replacement and modification to these embodiment, scope of the present invention is claim and be equal to and limit.