Prevent control method and electrical appliance that capacitance type touch key flase drop is known
Technical field
The present invention relates to electric-control method and electrical appliance, particularly a kind ofly prevent control method that capacitance type touch key flase drop is known and with the electrical appliance of touch key-press.
Background technology
Existing touch key-press can be divided into resistance-type, condenser type, infrared-type and four large classes of surface acoustic wave type.Wherein capacitance type touch key, owing to the advantage such as can being directly integrated in pcb board, size is flexible, extra cost is low, has obtained using widely.
As shown in Figure 1, the basic principle of capacitance type touch key is exactly a constantly RC oscillator for charging and discharging, wherein comprise capacitor C 1, finger can be regarded the large capacitor C 2 of a ground connection as, finger F touches touch key-press T and can cause the capacitance C of RC oscillating circuit to change, the capacitance C of RC oscillating circuit will increase, C=C1+C2.The charging interval of RC oscillating circuit is changeless, is assumed to be t
c, as shown in Figure 2, after capacitance type touch key energising, when finger does not contact touch key-press, through t
cafter time, the voltage V of RC oscillating circuit
rCreach maximum V
maxif arrange one and be less than V
maxthreshold voltage V
tH, so the discharging and recharging in the cycle of whole RC oscillating circuit, the voltage V of RC oscillating circuit
rCbe greater than threshold voltage V
tHtime also fix.Because the charging interval is changeless, so after finger touch button increases capacitance, at t
cin time, the voltage V of RC oscillating circuit
rCdiminished, can only reach V
mid, and threshold voltage V
tHbe the value of default, can not change with environmental factor, so finger touch is after touch key-press, from V
middrop to V
tHtime can shorten, we define the discharge examination time t that this time is RC oscillating circuit, and the shortening amount of discharge examination time t is Δ t, like this by measuring the voltage V of RC oscillating circuit
rCstarting to be positioned at threshold voltage V after electric discharge
tHthe above time, whether whether the discharge examination time t of RC oscillating circuit shorten and over Δ t, just can detect touch key-press and be pressed.
In addition, the Time Calculation formula that discharges and recharges of RC oscillating circuit is: t=RC * Ln[(V1-V0)/and (V1-Vt)], wherein V1 is charging voltage, and V0 is initial voltage, and Vt is the magnitude of voltage on t moment electric capacity.By formula, can be found out, the length that discharges and recharges the time is not only relevant with resistance value and the capacitance of RC oscillating circuit, is also subject to the impact of the charging voltage of RC oscillating circuit.And in existing touch key-press checking circuit, conventionally the charging voltage V1 of RC oscillating circuit is not invariable, in the reference period T that supposes to detect at a touch key-press, during the charging voltage V1 decline Δ V of RC oscillating circuit, discharge examination time t's Δ t has declined, to the critical value that can make touch key-press flase drop know, we can think that more than voltage drop Δ V be the charging voltage big ups and downs situation that can cause touch key-press flase drop to be known in the reference period T of a touch key-press detection, according to the principle that detects of touch key-press, time point in these charging voltage big ups and downs, detecting of touch key-press is easy to occur mistake, control chip can be judged to be touch key-press and be pressed.For example control chip firm electric moment, the charging voltage V1 of RC oscillating circuit has larger fluctuation, t1 after control chip energising is in the time, the charging voltage V1 of RC oscillating circuit can rise to a peak value and then fall stationary value after rise, if the peak value of V1 is larger to the variation between the stationary value of V1, likely cause the discharge examination time t of RC oscillating circuit can shorten Δ t or more, allowing control chip erroneous judgement be decided to be touch key-press is pressed, as shown in Figure 3, the peak value that is V1 is just Δ V to the variation between the stationary value of V1, now the discharge examination time t of RC oscillating circuit can shorten Δ t.And the moment of switching in larger load, for example, when a fairly large number of LED lights simultaneously, it is more severe that the charging voltage V1 of RC oscillating circuit also can suppression ratio, as shown in Figure 4, the charging voltage V1 decline Δ V of RC oscillating circuit, can cause the discharge examination time t of RC oscillating circuit can shorten Δ t, allow control chip erroneous judgement be decided to be touch key-press and be pressed.
In general situation, because the charging voltage V1 of RC oscillating circuit is not invariable, so detect the real-time voltage value of the charging voltage V1 of RC oscillating circuit in the reference period T that control chip can detect at last touch key-press, thereby obtain the charge threshold level that causes accordingly touch key-press flase drop to be known, and the reference period T detecting at next touch key-press makes adjustment to the charge threshold level that causes touch key-press flase drop to be known while starting, thereby the charge threshold level that the charging voltage V1 that can accurately judge RC oscillating circuit causes touch key-press flase drop to be known under current voltage value is how many, in the reference period T detecting at a touch key-press, if the charging voltage V1 drop-out value of RC oscillating circuit may surpass Δ V, as shown in Figure 5, this just directly causes the discharge examination time t of RC oscillating circuit to shorten more, more easily can allow control chip erroneous judgement be decided to be touch key-press is pressed, in Fig. 5, solid line is the change curve of the charging voltage of RC oscillating circuit, chain-dotted line is the change curve that causes the critical voltage value that touch key-press flase drop knows.
Summary of the invention
The object that the present invention will reach is just to provide a kind of control method that prevents that capacitance type touch key flase drop is known.
In order to achieve the above object, the present invention adopts following technical scheme: prevent the control method that capacitance type touch key flase drop is known, the RC oscillating circuit consisting of touch key-press is electrically connected to control chip, and the charging voltage of RC oscillating circuit is V1, and threshold voltage is V
tH, V1 > V
tHuser, operate after touch key-press, the discharge examination time t of RC oscillating circuit shortens Δ t, t1 after control chip energising is in the time, the charging voltage V1 of RC oscillating circuit can rise to peak value and then fall after rise to stationary value, and the difference of peak value and stationary value is more than or equal to Δ V, and the reference period that control chip detects the discharge examination time t of RC oscillating circuit is T, control chip is electrically connected with by electric loading, and described control method comprises the steps:
1) interior control chip of t2 time stops reading the discharge examination time t of RC oscillating circuit, and t2 is greater than t1, and t2, after the time, carries out next step;
2) control chip starts to read the discharge examination time t of RC oscillating circuit and for judging whether touch key-press is pressed, after judgement touch key-press is pressed, carries out next step;
3) start to before electricity consumption load supplying, whether control chip judgement to there will be after electricity consumption load supplying to the charging voltage V1 of RC oscillating circuit declines and is more than or equal to Δ V and causes time that the discharge examination time t of RC oscillating circuit shortens to be more than or equal to the situation of Δ t, if, carry out next step, if not, continue to read the discharge examination time t of RC oscillating circuit power supply, and to electricity consumption load supplying, then return to step 2), until control chip power-off;
4) control chip judges that whether the decline of charging voltage V1 of RC oscillating circuit is controlled, if so, will be divided into N by electric loading and criticize and power, and N is positive integer, and first obtains when electric by electric loading, the charging voltage V1 decline Δ V of RC oscillating circuit
1, Δ V
1be less than Δ V, second batch obtains when electric by electric loading, the charging voltage V1 decline Δ V of RC oscillating circuit
2, Δ V
2be less than Δ V ... N criticizes by electric loading and obtains when electric, the charging voltage V1 decline Δ V of RC oscillating circuit
n, Δ V
nbe less than Δ V, in control chip detects the reference period of discharge examination time t of RC oscillating circuit, the most multidirectional M criticizes electricity consumption load supplying, and M is positive integer and Δ V
1+ Δ V
2+ ... + Δ V
m< Δ V, then returns to step 2), until control chip power-off if not, is carried out next step;
5) control chip is after electricity consumption load supplying, control chip stops reading the discharge examination time t of RC oscillating circuit in a reference period of discharge examination time t that detects RC oscillating circuit, electricity consumption load starts, after steady operation, to return to step 2), until control chip power-off.
As preferred scheme, described touch key-press is arranged on guidance panel, and guidance panel is provided with a plurality of LED, describedly by electric loading, comprises the LED on motor, heater, fan, heat pump, draining valve, draining pump, water intaking valve, door lock and/or guidance panel.
The present invention also provides a kind of electrical appliance, comprise control chip, use electric loading and guidance panel, guidance panel is provided with touch key-press, the RC oscillating circuit that touch key-press forms and being electrically connected to control chip respectively by electric loading, described control chip adopts the control method control electricity consumption loaded work piece that capacitance type touch key flase drop is known that prevents described in technique scheme.
As preferred scheme, described electrical appliance is washing machine, describedly by electric loading, comprises the LED on display screen, motor, heater, fan, heat pump, draining valve, draining pump, water intaking valve, door lock buzzer and guidance panel.
As preferred scheme, described electrical appliance is electric pressure cooker, describedly by electric loading, comprises the LED on heater, door lock fan, display screen, buzzer and guidance panel.
As preferred scheme, described electrical appliance is refrigerator, describedly by electric loading, comprises the LED on compressor, display screen, frequency converter, fan, illuminating lamp, buzzer and guidance panel.
Adopt after technique scheme, tool of the present invention has the following advantages: the charging voltage of the RC oscillating circuit forming for touch key-press can exist the situation of big ups and downs to be divided into two kinds, the first is that control chip obtains electric moment, therefore for this in a flash, stop reading the discharge examination time t of RC oscillating circuit, avoided occurring in the first situation that touch key-press flase drop knows, the second is to use with causing the time that causes the discharge examination time t of RC oscillating circuit to shorten to the charging voltage decline of RC oscillating circuit to be greater than the situation of Δ t after electric loading, by control chip, judge that whether voltage drop is controlled, again controlled and uncontrollable situation is disposed targetedly, the charging voltage of stopping the RC oscillating circuit that touch key-press forms completely can exist and in the situation of big ups and downs, occur that touch key-press flase drop knows, reliability is high, control sense cycle T simultaneously, can not bring inconvenience to user's operation again.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the invention will be further described:
Fig. 1 is the schematic equivalent circuit of finger touch during to touch key-press;
Fig. 2 is the variation schematic diagram of RC oscillating circuit magnitude of voltage when with/without finger touch of touch key-press formation;
Fig. 3 is that the charging voltage of the RC oscillating circuit of touch key-press formation obtains the variation schematic diagram of electric moment at control chip;
Fig. 4 is that the charging voltage of the RC oscillating circuit that forms of touch key-press is at the variation schematic diagram obtaining by electric loading after electric;
The charging voltage of the RC oscillating circuit that Fig. 5 forms for touch key-press before the present invention improves and cause the schematic diagram that is related between critical voltage value that touch key-press flase drop knows;
The charging voltage that Fig. 6 is the RC oscillating circuit that touch key-press forms after the present invention improves and cause the schematic diagram that is related between critical voltage value that touch key-press flase drop knows.
Embodiment
The invention provides a kind of control method that prevents that capacitance type touch key flase drop is known, the RC oscillating circuit consisting of touch key-press is electrically connected to control chip, and the charging voltage of RC oscillating circuit is V1, and threshold voltage is V
tH, V1 > V
tHuser, operate after touch key-press, the discharge examination time t of RC oscillating circuit shortens Δ t, t1 after control chip energising is in the time, the charging voltage V1 of RC oscillating circuit can rise to peak value and then fall after rise to stationary value, and the difference of peak value and stationary value is more than or equal to Δ V, and the reference period that control chip detects the discharge examination time t of RC oscillating circuit is T, control chip is electrically connected with by electric loading, and this control method comprises the steps:
1) interior control chip of t2 time stops reading the discharge examination time t of RC oscillating circuit, and t2 is greater than t1, and t2, after the time, carries out next step;
2) control chip starts to read the discharge examination time t of RC oscillating circuit and for judging whether touch key-press is pressed, after judgement touch key-press is pressed, carries out next step;
3) start to before electricity consumption load supplying, whether control chip judgement to there will be after electricity consumption load supplying to the charging voltage V1 of RC oscillating circuit declines and is more than or equal to Δ V and causes time that the discharge examination time t of RC oscillating circuit shortens to be more than or equal to the situation of Δ t, if, carry out next step, if not, continue to read the discharge examination time t of RC oscillating circuit power supply, and to electricity consumption load supplying, then return to step 2), until control chip power-off;
4) control chip judges that whether the decline of charging voltage V1 of RC oscillating circuit is controlled, if so, will be divided into N by electric loading and criticize and power, and N is positive integer, and first obtains when electric by electric loading, the charging voltage V1 decline Δ V of RC oscillating circuit
1, Δ V
1be less than Δ V, second batch obtains when electric by electric loading, the charging voltage V1 decline Δ V of RC oscillating circuit
2, Δ V
2be less than Δ V ... N criticizes by electric loading and obtains when electric, the charging voltage V1 decline Δ V of RC oscillating circuit
n, Δ V
nbe less than Δ V, in control chip detects the reference period of discharge examination time t of RC oscillating circuit, the most multidirectional M criticizes electricity consumption load supplying, and M is positive integer and Δ V
1+ Δ V
2+ ... + Δ V
m< Δ V, then returns to step 2), until control chip power-off if not, is carried out next step;
5) control chip is after electricity consumption load supplying, control chip stops reading the discharge examination time t of RC oscillating circuit in a reference period of discharge examination time t that detects RC oscillating circuit, electricity consumption load starts, after steady operation, to return to step 2), until control chip power-off.
After capacitance type touch key energising, when finger does not contact touch key-press, through t
cafter time, the voltage V of RC oscillating circuit
rCreach maximum V
max, the present invention first arranges one and is less than V
maxthreshold voltage V
tH, the discharge examination time t of the RC oscillating circuit of mentioning, just refers to that RC oscillating circuit is after starting electric discharge, from V
middrop to V
tHtime.In step 1) in directly at t2, in the time, stop reading the discharge examination time t of RC oscillating circuit, avoid control chip to obtain variation that electric moment makes the charging voltage of RC oscillating circuit and caused control chip to judge by accident being decided to be the touch key-press this situation that is pressed, simple and reliable.And need to be to electricity consumption load supplying time, due to the variation by electric loading, various not identical with the power between electric loading, thereby cause the variation of charging voltage of RC oscillating circuit also not identical, so in step 3) in give differentiated treatment, if with electric loading obtain electric after, can not affect the judgement whether control chip is pressed to touch key-press, directly allow by electric loading, obtain electric, if with electric loading obtain electric after, may affect the judgement whether control chip is pressed to touch key-press, but some single power by electric loading is just very large, once obtain electric, will inevitably cause the charging voltage of RC oscillating circuit to decline over Δ V, this situation is just taked similar step 1) method, directly avoid the generation of misinterpretation, and some is because quantity is more by electric loading, power supply simultaneously just can cause the charging voltage of RC oscillating circuit to decline and surpass Δ V, therefore can be by these by electric loading in batches, by batch power supply, thereby while reducing by every batch of power supply, the charging voltage drop-out value of RC oscillating circuit, because the control time is very short, so on the not impact of user's operating experience.
In step 4) in mention, in control chip detects the reference period of discharge examination time t of RC oscillating circuit, the most multidirectional M criticizes electricity consumption load supplying, M is positive integer and Δ V
1+ Δ V
2+ ... + Δ V
m< Δ V, in a reference period of the discharge examination time t in fact needing only at control chip detection RC oscillating circuit, M criticize with electric loading power simultaneously or in batches power supply after, the total voltage drop value of charging voltage of RC oscillating circuit is still less than Δ V.That is to say after every batch of electricity consumption load supplying, the drop-out value of the charging voltage V1 of RC oscillating circuit can equate, i.e. Δ V
1=Δ V
2=...=Δ V
n, can be also unequal, in actual applications, be unequal substantially.But in the present embodiment, with Δ V
1=Δ V
2=...=Δ V
n=Δ V ' is example, after improving, as shown in Figure 6, due in a reference period T, once declining only appears in the charging voltage of RC oscillating circuit, and the drop-out value Δ V ' of the charging voltage of RC oscillating circuit is less than Δ V, illustrate, in Fig. 6, solid line is the change curve of the charging voltage of RC oscillating circuit, and chain-dotted line is the change curve that causes the critical voltage value that touch key-press flase drop knows.Can comparison diagram 5, in Fig. 5, the curve of the curve of the charging voltage of RC oscillating circuit and the critical voltage value that causes touch key-press flase drop to be known forms and intersects, so just can there is the situation that touch key-press flase drop is known, and the curve of charging voltage and cause can not intersecting between the curve of the critical voltage that touch key-press flase drop knows in Fig. 6, therefore after improving, during to electricity consumption load supplying, there will not be by control chip flase drop and know situation about being pressed for touch key-press.
Touch key-press operated by rotary motion is on guidance panel, and guidance panel is provided with a plurality of for showing the LED of relevant information, with electric loading comprise, LED on heater, fan, heat pump, draining valve, draining pump, water intaking valve, door lock and/or guidance panel.
Embodiment bis-:
A kind of washing machine, comprise control chip, use electric loading and guidance panel, guidance panel is provided with touch key-press and LED, the RC oscillating circuit that touch key-press forms, use electric loading, LED are electrically connected to control chip respectively, by electric loading, comprise the LED on display screen, motor, heater, fan, heat pump, draining valve, draining pump, water intaking valve, door lock buzzer and guidance panel, described control chip adopts and described in embodiment mono-, prevents that control method that capacitance type touch key flase drop is known from controlling electricity consumption loaded work piece and realizing washing machine running.
Embodiment tri-:
A kind of electric pressure cooker, comprise control chip, use electric loading and guidance panel, guidance panel is provided with touch key-press and LED, the RC oscillating circuit that touch key-press forms, use electric loading, LED are electrically connected to control chip respectively, by electric loading, comprise the LED on heater, door lock fan, display screen, buzzer and guidance panel, control chip adopts and described in embodiment mono-, to prevent that control method that capacitance type touch key flase drop is known from controlling electricity consumption loaded work piece and realizing electric pressure cooker work.
Embodiment tetra-:
A kind of refrigerator, comprise control chip, use electric loading and guidance panel, guidance panel is provided with touch key-press and LED, the RC oscillating circuit that touch key-press forms, use electric loading, LED are electrically connected to control chip respectively, by electric loading, comprise the LED on compressor, display screen, frequency converter, fan, illuminating lamp, buzzer and guidance panel, control chip adopts and described in embodiment mono-, to prevent that control method that capacitance type touch key flase drop is known from controlling electricity consumption loaded work piece and realizing refrigerator work.
Except above-mentioned electrical appliance, can also be other electrical appliance with touch key-press, for example with the microwave oven of touch key-press, with the roaster of touch key-press, with electromagnetic oven of touch key-press etc.
Except above preferred embodiment, the present invention also has other execution mode, and those skilled in the art can make according to the present invention various changes and distortion, only otherwise depart from spirit of the present invention, all should belong to defined scope in the claims in the present invention book.