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 of controlling party for preventing capacitance type touch key flase drop to know
Method and the electrical appliance with touch key-press.
Background technology
Existing touch key-press can be divided into resistance-type, condenser type, four major classes of infrared-type and surface acoustic wave type.Wherein
Capacitance type touch key is due to that can be directly integrated in pcb board, size is flexible, the low advantage of extra cost, obtained extensive
Use.
As shown in figure 1, the general principle of capacitance type touch key is exactly the RC being constantly a charged and discharged oscillator,
Electric capacity C1 is wherein included, finger can regard the bulky capacitor C2 of a ground connection as, and finger F, which touches touch key-press T, to cause RC to shake
The capacitance C changes of circuit are swung, the capacitance C of RC oscillating circuits will increase, C=C1+C2.The charging interval of RC oscillating circuits
It is changeless, it is assumed that be tC, as shown in Fig. 2 after capacitance type touch key energization, when finger does not contact touch key-press,
By tCAfter time, the voltage V of RC oscillating circuitsRCReach maximum VmaxIf setting one to be less than VmaxThreshold voltage VTH, that
In the charging-discharging cycle of whole RC oscillating circuits, the voltage V of RC oscillating circuitsRCMore than threshold voltage VTHTime be also
Fixed.Because the charging interval is changeless, so finger touch key-press makes after capacitance increase, in tCIn time, RC
The voltage V of oscillating circuitRCDiminish, can only achieve Vmid, and threshold voltage VTHIt is the value of default, will not be with environmental factor
Change, so finger is touched after touch key-press, from VmidDrop to VTHTime can shorten, we define this time for RC
The discharge examination time t of oscillating circuit, and discharge examination time t shortening amount is Δ t, so by measuring RC oscillating circuits
Voltage VRCIt is located at threshold voltage V after discharge is startedTHTime above, i.e., whether the discharge examination time t of RC oscillating circuits
Shorten just can detect whether touch key-press is pressed more than Δ t.
In addition, the discharge and recharge Time Calculation formula of RC oscillating circuits is:T=RC × Ln [(V1-V0)/(V1-Vt)], wherein
V1 is charging voltage, and V0 is initial voltage, and Vt is the magnitude of voltage on t electric capacity.The discharge and recharge time it can be seen from formula
Length is not only relevant with the resistance value and capacitance of RC oscillating circuits, is also influenceed by the charging voltage of RC oscillating circuits.And
In existing touch key-press checking circuit, what the charging voltage V1 of usual RC oscillating circuits was not constant between, it is assumed that one
In the reference period T of individual touch key-press detection, when the charging voltage V1 of RC oscillating circuits declines Δ V, discharge examination time t declines
Δ t, to the critical value that can know touch key-press flase drop, one can consider that in the reference period of a touch key-press detection
Voltage declines Δ V above is the charging voltage big ups and downs situation that touch key-press flase drop can be caused to know in T, according to touch key-press
Detection principle, at the time point of these charging voltage big ups and downs, the detection of touch key-press is easy to mistake occur, control chip
It can be determined as that touch key-press is pressed.For example in control chip firm moment that must be electric, the charging voltage V1 of RC oscillating circuits has
Larger fluctuation, control chip be powered after the t1 times in, it is right that the charging voltage V1 of RC oscillating circuits can rise to a peak value
After fall stationary value after rise, if V1 peak value is to changing greatly between V1 stationary value, it is likely that cause RC oscillating circuits
The discharge examination time, t can shorten Δ t or more, allow control chip erroneous judgement to be set to touch key-press and be pressed, as shown in figure 3, being then
V1 peak value is just Δ V to the change between V1 stationary value, and now the discharge examination time t of RC oscillating circuits can shorten Δ
t.And the moment being powered in larger load, such as a fairly large number of LED is lighted simultaneously when, the charging voltage V1 of RC oscillating circuits
Also can suppression ratio it is more severe, as shown in figure 4, RC oscillating circuits charging voltage V1 decline Δ V, putting for RC oscillating circuits can be caused
The electro-detection time, t can shorten Δ t, allow control chip erroneous judgement to be set to touch key-press and be pressed.
In the case of general, it is not constant between due to the charging voltage V1 of RC oscillating circuits, so control chip meeting
The charging voltage V1 of the detection RC oscillating circuits real-time voltage value in the reference period T that previous touch key-press is detected, so that
Opened to the charge threshold level for causing touch key-press flase drop to be known accordingly, and in the reference period T that next touch key-press is detected
The charge threshold level for causing touch key-press flase drop to be known is made adjustment during the beginning, so as to the accurate charging for judging RC oscillating circuits
The charge threshold level that voltage V1 causes touch key-press flase drop to be known under current voltage value is how many, is detected in a touch key-press
In reference period T, if the charging voltage V1 drop-out values of RC oscillating circuits can exceed that Δ V, as shown in figure 5, this just directly leads
The discharge examination time t of RC oscillating circuits is caused to shorten more, it is easier to control chip erroneous judgement can be allowed to be set to touch key-press and be pressed,
In Figure 5, solid line is the change curve of the charging voltage of RC oscillating circuits, and chain-dotted line is cause touch key-press flase drop to be known critical
The change curve of magnitude of voltage.
The content of the invention
The purpose of the invention to be reached just is to provide a kind of control method for preventing capacitance type touch key flase drop to know.
In order to achieve the above object, the present invention is adopted the following technical scheme that:The control for preventing capacitance type touch key flase drop to know
Method processed, the RC oscillating circuits being made up of touch key-press are electrically connected with control chip, and the charging voltage of RC oscillating circuits is V1, threshold
Threshold voltage is VTH, V1 > VTH, after user's operation touch key-press, the discharge examination time t of RC oscillating circuits shortens Δ t, control
In the t1 times after chip energization, the charging voltage V1 of RC oscillating circuits can rise to peak value and then fall after rise to stationary value, peak value
It is more than or equal to Δ V with the difference of stationary value, the discharge examination time t of control chip detection RC oscillating circuits reference period is T,
Control chip, which is electrically connected with, uses electric loading, and the control method comprises the following steps:
1) control chip stops reading the discharge examination time t of RC oscillating circuits in the t2 times, and t2 is more than t1, t2 times
Afterwards, next step is carried out;
2) control chip start read RC oscillating circuits discharge examination time t and for judge touch key-press whether by by
Under, carry out next step after judging that touch key-press is pressed;
3) start to before electricity consumption load supplying, whether control chip judges to occur to after electricity consumption load supplying shakes to RC
The charging voltage V1 for swinging circuit declines and is more than or equal to Δ V and time for causing the discharge examination time t of RC oscillating circuits to shorten is big
In the situation equal to Δ t, if so, next step is then carried out, if it is not, when then continuing the discharge examination that reading RC oscillating circuits are powered
Between t, and to electricity consumption load supplying, be then back to step 2), until control chip power-off;
4) control chip judges whether the charging voltage V1 of RC oscillating circuits decline is controllable, if so, will then use electric loading
It is divided into N batches to be powered, N is positive integer, when first obtains electric with electric loading, the charging voltage V1 of RC oscillating circuits declines Δ
V1, Δ V1Less than Δ V, when second batch obtains electric with electric loading, the charging voltage V1 of RC oscillating circuits declines Δ V2, Δ V2Less than Δ
When V ... ... N crowdes obtains electric with electric loading, the charging voltage V1 of RC oscillating circuits declines Δ VN, Δ VNLess than Δ V, in control core
In the discharge examination time t of a piece detection RC oscillating circuits reference period, most multidirectional M batches of electricity consumption load supplyings, M is just whole
Number and Δ V1+ΔV2+……+ΔVM< Δ V, are then back to step 2), until control chip power-off, if it is not, then carrying out next step
Suddenly;
5) control chip is to after electricity consumption load supplying, discharge examination time t of the control chip in detection RC oscillating circuits
A reference period in stop read RC oscillating circuits discharge examination time t, started with electric loading after steady operation, return
Step 2), until control chip power-off.
As preferred scheme, the touch key-press is arranged on guidance panel, and guidance panel is provided with multiple LED, institute
State is included on motor, heater, fan, heat pump, draining valve, draining pump, water intaking valve, door lock and/or guidance panel with electric loading
LED.
The present invention also provides a kind of electrical appliance, including control chip, with electric loading and guidance panel, guidance panel is provided with
Touch key-press, RC oscillating circuits and electrically connected respectively with control chip with electric loading, the control chip that touch key-press is constituted
Prevent the control method that capacitance type touch key flase drop is known from controlling electricity consumption loaded work piece using described in above-mentioned technical proposal.
As preferred scheme, the electrical appliance is washing machine, the electric loading include display screen, motor, heater,
LED on fan, heat pump, draining valve, draining pump, water intaking valve, door lock buzzer and guidance panel.
As preferred scheme, the electrical appliance is electric pressure cooking saucepan, the electric loading include heater, door lock fan,
LED on display screen, buzzer and guidance panel.
As preferred scheme, the electrical appliance is refrigerator, described to include compressor, display screen, frequency conversion with electric loading
LED on device, fan, illuminating lamp, buzzer and guidance panel.
After adopting the above technical scheme, the invention has the advantages that:The RC oscillating circuits constituted for touch key-press
Charging voltage can have that big ups and downs are divided into two kinds, and the first is that control chip obtains electric moment, therefore for this
Moment, stop reading the discharge examination time t of RC oscillating circuits, it is to avoid touch key-press flase drop occur in the case of the first and know,
Second be using with caused after charging voltage from electric loading to RC oscillating circuits decline cause the electric discharge of RC oscillating circuits
The time that detection time t shortens is more than Δ t situation, judges whether voltage declines controllable by control chip, then to controllable and not
Controllable situation is targetedly disposed, and prevents the charging voltage of the RC oscillating circuits of touch key-press composition completely and can exist
Occur touch key-press flase drop in the case of big ups and downs to know, reliability is high, while detection cycle T is controlled, again will not be to user's
Operation brings inconvenience.
Brief description of the drawings
The invention will be further described below in conjunction with the accompanying drawings:
Fig. 1 is schematic equivalent circuit when finger touches touch key-press;
Fig. 2 is the change schematic diagram for RC oscillating circuits magnitude of voltage when being touched with/without finger that touch key-press is constituted;
Fig. 3 is that the charging voltage for the RC oscillating circuits that touch key-press is constituted obtains the change signal of electric moment in control chip
Figure;
Fig. 4 be touch key-press constitute RC oscillating circuits charging voltage obtained with electric loading it is electric after change schematic diagram;
Fig. 5 is the charging voltage of the RC oscillating circuits that touch key-press is constituted before the present invention improves with causing touch key-press to miss
Relation schematic diagram between the critical voltage value of detection;
Fig. 6 is the charging voltage of the RC oscillating circuits that touch key-press is constituted after improving through the present invention with causing touch key-press to miss
Relation schematic diagram between the critical voltage value of detection.
Embodiment
The present invention provides a kind of control method for preventing capacitance type touch key flase drop to know, the RC being made up of touch key-press shakes
Swing circuit to electrically connect with control chip, the charging voltage of RC oscillating circuits is V1, and threshold voltage is VTH, V1 > VTH, in user behaviour
Make after touch key-press, the discharge examination time t of RC oscillating circuits shortens Δ t, in the t1 times after control chip energization, RC vibrations
The charging voltage V1 of 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, control
The discharge examination time t of coremaking piece detection RC oscillating circuits reference period is T, and control chip, which is electrically connected with, uses electric loading, should
Control method comprises the following steps:
1) control chip stops reading the discharge examination time t of RC oscillating circuits in the t2 times, and t2 is more than t1, t2 times
Afterwards, next step is carried out;
2) control chip start read RC oscillating circuits discharge examination time t and for judge touch key-press whether by by
Under, carry out next step after judging that touch key-press is pressed;
3) start to before electricity consumption load supplying, whether control chip judges to occur to after electricity consumption load supplying shakes to RC
The charging voltage V1 for swinging circuit declines and is more than or equal to Δ V and time for causing the discharge examination time t of RC oscillating circuits to shorten is big
In the situation equal to Δ t, if so, next step is then carried out, if it is not, when then continuing the discharge examination that reading RC oscillating circuits are powered
Between t, and to electricity consumption load supplying, be then back to step 2), until control chip power-off;
4) control chip judges whether the charging voltage V1 of RC oscillating circuits decline is controllable, if so, will then use electric loading
It is divided into N batches to be powered, N is positive integer, when first obtains electric with electric loading, the charging voltage V1 of RC oscillating circuits declines Δ
V1, Δ V1Less than Δ V, when second batch obtains electric with electric loading, the charging voltage V1 of RC oscillating circuits declines Δ V2, Δ V2Less than Δ
When V ... ... N crowdes obtains electric with electric loading, the charging voltage V1 of RC oscillating circuits declines Δ VN, Δ VNLess than Δ V, in control core
In the discharge examination time t of a piece detection RC oscillating circuits reference period, most multidirectional M batches of electricity consumption load supplyings, M is just whole
Number and Δ V1+ΔV2+……+ΔVM< Δ V, are then back to step 2), until control chip power-off, if it is not, then carrying out next step
Suddenly;
5) control chip is to after electricity consumption load supplying, discharge examination time t of the control chip in detection RC oscillating circuits
A reference period in stop read RC oscillating circuits discharge examination time t, started with electric loading after steady operation, return
Step 2), until control chip power-off.
After capacitance type touch key energization, when finger does not contact touch key-press, by tCAfter time, RC oscillating circuits
Voltage VRCReach maximum Vmax, the present invention first setting one is less than VmaxThreshold voltage VTH, the RC oscillating circuits being previously mentioned
Discharge examination time t, just refers to RC oscillating circuits after discharge is started, from VmidDrop to VTHTime.In step 1) in directly
Stop reading the discharge examination time t of RC oscillating circuits within the t2 times, it is to avoid control chip, which obtains electric moment, makes RC vibration electricity
The change of the charging voltage on road causes control chip to judge by accident to be set to touch key-press and be pressed such case, simple and reliable.
And when needing to electricity consumption load supplying, due to the variation with electric loading, the various power between electric loading are different from, from
And cause the change of the charging voltage of RC oscillating circuits also to differ, so in step 3) in be handled differently, if electricity consumption
Load it is electric after, do not interfere with the judgement whether control chip is pressed to touch key-press, then directly allow and obtain electric with electric loading, such as
Fruit with electric loading obtain it is electric after, the judgement that control chip may be influenceed whether to be pressed touch key-press, but some electricity consumptions are negative
The single power carried is just very big, once it is electric, the charging voltage for inevitably resulting in RC oscillating circuits decrease beyond Δ V, this
Situation just takes similar step 1) method, directly avoid the generation of misinterpretation, and some are due to that quantity is more with electric loading,
Power supply can just cause the charging voltage of RC oscillating circuits to decrease beyond Δ V simultaneously, thus can by these with electric loading in batches, press
Batch is powered, so that when reducing every batch and powering, the charging voltage drop-out value of RC oscillating circuits, because control time is very short,
So not influenceed on the operating experience of user.
In step 4) in mention, control chip detect RC oscillating circuits discharge examination time t a reference period
Interior, most multidirectional M batches of electricity consumption load supplyings, M is positive integer and Δ V1+ΔV2+……+ΔVM< Δ V, as long as in fact in control core
In the discharge examination time t of a piece detection RC oscillating circuits reference period, M's crowd is powered or in batches simultaneously with electric loading
After power supply, the voltage drop-out value that the charging voltage of RC oscillating circuits is total is still less than Δ V.That is born to every batch of electricity consumption
Carry after power supply, the charging voltage V1 of RC oscillating circuits drop-out value can be equal, i.e. Δ V1=Δ V2=...=Δ VN,
Can also be it is unequal, it is in actual applications, substantially unequal.But in the present embodiment, with Δ V1=Δ V2
=...=Δ VNExemplified by=Δ V ', after improvement, as shown in fig. 6, due in a reference period T, RC oscillating circuits
Charging voltage only occur once declining, and the charging voltage of RC oscillating circuits drop-out value Δ V ' be less than Δ V, illustrate one
Under, in figure 6, solid line is the change curve of the charging voltage of RC oscillating circuits, and chain-dotted line causes touch key-press flase drop to be known
The change curve of critical voltage value.The curve of the charging voltage of RC oscillating circuits and it can cause to touch with comparison diagram 5, in Figure 5
The curve formation for the critical voltage value that button flase drop is known intersects, so can just occur the situation that touch key-press flase drop is known, and in Fig. 6
It will not intersect between the curve of charging voltage and the curve for causing the critical voltage that touch key-press flase drop knows, therefore by improving
Be not in the situation known by control chip flase drop and be pressed for touch key-press when afterwards, to electricity consumption load supplying.
Touch key-press is generally located on guidance panel, and guidance panel is provided with multiple LED for being used to show relevant information,
And then included with electric loading, on heater, fan, heat pump, draining valve, draining pump, water intaking valve, door lock and/or guidance panel
LED。
Embodiment two:
A kind of washing machine, including control chip, with electric loading and guidance panel, guidance panel provided with touch key-press and
LED, RC oscillating circuits that touch key-press is constituted, electrically connect with electric loading, LED with control chip respectively, is included showing with electric loading
LED on display screen, motor, heater, fan, heat pump, draining valve, draining pump, water intaking valve, door lock buzzer and guidance panel,
The control chip is using the control method control electric loading for preventing that capacitance type touch key flase drop is known described in embodiment one
Work realizes that washing machine is operated.
Embodiment three:
A kind of electric pressure cooking saucepan, including control chip, with electric loading and guidance panel, guidance panel provided with touch key-press and
LED, RC oscillating circuits that touch key-press is constituted, electrically connect with electric loading, LED with control chip respectively, is included adding with electric loading
LED on hot device, door lock fan, display screen, buzzer and guidance panel, control chip is used prevents electricity described in embodiment one
The control method control electricity consumption loaded work piece that appearance formula touch key-press flase drop is known realizes that electric pressure cooking saucepan works.
Example IV:
A kind of refrigerator, including control chip, with electric loading and guidance panel, guidance panel provided with touch key-press and
LED, RC oscillating circuits that touch key-press is constituted, electrically connect with electric loading, LED with control chip respectively, is included pressing with electric loading
LED on contracting machine, display screen, frequency converter, fan, illuminating lamp, buzzer and guidance panel, control chip is used in embodiment one
The control method for preventing capacitance type touch key flase drop the to know control electricity consumption loaded work piece realizes refrigerator operation.
In addition to above-mentioned electrical appliance, other electrical appliances with touch key-press are can also be, such as with the micro- of touch key-press
Ripple stove, the electric oven with touch key-press, electromagnetic oven with touch key-press etc..
In addition to above preferred embodiment, the present invention also has other embodiments, and those skilled in the art can be according to this
Invention is variously modified and deformed, and without departing from the spirit of the present invention, all should belong in claims of the present invention and determine
The scope of justice.