Use in washing machine water level sensor temperature-compensation method and its washing machine
【Technical field】
The present invention relates to use in washing machine water level sensor temperature-compensation method and its washing machines, belong to household electrical appliance technology neck
Domain.
【Background technology】
Existing differential water level sensor is cheap with its, it is easy for installation, have the characteristics that multi gear water level detecting and
It is widely used in automatic washing machine in control circuit, realizes automatically controlling for height of water level.Differential water level sensor
Principle is to cause coil inductance variation to realize water level detecting by the variation of pressure.Pass through differential water level in existing washing machine
The scheme that sensor controls water level of washing machine height is:The pressure of water is transmitted to water level by gas-guide tube and passes in steel ladle
Sensor sealed gas chamber, sensor membrane overcome the elastic force of spring to drive ferrite iron core to coil direction under the action of this air pressure
Mobile, when iron core moves in coil, the inductance L of coil and the displacement of iron core form linear variation, by the inductance L of variation
To capacitance C0 and inverter ic 1 and corresponding capacitance-resistance circuit composition LC resonance circuit (circuit as shown in Figure 1), the inductance L of variation
It obtains exporting square wave after different resonant frequencies is converted to MCU, is furnished with the MCU of oscillator X1 oscillation circuits, passes through timer
Square wave is finally converted to certain frequency values f, the preset water level frequency relation curve f~h being then previously set with MCU into
Row compares, and to realize the one-to-one correspondence of water level, achievees the purpose that water level detecting.
Differential water level sensor circuit to the judgement of height of water level there are certain error, the reason of generating error in addition to
Influenced with the mechanical structure (such as pneumatic tube, colorimetric sensor films) for constituting water level sensor it is outer, also by constituting in its measure loop
The influence of the components such as inductance, capacitance, oscillator.For these components in addition to the manufacturing tolerance of itself, temperature change can be to these
The electric parameter of component generates certain temperature drift, leads to water level sensor oscillation circuit frequency under the air pressure of same water level formation
Deviation, so as to cause the deviation of water level.
Level sensor device assembly used in some existing manufacturers, at 5~40 DEG C, action water level deviation ± 98pa is (about
For ± 2L), so big water level deviation is reacted to user's family, and there are many harmful effects for meeting, such as:
(1) when actual water level is relatively low compared with established standards water level, the wash degree of clothing is influenced;
(2) when actual water level is higher compared with established standards water level, not only waste water resource, while in washing machine peak level
When, since water level is higher, it might have water and overflow steel ladle, flow to outside steel ladle, safety accident occurs.
Therefore, in order to overcome temperature influence it is accurate realize accurately controlling for water consumption, no matter in energy conservation or
Secure context suffers from highly important meaning.
【Invention content】
A kind of use in washing machine water level is provided technical problem to be solved by the present invention lies in overcome the deficiencies in the prior art
Sensor Temperature Compensation method, the water level detection result for the water level sensor to being affected by temperature make corrections, to realize
Water accurately controls.
In order to solve the above technical problems, the present invention adopts the following technical scheme that:
Use in washing machine water level sensor temperature-compensation method, washing machine have MCU and water level sensor, and the washing machine is also
With temperature sensor, compensation method includes the following steps:
The program setting stage:Under the conditions of specific environment temperature t, the default of the water level sensor is set by the MCU
Water-level frequency curve ft~ht;Obtain actual environment temperature tNIn identical height of water level hNUnder the conditions of water level sensor frequency fN,
By the water level sensor frequency fNWith the preset water level frequency f under the conditions of specific environment temperature ttIt is compared, obtains the water
Position height hNUnder the conditions of frequency correction coefficients △ fN=fN-ft;The actual environment temperature tN, the height of water level hN, it is described
Frequency correction coefficients △ fNIt is pre-stored in the MCU with one-to-one array form;
Service stage:The temperature sensor detects environment temperature, obtains actual environment temperature tN, according to actual environment temperature
Spend tNCalling is pre-stored in corresponding frequency correction coefficients △ f in the MCUN, the MCU is according to frequency correction coefficients △ fNTo pre-
If stagefrequency ftIt is corrected, the actual water level frequency f after being correctedN=ft+△fN, MCU control washing machine adds water
To actual water level frequency fNCorresponding water level.
The water level sensor temperature-compensation method proposed through the invention is according to actual environment temperature to water level sensor
Preset water level frequency in measure loop is corrected, and effectively overcomes influence of the environment temperature to water level sensor detection precision,
MCU coordinates temperature sensor to realize automatic detection, automatic compensation, effectively solves temperature change to water level sensor water level detection
It influences, improves water level of washing machine control accuracy to a certain extent, while promoting the safety of washing machine.
Further embodiment, described program set stage, the actual environment temperature tNMeet:-10℃≤tN≤ 50 DEG C,
The specific environment temperature t meets:-10℃≤t≤50℃.
Further embodiment, the temperature sensor are at least one of thermistor, thermocouple.
Further embodiment, the water level sensor are differential water level sensor, capacitance water level sensor, resistance-type
At least one of water level sensor.
The present invention also proposes a kind of washing machine, has MCU and water level sensor, also has temperature sensor, pass through the temperature
Spend sensor and using the use in washing machine water level sensor temperature-compensation method described in one of claim 1 to 5 to by temperature shadow
The water level detection result of loud water level sensor makes corrections.
The washing machine is agitator type washing machine, pulsator washing machine or tumbling-box washing machine.
These features and advantages of the present invention will the detailed exposure in following specific implementation mode, attached drawing.
【Description of the drawings】
Following further describes the present invention with reference to the drawings:
Fig. 1 is the water level sensor circuit schematic diagram in existing washing machine;
Fig. 2 is the temperature drift TCR curves of ceramic resonator in the prior art;
Fig. 3 is the temperature drift TCR curves of polyester capacitance in the prior art;
Fig. 4 is the preset water level frequency curve f that washing machine is set under the conditions of 30 DEG C of environment temperature in the prior art30~
h30;
Fig. 5 is washing machine in the prior art according to preset water level frequency curve f30~h30Water level control is carried out, is being set not
With the water level aberration curve figure actually generated after water level;
Fig. 6 is in the preferred embodiment of the present invention in different actual environment temperature tNUnder the conditions of water-level frequency curve figure;
Fig. 7 is in the preferred embodiment of the present invention according to water-level frequency curve f after correctionN=ft+△fN~hNCarry out water level control
System, the water level aberration curve figure actually generated after setting different water levels;
Fig. 8 is the corresponding frequency correction coefficients △ f of multiple temperature ranges in the preferred embodiment of the present inventionNMaster meter;
Fig. 9 is water level sensor circuit schematic diagram in the preferred embodiment of the present invention;
Figure 10 is washing machine inflow control flow chart in the preferred embodiment of the present invention;
Figure 11 is the structural schematic diagram of washing machine in the preferred embodiment of the present invention.
【Specific implementation mode】
The technical solution of the embodiment of the present invention is explained and illustrated with reference to the attached drawing of the embodiment of the present invention, but under
It states embodiment to be merely a preferred embodiment of the present invention, and not all.Based on the implementation example in the implementation mode, those skilled in the art
Obtained other embodiment without making creative work, belongs to protection scope of the present invention.
The detection precision of the differential water level sensor of water level of washing machine detection is currently used in addition to by its structure and structure
Outer at some manufacturing tolerances influence of component itself, the variation of ambient temperature also results in the electrical ginseng of these components
Number generates certain temperature drift, and (variation by the semiconductor device parameter caused by temperature change is to generate the master of null offset phenomenon
Reason is wanted, therefore also referred to as null offset is temperature drift, abbreviation temperature drift).But with reference to Fig. 2,3, according to existing ceramic resonator with
And the temperature drift TCR curves of polyester capacitance can be seen that the component temperature drift coefficient T CR for constituting level sensor device assembly in a fixation
At a temperature of be constant.In addition, constituting hardness, tensile strength, the expansion and contraction of sensor membrane etc. in level sensor device assembly
Parameter is also constant under a fixed temperature.There is above-mentioned analysis that can obtain:The frequency of oscillation of water level sensor is with temperature
Variation be within controlled range, i.e., under the conditions of fixed temperature, the frequency of oscillation of same height of water level respective sensor is
Constant.
However the generation of temperature drift phenomenon so that water level sensor oscillation circuit frequency is inclined under the air pressure that same water level is formed
Difference, so as to cause the deviation of water level.Specifically:Why washing machine can be according to stagefrequency (water level sensor oscillation circuit
Control water level frequency, below referred to as " stagefrequency "), be because stagefrequency is one-to-one relationship with water level, it is logical
Often after washing machine booting, intelligent one water level of setting of user or program, and to be the water level being set change the MCU of washing machine
It calculates onto a corresponding preset water level frequency, water level sensor detects current level frequency, and the letter that will be detected in real time
Number feed back to MCU, if it is actually detected to stagefrequency reached preset water level frequency, just stop water inlet, at this time washing machine
Actual water level be earlier set water level, this case where being ideally certainly.When actually using washing machine, environment
The variation of temperature causes stagefrequency that deviation occurs, with reference to Fig. 4, it can be understood from the graph that under the conditions of same temperature, water level frequency
Rate declines with the raising of water level, it is assumed that washing machine starts to set a water level before intaking, and with 30 DEG C of conditions of environment temperature
The preset water level frequency curve f of lower setting30~h30Water level control is carried out, it is same if actual environment temperature is higher than 30 DEG C
Under the conditions of setting water level, actual water level frequency is greater than preset water level frequency f30;When MCU AD Port detectings to actual water level frequency
When rate, washing machine has reached preset water level at this time, but since MCU is still according to preset water level frequency curve f30~h30Carry out water
Position control, continues plus water, until the AD Port detectings of MCU are to preset water level frequency f30Shi Caihui stops water inlet, and at this moment MCU just writes from memory
Recognizing washing machine adds water to preset water level, but actual water level has been more than setting water level, and such case is reacted in user family, actual water level
When higher compared with setting water level, not only waste water resource, while in washing machine peak level, since water level is higher, might have
Water overflows steel ladle, flows to outside steel ladle, and safety accident occurs.
Similarly, if actual environment temperature is less than 30 DEG C, under the conditions of same setting water level, actual water level frequency is less than pre-
If stagefrequency f30, washing machine is used at a temperature of the actual environment, when the AD Port detectings of MCU are to preset water level frequency f30
When, just give tacit consent to washing machine and added water to preset water level, but in fact, at this moment actual water level does not reach setting water in washing machine
Position, such case are reacted in user family, when actual water level is relatively low compared with setting water level, influence the wash degree of clothing.
With reference to Fig. 5, washing machine is according to preset water level frequency curve f in the prior art30~h30Water level control is carried out, is being set
The water level aberration curve figure actually generated after fixed different water levels, can be seen, five kinds of different water levels of machine set, all by Fig. 4
According to preset water level frequency curve f30~h30It is controlled, actual water level and setting water level deviation reach 10mm or so.
In view of the above-mentioned problems, the preferred embodiment of the present invention overcomes environment temperature to examine water level sensor using following scheme
Know the influence of precision:Washing machine is in addition to original MCU (Microcontroller Unit, micro-control unit) and water level sensor
Outside, temperature sensor is added;
The program setting stage:Under the conditions of specific environment temperature t, the default of the water level sensor is set by the MCU
Water-level frequency curve ft~ht;Obtain actual environment temperature tNIn identical height of water level hNUnder the conditions of water level sensor frequency fN,
By the water level sensor frequency fNWith the preset water level frequency f under the conditions of specific environment temperature ttIt is compared, obtains the water
Position height hNUnder the conditions of frequency correction coefficients △ fN=fN-ft;The actual environment temperature tN, the height of water level hN, it is described
Frequency correction coefficients △ fNIt is pre-stored in the MCU with one-to-one array form;
Service stage:The temperature sensor detects environment temperature, obtains actual environment temperature tN, according to actual environment temperature
Spend tNCalling is pre-stored in corresponding frequency correction coefficients △ f in the MCUN, the MCU is according to frequency correction coefficients △ fNTo pre-
If stagefrequency ftIt is corrected, the actual water level frequency f after being correctedN=ft+△fN, MCU control washing machine adds water
To actual water level frequency fNCorresponding water level.
In simple terms, the scheme of the preferred embodiment of the present invention is exactly to obtain frequency by testing in washing machine production process
Rate correction coefficient, washing machine in actual use, preset water level frequency is corrected by the frequency correction coefficients, is obtained
To actual water level frequency, MCU controls the actual inflow of washing machine further according to actual water level frequency, can eliminate because of temperature shadow
Actual water level deviation caused by the frequency departure that sound generates, and then achieve the purpose that accurately control water level.
According to the above method, washing machine inflow control in invention preferred embodiment shown in Figure 10 is referred in practical application
Flow chart processed, controlling Method for inflow include the following steps:
S01 the height of water level of this washing) is set;
S02 currently practical environment temperature t) is obtained by temperature sensorN;
S03) if temperature sensor detects currently practical environment temperature tNIt is different from specific environment temperature t, into S04)
Step;If temperature sensor detects currently practical environment temperature tNIt is identical as specific environment temperature t, into S06) step;
S04 currently practical environment temperature t) is detected according to temperature sensorNCalling is pre-stored in corresponding frequency school in MCU
Positive coefficient △ fN, according to frequency correction coefficients △ fNTo preset water level frequency ftIt is corrected, the actual water level frequency after being corrected
Rate fN=ft+△fN;
S05) correction terminates, and MCU control washing machines add water to actual water level frequency fNCorresponding water level;
S06) MCU controls washing machine adds water to preset water level frequency ftCorresponding water level.
In S01) in step, height of water level of this washing can intelligently be set by washing machine, can also be by user according to reality
Border laundry amounts sets itself;
In S04) in step, before washing machine manufacture, prestored multiple arrays in MCU, in each array, actual environment
Temperature tN, height of water level hN, frequency correction coefficients △ fNAll it is one-to-one, so-called one-to-one correspondence, that is, is mended in the present invention
The program setting stage of compensation method, by different actual environment temperature tNIn identical height of water level hNUnder the conditions of water level sensor frequency
Rate fNWith the preset water level frequency f under the conditions of specific environment temperature ttIt is compared, obtains height of water level hNUnder the conditions of frequency school
Positive coefficient △ fN=fN- f, actual environment temperature tNDifference, water level sensor frequency fNAlso respective change is generated, then obtained by
Frequency correction coefficients △ fNAlso corresponding variation is generated.
To be best understood from the principle of scheme described in the preferred embodiment of the present invention, explained below with more specific example
Explanation:With reference to Fig. 9, the water level detection circuit assemblies constituted using components such as normal water level sensor, crystal oscillators (return by water level detection
Road has belonged to existing public technology, other components and its application principle the present embodiment are no longer described in detail), and in existing water level detection
The temperature detector circuit 7 being made of components such as above-mentioned temperature sensors 8 is added on the basis of circuit.
The program setting stage:Specific environment temperature t is set as 30 DEG C, the preset water level frequency of water level sensor is set by MCU
Rate curve f30~h30;It is for statistical analysis by many experiments test data within the temperature range of -10 DEG C~50 DEG C, it obtains
Actual environment temperature tNIn identical height of water level hNUnder the conditions of corresponding water level sensor frequency fNWith the default water under 30 DEG C of environment
Bit frequency f30Deviation △ fN=fN-f30, △ fNAs frequency correction coefficients, the actual environment temperature measured in experimentation are real
Test the actual environment temperature t measured in the processN, height of water level hN, frequency correction coefficients △ fNIt is pre- with one-to-one array form
There are in MCU.
User's service stage:Under laundry apparatus standby state, intelligently one water level of setting, MCU are received for user or program
After being instructed to the input, the setting water level of input is passed through into preset water level frequency curve f30~h30It is corresponding to be converted into some
Preset water level frequency f30;Temperature sensor detects environment temperature in real time, obtains actual environment temperature tN, according to the actual environment temperature
Spend tNCalling is pre-stored in corresponding frequency correction coefficients △ f in MCUN, to preset water level frequency f30It is corrected, obtains actual rings
Border temperature tNUnder the conditions of stagefrequency fN=f30+△fN, with reference to the corresponding frequency correction system of multiple temperature ranges shown in Fig. 8
Number △ fNMaster meter can be seen that the present embodiment from the table and propose 14 groups of data, removes temperature sensor open circuit and short circuit
Situation, in remaining 12 groups of valid data, actual environment temperature tNWith frequency correction coefficients △ fNIt is one-to-one, such as:
The actual environment temperature t that temperature sensor detectsNBe 8 DEG C, according to master meter shown in Fig. 7 can learn 8 DEG C be distributed in [5 DEG C,
10 DEG C) temperature range in, the frequency correction coefficients △ f corresponding to the temperature rangeNFor -0.070KHz, then, through the △ fN
Stagefrequency f after correctionN=f30+ (- 0.070KHz), then, MCU control inlet valve and open, until the AD Port detectings of MCU
It is f to stagefrequencyN=f30Inlet valve is closed when+(- 0.070KHz), is f since MCU is according to the stagefrequency after correctionN
=f30+ (- 0.070KHz) causes this deviation in control water level even if final actual water level is deviated with setting water level
The reason of mainly factors such as device foozle, installation error, but these factors are objective reality, compared with prior art and
The scheme of speech, the embodiment of the present invention at least compensates for the frequency departure caused by temperature drift effects, eliminates environment temperature pair
The influence of water level of washing machine control.The scheme of the embodiment of the present invention and existing high-precision detecting element or detection means are mutually tied
It closes, water level control precision can be further increased.
With reference to shown in Fig. 6, the water-level frequency curve figure under four kinds of ambient temperature conditions is given in figure, wherein 50 DEG C, 10
DEG C and -10 DEG C corresponding to water-level frequency curve, be all preset water level frequency curve f under the conditions of 30 DEG C30~h30On the basis of
It is corrected and obtains.It may also confirm that by the curve graph:Under the conditions of same temperature, stagefrequency with water level raising
And decline;Under the conditions of same height of water level, stagefrequency rises as temperature increases.Side described in embodiment according to the present invention
Case, it is assumed that water level 169mm is set under laundry apparatus standby state, environment temperature at this time is 50 DEG C, it will be appreciated from fig. 6 that environment temperature
Under the conditions of 50 DEG C of degree, the stagefrequency corresponding to 169mm setting water levels should be 39.12KHz.In actual use, washing machine
Before starting water inlet, 169mm water levels are first transformed into preset water level frequency curve f by MCU30~h30Corresponding preset water level frequency f30
=39.04KHz is pre-stored in corresponding frequency in MCU further according to the actual environment temperature 50 C calling that temperature sensor detects
Correction coefficient △ fN=0.080KHz (with reference to Fig. 7), obtains the actual water level frequency f under the conditions of actual environment temperature 50 CN=
f30+△fN=39.04KHz+0.080KHz=39.12KHz, MCU control washing machine add water to actual water level frequency fN=
Water level corresponding to 39.12KHz, certainly last actual water level also can and earlier set water level 169mm there are certain deviation,
But this deviation is mainly caused by factors such as device foozle, installation errors, general inevitable, however compared with prior art
For, after carrying out frequency correction using present invention method, actual water level and the deviation for setting water level are much smaller, reference
Fig. 7, five kinds of different water levels of machine set, all in accordance with according to the water-level frequency curve f after correctionN=ft+△fN~hNIt carries out
Water level control, last actual water level and setting water level deviation be only 2mm or so, compared with prior art in 10mm deviations (as scheme
4) 8mm or so, is reduced, it is evident that its water level control precision, which has, to be increased substantially.
The case where environment temperature is 10 DEG C and -10 DEG C, is similarly corrected, different is only frequency according to the method described above
Correction coefficient △ fNIt is varied from, its specific correction course is no longer described in detail in the present embodiment.
It is appreciated that:In the embodiment above, -10 DEG C~50 DEG C of temperature range comparison operators described in the program setting stage
The long-term range of temperature of most area is closed, is 30 DEG C of only common test temperatures in laboratory by specific environment temperature t,
For theoretically, if specific environment temperature t in -10 DEG C~50 DEG C ranges, such as -5 DEG C, 12 DEG C, 16 DEG C, 25 DEG C, 34
DEG C, 43 DEG C, 50 DEG C etc., in user's service stage, effective actual environment temperature tNIt also should be within the scope of -10 DEG C~50 DEG C.
But embodiment of the present invention is not limited in the temperature range, and in other embodiments, which can be according to laundry
Machine practical service environment situation zooms in or out, such as -20 DEG C~60 DEG C, 0 DEG C~35 DEG C.
Although the program setting stage of the embodiment above carries out under the conditions of specific environment temperature t is 30 DEG C,
It should be understood by those skilled in the art that:As long as specific environment temperature t is within the scope of -10 DEG C~50 DEG C, the change of specific environment temperature t
Change, can make frequency correction coefficients △ fNRespective change occurs, it, can be all by preset water level frequency correction to reality in service stage
Actual water level frequency under environment temperature.
It is appreciated that:The corresponding frequency correction coefficients △ f of multiple temperature ranges shown in Fig. 8NMaster meter, 12 groups of significant figures
In, actual environment temperature tNIt is not to correspond to some specific temperature value, but correspond in some temperature range,
That is:As long as the actual environment temperature t measured in detection process several timesNAll in the wherein same temperature range, that
All with the frequency correction coefficients △ f corresponding to the temperature rangeNIt is corrected, but this is not represented in this same humidity province
The variation of interior temperature will not cause the deviation of water level sensor frequency, only in this same temperature range temperature variation
Caused water level sensor frequency departure very little floats up and down less, and the temperature change in this same temperature range is several
Actual water level will not be impacted, then just taking the average value in the temperature range or the frequency correction close to average value
Coefficient as with one-to-one frequency correction coefficients △ f in the temperature rangeN。
Temperature sensor described in this embodiment scheme is at least one of thermistor, thermocouple, that is to say, that:Temperature
It can be thermistor to spend sensor, can also be thermocouple, or be the combination of thermistor and thermocouple, certainly, existing
There are other temperature elements in technology and the temperature detector means of the temperature element is coordinated to should also be as in protection scope of the present invention
Within.
Water level sensor described in this embodiment scheme is differential water level sensor, capacitance water level sensor, resistance
At least one of formula water level sensor, that is to say, that:Temperature sensor can be differential water level sensor, can also be electricity
Appearance formula water level sensor, or be the combination application of differential water level sensor and capacitance water level sensor, certainly, this hair
Compensation method described in bright embodiment is also applied for all level sensors that other detection precision are affected by temperature in the prior art
Device.
Have in the prior art and temperature compensated using the compensation circuit of the compositions such as two compensating electric capacities, principle be
When temperature is raised, water level sensor temperature drift rises, and the compensating electric capacity temperature drift of two negative temperature coefficients declines, water level sensor
Temperature drift value and the temperature drift value of compensating electric capacity cancel out each other, keep the frequency of sample conversion constant, be not affected by temperature, improve entire
The precision of level circuit.But the compensation effect of compensating electric capacity is extremely limited, this makes compensation precision and compensation range all by shadow
It rings.The present invention detects environment temperature in real time using temperature sensor, depending on temperature-compensating is the variation based on environment temperature, this
Sample can reduce the influence of some electronic components accuracy of manufacture itself and performance to compensation precision so that water level of washing machine controls
It is more accurate and reliable.
Referring to Fig.1 shown in 1, the embodiment of the present invention propose rotary drum washing machine structural schematic diagram, including body 1 and be located at machine
The control seat 2 on 1 top of body is equipped with computer program controlled device assembly 6 in control seat 2, which is usually directed to behaviour
Make button, display module etc., MCU settings also set up gas chamber 4 and gas-guide tube 5 in computer program controlled device assembly 6, in washing machine, lead to
It crosses gas-guide tube 5 to connect with water level sensor 3, temperature sensor may be provided in water level sensor 3 or computer program controlled device assembly 6
In.In other embodiments of the invention, temperature sensor can also be arranged separately in other positions of washing machine.
The embodiment of the present invention is applied to washing machine, such as:Agitator type washing machine, pulsator washing machine and drum type washing
Machine.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, is familiar with
The those skilled in the art should be understood that the present invention includes but not limited to attached drawing and interior described in specific implementation mode above
Hold.The modification of any function and structure principle without departing from the present invention is intended to be included in the range of claims.