CN102868392B - Portability key circuit - Google Patents
Portability key circuit Download PDFInfo
- Publication number
- CN102868392B CN102868392B CN201110188260.2A CN201110188260A CN102868392B CN 102868392 B CN102868392 B CN 102868392B CN 201110188260 A CN201110188260 A CN 201110188260A CN 102868392 B CN102868392 B CN 102868392B
- Authority
- CN
- China
- Prior art keywords
- access unit
- press
- electrically connected
- transplantable
- button
- 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
Links
Landscapes
- Electronic Switches (AREA)
Abstract
The invention discloses a portability key circuit which comprises a central control chip, a power supply, a pull-up resistor and a plurality of divider resistors with different resistances, wherein the plurality of divider resistors are connected with each other in parallel; parallel-connected ends of the plurality of divider resistors are electrically connected with the pull-up resistor and an AD (analog-to-digital) port of the central control chip; the portability key circuit is characterized by further comprising a universal key access unit, wherein the universal key access unit is electrically connected with the other ends of the plurality of divider resistors. The universal key access unit is used for acquiring information of touch keys or key switches; and the portability key circuit has the characteristics of good portability and circuit cost saving.
Description
Technical field
The present invention relates to a kind of Transplantable button circuit, relate in particular to a kind of for the key circuit on the household electrical appliance such as water heater, burnt gas wall hanging furnace, smoke exhaust ventilator, gas-cooker, disinfection cabinet.
Background technology
In existing household electrical appliance, key circuit is widely used on all kinds of display control board assemblies, and wherein touch key-press, as the new interface of one of man-machine interaction, has wide application space and the market demand.In existing key circuit, common key switch need to be realized by different circuit structures from touch key-press switch, if must carry out wiring again to circuit therefore need to change common key-press switching circuit into touch key-press switch time, thereby there is portable poor, the relatively high defect of circuit cost, in order to overcome these defects, portable key circuit is developed.
Summary of the invention
Technical problem to be solved by this invention is that a kind of Transplantable button circuit will be provided, and has stronger portability, feature that circuit cost is low.
The technical scheme that the present invention solves its technical problem employing is: it comprises center-control chip, power supply, the pull-up resistor divider resistance different with some resistances, described some divider resistances are connected in parallel to each other, the parallel connected end of some divider resistances is electrically connected with the AD mouth of pull-up resistor and center-control chip, it is characterized in that it also comprises general button access unit, described general button access unit is electrically connected with the other end of some divider resistances, and described general button access unit will be for gathering touch key-press or key switch information.
Described general button access unit comprises power vd D, touch chip IC 1, resistance R 4, capacitor C 4, the current limliting filter branch identical with touch key-press quantity, one end of described current limliting filter branch is electrically connected with touch key-press, the other end is electrically connected with the CS mouth that touches chip IC 1, touching the output of chip IC 1 and the other end of several divider resistances is electrically connected, described limiting filter circuit comprises current-limiting resistance in parallel and filter capacitor, described resistance R 4 one end are electrically connected with the RBIAS mouth that touches chip IC 1, other end ground connection, described capacitor C 4 is connected on the two poles of the earth of power vd D.
Described general button access unit comprises the key switch identical with divider resistance quantity, one end ground connection of described key switch, and the other end is electrically connected with the other end of described some divider resistances.
Described general button access unit is positioned on display control board.
Described key switch and the quantity of touch key-press are 2~7.
Described power vd D is 3~5V.
The beneficial effect that the present invention compared with the existing technology produced: owing to inventing the structure that adopts general button place in circuit to be electrically connected with the other end of some divider resistances, thereby in the time changing common key-press switch into touch key-press switch, only the output of touch key-press switch place in circuit need be connected with the other end of some divider resistances, without the wiring that changes primary circuit, thereby have the advantages that portability is good, save circuit development cost.
Further, because general button access unit is touch key-press treatment circuit, multiple buttons only need and touch chip by multiple limiting filter circuits and just can process touch key-press information, and in the time increasing or reduce number of keys, only need correspondingly increase or reduce the number of current limliting filter branch, thereby there is simple, the portable strong feature of circuit.
Further, the structure that adopts multiple key switches to be electrically connected with multiple divider resistances respectively due to general button access unit, and in the time increasing or reduce number of keys, only need correspondingly increase or reduce the number of divider resistance, thereby there is simple, the portable strong feature of circuit.
Brief description of the drawings: Fig. 1 is circuit theory diagrams of the present invention.
Fig. 2 is a kind of embodiment circuit diagram of the present invention.
Fig. 3 is another kind of embodiment circuit diagram of the present invention.
Fig. 4 is workflow diagram of the present invention.
Fig. 5 is the workflow diagram of general button access unit 3 in Fig. 2.
Embodiment: referring to accompanying drawing 1, the present invention includes center-control chip 2, general button access unit 3, power supply, the pull-up resistor divider resistance different with some resistances, described some divider resistances are connected in parallel to each other, the parallel connected end of some divider resistances is electrically connected with the AD mouth of pull-up resistor and center-control chip 2, general button access unit 3 is electrically connected with the other end of some divider resistances, and general button access unit 3 is for gathering touch key-press or common key switch information.
Referring to accompanying drawing 2, the touch key-press quantity of the present embodiment is 3, the present embodiment comprises 3 touch key-presss 1, central processing element 2, general button access unit 3, resistance R 5, pull-up resistor R6, divider resistance R7, R8, R9, capacitor C 5, power vd D, divider resistance R7, R8, three dividing potential drop branch roads of R9 formation in parallel, and divider resistance R7, R8, the resistance of R9 is different, mainly obtain different magnitudes of voltage by different resistances, pull-up resistor R6 is mainly used in the effect of drawing high, capacitor C 5 is connected between the AD mouth and earth terminal of center-control chip 2, for filtering, capacitor C 5 is positioned near center-control chip 2 simultaneously, can reduce because the circuit between C5 and center-control chip 2 may produce coupled interference again, center-control chip 2 is the single-chip microcomputer with AD mouth, model can be: PIC16F73 or PIC16F883 or PIC16F884 or PIC16F886.General button access unit 3 comprises resistance R 1, R2, R3, R4, capacitor C 1, C2, C3, C4, power vd D and touch chip IC 1, resistance R 1 and capacitor C 1 compose in parallel a current limliting filter branch, the parallel end connection of resistance R 1 and C1 is to the CS1 port (input) that touches chip, the other end of resistance R 1 is electrically connected with touch key-press 1, the other end ground connection of capacitor C 1, resistance R 2 and capacitor C 2 in parallel, resistance R 3 and capacitor C 3 form respectively current limliting filter branch, resistance R 4 is electrically connected with the RBIAS port (adjustment of sensitivity port) that touches chip IC 1, other end ground connection, resistance R 4 is pull down resistor, effective in the time of low level, the two ends that are connected on power vd D of capacitor C 4, capacitor C 4 is filter capacitor, the model of described touch chip IC 1 is: TS04 or TS06 or TS08 or TS16, power vd D touches the required voltage of chip IC 1, power vd D is 3~5V, thereby can reduce like this power consumption and reduce circuit cost.
The quantity of touch key-press 1 also can be 2~7, in the time that touch key-press number is 2, only need reduce in the above-described embodiments a limiting filter circuit branch road and a divider resistance in general button access unit 3, and in the time that key number n is greater than 3, only need increase in the above-described embodiments (n-3) bar limiting filter circuit branch road and (n-3) individual divider resistance, select the model that in touch chip IC 1, input port is key number simultaneously.
Accompanying drawing 3 is made up of several common key switches 4 for general button access unit 3, one end ground connection of key switch 4, the other end is connected with the other end of divider resistance, in the time that any common key switch 4 is pressed, divider resistance, pull-up resistor and the power vd D of these key switch 4 correspondences form loop, thereby the parallel connected end at divider resistance forms a magnitude of voltage, contrasts thereby the AD mouth of central processing element 2 samples the magnitude of voltage of this magnitude of voltage and inner setting the function that realizes button.The quantity of the common key-press switch 4 of the present embodiment is 3, the quantity of key switch button 4 also can be 2~7, in the time that key switch number is 2, only need reduce in the above-described embodiments by a divider resistance, and in the time that key number n is greater than 3, only need increase in the above-described embodiments (n-3) individual divider resistance.
Center-control chip 2, pull-up resistor R6, divider resistance R7, R8, R9, capacitor C 5, power vd D are arranged on control board, general button access unit 3 can be arranged in master board, also can be arranged on display control board, in the time being arranged on display control board, in the time that general button access unit 3 is changed to touch key-press by common key switch, only the touch key-press unit being arranged on display panel need be connected with center-control chip by wire, can conveniently process like this.
Referring to accompanying drawing 4, the present invention starts from step 200, then enters step 201: initialization setting, central control chip 2 and touch chip IC 1 are carried out to initialization setting, then enter step 202: keyboard scan, start to scan each pin of center-control chip 2, in step 203, if do not have button to press, just enter step 204: counter is carried out to zero clearing processing and then get back to step 202, if while having button to press (the AD mouth that center-control chip 2 detected has input signal), enter step 205, be that counter just starts to start to add 1 by 0, according to the length of time (generally calculating with Millisecond), button continues not put, and counter just continues to add 1, then enter step 206, if when in counter, counting is less than N, the present embodiment N is 2, enters step 204, in the time that counting in counter is more than or equal to N, center-control chip 2 judges that this button is not that shake is pressed for having a mind to press, multiple scanning like this, can remove the unnecessary erroneous judgement such as shake-up and buffeting action, enter step 207: carry out A/D conversion, be discrete digital value by the analog voltage consolidation of different range section, then enter step 208, judge whether A/D conversion is complete, if do not change complete, get back to step 207, if change complete, enter step 209, judge whether to change N1 time that arranges, in the present embodiment, N1 is 25, if also do not reach N1 time of setting, get back to step 207, otherwise enter step 210, get the mean value of N1 time, can reduce like this interference of flow-disturbing to level on circuit, reduce the False Rate of center-control chip 2 to keypress function.Then enter step 211, by the digital quantity corresponding with the function key of setting in center-control chip 2 of the digital quantity after conversion contrasted, then enter step 212, realize the function of this button according to the button of judging, finally enter step 213: process ends.
Referring to accompanying drawing 5, the course of work that in the present invention, general button access unit 3 is touch key-press processing unit: step 300: after powering on, enter step 301: touch chip IC 1 and adjust standard frequency, in step 302, human body (electrified body) touches touch spring, and capacitance voltage changes, thereby in step 303: lower than standard frequency, frequency declines, output low level; In step 304: when human body (electrified body) leaves, capacitance voltage changes, and causes step 305: higher than standard frequency, frequency rises, output high level; Step 307: level declines and is considered a touch action with this process that rises, if button is invalid, enters step 306, search rate again, and get back to step 302 after contrasting with standard frequency; If button is effective, enter step 308: touch chip IC 1 in corresponding output port OUT output control signal, this control signal is low level signal.Then enter step 309: corresponding divider resistance, pull-up resistor R6 and the power vd D of output port of output low level signal forms loop, thereby form analog voltage on the contact of divider resistance and pull-up resistor R6, because the resistance of divider resistance is different, thereby the magnitude of voltage that different delivery outlets is corresponding different, enter step 310: center-control chip carries out AD conversion, ends at step 311.
The course of work of the workflow of the present invention in the time that the quantity of touch key-press 1 and key switch 4 is 2~7, general button access unit 3 is the same with the course of work described in above-mentioned accompanying drawing 4 and accompanying drawing 5.
Claims (8)
1. a Transplantable button circuit, it comprises center-control chip (2), power supply, the divider resistance that pull-up resistor is different with some resistances, described some divider resistances are connected in parallel to each other, the parallel connected end of some divider resistances is electrically connected with the AD mouth of pull-up resistor and center-control chip (2), it is characterized in that it also comprises dual-purpose button access unit (3), described dual-purpose button access unit (3) is electrically connected with the other end of some divider resistances, described dual-purpose button access unit (3) will be for gathering touch key-press or push switch information, while being used for gathering touch key-press information, described dual-purpose button access unit (3) comprises power vd D, touch chip IC 1, resistance R 4, capacitor C 4, the current limliting filter branch identical with touch key-press (1) quantity, one end of described current limliting filter branch is electrically connected with touch key-press (1), the other end is electrically connected with the CS mouth that touches chip IC 1, touching the output of chip IC 1 and the other end of several divider resistances is electrically connected, described limiting filter circuit comprises current-limiting resistance in parallel and filter capacitor, described resistance R 4 one end are electrically connected with the RBIAS mouth that touches chip IC 1, other end ground connection, described capacitor C 4 is connected on the two poles of the earth of power vd D, while being used for gathering push switch information, described dual-purpose button access unit (3) comprises the push switch identical with divider resistance quantity (4), one end ground connection of described push switch (4), the other end is electrically connected with the other end of described some divider resistances.
2. Transplantable button circuit according to claim 1, is characterized in that described dual-purpose button access unit (3) is positioned on display control board.
3. Transplantable button circuit according to claim 1, is characterized in that described touch key-press (1) and the quantity of push switch (4) are 2~7.
4. Transplantable button circuit according to claim 2, is characterized in that described touch key-press (1) and the quantity of push switch (4) are 2~7.
5. Transplantable button circuit according to claim 1, is characterized in that described power vd D is 3~5V.
6. Transplantable button circuit according to claim 1, is characterized in that the model of described center-control chip (2) is: PIC16F73 or PIC16F883 or PIC16F884 or PIC16F886.
7. Transplantable button circuit according to claim 2, is characterized in that the model of described center-control chip (2) is: PIC16F73 or PIC16F883 or PIC16F884 or PIC16F886.
8. Transplantable button circuit according to claim 1, is characterized in that described dual-purpose button access unit (3) is when gathering touch key-press information, and the model that touches chip IC 1 is: TS04 or TS06 or TS08 or TS16.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110188260.2A CN102868392B (en) | 2011-07-06 | 2011-07-06 | Portability key circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110188260.2A CN102868392B (en) | 2011-07-06 | 2011-07-06 | Portability key circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102868392A CN102868392A (en) | 2013-01-09 |
CN102868392B true CN102868392B (en) | 2014-11-26 |
Family
ID=47447028
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110188260.2A Active CN102868392B (en) | 2011-07-06 | 2011-07-06 | Portability key circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102868392B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104080234B (en) * | 2013-03-28 | 2016-08-17 | 赛尔富电子有限公司 | A kind of touch key-press integral LED driver |
CN104461035B (en) * | 2014-11-10 | 2017-06-20 | 深圳市元征科技股份有限公司 | Many buttons can be processed while the MCU keyboard circuits pressed and its implementation |
CN106452453A (en) * | 2016-09-23 | 2017-02-22 | 中国地质大学(武汉) | Row/column matrix keyboard interface circuit and row/column matrix keyboard scanning method |
CN106936443A (en) * | 2017-04-25 | 2017-07-07 | 航天科技控股集团股份有限公司 | The control circuit of multiple key switches is controlled with A/D modes |
CN108768372B (en) * | 2018-05-04 | 2022-04-22 | 京东方科技集团股份有限公司 | Key circuit, printed circuit board and display device |
CN109859978B (en) * | 2019-03-14 | 2024-05-31 | 北京福田戴姆勒汽车有限公司 | Rocker switch and vehicle with same |
CN110244874A (en) * | 2019-06-17 | 2019-09-17 | 深圳创维-Rgb电子有限公司 | A kind of voltage conversion system, method, electronic equipment and storage medium |
CN113055780B (en) * | 2021-04-02 | 2023-03-07 | 广东朝阳电子科技股份有限公司 | Parallel input port expansion circuit sharing temperature detection port of Bluetooth headset |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201178046Y (en) * | 2007-12-29 | 2009-01-07 | 深圳和而泰智能控制股份有限公司 | Press-key array |
CN101795139A (en) * | 2010-01-27 | 2010-08-04 | 中山市嘉科电子有限公司 | Method and circuit for detecting press key |
CN101800557A (en) * | 2009-02-10 | 2010-08-11 | 阿尔派株式会社 | Key input device and key input identification method thereof |
CN201577081U (en) * | 2009-12-18 | 2010-09-08 | 宁波舜韵电子有限公司 | Capacitive touch induction key circuit |
CN201797503U (en) * | 2010-08-26 | 2011-04-13 | 深圳市瑞来宝科技有限公司 | Touch key of partial pressure capacitor |
CN201859203U (en) * | 2010-11-03 | 2011-06-08 | 中航华东光电有限公司 | Key detection circuit of a singlechip or microprocessor with an analog-digital converter |
CN202210787U (en) * | 2011-07-06 | 2012-05-02 | 广东万和新电气股份有限公司 | Transplantable button circuit |
-
2011
- 2011-07-06 CN CN201110188260.2A patent/CN102868392B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201178046Y (en) * | 2007-12-29 | 2009-01-07 | 深圳和而泰智能控制股份有限公司 | Press-key array |
CN101800557A (en) * | 2009-02-10 | 2010-08-11 | 阿尔派株式会社 | Key input device and key input identification method thereof |
CN201577081U (en) * | 2009-12-18 | 2010-09-08 | 宁波舜韵电子有限公司 | Capacitive touch induction key circuit |
CN101795139A (en) * | 2010-01-27 | 2010-08-04 | 中山市嘉科电子有限公司 | Method and circuit for detecting press key |
CN201797503U (en) * | 2010-08-26 | 2011-04-13 | 深圳市瑞来宝科技有限公司 | Touch key of partial pressure capacitor |
CN201859203U (en) * | 2010-11-03 | 2011-06-08 | 中航华东光电有限公司 | Key detection circuit of a singlechip or microprocessor with an analog-digital converter |
CN202210787U (en) * | 2011-07-06 | 2012-05-02 | 广东万和新电气股份有限公司 | Transplantable button circuit |
Also Published As
Publication number | Publication date |
---|---|
CN102868392A (en) | 2013-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102868392B (en) | Portability key circuit | |
CN102522975B (en) | Adaptive-environmental touch key circuit and key touch detection method | |
KR20140146597A (en) | System and method to share electrodes between capacitive touch controller and gesture detection device | |
CN103472752A (en) | Infrared multiple-gear hand gesture recognition switch and infrared multiple-gear hand gesture recognition method | |
CN106130795A (en) | A kind of intelligent domestic system | |
CN105425927B (en) | More key reset circuits and electronic product with reset key | |
CN202210787U (en) | Transplantable button circuit | |
CN101907961B (en) | Realizing method of capacitance type inductive key, inductive key circuit and keyboard | |
CN200956611Y (en) | Keyboard detecting circuit and television receiver with same | |
CN105306038A (en) | Capacitive sensing touch control key and key judging method thereof | |
CN203708214U (en) | One button-type control circuit and display equipment | |
CN102487277A (en) | Inductor and induction method | |
CN103019574A (en) | Electronic device and method for adding operation interfaces | |
CN107295333B (en) | A kind of display equipment and its control method | |
CN104992635A (en) | Touch control nixie tube | |
CN205794802U (en) | A kind of electronic cigarette with capacitance technology | |
CN205232189U (en) | Touch circuit | |
CN205644068U (en) | Intelligent watch | |
CN201467099U (en) | Capacitive sensing key circuit and keyboard | |
CN205017293U (en) | Electric capacity response touch key | |
CN203278792U (en) | Structure capable of realizing switching function of mechanical key by means of capacitive touch detection chip | |
CN114487784A (en) | Capacitance detection circuit, touch chip and electronic equipment | |
CN205302176U (en) | Many buttons reset circuit and have electronic product of button that resets | |
CN206542389U (en) | A kind of capacitance touch button detects circuit | |
CN204832862U (en) | Touch button's jam -proof 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |