CN103607187B - Method and apparatus for detecting whether capacitor touch button is triggered - Google Patents

Method and apparatus for detecting whether capacitor touch button is triggered Download PDF

Info

Publication number
CN103607187B
CN103607187B CN201310560180.4A CN201310560180A CN103607187B CN 103607187 B CN103607187 B CN 103607187B CN 201310560180 A CN201310560180 A CN 201310560180A CN 103607187 B CN103607187 B CN 103607187B
Authority
CN
China
Prior art keywords
capacitance
value
threshold value
touch button
base line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310560180.4A
Other languages
Chinese (zh)
Other versions
CN103607187A (en
Inventor
王芬清
郄勇
叶鑫
李瑞波
任思魁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Goertek Co Ltd
Original Assignee
Qingdao Goertek Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Goertek Co Ltd filed Critical Qingdao Goertek Co Ltd
Priority to CN201310560180.4A priority Critical patent/CN103607187B/en
Publication of CN103607187A publication Critical patent/CN103607187A/en
Application granted granted Critical
Publication of CN103607187B publication Critical patent/CN103607187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Electronic Switches (AREA)

Abstract

The invention discloses a method and apparatus for detecting whether a capacitor touch button is triggered. The method comprises: scanning a capacitance value at a time when the capacitor touch button is not touched, and taking the scanned capacitance value as the baseline capacitance value of the capacitor touch button; setting a first capacitance threshold and a second capacitance threshold of the capacitor touch button, wherein the first capacitance threshold is greater than the second capacitance threshold; and monitoring the change of the capacitance value of the capacitor touch button, and when it is monitored that the capacitance value of the capacitor touch button is greater than the first capacitance threshold and the subsequently monitored capacitance value of the capacitor touch button is smaller than the second capacitance threshold, determining that the capacitor touch button is triggered. The technical scheme provided by the invention can solve the problem of unstable working easily caused by the change of a working environment for a conventional capacitor touch button.

Description

The method and apparatus whether a kind of detection capacitance touch button is triggered
Technical field
The present invention relates to touch key-press technical field, whether more particularly to a kind of detection capacitance touch button is triggered Method and apparatus.
Background technology
TV adopts mechanical key mostly at present, there is space, be easily guided between the mechanical key of use and the casing of TV Electrostatic, mechanical key is also easily sheltered evil people and countenance evil practices, is not easily cleaned, molding high processing costs in addition, to install complicated, service life short The shortcomings of.
Using capacitor induction type touch key-press, can be placed on after casing, simple installation, external form fashion is attractive in appearance, water proof Antistatic, durable in use, there is good Consumer's Experience effect.But, existing capacitance touch button is generally using detection electricity The method holding change judges whether button is pressed, and is therefore easier to be affected by running voltage, ambient parameter (humiture) etc..
Further, since the internal electromagnetic interference of TV is larger, the change of the electric capacity in capacitor induction type touch key-press can be caused, enter And be easily caused key-press from false action or be failure to actuate.Secondly current capacitance touch button adopts application-specific integrated circuit mostly, although circuit Relatively simple, but its motility is poor.Finally existing touch key-press circuit is single with the communication interface of TV mainboard, and versatility is relatively Difference.
In sum, existing capacitance touch button easily leads to the problem of job insecurity because of the change of working environment.
Content of the invention
The invention provides the method and apparatus whether a kind of detection capacitance touch button is triggered.The skill that the present invention provides Art scheme can solve the problem that existing capacitance touch button easily leads to the problem of job insecurity because of the change of working environment.
The invention discloses a kind of detection method of whether being triggered of capacitance touch button, the method includes:
Capacitance when scanning capacitance touch key-press is not touched, using the capacitance scanning as this capacitance touch by The base line capacitance value of key;
First capacitance threshold value and second capacitance threshold value of this capacitance touch button are set;Wherein, the first capacitance threshold value compares Two capacitance threshold value are big;
Monitor the change of the capacitance of this capacitance touch button, when monitor capacitance touch button capacitance be more than described First capacitance threshold value, and when subsequently monitoring the capacitance of capacitance touch button less than described second capacitance threshold value, determining should Capacitance touch button is triggered.
In the above-mentioned methods, described the first capacitance threshold value arranging this capacitance touch button and the second capacitance threshold value include:
Monitor capacitance variation when this capacitance touch button is touched, take maximum capacitor value therein;
Described maximum capacitor value deducts described base line capacitance and is worth to capacitive differential;
The a% taking described capacitive differential is as described first capacitance threshold value;Take the b% of described capacitive differential as described Two capacitance threshold value;
Wherein, a takes the value in the range of [60,90], and b takes the value in the range of [20,50].
In the above-mentioned methods, the method also includes:
Setting intervalometer, after described timer expiry, carries out base line capacitance value calibration;
Described base line capacitance value calibration includes:Rescan the capacitance of all capacitance touch buttons;When rescaning When the capacitance of all capacitance touch buttons arriving is both less than the second capacitance threshold value, for each capacitance touch button, scanning should The capacitance of capacitance touch button, using the capacitance scanning as this capacitance touch button base line capacitance value.
In the above-mentioned methods, the method also includes:
According to threshold values under threshold values on base line capacitance value setting base line capacitance value and base line capacitance value;Wherein, base line capacitance value Upper threshold values is more than threshold values under base line capacitance value but is less than described second capacitance threshold value;
When the capacitance scanning all capacitance touch buttons obtaining is both less than the second capacitance threshold value and is more than described baseline Threshold values on capacitance, or scan threshold values under the capacitance both less than described base line capacitance value of all capacitance touch buttons obtaining When, carry out base line capacitance value calibration;
Described base line capacitance value calibration includes:Rescan the capacitance of all capacitance touch buttons;When rescaning When the capacitance of all capacitance touch buttons arriving is both less than the second capacitance threshold value, for each capacitance touch button, scanning should The capacitance of capacitance touch button, using the capacitance scanning as this capacitance touch button base line capacitance value.
In the above-mentioned methods, when there being multiple capacitance touch button, described determination capacitance touch button be triggered including:
When the capacitance scanning multiple capacitance touch buttons is both greater than the first capacitance threshold value, choose capacitance maximum Capacitance touch button, as effective button, determines that this effective button is triggered.
The invention also discloses a kind of detection device of whether being triggered of capacitance touch button, this device includes:
Scan module, capacitance when not touched for scanning capacitance touch key-press, the capacitance scanning is made Base line capacitance value for this capacitance touch button;
Setup module, for arranging the first capacitance threshold value and second capacitance threshold value of this capacitance touch button;Wherein, first Capacitance threshold value is bigger than the second capacitance threshold value;
Processing module, for obtaining the capacitance of the capacitance touch button that scan module scans, monitors this capacitance touch The change of the capacitance of button, when the capacitance monitoring capacitance touch button is more than described first capacitance threshold value, and subsequently When monitoring that the capacitance of capacitance touch button is less than described second capacitance threshold value, determine that capacitance touch button is triggered.
In said apparatus, setup module, it is additionally operable to monitor capacitance variation when capacitance touch button is touched, take it In maximum capacitor value deduct base line capacitance and be worth to capacitive differential;Using the a% of described capacitive differential as described first electric capacity Threshold value;Using the b% of described capacitive differential as described second capacitance threshold value;Wherein, a takes the value in the range of [60,90], and b takes [20,50] value in the range of.
In said apparatus, this device also includes:Intervalometer;
Setup module, is additionally operable to, after timer expiry, obtain scan module and rescan all capacitance touch obtaining The capacitance of button, when the capacitance of all capacitance touch buttons is both less than the second capacitance threshold value, for each capacitance touch Button, obtains the capacitance of this capacitance touch button that scan module scans, using the capacitance scanning as this capacitive touch Touch the base line capacitance value of button.
In said apparatus, setup module, it is additionally operable to arrange threshold values and baseline on base line capacitance value according to base line capacitance value Threshold values under capacitance;Wherein, on base line capacitance value, threshold values is more than threshold values under base line capacitance value but is less than described second capacitance threshold value;
Setup module, is additionally operable to the capacitance scanning all capacitance touch buttons obtaining and is both less than the second capacitance threshold value And more than threshold values on described base line capacitance value, or the capacitance both less than described base scanning all capacitance touch buttons obtaining In the case of threshold values under line capacitance, obtain the capacitance that scan module rescans all capacitance touch buttons obtaining, when When the capacitance of all capacitance touch buttons is both less than the second capacitance threshold value, for each capacitance touch button, obtain scanning mould The capacitance of this capacitance touch button that block scan arrives, using the capacitance scanning as this capacitance touch button base line capacitance Value.
In said apparatus, processing module, for obtaining the capacitance of multiple capacitance touch buttons in scan module scanning During more than the first capacitance threshold value, choose the maximum capacitance touch button of capacitance as effective button;Determine this effective button quilt Triggering.
In sum, in the technical scheme that the present invention provides, by being scanned the baseline electricity obtaining when no button touches Capacitance, the first electric capacity threshold values of setting capacitance touch button and the second electric capacity threshold values, by checking the electric capacity of capacitance touch button The change of value, and by the capacitance that obtains of monitoring and the first electric capacity threshold values with the second electric capacity threshold values is compared it is ensured that capacitive touch Whether the change touching button touches triggering by user, and then ensure that touch key-press will not miss in the case that non-finger touches and changes Action, and being capable of accurately action in the case that finger touches.Solve existing capacitance type touch key easily because of work The change of environment and lead to the problem of job insecurity.Additionally, the device that the present invention provides has the letter of touch key-press hardware circuit Single, low cost, easy for installation, using simple, the good advantage of Consumer's Experience effect.
Brief description
Fig. 1 is the flow chart of the method whether the detection capacitance touch button in an embodiment of the present invention is triggered;
Fig. 2 is the detailed process of the method whether the detection capacitance touch button in an embodiment of the present invention is triggered Figure;
Fig. 3 is the schematic diagram in the capacitance touching each stage for the capacitance touch button in an embodiment of the present invention;
Fig. 4 is the structural representation of the detection trigger device of the capacitance touch button in an embodiment of the present invention;
Fig. 5 is the internal structure schematic diagram of the detection trigger device of the capacitance touch button in an embodiment of the present invention.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is the flow chart of the method whether a kind of present invention detection capacitance touch button is triggered, as shown in figure 1, should Method comprises the steps:
Step 101, capacitance when scanning capacitance touch key-press is not touched, using the capacitance scanning as this electricity Hold the base line capacitance value of touch key-press.
Step 102, arranges the first capacitance threshold value and second capacitance threshold value of this capacitance touch button;Wherein, the first electric capacity Threshold value is bigger than the second capacitance threshold value.
Step 103, monitors the change of the capacitance of this capacitance touch button, when the capacitance monitoring capacitance touch button More than described first capacitance threshold value, and subsequently monitor the capacitance of capacitance touch button less than described second capacitance threshold value When, determine that this capacitance touch button is triggered.
In a kind of specific embodiment of the present invention, by detecting the capacitance of capacitance touch button whether more than the second electricity Hold threshold value and carry out judging that the change of the capacitance of this capacitance touch button is to be caused by artificial pressing or because environmental change is drawn Rise.It is specially:When capacitance capacitance touch button is detected is more than the second capacitance threshold value, judge the capacitance of this button Change be to be pressed by user;When capacitance capacitance touch button is detected is less than the second capacitance threshold value, judge this button The change of capacitance caused by environmental change.Its advantage is, by the first capacitance threshold value and second electricity of setting The change holding the capacitance of threshold decision capacitance touch button is to be pressed by user to cause, or environmental change causes, Jin Erda The erroneous input leading to the change preventing from causing capacitance because of environmental change.
Fig. 2 is the detailed process of the method whether the detection capacitance touch button in an embodiment of the present invention is triggered Figure, as shown in Fig. 2 the method comprises the steps:
Step 201, starts.
Step 202, each module initialization.
In this step, because the electric capacity button that this method provides is based on specifically hard-wired, this hardware is in tool Need the cooperation of each module in body operation, therefore when starting the method for the present invention, need to carry out each module to carry out initially Change is processed.
Step 203, base line capacitance value period regulation.
In step 203, before carrying out capacitance touch signal input, need to base line capacitance value period regulation.Specifically For:By rescaning the capacitance of each capacitance touch button, judging the feelings that are pressed currently without capacitance touch button Under condition, according to the base line capacitance value rescaning the capacitance each capacitance touch button of renewal obtaining.Wherein, judge capacitance touch Whether button is pressed can be compared with the second capacitance threshold value by the capacitance that scanning obtains.
Step 204, sets the first capacitance threshold value and the second capacitance threshold value;Set threshold values and base line capacitance on base line capacitance value The lower threshold values of value.Wherein, on base line capacitance value, threshold values is more than threshold values under base line capacitance value, but is less than described second capacitance threshold value.
In step 204, monitor capacitance variation when this capacitance touch button is touched, take maximum capacitor therein Value;Calculating maximum capacitor value deducts base line capacitance and is worth to capacitive differential;Using the a% of capacitive differential as the first capacitance threshold value; Using the b% of capacitive differential as the second capacitance threshold value;Wherein, a takes the value in the range of [60,90], and b takes in the range of [20,50] Value.
In step 204, concrete according to threshold values under threshold values on base line capacitance value setting base line capacitance value and base line capacitance value For:On setting base line capacitance value, threshold values and the ratio of base line capacitance value are c, and wherein, the span of c is 1.01~1.10;If Putting threshold values and the ratio of base line capacitance value under base line capacitance value is d, and wherein, the span of d is 0.90~0.99.
In the above-described embodiments, after base line capacitance value recalibration, need to reset the first capacitance threshold value and the Two capacitance threshold value, and reset threshold values under threshold values and base line capacitance value on base line capacitance value.
Step 205, scanning capacitance touch key-press capacitance.
In step 205, the capacitance of multipoint control unit MCU chip meeting real time scan button.
In an embodiment of the present invention, MCU chip scans an all of button within the Millisecond time.
Step 206, judges whether that the base line capacitance value of all capacitance touch buttons all exceeds calibration threshold values.If it is, Carry out step 203, otherwise carry out step 207.
In step 206, MCU chip judges to the capacitance of each capacitance touch button scanning;Work as judgement Go out in the case that the base line capacitance value of all capacitance touch buttons all exceeds calibration threshold values, then carry out step 203, that is, need again Calibrate the base line capacitance value of all capacitance touch buttons.Wherein, base line capacitance value refers to, base line capacitance value is big beyond calibration threshold values Threshold values or less than threshold values under base line capacitance value on the base line capacitance value.
In the present invention, recalibrate the change that base line capacitance value is able to the capacitance of more sensitive key range Change, and then adjust the first capacitance threshold value based on base line capacitance value and the second capacitance threshold value, enabling more accurately identify Go out which button is pressed or unclamps, so that signal input is more accurate.
In an embodiment of the present invention, base line capacitance value calibration includes:Rescan all capacitance touch buttons Capacitance;When the capacitance rescaning all capacitance touch buttons obtaining is both less than the second capacitance threshold value, for each Capacitance touch button, scans the capacitance of this capacitance touch button, using the capacitance scanning as this capacitance touch button Base line capacitance value.
In an embodiment of the present invention, triggering the mode to the recalibration of base line capacitance value can be:In electric capacity In the case that touch key-press is not pressed, the capacitance that scanning obtains all capacitance touch buttons is both greater than base line capacitance value upper valve Value, or threshold values both less than under base line capacitance value, that is, the base line capacitance value of capacitance touch button all exceed the situation calibrating threshold values Under.It is specially:When capacitance both less than second capacitance threshold value of all capacitance touch buttons that scanning obtains, and capacitance is big During in threshold values on base line capacitance value or less than threshold values under base line capacitance value;By scanning all capacitance touch buttons obtaining When capacitance is both less than the second capacitance threshold value, judge that not a button is pressed, thus according to rescaning the capacitance obtaining more The newly base line capacitance value of each button, will rescan the base line capacitance value as this button for the capacitance of the button obtaining.
Step 207, chooses the capacitance touch button corresponding to capacitance maximum.
Step 208, judges whether capacitance is more than the first capacitance threshold value, is to carry out step 209, otherwise carries out step and continue Continue and carry out step 205.
Step 209, continues to scan on capacitance.
Step 210, judges whether the capacitance of this capacitance touch button is less than the second capacitance threshold value, is to carry out step 211, otherwise proceed step 209.
Step 211, determines that this effective button is triggered.
In this step, after effective button of determination is triggered, execute capacitance touch button action;It is specially:Input Signal corresponding to this capacitance touch button, or run action corresponding with this capacitance touch button.
In a kind of preferred embodiment of the present invention, after finger down, the capacitance of capacitance touch button can increase, Electric capacity finger being touched and increasing is called touch electric capacity CF, and base line capacitance value is CP, then total capacitance CA after finger touches =CF+CP.Therefore, after capacitance touch button is pressed by the user, capacitance increases, after user unclamps, this capacitive touch The capacitance touching button declines, and when capacitance capacitance touch button is detected drops below the second capacitance threshold value, Input the corresponding signal of this capacitance touch button.In the present invention, for the signal input of a capacitance touch button, needing should Capacitance touch button is first pressed, and only just inputs the letter of this capacitance touch button after this capacitance touch button unclamps Number.Need to press and unclamp the just once complete signal input of calculation.
So have the advantage that, solve after existing capacitance touch button is pressed with regard to input signal, lead to Capacitance touch button do not have released in the case of, continuously input the problem of multiple signals.And, capacitance touch button quilt Press and the released input as a complete signal, can accurately distinguish the signal of each input.
In an embodiment of the present invention, in step 207~step 211, when MCU chip scans multiple capacitive touch When the capacitance touching button is more than the first capacitance threshold value, it is more than multiple buttons of the first threshold values from capacitance and chooses capacitance Big capacitance touch button is as effective button.And the capacitance in follow up scan to this effective button is less than the second capacitance threshold value In the case of, merely enter the signal of effective button, shield the signal input of other buttons.
In order to much sooner base line capacitance value is updated so that corresponding touch key-press input more accurately with And sensitive, also include step 212 in the present invention.
Step 212, when the timer expiry setting, carries out step 203.
In an embodiment of the present invention, by arranging intervalometer, when the timer expiry setting, triggering is to baseline Capacitance updates.It is specially:Setting intervalometer, after timer expiry, carries out base line capacitance value calibration;Described base line capacitance value Calibration includes:Rescan the capacitance of all capacitance touch buttons;When rescaning all capacitance touch buttons obtaining When capacitance is both less than the second capacitance threshold value, for each capacitance touch button, scan the capacitance of this capacitance touch button, will The capacitance scanning is as the base line capacitance value of this capacitance touch button.
In technical scheme provided by the present invention, base line capacitance value is calibrated according to the capacitance that real time scan obtains Or period regulation is carried out according to default intervalometer, and the maximum capacitor value after being pressed according to base line capacitance value and electric capacity First capacitance threshold value and the second capacitance threshold value are set so that the first capacitance threshold value and the second capacitance threshold value can be with base line capacitance The change of value and change, and then ensure can accurately measure to the change of button capacitance.Thus ensureing each capacitive touch Touch and can accurately be identified after button is pressed.
Fig. 3 is the schematic diagram in the capacitance touching each stage for the capacitance touch button in an embodiment of the present invention;Ginseng As shown in Figure 3, base line capacitance value is 1000pF, and on corresponding base line capacitance value, threshold values is 1100pF, threshold values under base line capacitance value For 900pF.This button first time be pressed after record the first capacitance be 3500pF, then the first capacitance and base line capacitance value Difference be 2500pF.Additionally, the first capacitance threshold value and the second electricity are arranged according to the difference of base line capacitance value and the first capacitance Hold threshold value, wherein, the first capacitance threshold value=base line capacitance value+difference × a.Second capacitance threshold value=base line capacitance value+difference × b.I.e. the first capacitance threshold value=1000pF+2500pF × 0.76=2900pF, the second capacitance threshold value=1000pF+2500pF × 0.32=1800pF.
Fig. 4 is the structural representation of the detection trigger device of the capacitance touch button in an embodiment of the present invention;This dress Put including:
Scan module 401, capacitance when not touched for scanning capacitance touch key-press, by the capacitance scanning Base line capacitance value as this capacitance touch button.
Setup module 402, for arranging the first capacitance threshold value and second capacitance threshold value of this capacitance touch button;Wherein, First capacitance threshold value is bigger than the second capacitance threshold value.
Processing module 403, for obtaining the capacitance of the capacitance touch button that scan module scans, monitors this capacitive touch Touch the change of the capacitance of button, when the capacitance monitoring capacitance touch button is more than described first capacitance threshold value, and after When the continuous capacitance monitoring capacitance touch button is less than described second capacitance threshold value, determine that capacitance touch button is triggered.
In a kind of specific embodiment of the present invention, Fig. 5 is touching of the capacitance touch button in an embodiment of the present invention Send out the internal structure schematic diagram of detection means.As described in Figure 5, the PCB that the device that the present invention provides adopts is 1.6mm bilayer FR4 Material, and all components and parts are placed on the top layer of PCB, the key-press welding plate of touch key-press is plotted as square copper sheet, is placed on The stratum of PCB.It is specially:This device includes:It is arranged on the MCU on printing board PCB, touch key-press and touching for placing The pad of button;Described MCU is arranged on the top layer of described PCB, and described pad is arranged on the bottom of described PCB;Each button sets Put on corresponding pad.
In an embodiment of the present invention, shorten the cabling between key-press welding plate and MCU, and do not wear between each cabling Any other cabling of row.
In an embodiment of the present invention, carry out around key-press welding plate applying copper grounding, signal to noise ratio is reduced with this.
In an embodiment of the present invention, setup module, for monitoring capacitance when capacitance touch button is touched Change, takes maximum capacitor value therein to deduct base line capacitance and is worth to capacitive differential;Using the a% of described capacitive differential as described First capacitance threshold value;Using the b% of described capacitive differential as described second capacitance threshold value;Wherein, a takes in the range of [60,90] Value, b takes the value in the range of [20,50].
In a kind of specific embodiment of the present invention, MCU passes through the analog-digital converter of successive approximation register type SAR ADC detects the change of the capacitance of capacitance touch button, and is compared with the second capacitance threshold value by the capacitance scanning, Judge capacitance change be finger touch cause or the change due to environment causes.Additionally, this device also by The current working condition of RS232 communication interface output carries out parameter setting such that it is able to connect host computer, and then when shortening exploitation Between.
In an embodiment of the present invention, this device also includes:Intervalometer 404;
Setup module 402, rescans, for after intervalometer 404 time-out, obtaining scan module 401, all electricity obtaining Hold the capacitance of touch key-press, when the capacitance of all capacitance touch buttons is both less than the second capacitance threshold value, for each electricity Hold touch key-press, obtain the capacitance of this capacitance touch button that scan module scans, using the capacitance scanning as this The base line capacitance value of capacitance touch button.
In an embodiment of the present invention, setup module 402, are additionally operable to arrange base line capacitance value according to base line capacitance value Threshold values under upper threshold values and base line capacitance value;Wherein, on base line capacitance value, threshold values is less than described second capacitance threshold value;
Setup module 402, the capacitance of all capacitance touch buttons for obtaining in scanning is both less than the second electric capacity threshold Value and more than threshold values on described base line capacitance value, or the capacitance of all capacitance touch buttons that scanning obtains is both less than described In the case of threshold values under base line capacitance value, obtain the capacitance that scan module rescans all capacitance touch buttons obtaining, When the capacitance of all capacitance touch buttons is both less than the second capacitance threshold value, for each capacitance touch button, obtain scanning The capacitance of this capacitance touch button that module scans arrive, the capacitance scanning is electric as the baseline of this capacitance touch button Capacitance.
In an embodiment of the present invention, processing module 403, for obtaining multiple electric capacity in scan module 401 scanning When the capacitance of touch key-press is more than the first capacitance threshold value, choose the maximum capacitance touch button of capacitance as effective button; Determine that this effective button is triggered.
As can be seen here, the touch key-press in disclosed embodiment of this invention, in this capacitance touch signal input apparatus Be designed as on PCB one piece of square copper sheet, and carry out around this copper sheet apply ground.And, the electric capacity that the present invention provides The MCU of the circuit of touching signal input device is the C8051F717 of Silicon Laboratory, and this MCU has 18 buttons Input channel, has the advantages that high s/n ratio high speed and peripheral hardware flexible configuration.And it has been internally integrated electric capacity in this MCU Data converter CDC is so that after the capacitance of scanning is converted to corresponding digital quantity by CDC or SAR ADC by MCU, enter And judge the change of capacitance, realize high-precision electric capacity numeral conversion.
In an embodiment of the present invention, MCU, during welding, is placed close proximity to key-press welding plate, and And shorten track lengths between the two as far as possible, and try not to allow other cablings to cross over simultaneously, situation about allowing in space Under, two adjacent pad cablings keep as far as possible remote distance can be in middle adjunction ground wire.
In a kind of preferred embodiment of the present invention, increase LED instruction function so that certain capacitance touch button is pressed Afterwards, the LED light of correspondence position is lit.Specifically, in the central aperture of key-press welding plate and installing LED light.
When the value that environmental change causes base line capacitance value drift exceedes on base line capacitance value threshold values or is less than base line capacitance value During the value of lower threshold values, by enforcing period regulation, thus compensating the drift of base line capacitance value.But the one kind in the present invention In specific embodiment, the increase of base line capacitance value is possibly due to finger down and leads to, therefore for the increasing of base line capacitance value Plus the compensation being carried out is slow, and it is fast to reduce carried out compensation to base line capacitance value.
In sum, in the technical scheme that the present invention provides, period regulation and setting base are carried out by arranging intervalometer On the base line capacitance value of line capacitance, threshold values and base line capacitance lower threshold value enter Mobile state adjustment to base line capacitance value, ensure that tactile Touch button non-finger touch change in the case of will not misoperation, and finger touch in the case of being capable of accurately action.Additionally, The device that the present invention provides has touch key-press hardware circuit simply, and low cost is easy for installation, using simple, Consumer's Experience effect Really good advantage.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All Any modification, equivalent substitution and improvement made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention Interior.

Claims (6)

1. a kind of method that whether detection capacitance touch button is triggered is it is characterised in that the method includes:
Capacitance when scanning capacitance touch key-press is not touched, using the capacitance scanning as this capacitance touch button Base line capacitance value;
First capacitance threshold value and second capacitance threshold value of this capacitance touch button are set;Wherein, the first capacitance threshold value is than the second electricity Hold threshold value big;
Monitor the change of the capacitance of this capacitance touch button, when the capacitance monitoring capacitance touch button is more than described first Capacitance threshold value, and when subsequently monitoring the capacitance of capacitance touch button less than described second capacitance threshold value, determine this electric capacity Touch key-press is triggered;
Described the first capacitance threshold value arranging this capacitance touch button and the second capacitance threshold value include:
Monitor capacitance variation when this capacitance touch button is touched, take maximum capacitor value therein;
Described maximum capacitor value deducts described base line capacitance and is worth to capacitive differential;
The a% taking described capacitive differential is as described first capacitance threshold value;The b% taking described capacitive differential is as the described second electricity Hold threshold value;
Wherein, a takes the value in the range of [60,90], and b takes the value in the range of [20,50];
The method also includes:Setting intervalometer, after described timer expiry, carries out base line capacitance value calibration;
Described base line capacitance value calibration includes:Rescan the capacitance of all capacitance touch buttons;Obtain when rescaning When the capacitance of all capacitance touch buttons is both less than the second capacitance threshold value, for each capacitance touch button, scan this electric capacity The capacitance of touch key-press, using the capacitance scanning as this capacitance touch button base line capacitance value.
2. method according to claim 1 is it is characterised in that the method also includes:
Base line capacitance value upper threshold value and base line capacitance value lower threshold value are arranged according to base line capacitance value;Wherein, base line capacitance value upper-level threshold Value more than base line capacitance value lower threshold value but is less than described second capacitance threshold value;
When the capacitance scanning all capacitance touch buttons obtaining is both less than the second capacitance threshold value and is more than described base line capacitance Value upper threshold value, or when the capacitance of all capacitance touch buttons that obtains of scanning is both less than described base line capacitance value lower threshold value, Carry out base line capacitance value calibration.
3. method according to claim 1 is it is characterised in that when there being multiple capacitance touch button, described determination electric capacity Touch key-press be triggered including:
When the capacitance scanning multiple capacitance touch buttons is both greater than the first capacitance threshold value, choose the maximum electric capacity of capacitance Touch key-press, as effective button, determines that this effective button is triggered.
4. the device that whether a kind of detection capacitance touch button is triggered is it is characterised in that this device includes:
Scan module, capacitance when not touched for scanning capacitance touch key-press, using the capacitance scanning as this The base line capacitance value of capacitance touch button;
Setup module, for arranging the first capacitance threshold value and second capacitance threshold value of this capacitance touch button;Wherein, the first electric capacity Threshold value is bigger than the second capacitance threshold value;
Processing module, for obtaining the capacitance of the capacitance touch button that scan module scans, monitors this capacitance touch button Capacitance change, when the capacitance monitoring capacitance touch button is more than described first capacitance threshold value, and subsequently monitor To capacitance touch button capacitance be less than described second capacitance threshold value when, determine that capacitance touch button is triggered;
Setup module, is additionally operable to monitor capacitance variation when capacitance touch button is touched, takes maximum capacitor value therein to subtract Base line capacitance is gone to be worth to capacitive differential;Using the a% of described capacitive differential as described first capacitance threshold value;By described capacitance difference The b% of value is as described second capacitance threshold value;Wherein, a takes the value in the range of [60,90], and b takes the value in the range of [20,50];
This device also includes:Intervalometer;
Setup module, is additionally operable to, after timer expiry, obtain scan module and rescan all capacitance touch buttons obtaining Capacitance, when all capacitance touch buttons capacitance be both less than the second capacitance threshold value when, for each capacitance touch button, Obtain the capacitance of this capacitance touch button that scan module scans, using the capacitance scanning as this capacitance touch button Base line capacitance value.
5. device according to claim 4 it is characterised in that
Setup module, is additionally operable to arrange base line capacitance value upper threshold value and base line capacitance value lower threshold value according to base line capacitance value;Wherein, Base line capacitance value upper threshold value is more than base line capacitance value lower threshold value but is less than described second capacitance threshold value;
Setup module, is additionally operable in capacitance both less than the second capacitance threshold value scanning all capacitance touch buttons obtaining and big In described base line capacitance value upper threshold value, or the capacitance both less than described baseline scanning all capacitance touch buttons obtaining In the case of capacitance lower threshold value, obtain the capacitance that scan module rescans all capacitance touch buttons obtaining, work as institute When the capacitance having capacitance touch button is both less than the second capacitance threshold value, for each capacitance touch button, obtain scan module The capacitance of this capacitance touch button scanning, using the capacitance scanning as this capacitance touch button base line capacitance Value.
6. device according to claim 4 it is characterised in that
Processing module, the capacitance for obtaining multiple capacitance touch buttons in scan module scanning is more than the first capacitance threshold value When, choose the maximum capacitance touch button of capacitance as effective button;Determine that this effective button is triggered.
CN201310560180.4A 2013-11-12 2013-11-12 Method and apparatus for detecting whether capacitor touch button is triggered Active CN103607187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310560180.4A CN103607187B (en) 2013-11-12 2013-11-12 Method and apparatus for detecting whether capacitor touch button is triggered

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310560180.4A CN103607187B (en) 2013-11-12 2013-11-12 Method and apparatus for detecting whether capacitor touch button is triggered

Publications (2)

Publication Number Publication Date
CN103607187A CN103607187A (en) 2014-02-26
CN103607187B true CN103607187B (en) 2017-02-15

Family

ID=50125391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310560180.4A Active CN103607187B (en) 2013-11-12 2013-11-12 Method and apparatus for detecting whether capacitor touch button is triggered

Country Status (1)

Country Link
CN (1) CN103607187B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105361707B (en) * 2014-09-01 2017-11-10 佛山市顺德区美的电热电器制造有限公司 Electric cooking pot and its control method
CN104716944B (en) * 2015-03-30 2018-09-11 广东美的厨房电器制造有限公司 The triggering judgment method and household electrical appliance of touch key-press
CN105160843B (en) * 2015-08-04 2019-04-02 深圳Tcl数字技术有限公司 Non-contact control method and device based on remote terminal
CN105373253B (en) * 2015-10-20 2019-01-18 北京小鸟听听科技有限公司 A kind of temperature-compensation method and device of touch-key
CN105790747A (en) * 2016-02-25 2016-07-20 广东美的厨房电器制造有限公司 Touch key triggering detection method and triggering detection device
CN106059558B (en) * 2016-06-24 2019-07-09 苏州聚元微电子股份有限公司 The method and its touch recognition system of touch action can not be identified by solving touch key-press
CN106301325B (en) * 2016-08-11 2019-12-27 青岛海信电器股份有限公司 Touch identification method and device of capacitive touch key
CN106411310B (en) * 2016-10-31 2023-09-19 青岛海尔科技有限公司 Touch key, response method and system
CN106877854B (en) * 2017-02-09 2020-07-21 广东美的厨房电器制造有限公司 Detection method and detection device for touch keys and electrical equipment
CN107425839B (en) * 2017-07-28 2021-05-25 上海科世达-华阳汽车电器有限公司 Trigger test method and system for product containing capacitive sensor
CN107565947A (en) * 2017-08-22 2018-01-09 苏州瀚瑞微电子有限公司 A kind of detection method of capacitance sensing mechanism
CN108717335B (en) * 2018-05-21 2021-12-21 深圳和而泰智能控制股份有限公司 Anti-error detection method and device
CN111371462B (en) * 2018-12-26 2024-03-05 无锡飞翎电子有限公司 Anti-interference method and device for touch keys, electronic equipment and storage medium
CN111488083B (en) 2019-01-25 2023-03-31 瑞昱半导体股份有限公司 Capacitive touch detection device with self-calibration function
CN110166038A (en) * 2019-05-22 2019-08-23 重庆市大明汽车电器有限公司 Touch key control method and control system
CN110798193A (en) * 2019-10-28 2020-02-14 深圳市汇顶科技股份有限公司 Reference voltage updating method, MCU, touch control equipment and storage medium
CN113168258B (en) * 2019-10-30 2022-09-20 深圳市汇顶科技股份有限公司 Touch event detection method, MCU, touch device and storage medium
CN110971225A (en) * 2019-12-17 2020-04-07 珠海格力电器股份有限公司 Touch key anti-interference method and circuit

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101116375A (en) * 2005-11-16 2008-01-30 松下电器产业株式会社 Cooking device
CN102522975A (en) * 2011-11-29 2012-06-27 四川长虹电器股份有限公司 Adaptive-environmental touch key circuit and key touch detection method
CN103279243A (en) * 2013-06-06 2013-09-04 东莞博用电子科技有限公司 Adjacent key suppression method of capacitive touch keys
CN203278792U (en) * 2013-05-30 2013-11-06 深圳市祈锦通信技术有限公司 Structure capable of realizing switching function of mechanical key by means of capacitive touch detection chip

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013077556A (en) * 2011-09-12 2013-04-25 Futaba Corp Touch switch

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101116375A (en) * 2005-11-16 2008-01-30 松下电器产业株式会社 Cooking device
CN102522975A (en) * 2011-11-29 2012-06-27 四川长虹电器股份有限公司 Adaptive-environmental touch key circuit and key touch detection method
CN203278792U (en) * 2013-05-30 2013-11-06 深圳市祈锦通信技术有限公司 Structure capable of realizing switching function of mechanical key by means of capacitive touch detection chip
CN103279243A (en) * 2013-06-06 2013-09-04 东莞博用电子科技有限公司 Adjacent key suppression method of capacitive touch keys

Also Published As

Publication number Publication date
CN103607187A (en) 2014-02-26

Similar Documents

Publication Publication Date Title
CN103607187B (en) Method and apparatus for detecting whether capacitor touch button is triggered
JP6853215B2 (en) Detection and identification of touches of different sized conductive objects on capacitive buttons
US11449214B2 (en) 3D touch enabled gestures
US8773146B1 (en) Waterproof scanning of a capacitive sense array
US8169421B2 (en) Apparatus and method for detecting a touch-sensor pad gesture
US9268441B2 (en) Active integrator for a capacitive sense array
US9575602B1 (en) Multi-touch disambiguation
US8717302B1 (en) Apparatus and method for recognizing a gesture on a sensing device
CN104363012B (en) A kind of portable terminal device and implementation method that touch key-press is realized in capacitive touch screen side
US20140285469A1 (en) Predictive Touch Surface Scanning
US20150070297A1 (en) Control method for touch panel
KR20120051601A (en) Capacitive touch system with noise immunity
KR20140010859A (en) Gain correction for fast panel scanning
WO2016028387A1 (en) Providing a baseline capacitance for a capacitance sensing channel
CN103294381A (en) Electronic device and volume adjustment method thereof
KR101210991B1 (en) Touch-screen controller integrated circuit
CN205725972U (en) A kind of mobile phone capacitor touch button
CN106980423A (en) Self-capacitance touch-control and pressure-sensing device and self-capacitance touch-control and pressure sensing method
KR101204352B1 (en) Device and method for touch detection in a capacitive touch panel using constant current source
CN103019488A (en) Capacitive touch device, touch controller and touch identifying method
CN107562232A (en) A kind of plane mouse and the equipment with plane mouse

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant