CN102394622B - Capacitive touch key and key judging method thereof - Google Patents
Capacitive touch key and key judging method thereof Download PDFInfo
- Publication number
- CN102394622B CN102394622B CN201110274987.2A CN201110274987A CN102394622B CN 102394622 B CN102394622 B CN 102394622B CN 201110274987 A CN201110274987 A CN 201110274987A CN 102394622 B CN102394622 B CN 102394622B
- Authority
- CN
- China
- Prior art keywords
- sensor port
- port
- capacitor
- resistance
- discharge
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Electronic Switches (AREA)
Abstract
The invention relates to the technical field of manufacturing touch keys, in particular to a capacitive touch key and a key judging method thereof. The capacitive touch key comprises at least one induction port, a common port A, an MCU(Micro Control Unit) module with a timer and a charging/discharging circuit matched with the induction port, wherein one end of the charging/discharging circuit is connected with the common port A, the other end of the charging/discharging circuit is grounded, and the charging/discharging circuit is connected with one end of the induction port. The capacitive touch key is easy to realize, simple in structure and low in manufacturing cost. The key judging method of the capacitive touch key comprises the following steps of: (1), charging for gradually raising the level of the induction port until the input is high level detected at the induction port, obtaining a time t1; (2), discharging for gradually decreasing the level of the induction port until the input is low level detected at the induction port, obtaining a time t2; and (3), obtaining t1 and t2 for judging keys. The capacitive touch key has high accuracy, and can not result in that functions can not be realized due to damage of a mechanical structure and normal use of an electric appliance is influenced.
Description
Technical field
The present invention relates to touch key-press manufacturing technology field, be specifically related to a kind of capacitance type touch key and sub key method.
Background technology
Capacitance type touch key is very common at electronics and electric field, especially commonplace in household appliance technical field.Capacitance type touch key comprises a spring conventionally, between circuit board and guidance panel, and in confined state, thereby tight attended operation panel and circuit board transmit response message according to the variation of electric capacity on guidance panel.
The problem that prior art exists, complex structure, production cost is high, complex process.
Therefore,, for problems of the prior art, need badly and provide the technology of a kind of capacitance type touch key and sub key method particularly important.
Summary of the invention
The object of the invention is for the deficiencies in the prior art, provide a kind of simple in structure, the capacitance type touch key that production cost is low.
Another object of the present invention is for the deficiencies in the prior art, provides a kind of method simple, is easy to the sub key method realizing.
Object of the present invention is achieved through the following technical solutions.
A kind of capacitance type touch key, comprise at least one sensor port, public port A, be provided with the MCU module of timer, the charge-discharge circuit mating with sensor port, described charge-discharge circuit one end is connected with public port A, other end ground connection, charge-discharge circuit is connected with sensor port one end, described charge-discharge circuit comprises resistance R, capacitor C and contact, described resistance R one end is connected with public port A, the described resistance R other end, capacitor C one end, one end, contact are connected with described sensor port, described capacitor C other end ground connection.
Wherein, described sensor port comprises sensor port B and sensor port C, and described sensor port B, sensor port C are connected with the charge-discharge circuit matching respectively.
Wherein, described charge-discharge circuit comprises capacitor C 1, capacitor C 2, resistance R 1, resistance R 2, contact A, contact B, described resistance R 1 one end, resistance R 2 one end are connected with public port A, resistance R 1 other end, capacitor C 1 one end, contact A one end are connected with sensor port B, capacitor C 1 other end ground connection, resistance R 2 other ends, B one end, contact, capacitor C 2 one end are connected with sensor port C, capacitor C 2 other end ground connection.
Another object of the present invention, is achieved through the following technical solutions:
A sub key method for capacitance type touch key, comprises the following steps:
Step 1, public port A is set is low level, sensor port is high resistant input state, open the timer in MCU module, the public port A output high level even if exist side by side, now through resistance R, capacitor C is charged, sensor port level raises gradually, to sensor port, detects while being input as high level, stops timer and clocks and obtain time t1;
Step 2, it is high level that sensor port is set, public port A is high resistant input state, open the timer in MCU module, even if exist side by side, sensor port converts high resistant input state to, and now capacitor C is discharged through resistance R, and sensor port level reduces gradually, to sensor port, detect while being input as low level, stopping clocking obtains time t2;
Step 3, t1 and t2 are combined into a measuring period, and the time sum of the t1 while obtaining zero load and t2, when load, charge-discharge circuit detects, obtain t3 and t4, t3 and t4 and t1 and the contrast of t2 sum, if t3 and t4 are greater than t1 and t2, judge that button depresses, if t3 compares with t2 with t1 with t4, unchanged, judge that button do not depress.
Beneficial effect of the present invention:
A kind of capacitance type touch key, comprise at least one sensor port, public port A, be provided with the MCU module of timer, the charge-discharge circuit mating with sensor port, described charge-discharge circuit one end is connected with public port A, other end ground connection, charge-discharge circuit is connected with sensor port one end, described charge-discharge circuit comprises resistance R, capacitor C and contact, described resistance R one end is connected with public port A, the described resistance R other end, capacitor C one end, one end, contact are connected with described sensor port, described capacitor C other end ground connection.
Mechanical structure in the present invention compared to existing technology, easily realizes, simple in structure, low cost of manufacture.
A kind of sub key method of capacitance type touch key, comprise the following steps: step 1, public port A is set is low level, sensor port is high resistant input state, open the timer in MCU module, even if exist side by side, public port A output high level, now charges to capacitor C through resistance R, and sensor port level raises gradually, to sensor port, detect while being input as high level, stop timer and clock and obtain time t1; Step 2, sensor port is set is high level, public port A is high resistant input state, open the timer in MCU module, even if exist side by side, sensor port converts high resistant input state to, now capacitor C is discharged through resistance R, sensor port level reduces gradually, to sensor port, detects while being input as low level, stops timer and clocks and obtain time t2; Step 3, the t1 while obtaining zero load and the time sum of t2, when load, charge-discharge circuit detects, and obtains t3 and t4, the contrast of t3 and t4 and t1 and t2 sum, if t3 and t4 are greater than t1 and t2, judges that button depresses, if t3 compares with t2 with t1 with t4, unchanged, judge that button do not depress.
Mechanical compression method in the present invention compared to existing technology, is identified by circuit, and accuracy is high, can be because mechanical structure is damaged, and causing cannot practical function, affects the normal use of electrical equipment.
Accompanying drawing explanation
The invention will be further described to utilize accompanying drawing, but embodiment in accompanying drawing does not form any limitation of the invention.
Fig. 1 is the structural representation of a kind of capacitance type touch key of the present invention.
Embodiment
Below in conjunction with embodiment, the present invention is elaborated.
embodiment 1
As shown in Figure 1, there is shown, a kind of capacitance type touch key, comprise at least one sensor port, public port A, be provided with the MCU module of timer, the charge-discharge circuit mating with sensor port, described charge-discharge circuit one end is connected with public port A, other end ground connection, charge-discharge circuit is connected with sensor port one end, described charge-discharge circuit comprises resistance R, capacitor C and contact, described resistance R one end is connected with public port A, the described resistance R other end, capacitor C one end, one end, contact are connected with described sensor port, described capacitor C other end ground connection.
Mechanical structure in the present invention compared to existing technology, easily realizes, simple in structure, low cost of manufacture.
Wherein, described sensor port comprises sensor port B and sensor port C, and described sensor port B, sensor port C are connected with the charge-discharge circuit matching respectively.The present invention can arrange a plurality of sensor port, can realize multiple point touching induction.
Wherein, described charge-discharge circuit comprises capacitor C 1, capacitor C 2, resistance R 1, resistance R 2, contact A, contact B, described resistance R 1 one end, resistance R 2 one end are connected with public port A, resistance R 1 other end, capacitor C 1 one end, contact A one end are connected with sensor port B, capacitor C 1 other end ground connection, resistance R 2 other ends, B one end, contact, capacitor C 2 one end are connected with sensor port C, capacitor C 2 other end ground connection.
Embodiment 2
A sub key method for capacitance type touch key, comprises the following steps:
Step 1, public port A is set is low level, sensor port is high resistant input state, open the timer in MCU module, the public port A output high level even if exist side by side, now through resistance R, capacitor C is charged, sensor port level raises gradually, to sensor port, detects while being input as high level, stops timer and clocks and obtain time t1;
Step 2, it is high level that sensor port is set, public port A is high resistant input state, open the timer in MCU module, even if exist side by side, sensor port converts high resistant input state to, and now capacitor C is discharged through resistance R, and sensor port level reduces gradually, to sensor port, detect while being input as low level, stopping clocking obtains time t2;
Step 3, t1 and t2 are combined into a measuring period, and the time sum of the t1 while obtaining zero load and t2, when load, charge-discharge circuit detects, obtain t3 and t4, t3 and t4 and t1 and the contrast of t2 sum, if t3 and t4 are greater than t1 and t2, judge that button depresses, if t3 compares with t2 with t1 with t4, unchanged, judge that button do not depress.
Detect respectively each sensor port capacitance variations, can realize many induction points touch recognition.
Finally should be noted that; above embodiment is only in order to illustrate technical scheme of the present invention but not limiting the scope of the invention; although the present invention is explained in detail with reference to preferred embodiment; those of ordinary skill in the art is to be understood that; can modify or be equal to replacement technical scheme of the present invention, and not depart from essence and the scope of technical solution of the present invention.
Claims (4)
1. a capacitance type touch key, it is characterized in that: comprise at least one sensor port, discharge and recharge public port A, be provided with the MCU module of timer, the charge-discharge circuit mating with sensor port, described charge-discharge circuit one end with discharge and recharge public port A and be connected, other end ground connection, charge-discharge circuit is connected with sensor port one end, described charge-discharge circuit comprises resistance R, capacitor C and contact, described resistance R one end with discharge and recharge public port A and be connected, the described resistance R other end, capacitor C one end, one end, contact is connected with described sensor port, described capacitor C other end ground connection.
2. a kind of capacitance type touch key according to claim 1, is characterized in that: described sensor port comprises sensor port B and sensor port C, and described sensor port B, sensor port C are connected with the charge-discharge circuit matching respectively.
3. a kind of capacitance type touch key according to claim 2, it is characterized in that: described charge-discharge circuit comprises capacitor C 1, capacitor C 2, resistance R 1, resistance R 2, contact A, contact B, described resistance R 1 one end, resistance R 2 one end and discharge and recharge public port A and be connected, resistance R 1 other end, capacitor C 1 one end, contact A one end are connected with sensor port B, capacitor C 1 other end ground connection, resistance R 2 other ends, B one end, contact, capacitor C 2 one end are connected with sensor port C, capacitor C 2 other end ground connection.
4. a sub key method for capacitance type touch key according to claim 1, is characterized in that: comprise the following steps:
It is low level that step 1, setting discharge and recharge public port A, sensor port is high resistant input state, open the timer in MCU module, even if exist side by side, discharge and recharge public port A output high level, now through resistance R, capacitor C is charged, sensor port level raises gradually, to sensor port, detects while being input as high level, stops timer and clocks and obtain time t1;
Step 2, sensor port is set is high level, discharging and recharging public port A is high resistant input state, open the timer in MCU module, even if exist side by side, sensor port converts high resistant input state to, discharge and recharge public port A and be converted to low level, now capacitor C is discharged through resistance R, and sensor port level reduces gradually, to sensor port, detect while being input as low level, stopping clocking obtains time t2;
Step 3, t1 and t2 are combined into a measuring period, the time sum of t1 while obtaining zero load and t2, when load, charge-discharge circuit detects, and obtains t3 and t4, t3 and t4 and t1 and the contrast of t2 sum, if t3 and t4 are greater than t1 and t2, judge that button depresses, if t3 compares with t2 with t1 with t4, unchanged, judge that button do not depress.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110274987.2A CN102394622B (en) | 2011-09-16 | 2011-09-16 | Capacitive touch key and key judging method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110274987.2A CN102394622B (en) | 2011-09-16 | 2011-09-16 | Capacitive touch key and key judging method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102394622A CN102394622A (en) | 2012-03-28 |
CN102394622B true CN102394622B (en) | 2014-03-19 |
Family
ID=45861835
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110274987.2A Expired - Fee Related CN102394622B (en) | 2011-09-16 | 2011-09-16 | Capacitive touch key and key judging method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102394622B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103389802B (en) * | 2013-07-29 | 2017-11-10 | Tcl集团股份有限公司 | Multi-chip compatibility method, device and electric equipment based on capacitance type touch key |
CN104184448B (en) * | 2014-07-31 | 2017-07-21 | 松下家电研究开发(杭州)有限公司 | Prevent control method and electrical appliance that capacitance type touch key flase drop is known |
CN105306038A (en) * | 2015-11-02 | 2016-02-03 | 浙江漫思网络科技有限公司 | Capacitive sensing touch control key and key judging method thereof |
CN109254699A (en) * | 2018-08-28 | 2019-01-22 | 苏州金螳螂文化发展股份有限公司 | A kind of touch sensible detection method and system |
CN114221644B (en) * | 2022-02-22 | 2023-08-29 | 杭州炬源智能科技有限公司 | Intelligent water meter with touch keys and detection method of touch keys |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201167310Y (en) * | 2008-01-30 | 2008-12-17 | 宁波海诚电器有限公司 | Human body induction type touch key-press circuit for air conditioner |
CN201238405Y (en) * | 2008-05-01 | 2009-05-13 | 美的集团有限公司 | Touch control induction circuit of induction cooker |
CN101499793A (en) * | 2008-01-31 | 2009-08-05 | 杭州利尔达科技有限公司 | Capacitor induction type touch press-key based on MCU and measuring method for touch press-key capacitance |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
SE0202715D0 (en) * | 2002-09-12 | 2002-09-12 | Goeran Hansson | Capacitive clamp protection |
-
2011
- 2011-09-16 CN CN201110274987.2A patent/CN102394622B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201167310Y (en) * | 2008-01-30 | 2008-12-17 | 宁波海诚电器有限公司 | Human body induction type touch key-press circuit for air conditioner |
CN101499793A (en) * | 2008-01-31 | 2009-08-05 | 杭州利尔达科技有限公司 | Capacitor induction type touch press-key based on MCU and measuring method for touch press-key capacitance |
CN201238405Y (en) * | 2008-05-01 | 2009-05-13 | 美的集团有限公司 | Touch control induction circuit of induction cooker |
Also Published As
Publication number | Publication date |
---|---|
CN102394622A (en) | 2012-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102394622B (en) | Capacitive touch key and key judging method thereof | |
CN102273075B (en) | Capacitative sensor system | |
CN104104375B (en) | Strengthen the method and circuit of the anti-mobile phone interference of capacitance type touch key | |
CN104794433A (en) | Fingerprint recognition system and fingerprint recognition method | |
CN203117298U (en) | Capacitance detection circuit | |
CN105580279B (en) | Multi-channel capacitive divider scan method and equipment | |
CN104599884B (en) | Magnetic suspension keyboard that a kind of spring curve is variable and method of work thereof | |
CN100550634C (en) | A kind of control board transducer and display device | |
CN100566164C (en) | A kind of high precision capacitance touching induction control circuit framework | |
CN105094590A (en) | Motion sensor | |
CN102185604A (en) | Differential detection circuit for capacitive touch | |
CN101626246B (en) | Touch-control method and touch-control device | |
CN103823598A (en) | Touch sensing circuit and touch sensing method | |
CN104092458A (en) | Touch key signal detection method and circuit based on mutual capacitance | |
CN103051754A (en) | Mobile terminal and charging method | |
CN209198902U (en) | Metal touch module and electric appliance | |
WO2017197574A1 (en) | Capacitance detection device | |
CN101847070B (en) | Capacitance change detection module taking electric signal change time as detection target | |
CN104184449A (en) | Capacitive touch control apparatus, method, and system | |
CN105306038A (en) | Capacitive sensing touch control key and key judging method thereof | |
CN101783669A (en) | Capacitance type touch press key and judging method thereof | |
CN111106820B (en) | Touch key control system and control method thereof | |
CN105024681A (en) | Touch detection circuit capable of adjusting sensitivity and range | |
CN101907961A (en) | Realizing method of capacitance type inductive key, inductive key circuit and keyboard | |
CN202889317U (en) | Capacitance type touch key circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140319 Termination date: 20150916 |
|
EXPY | Termination of patent right or utility model |