We are Apogeeweb Semiconductor Electronic

WELCOME TO OUR BLOG

Home arrow Sensors arrow The Techniques to Improve Capacitive Touch Sensing

arrow left

arrow right

The Techniques to Improve Capacitive Touch Sensing

Author: Apogeeweb Date: 26 Dec 2017  1449

capacitors

We have published the article to talk some basic knowledge about knowledge of Capacitive Touch Sensing of Sensor. In this article, there are some basic cap-sense circuit configurations and discuss how to deal with low-frequency and high-frequency noise. Let's look at this short video and review some basic knowledge about capacitive sensors first.

 

Catalog

Ⅰ Measuring change

Ⅱ RC Time Constant

Ⅲ Variable capacitor, Variable frequency

Ⅳ Reality

Ⅴ FAQ

 

Ⅰ Measuring change

If you have read the article that I noticed in the first paragraph, you will know that the essence of capacitive touch sensing is the change in capacitance that occurs when an object approaches a capacitor. The presence of a finger increases the capacitance by

  • 1) introducing a substance (i.e., human flesh) with a relatively high dielectric constant

  • 2) providing a conductive surface that creates additional capacitance in parallel with the existing capacitor.

Right!  The mere fact that the capacitance changes are not particularly useful. To actually perform capacitive touch sensing, we need a circuit that can measure capacitance with enough accuracy to consistently identify the increase in capacitance caused by the presence of the finger. There are various ways to do this, some quite straightforward, others more sophisticated. In this article we will look at two general approaches to implementing capacitive-sense functionality; the first is based on an RC (resistor-capacitor) time constant, and the second is based on frequency shifts.

 

Ⅱ RC Time Constant

When first time to realized that higher math actually has some relationship with the exponential curve representing the voltage across a charging or discharging capacitor, I experienced a vague feeling of university nostalgia. There’s something about it—maybe that was one of the first times I realized that higher math actually has some relationship to reality, or maybe in this age of grape-harvesting robots something is appealing about the simplicity of a discharging capacitor. In any event, we know that this exponential curve changes when either resistance or capacitance changes. Let’s say we have an RC circuit composed of a 1 MΩ resistor and a capacitive touch sensor with the typical fingerless capacitance of 10 pF.

RC circuit composed of a 1 MΩ resistor and a capacitive touch sensor with typical fingerless capacitance of 10 pF

 

We can use a general-purpose input/output pin (configured as an output) to charge the sensor cap up to the logic-high voltage. Next, we need the capacitor to discharge through the large resistor. It’s important to understand that you cannot simply switch the output state to logic low. An I/O pin configured as an output will drive a logic-low signal, i.e., it will provide the output with a low-impedance connection to the ground node. Thus, the capacitor would discharge rapidly through this low impedance—so rapidly that the microcontroller could not detect the subtle timing variations created by small changes in capacitance. What we need here is a high-impedance pin that will force almost all of the current to discharge through the resistor, and this can be accomplished by configuring the pin as an input. So first you set the pin as a logic-high output, then the discharge phase is initiated by changing the pin to an input. The resulting voltage will look something like this:

 

resulting voltage

 

If someone touches the sensor and thereby creates an additional 3 pF of capacitance, the time constant will increase, as follows:

The techniques to improve capacitive touch sensing

 

The discharge time is not much different by human standards, but a modern microcontroller could certainly detect this change. Let’s say we have a timer clocked at 25 MHz; we start the timer when we switch the pin to input mode. We can use this timer to track the discharge time by configuring the same pin to function as a trigger that initiates a capture event (“capturing” means storing the timer value in a separate register). The capture event will occur when the discharging voltage crosses the pin’s logic-low threshold, e.g., 0.6 V. As shown in the following plot, the difference in discharge time with a threshold of 0.6 V is ΔT = 5.2 µs.

 

The techniques to improve capacitive touch sensing

 

With a timer clock-source period of 1/(25 MHz) = 40 ns, this ΔT corresponds to 130 ticks. Even if the change in capacitance were reduced by a factor of 10, we would still have 13 ticks of difference between an untouched sensor and a touched sensor.

 

So the idea here is to repeatedly charge and discharge the capacitor while monitoring the discharge time; if the discharge time exceeds a predetermined threshold, the microcontroller assumes that a finger has come into “contact” with the touch-sensitive capacitor (I put “contact” in quotation marks because the finger never actually touches the capacitor—as mentioned in the previous article, the capacitor is separated from the external environment by solder mask and the device’s enclosure). However, real life is a little more complicated than the idealized discussion presented here; error sources are discussed below in the “Dealing with Reality” section.

 

Ⅲ Variable capacitor, Variable frequency

In the frequency-shift-based implementation, the capacitive sensor is used as the “C” portion of an RC oscillator, such that a change in capacitance causes a change in frequency. The output signal is used as the input to a counter module that counts the number of rising or falling edges that occur within a certain measurement period. When an approaching finger causes an increase in the capacitance of the sensor, the frequency of the oscillator’s output signal decreases, and thus the edge count also decreases.

 

The so-called relaxation oscillator is a common circuit that can be used for this purpose. It requires a few resistors and a comparator in addition to the touch-sensitive capacitor; this seems like a lot more trouble than the charge/discharge technique discussed above, but if your microcontroller has an integrated comparator module, it’s not too bad.

 

I’m not going to go into detail on this oscillator circuit because 1) it is discussed elsewhere, including here and here, and 2) it seems unlikely that you would want to use the oscillator approach when there are many microcontrollers and discrete ICs that offer high-performance capacitive-touch-sense functionality. If you have no choice but to create your own capacitive-touch-sensing circuit, I think that the charge/discharge technique discussed above is more straightforward. Otherwise, make your life a little simpler by choosing a microcontroller with dedicated cap-sense hardware.

 

The capacitive-sense peripheral in the EFM32 microcontrollers from Silicon Labs is an example of an integrated module based on the relaxation-oscillator approach:

capacitive-sense peripheral in the EFM32 microcontrollers

 

The multiplexer allows the oscillation frequency to be controlled by eight different touch-sensitive capacitors. By quickly cycling through the channels, the chip can effectively monitor eight touch-sensitive buttons simultaneously, because the microcontroller’s operating frequency is so high relative to the speed at which a finger moves.

 

Ⅳ Reality

 

High and low frequency noise in a capacitive-touch-sense system

 

We must notice that a capacitive-touch-sense system will be afflicted by both high and low-frequency noise.

 

The high-frequency noise causes minor sample-to-sample variations in the measured discharge time or edge count. For example, the finger-less charge/discharge circuit discussed above might have a discharge time of 675 ticks, then 685 ticks, then 665 ticks, then 670 ticks, and so forth. The significance of this noise depends on the expected finger-induced change in discharge time. If the capacitance increases by 30%, the ΔT will be 130 ticks. If our high-frequency variation is only about ±10 ticks, we can easily distinguish signal from noise.

 

However, a 30% increase in capacitance is probably near the maximum amount of change that we could reasonably expect. If we get only a 3% chance, the ΔT is 13 ticks, which is too close to the noise floor. One way to reduce the effect of noise is to increase the magnitude of the signal, and you can do this by reducing the physical separation between the PCB capacitor and the finger. Often, though, the mechanical design is constrained by other factors, so you have to make the best of whatever signal magnitude you get. In this case, you need to lower the noise floor, which can be accomplished by averaging.

 

For example, each new discharge time could be compared not to the previous discharge time but to the mean of the last 4 or 8 or 32 discharge times. The frequency-shift technique discussed above automatically incorporates averaging because small variations around the mean frequency will not significantly affect the number of cycles counted within a measurement period that is long relative to the oscillation period.

 

Low-frequency noise refers to long-term variations in the fingerless sensor capacitance; these can be caused by environmental conditions. This sort of noise cannot be averaged out because the variation could persist for a very long period of time. Thus, the only way to effectively deal with low-frequency noise is to be adaptable: The threshold used to identify the presence of a finger can’t be a fixed value. Instead, it should be regularly adjusted based on measured values that do not exhibit significant short-term variations, such as those caused by the approach of a finger.

 

All in all, we notice that capacitive touch sensing does not require complex hardware or highly sophisticated firmware. It is nonetheless a versatile, robust technology that can provide major performance improvements over mechanical alternatives.

 

Ⅴ FAQ

1. How do I increase my capacitive sensor?

In most cases, simply increasing the sensing area will lead to an improvement in sensitivity. When the sensing area is limited by the application, the value of the CCPC capacitor has to be increased to increase the sensitivity. Using a bigger triggering object can also increase sensitivity.

 

2. How can I make my touch screen capacitive?

Probably the most interesting material that can be used to activate a capacitive touch screen is a sponge. It's cheap, effective and actually cleans your screen as you use it. But a sponge is a bit too flexible to make an effective stylus as it is.

 

3. How does capacitive touch sensing work?

A capacitive sensor uses the characteristics of a capacitor and its electrical field to form a sensor. Capacitive sensors work by detecting any change in the electric field the sensor can register either touch or proximity, displacement, as well as the level detection of humidity and fluids.

 

4. On which factor the output of the capacitive touch sensor depends?

The larger the area of the plates, the larger is the capacitance. The smaller the distance between the two plates, the higher is the capacitance. The insulating material determines the dielectric constant.

 

5. What is a capacitive touch screen?

A capacitive touch screen is a control display that uses the conductive touch of a human finger or a specialized device for input. Many current smartphones, tablets and other mobile devices rely on capacitive touch, including Android phones and Microsoft Surface, as well as Apple's iPhone, iPad and iPod Touch.

 

6. What's the difference between capacitive and resistive touch screens?

Unlike the resistive touch displays that rely on mechanical pressure applied to the surface, a capacitive touchscreen makes use of the human body's natural conductivity to operate. These screens are made of transparent, conductive material—usually ITO—coated onto a glass material.

 

7. Where are capacitive sensors used?

Capacitive sensors are used in the measurement of brake disc deformation. Due to the high-temperature development, very few sensors are suitable for operating close to the measurement object. Capacitive transducers detect changes in the nanometer range and measure the wear on the brake disc.

 

8. What's the advantage of a capacitive touch sensor?

The advantage of Surface Capacitive touch technology is that it offers users a better image quality than 5-wire resistive touch. The screen tends to be more durable and boasts excellent water, grease and dust resistance, as well as high resistance to scratching.

 

9. How the XY position of a capacitive touch screen is obtained calculated?

In any case, the touch position is determined by measuring the distribution of signal changes between the X and Y electrodes, and a mathematical algorithm is then used to process the changed signal levels to determine the XY coordinates of the touchpoint.

 

10. Which materials work with capacitive touch screens?

Material that will act as a conductor for electron ‘flow’ by reducing the atmospheric pressure sensed by the digitizer when it is touched, compared to the pressure sensed when the capacitive touch circuit has an open condition.

Ordering & Quality

Photo Mfr. Part # Company Description Package PDF Qty Pricing
(USD)
LM35DZ-LFT4 Company:Texas Instruments Remark:Temperature Sensor Analog, Local 0°C ~ 100°C 10mV/°C TO-92-3 Package:TO-226-3, TO-92-3 (TO-226AA)
DataSheet
In Stock:On Order
Inquiry
Price:
1+: $2.05000
5+: $1.97200
10+: $1.60200
25+: $1.38040
50+: $1.19560
100+: $1.08460
500+: $0.91206
1000+: $0.81345
5000+: $0.73950
Inquiry
TC74A1-3-3VAT TC74A1-3-3VAT Company:Microchip Technology Remark:SENSOR DIGITAL -40C-125C TO220-5 Package:TO-220-5
DataSheet
In Stock:138
Inquiry
Price:
1+: $1.37000
25+: $1.14000
100+: $1.04000
Inquiry
TC1046VNBTR TC1046VNBTR Company:Microchip Technology Remark:SENSOR ANALOG -40C-125C SOT23-3 Package:TO-236-3, SC-59, SOT-23-3
DataSheet
In Stock:4028
Inquiry
Price:
1+: $0.59000
25+: $0.49000
100+: $0.45000
3000+: $0.45000
Inquiry
TC74A3-3-3VAT TC74A3-3-3VAT Company:Microchip Technology Remark:SENSOR DIGITAL -40C-125C TO220-5 Package:TO-220-5
DataSheet
In Stock:377
Inquiry
Price:
1+: $1.37000
25+: $1.14000
100+: $1.04000
Inquiry
TCN75-3-3MOA TCN75-3-3MOA Company:Microchip Technology Remark:SENSOR DIGITAL -55C-125C 8SOIC Package:8-SOIC (0.154", 3.90mm Width)
DataSheet
In Stock:2155
Inquiry
Price:
1+: $1.29000
25+: $1.08000
100+: $0.99600
Inquiry
TMP411BQDGKRQ1 TMP411BQDGKRQ1 Company:Texas Instruments Remark:Temperature Sensor Digital, Local/Remote -40°C ~ 125°C 11 b 8-VSSOP Package:8-TSSOP, 8-MSOP (0.118"", 3.00mm Width)
DataSheet
In Stock:On Order
Inquiry
Price:
313+: $0.80000
2500+: $0.74412
Inquiry
EMC1813T-AE-9R EMC1813T-AE-9R Company:Microchip Technology Remark:1.8V 3 CHANNEL TEMP SENSOR I2C 2 Package:10-VFDFN
DataSheet
In Stock:On Order
Inquiry
Price:
3000+: $0.59000
1+: $0.78000
25+: $0.65000
100+: $0.59000
Inquiry
SE95D-118 SE95D-118 Company:NXP USA Inc. Remark:SENSOR DIGITAL -55C-125C 8SO Package:8-SOIC (0.154", 3.90mm Width)
DataSheet
In Stock:858
Inquiry
Price:
1+: $1.36000
5+: $1.30800
10+: $1.06200
25+: $0.91520
50+: $0.79280
100+: $0.71920
500+: $0.60476
1000+: $0.53939
2500+: $0.52304
5000+: $0.49035
12500+: $0.45766
25000+: $0.44132
Inquiry

Related Articles

What is a Light Sensor?

Apogeeweb 22 Feb 2020  3716

I IntroductionThe light sensor is developed based on the photoelectric effect principle of semiconductors. It can be used to detect the intensity of ambient light, and it can also be used to detect th...

Continue reading »

What Sensors Are In The Phone?

Apogeeweb 3 Dec 2019  1702

CatalogⅠ IntroductionⅡ Types of sensors in the phone  2.1 Acceleration sensor  2.2 Gravity sensor  2.3 Light sensor  2.4 Proximity sensor  2.5 Magnetism Sensor ...

Continue reading »

Capacitive Touch Sensing of Sensors

Apogeeweb 26 Dec 2017  1205

Do you know what is electrical principles that allow us to detect the presence of a human finger using little more than a capacitor? Let’s learn something about them?   CatalogⅠ Capacitor...

Continue reading »

What is A Knock Sensor&Troubleshooting Guide

Apogeeweb 13 Feb 2019  2902

I IntroductionThe knock sensor is an indispensable important component in the electronic control system of the engine. Its function is to detect whether the engine has knocking phenomenon and send the...

Continue reading »

Principles and Types of Biosensors

Apogeeweb 20 Nov 2019  2041

CatalogⅠ What is Biosensor?Ⅱ Principle of Biosensors Ⅲ Characteristics of Biosensors Ⅳ Types of Biosensors  4.1 Acoustic Biosensor  4.2 Optical Biosensor  4.3 Magnetic Bi...

Continue reading »

Deep Analysis of Infrared Sensor

Apogeeweb 22 Nov 2019  2058

CatalogⅠ IntroductionⅡ What is an infrared sensor?Ⅲ How does the infrared sensor work?Ⅳ The basic law of infrared radiationⅤ The working principle of the infrared sensorⅥ Types of infrared sensors&nbs...

Continue reading »

pinglun 15 comments

    • pingluntus
    • Jerseys NFL Wholesale on 2018/3/15 6:19:42

    These two objectives are the key ones to understand, though two others may also figure in.

      • pingluntu
      • author on 2018/3/16 15:25:48
        author

      Re:

    • pingluntus
    • Cheap China Jerseys on 2018/3/28 20:39:49

    This is an electronic blog that provide useful electronic knowledge or the latest semiconductor news electronic engineers.Anyone who wants to use this platform to do unrelated advertisements is not allowed.You contact the author's mailbox directly for any idea. Anyway,thanks for your pages to provide a lot of valuable electronic knowledge. I like it.

    • pingluntus
    • nika on 2018/3/29 10:39:55

    According to the working principle of capacitive sensor, there are three basic types of capacitive sensors, namely variable distance (d) type (also called variable gap type), variable area (A) and variable Permittivity (epsilon) type. The variable gap type can measure the displacement, the variable area type can measure the linear displacement, the angular displacement and the size, and the variable dielectric constant can measure the liquid level and the material thickness.

    • pingluntus
    • kamiatar on 2018/3/29 10:40:39

    The determinant of the capacitance is: C=εS/4πkd. The epsilon is a dielectric constant, the S is the right pair area of the capacitor plate, the D is the distance of the capacitor plate, and the K is the constant of the static electric power.

      • pingluntu
      • author on 2020/8/3 15:52:15
        author

      Re:

      There is an page named "Comprehensive Explanation of Capacitors" about capacitors, such as what is capacitor,its clasidfication? Features? Types? Function and more,the page is comprehensive. You may like it.


    • pingluntus
    • samitura on 2018/3/29 10:42:24

    Compared with the resistance and inductance sensors, the capacitive sensor has the following advantages: 1. Good temperature stability 2. The structure is simple and the adaptability is strong. 3. The dynamic response is good 4. The non-contact measurement can be realized with the average effect

      • pingluntu
      • author on 2018/3/29 10:45:17
        author

      Re:

      Hi~samitura

      U R Right,everything has its two sides.So~there are some shortcomings of capacitive sensors:

      1. High output impedance and poor load capacity

      2. Great influence of parasitic capacitance

      3. output characteristic nonlinearity


    • pingluntus
    • yakami on 2018/3/29 10:51:56

    Since the end of the 70s, with the development of integrated circuit technology, a capacitive sensor which has been encapsulated with micrometer has been developed. This new type of sensor can greatly reduce the influence of distributed capacitance and overcome its inherent disadvantages. The capacitive sensor is one of the most widely used and promising sensors.

    • pingluntus
    • sarah on 2018/4/9 18:02:40

    GOOD

    • pingluntus
    • Cheap NFL Jerseys Wholesale on 2018/4/24 21:51:34

    It’s not enough, but that’s all we can afford.

    • pingluntus
    • Wholesale Jerseys on 2018/5/6 18:46:11

    It is a doable thing if you just use common sense.

    • pingluntus
    • Leonie on 2018/6/11 22:52:09

    I enjoy the article

    • pingluntus
    • Sol on 2019/4/5 18:57:30

    It works very well for me

    • pingluntus
    • where can i buy cheap jerseys on 2019/4/24 12:31:09

    We're a group of volunteers and opening a new scheme in our community. Your site provided us with valuable info to work on cheap nfl jerseys china. You have done a formidable job and our whole community will be thankful to you.

    • pingluntus
    • nfl jersey shop wholesale on 2019/4/25 4:37:34

    I do agree with all the ideas you have presented in your postcheap jerseys. They are very convincing and will certainly work. Still, the posts are too short for novices. Could you please extend them a little from next time? Thanks for the post.

    • pingluntus
    • game worn nfl jerseys on 2019/4/25 15:59:49

    I am extremely impressed with your writing skills postwholesale nfl jerseys and also with the layout on your weblog with cheap nfl jerseys. Is this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it is rare to see a nice blog like this one today

    • pingluntus
    • Jocelyn on 2019/10/15 1:39:05

    Good post. I definitely love this site. Keep writing!

Leave a Reply

Your email address will not be published.

 
 
   
 
code image
Rating: poor fair good very good excellent

# 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z