CN208836106U - A kind of touch button device - Google Patents

A kind of touch button device Download PDF

Info

Publication number
CN208836106U
CN208836106U CN201821669417.7U CN201821669417U CN208836106U CN 208836106 U CN208836106 U CN 208836106U CN 201821669417 U CN201821669417 U CN 201821669417U CN 208836106 U CN208836106 U CN 208836106U
Authority
CN
China
Prior art keywords
touch
switch
channel
counter
button device
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
CN201821669417.7U
Other languages
Chinese (zh)
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.)
Hunan Teng Electronic Technology Co Ltd
Original Assignee
Hunan Teng Electronic Technology 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 Hunan Teng Electronic Technology Co Ltd filed Critical Hunan Teng Electronic Technology Co Ltd
Priority to CN201821669417.7U priority Critical patent/CN208836106U/en
Application granted granted Critical
Publication of CN208836106U publication Critical patent/CN208836106U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The utility model discloses a kind of touch button devices comprising touch key-press module and MCU, wherein touch key-press module is used to touch channel capacitor and is converted to the numerical value determined, and the numerical value changes with the variation for touching channel capacitor;MCU is connected to the touch key-press module, and the time of conversion is opened for controlling touch key-press module, reads after converting and saves the numerical value, then handled according to the variation of the numerical value, judge whether touch key-press is effective.The touch button device structure of the utility model is simple, realizes and is easy, and energy sensitivity adjust automatically increases the reliability and accuracy of touch to improve the sensitivity of touch key-press.

Description

A kind of touch button device
Technical field
The utility model relates to touch key-press fields, it particularly relates to a kind of touch button device.
Background technique
With the continuous development of electronic science and technology, capacitance type touch key has been increasingly being applied to various electronics In product design.The circuit of tradition machinery key-press input mode is complicated, and be prone to wear, service life it is short, and capacitive touch The shortcomings that touching key technology circuit to be simple and convenient to operate, and sensitive and accurate, compensating for mechanical key well and deficiency.
Usually there are multiple touch channels in capacitance type touch key application, these channels are collected by cabling on circuit boards To touch control device.It is influenced by shape of product and components' placement, track lengths, the surrounding enviroment in each channel can have difference Different, the parasitic capacitance so as to cause each channel is inconsistent.Because touching, channel parasitic capacitance is inconsistent, even if channel Induction electrode size shape is consistent, and the panel material thickness covered on electrode is identical, and each sensitivity for touching channel also can be different It causes.
The sensitivity that usually adjustment touches channel has hardware and software two ways: (1) hardware mode is as shown in Figure 1, i.e. The capacitor element connected on touching channel to ground can by increasing the capacitor element of different suitable capacitances on each channel Capacitor total on each channel is adjusted to identical, so that its sensitivity is consistent, (Crn is channel n parasitic capacitance, and Cn is channel n Increased capacitor element);(2) software mode is the suitable key activation threshold value different to each touch path setting, can be made Each channel sensitivity is consistent.
However, hardware mode needs to increase component, it is unfavorable to cost control;Software mode needs to rewrite touch control dress Set the setting value of internal processes.And two ways requires the debugging of iteration repeatedly in practical applications, could be each touch Channel sensitivity is adjusted to unanimously, the very big difficulty for increasing touching application.
For the problems in the relevant technologies, currently no effective solution has been proposed.
Utility model content
For above-mentioned technical problem in the related technology, the utility model proposes a kind of touch button devices, being capable of basis The reference of setting touches channel and refers to activation threshold value, is then calculated according to the base value in each channel and reference channel activation threshold value And other activation threshold values for touching channel are set, make each touch channel sensitivity adjust automatically to be consistent.
To realize the above-mentioned technical purpose, the technical solution of the utility model is achieved in that
A kind of touch button device, which is characterized in that including touch key-press module and MCU (microprocessor), wherein described Touch key-press module is used to touch channel capacitor and is converted to the numerical value determined, and the numerical value is with the change for touching channel capacitor Change and changes;The MCU is connected to the touch key-press module, and the time of conversion is opened for controlling touch key-press module, turns It reads after the completion of changing and saves the numerical value, then handled according to the variation of the numerical value, judge whether touch key-press has Effect.
Further, the touch key-press module include switch module, comparator comp, 16 counter counter, Clock generator CLK_GEN, the output end of the switch module are connected to the reverse input end of the comparator comp, the ratio Positive input compared with device comp connects supply voltage Vc, and the output end of the comparator comp is connected to the counter The enable end of counter, the clock generator CLK_GEN provide clock signal, the counting for the counter counter The output end of device counter is connected to the MCU.
Further, the switch module includes: first switch Φ 1, second switch Φ 2, third switch Φ 3, touches and lead to Road capacitor Cx and external reference capacitance Cmod;One end of the first switch Φ 1 connects reference voltage VREF, the other end is connected to One end of the top crown for touching channel capacitor Cx and the second switch Φ 2;The other end of the second switch Φ 2 connects To one end of the third switch Φ 3 and the top crown of the external reference capacitance Cmod;Under the touch channel capacitor Cx The bottom crown of pole plate, the other end of the third switch Φ 3 and the external reference capacitance Cmod is grounded;The external reference The top crown of capacitor Cmod is connected to the reverse input end of the comparator comp.
Further, when third switch Φ 3 is connected, the voltage drop of external reference capacitance Cmod is as low as GND, subsequent third Switch Φ 3 is disconnected;Then first switch Φ 1 is connected, and touches voltage on channel capacitor Cx and rises to reference voltage VREFIt first opens afterwards It closes Φ 1 to disconnect, then second switch Φ 2 is connected, and charge is shared with external reference capacitance Cmod on touch channel capacitor Cx reaches Second switch Φ 2 is disconnected after identical voltage, and the counter counter is started counting at the same time;Process above is repeated, outside Connecing voltage on reference capacitance Cmod can continue to rise, and comparator comp is overturn when rising to Vc, and counter counter is enabled to close It closes.
Further, it when finger touches, touches channel capacitor Cx capacitance and increases, equivalent resistance RCxResistance value reduces, Voltage can rise to Vc faster on external reference capacitance Cmod, shorten so that counting enabled effective time, count value reduces.
Further, the switch module has n touch channel, and each touch channel all has first switch (TH1 Φ 1 ... THn Φ 1), second switch (TH1 Φ 2 ... THn Φ 2) and touch channel capacitor (Cr1 ... Crn), wherein n be more than or equal to 1 Positive integer.
The utility model has the beneficial effects that the touch button device structure of the utility model is simple, realizes and be easy, passes through this The device of utility model can touch channel according to the reference of setting and refer to activation threshold value, then according to the base value in each channel Other activation threshold values for touching channel are calculated and be arranged with reference channel activation threshold value, adjust each touch channel sensitivity automatically It is whole to be consistent, to improve the sensitivity of touch key-press, increase the reliability and accuracy of touch.
Detailed description of the invention
In order to illustrate the embodiment of the utility model or the technical proposal in the existing technology more clearly, below will be to embodiment Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only the utility model Some embodiments for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other attached drawings.
Fig. 1 is to adjust the schematic diagram for touching channel sensitivity by hardware mode in the prior art;
Fig. 2 is the schematic diagram of the touch button device according to the utility model embodiment;
Fig. 3 is the equivalent circuit diagram of the touch button device according to the utility model embodiment;
Fig. 4 is the circuit realization figure of the touch key-press module according to the utility model embodiment;
Fig. 5 is the flow chart of the sensitivity automatic adjusting method according to the utility model embodiment.
Specific embodiment
The following will be combined with the drawings in the embodiments of the present invention, carries out the technical scheme in the embodiment of the utility model Clearly and completely describe, it is clear that the described embodiments are only a part of the embodiments of the utility model, rather than whole Embodiment.Based on the embodiments of the present invention, those of ordinary skill in the art's every other embodiment obtained, all belongs to In the range of the utility model protection.
In order to facilitate the above-mentioned technical proposal for understanding the utility model, below by way of practical new to this in specific embodiment The above-mentioned technical proposal of type is described in detail.
Fig. 2 shows the schematic diagrams of touch button device described in the utility model embodiment.According to the utility model reality A kind of touch button device 100 described in example, including touch key-press module 101 and MCU (microprocessor) 102 are applied, wherein described Touch key-press module 101 is used to touch channel capacitor and is converted to the numerical value determined, and the numerical value is with touch channel capacitor Variation and change;The MCU102 is connected to the touch key-press module, opens conversion for controlling touch key-press module 101 Time, read after converting and save the numerical value, then handled according to the variation of the numerical value, judge touch press Whether key is effective.
As shown in Figure 2, it is preferable that the touch key-press module 101 includes switch module 103, comparator comp, 16 Counter counter, clock generator CLK_GEN, the output end of the switch module 103 are connected to the comparator comp's Reverse input end, the positive input of the comparator comp connect supply voltage Vc, and the output end of the comparator comp connects It is connected to the enable end of the counter counter, when the clock generator CLK_GEN provides for the counter counter The output end of clock signal, the counter counter is connected to the MCU.
Preferably, the switch module 103 includes: first switch Φ 1, second switch Φ 2, third switch Φ 3, touches and lead to Road capacitor Cx and external reference capacitance Cmod;One end of the first switch Φ 1 connects reference voltage VREF, the other end is connected to One end of the top crown for touching channel capacitor Cx and the second switch Φ 2;The other end of the second switch Φ 2 connects To one end of the third switch Φ 3 and the top crown of the external reference capacitance Cmod;Under the touch channel capacitor Cx The bottom crown of pole plate, the other end of the third switch Φ 3 and the external reference capacitance Cmod is grounded;The external reference The top crown of capacitor Cmod is connected to the reverse input end of the comparator comp.
Preferably, touch key-press module 102 by touch capacitor be converted to count value circuit operation the following steps are included:
The first step, when third switch Φ 3 is connected, as low as GND, subsequent third is opened for the voltage drop of external reference capacitance Cmod Φ 3 is closed to disconnect;
Second step, then first switch Φ 1 is connected, and touches voltage on channel capacitor Cx and rises to reference voltage VREFAfterwards One switch Φ 1 is disconnected, and then second switch Φ 2 is connected, and is touched charge on channel capacitor Cx and is shared with external reference capacitance Cmod Second switch Φ 2 is disconnected after reaching identical voltage, and the counter counter is started counting at the same time;Repeat mistake above Journey, voltage can continue to rise on external reference capacitance Cmod, and comparator comp is overturn when rising to Vc, and counter counter makes It can close.First switch Φ 1, the switching frequency of second switch Φ 2 and counter counter clock frequency are all f during this, Cx and first switch Φ 1, second switch Φ 2 are equivalent to a charging resistor, resistance value RCx=1/fCx, equivalent circuit diagram is such as Shown in Fig. 3.
Preferably, further include third step, when finger touches, touch channel capacitor Cx capacitance and increase, equivalent resistance RCxResistance value reduces, and voltage can rise to Vc faster on external reference capacitance Cmod, shortens, counts so that counting enabled effective time Numerical value reduces.
Fig. 4 shows the circuit realization figure of touch key-press module.Preferably, the switch module has n touch channel, Each touch channel all has first switch (TH1 Φ 1 ... THn Φ 1), second switch (TH1 Φ 2 ... THn Φ 2) and touches channel Capacitor (Cr1 ... Crn), wherein n is the positive integer more than or equal to 1.
Figure and capacitor charge and discharge formula are realized according to the circuit of touch key-press module, can derive touch key-press mould The count value of block and the formula of channel capacitor relationship are as follows:
It is possible thereby to be derived by:
Usually in touching application, each induction electrode size shape for touching channel is almost the same, covers the face on electrode Plate matter thickness is also identical, so Δ Cx is almost the same and much smaller than Cx when touching.It is obtained touching when channel does not touch The base value arrived is N, can be derived by different touch channels when there is finger touch according to formula above, count value variable quantity Relationship:
As it can be seen that Δ N can serve as the activation threshold value in channel, therefore one can be set with reference to touch in the program of MCU Then channel and its activation threshold value calculate according to the base value in each channel and reference channel activation threshold value and other touch are arranged and lead to The activation threshold value in road is consistent each touch channel sensitivity.
Using above-mentioned touch button device, the embodiments of the present invention additionally provide a kind of sensitivity adjust automatically side Method.It is specific as shown in figure 5, the sensitivity automatic adjusting method according to the utility model embodiment the following steps are included:
S1, touch button device electrification reset is initialized, configures touch modules parameter;
Preferably, it is to touch channel by setting a reference in MCU that touch modules parameter is configured in the step S1, It include reference channel base value Ns and reference channel activation threshold value Δ Ns.
S2, enabledization touch modules open each touch channel in turn, obtain each base value for touching channel;
S3, reference channel base value square Ns is calculated2, a channel base value square N12, then N12Multiplied by reference channel firing level Value is again divided by Ns2Quotient, the as activation threshold value in a channel;
Preferably, the activation threshold value for a channel being calculated in the step S3 is according to touch modules count value and capacitor charge and discharge What electric relationship was derived, other touchings are calculated and are arranged according to each base value for touching channel and reference channel activation threshold value The activation threshold value for touching channel is consistent each sensitivity for touching channel.
S4, the calculating process for repeating step S3 obtain all activation threshold values for touching channel and storage;
S5, it is handled into touch scan control and state control;
S6, it checks with reference to all touch channels whether all in stable state, if then return step S3, if otherwise returning Step S5.
In conclusion passing through the device and method of the utility model, energy by means of the above-mentioned technical proposal of the utility model It is enough that channel is touched according to the reference of setting and refers to activation threshold value, then according to the base value in each channel and reference channel activation threshold value Come calculate and be arranged it is other touch channels activation threshold values, make each touch channel sensitivity adjust automatically to be consistent.This reality It is simple with novel touch button device structure, it realizes and is easy, energy sensitivity adjust automatically is to be consistent, to improve touching The sensitivity for touching key increases the reliability and accuracy of touch.
The above is only the preferred embodiment of the utility model only, is not intended to limit the utility model, all at this Within the spirit and principle of utility model, any modification, equivalent replacement, improvement and so on should be included in the utility model Protection scope within.

Claims (6)

1. a kind of touch button device, which is characterized in that including touch key-press module and MCU (microprocessor),
Wherein the touch key-press module is used to touch channel capacitor and is converted to the numerical value determined, and the numerical value is with touch The variation of channel capacitor and change;
The MCU is connected to the touch key-press module, and the time of conversion is opened for controlling touch key-press module, is converted After read and save the numerical value, then handled according to the variation of the numerical value, judge whether touch key-press effective.
2. a kind of touch button device according to claim 1, which is characterized in that the touch key-press module includes switch Module, comparator comp, 16 counter counter, clock generator CLK_GEN,
The output end of the switch module is connected to the reverse input end of the comparator comp, the forward direction of the comparator comp Input terminal connects supply voltage Vc, and the output end of the comparator comp is connected to the enable end of the counter counter, institute It states clock generator CLK_GEN and provides clock signal, the output end of the counter counter for the counter counter It is connected to the MCU.
3. a kind of touch button device according to claim 2, which is characterized in that the switch module includes: first to open It closes Φ 1, second switch Φ 2, third switch Φ 3, touch channel capacitor Cx and external reference capacitance Cmod;
One end of the first switch Φ 1 connects reference voltage VREF, and the other end is connected to the upper of the touch channel capacitor Cx One end of pole plate and the second switch Φ 2;The other end of the second switch Φ 2 is connected to the one of the third switch Φ 3 The top crown at end and the external reference capacitance Cmod;It is described to touch the bottom crown of channel capacitor Cx, the third switch Φ 3 The bottom crown of the other end and the external reference capacitance Cmod are grounded;The top crown of the external reference capacitance Cmod is connected to The reverse input end of the comparator comp.
4. a kind of touch button device according to claim 3, which is characterized in that external when third switch Φ 3 is connected The voltage drop of reference capacitance Cmod is disconnected as low as GND, subsequent third switch Φ 3;
Then first switch Φ 1 is connected, and it is disconnected to touch first switch Φ 1 after voltage on channel capacitor Cx rises to reference voltage VREF It opens, then second switch Φ 2 is connected, and charge is shared with external reference capacitance Cmod on touch channel capacitor Cx reaches identical voltage Second switch Φ 2 is disconnected afterwards, and the counter counter is started counting at the same time;Process above is repeated, it is external with reference to electricity Holding voltage on Cmod can continue to rise, and comparator comp is overturn when rising to Vc, and counter counter is enabled to close.
5. a kind of touch button device according to claim 4, which is characterized in that when finger touches, touch channel electricity To hold Cx capacitance to increase, equivalent resistance RCx resistance value reduces, and voltage can rise to Vc faster on external reference capacitance Cmod, It is shortened so that counting enabled effective time, count value reduces.
6. a kind of touch button device according to claim 5, which is characterized in that the switch module has n touch Channel, each touch channel all have first switch (TH1 Φ 1 ... THn Φ 1), second switch (TH1 Φ 2 ... THn Φ 2) and touching Channel capacitor (Cr1 ... Crn) is touched, wherein n is the positive integer more than or equal to 1.
CN201821669417.7U 2018-10-15 2018-10-15 A kind of touch button device Active CN208836106U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201821669417.7U CN208836106U (en) 2018-10-15 2018-10-15 A kind of touch button device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201821669417.7U CN208836106U (en) 2018-10-15 2018-10-15 A kind of touch button device

Publications (1)

Publication Number Publication Date
CN208836106U true CN208836106U (en) 2019-05-07

Family

ID=66318899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201821669417.7U Active CN208836106U (en) 2018-10-15 2018-10-15 A kind of touch button device

Country Status (1)

Country Link
CN (1) CN208836106U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039321A (en) * 2018-10-15 2018-12-18 湖南品腾电子科技有限公司 A kind of touch button device and sensitivity automatic adjusting method
CN110224695A (en) * 2019-05-22 2019-09-10 长沙景美集成电路设计有限公司 A kind of hardware waterproof capacitance touch button circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039321A (en) * 2018-10-15 2018-12-18 湖南品腾电子科技有限公司 A kind of touch button device and sensitivity automatic adjusting method
CN110224695A (en) * 2019-05-22 2019-09-10 长沙景美集成电路设计有限公司 A kind of hardware waterproof capacitance touch button circuit

Similar Documents

Publication Publication Date Title
CN109039321A (en) A kind of touch button device and sensitivity automatic adjusting method
CN101908875B (en) Key-judging method for capacitive touch keys
CN102695959B (en) Capacitance measurement circuit with dynamic feedback
CN101726669B (en) Capacitance change measuring circuit of capacitive sensor device, capacitive sensor module, method of measuring capacitance change of capacitive sensor device, and electronic device
CN101908876A (en) Capacitance type touch key system and micro-control unit thereof
US8089461B2 (en) Touch wake for electronic devices
CN208836106U (en) A kind of touch button device
CN203117298U (en) Capacitance detection circuit
CN201697690U (en) Capacitive sensing liquid level sensor
CN101900574A (en) Differentiate human body and touch electrode contactless semiconductor devices and tactile sensor are arranged
CN104428680A (en) Circuit for measuring capacitance of touch sensor and capacitive touch panel having same
CN102193032A (en) Self-capacitance change measuring circuit with high precision and high stability
CN100566164C (en) A kind of high precision capacitance touching induction control circuit framework
CN103633984B (en) A kind of touch key-press chip and its sensitivity correction method and electronic equipment
CN203084695U (en) Capacitance detection circuit
CN103259517A (en) Capacitor type touch circuit and capacitor detection method thereof
CN102253289B (en) Electric capacity measuring device for touch control device
CN107980142A (en) A kind of fingerprint recognition circuit, fingerprint sensor and mobile terminal
CN105242804B (en) Touch-control compensation circuit, its compensation method, touch-screen and display device
CN103440073B (en) Get rid of the capacitance sensing circuit of effect of parasitic capacitance
CN103308773A (en) Mutual capacitance variation measuring circuit with high precision and low power consumption
CN107609527A (en) A kind of low-power consumption capacitance detecting device for fingerprint recognition
CN108777574A (en) A kind of capacitance touch button circuit
CN201382977Y (en) Capacitor measuring device
CN116203411A (en) Touch key capacitance detection method and system applied to MCU

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant