Okay, but how do touch screens actually work?

01, Jul. 2024

 

Okay, but how do touch screens actually work?

I recently overheard a woman on the subway telling her friend that her toddler swipes everything in their house the coffee table, books, plates and even her own mother, trying to make her disappear like an image on a touch screen. The story got me thinking that for many of us, our knowledge of whats going on behind that glossy display isnt much more than a toddlers.

If you are looking for more details, kindly visit our website.

Before I started researching how touch screens worked, I figured there was one universal technology behind the swipable phenomenon. Instead it turns out there are half a dozen, and more being researched every day. The two most commonly used systems are resistive and capacitive touch screens. For the sake of simplicity, I will focus here on these two systems and finish with where experts think touch screen technology is headed.

1. Resistive

These are the most basic and common touch screens, the ones used at ATMs and supermarkets, that require an electronic signature with that small grey pen. These screens literally resist your touch; if you press hard enough you can feel the screen bend slightly. This is what makes resistive screens work two electrically conductive layers bending to touch one another, as in this picture:


Resistive touch screen technology [Image Credit: Chassis Plans]

One of those thin yellow layers is resistive and the other is conductive, separated by a gap of tiny dots called spacers to keep the two layers apart until you touch it. (A thin, scratch-resistant blue layer on top completes the package.) An electrical current runs through those yellow layers at all times, but when your finger hits the screen the two are pressed together and the electrical current changes at the point of contact. The software recognizes a change in the current at these coordinates and carries out the function that corresponds with that spot.

Resistive touch screens are durable and consistent, but theyre harder to read because the multiple layers reflect more ambient light. They also can only handle one touch at a time ruling out, for example, the two-finger zoom on an iPhone. Thats why high-end devices are much more likely to use capacitive touchscreens that detect anything that conducts electricity.

2. Capacitive

Unlike resistive touch screens, capacitive screens do not use the pressure of your finger to create a change in the flow of electricity. Instead, they work with anything that holds an electrical charge including human skin. (Yes, we are comprised of atoms with positive and negative charges!) Capacitive touch screens are constructed from materials like copper or indium tin oxide that store electrical charges in an electrostatic grid of tiny wires, each smaller than a human hair.


Capacitive touch screen technology [Image credit: Electrotest]

There are two main types of capacitive touch screens surface and projective. Surface capacitive uses sensors at the corners and a thin evenly distributed film across the surface (as pictured above) whereas projective capacitive uses a grid of rows and columns with a separate chip for sensing, explained Matt Rosenthal, an embedded project manager at Touch Revolution. In both instances, when a finger hits the screen a tiny electrical charge is transferred to the finger to complete the circuit, creating a voltage drop on that point of the screen. (This is why capacitive screens dont work when you wear gloves; cloth does not  conduct electricity, unless it is fitted with conductive thread.) The software processes the location of  this voltage drop and orders the ensuing action. (If youre still confused, watch this video.)

3. Whats next? Sizing Up

Link to Touch-China

Newer touch screen technologies are under development, but capacitive touch remains the industry standard for now. The biggest challenge with touch screens is developing them for larger surfaces    the electrical fields of larger screens often interfere with its sensing capability.

Software engineers from Perceptive Pixel, which designs multi-touch screens, is using a technology called frustrated total internal reflection (FTRI) for their larger screens, which are as big as 82-inches. When you touch an FTRI screen you scatter light and several cameras on the back of the screen detect this light as an optical change, just as a capacitive touch screen detects a change in electrical current.


Frustrated total internal reflection [Image Credit: Jeff Han Laboratory, formerly NYU now Perceptive Pixel]

82 inches? Thats the perfect size for a swipeable coffee table.

How Do Capacitive Touch Sensors Work?



Much of the success of the iPod can be attributed to its touch-controlled user interface. Behind its shiny ring and its glowing buttons were

Impact of Capacitance on Circuits

Those with experience in electronics will probably have experienced the impact a finger has on a circuit. Audio and radio circuits often respond to the presence of a finger by changing their output pitch or tuning to a different radio station. I once heard of someone discovering their radio receiver suddenly operated as expected by placing their finger on one of the valves. Being uninclined to place the said finger in the back of the radio forever, they replaced it with a sausage which provided good service for some time and a surprise for the technician who eventually had to replace the pork product with an actual repair.

Capacitive touch circuits rely on the change in capacitance a finger or body part has on the function of a circuit. The presence of a finger forms a parallel capacitance to ground that increases the value of the capacitor in the circuit.
  The human body introduces a small, parallel capacitance when touching circuitry.
One approach could use the capacitors in an oscillator. In this example, we vary the value of C2 between 1 µF and 7 µF in steps of 1.5 µF to simulate the introduction of a parallel capacitance.
  An astable circuit could use one of its capacitors as a touch sensor. In this simulation, C2 is varied to demonstrate the effect.
  As the capacitance increases, the frequency drops. This could be used to detect a finger touching our capacitive sensor.
Here we have the beginnings of a touch detection circuit. The output could be connected to a counter. The difference between touch and no-touch can be determined by counting the number of pulses in a specified time period, say 100 ms, and setting a count threshold. Another approach is to measure the variation in on-pulse widths.

At this point, real life comes into play as we try to implement such circuits. The human body forms a capacitance of somewhere between 100 pF and 200 pF. Replacing C1 in our circuit with a 300 pF capacitor and sweeping C2 between 100 pF and 200 pF, the output changes from 356 kHz with no human touch, dropping to 284 kHz in the presence of maximum human-body capacitance. It should be noted that this is only a simulation, and the transistors selected may not operate at this frequency in reality. However, we have the makings of a capacitive touch sensor.
  Using the tiny capacitances of the human body, our oscillator operates closer to 350 kHz before being touched.

Types of Capacitive Sensor: Self-Capacitance

There are two types of capacitive sensing: self-capacitance and mutual capacitance. Self-capacitance is the approach described above, where the touch sensor forms a capacitor to ground, and the circuit measures the change in its value when a finger is placed on it. Rather than use the capacitor as part of an oscillator, touch circuits typically use approaches that can more accurately control the charge applied.

One example is the
  The Microchip CTMU consists of a current source plus a switch to discharge the sensor capacitor.
  The CTMU delivers a lower voltage in the presence of a touch at its sensor.
  More complex sensors like sliders (top) can deliver 'bumpy' results. Interleaving the sensors (below) can help to improve the smoothness of the output.

Capacitive sensors are typically implemented behind a plastic cover. The thicker the material, the lower the sensor sensitivity. Finally, many surfaces, such as the user interface of a washing machine, are curved, while a printed circuit board is typically flat. Flexible PCBs on polyimide can be used to resolve this, but flex PCBs are expensive. Alternatively, the distance between the touch surface and PCB can be bridged using springs or conductive foam. While this resolves the issue mechanically, extra testing and further tuning of the circuitry and software are needed to ensure reliability.

Subscribe

Tag alert: Subscribe to the tag

Subscribe to the tag IoT & Sensors and you will receive an as soon as a new item about it is published on our website!

Types of Capacitive Sensor: Mutual Capacitance

Mutual-capacitance sensor approaches use a capacitive sensor connected between two pins of the touch chip or a microcontroller, measuring the change in charge with and without the presence of a finger. The finger essentially steals charge from the capacitor as if it were being placed between the two plates. Thus, a touch appears as a drop in capacitance. This approach allows the creation of a grid of capacitors across flat surfaces to support touch screens, which is typically termed projected capacitive touch or PCAP. One method charges the X rows of the sensor area sequentially, evaluating the capacitances using the Y rows, with each cycle occurring tens of times per second. This is the preferred capacitive touch approach used for the screens of smartphones and touchpads on laptops.
  Mutual capacitance implements the capacitive sensors between two pins of the microcontroller or sensor IC (left). Touch screens and touchpads use a grid of diamonds or similar patterns to implement a touch surface (right).

These applications make use of dedicated chipsets, such as

Adding capacitive touch to Arduino and Raspberry Pi

Ready-to-use capacitive touch ICs are available from

 

Do It Yourself: LTspice Code

 
Astable circuit @ 70 Hz:

Q1 N002 N004 0 0 BC547B
Q2 N003 N005 0 0 BC547B
R1 N001 N002 100R
R2 N001 N003 100R
R3 N001 N004 10K
R4 N001 N005 10K
C1 N005 N002 1µ
C2 N003 N004 {X}
V1 N001 0 5V
.model NPN NPN
.model PNP PNP
.lib C:\Users\<USER>\Documents\LTspiceXVII\lib\cmp\standard.bjt
.tran 15s startup
.step param X 1u 2u 0.5u
.backanno
.end


Astable Circuit @ 350 kHz:

Q1 N002 N003 0 0 BC547B
Q2 OUTPUT N004 0 0 BC547B
R1 N001 N002 100R
R2 N001 OUTPUT 100R
R3 N001 N003 10k
R4 N001 N004 10k
C1 N004 N002 300p
C2 OUTPUT N003 {X}
V1 N001 0 5V
.model NPN NPN
.model PNP PNP
.lib C:\Users\<USER>\Documents\LTspiceXVII\lib\cmp\standard.bjt
.tran 1ms startup
.step param X 100p 200p 25p
.backanno
.end


CTMU Model:

CTouch_Pad PAD 0 10pF
CFinger PAD 0 {X}
I1 0 PAD PULSE(0 5.5u 2u 0 0 5u 100u 1)
M1 PAD N001 0 0 NMOS
V1 N001 0 PULSE(0 5 12u 0 0 50u 100u 1)
.model NMOS NMOS
.model PMOS PMOS
.lib C:\Users\<USER>\Documents\LTspiceXVII\lib\cmp\standard.mos
.tran 30u
.step param X 0p 200p 20p
.backanno
.end

One day, we were all quite happy with mechanical buttons. Then, in , an Apple iPod with an all-touch interface appeared. Seemingly overnight, the minds of product marketers worldwide were blown, and everything from washing machines and coffee makers to car door handles had to have a touch interface.Much of the success of the iPod can be attributed to its touch-controlled user interface. Behind its shiny ring and its glowing buttons were capacitive sensors . Evaluated many times per second, any change in their capacitance indicated the presence of a finger to signal a press or a rotation. Of course, the phenomenon used was nothing new. The influence of human body capacitance on electronic circuits was discovered in when Leon Theramin used it for controlling a heterodyne oscillator in his instrument of the same name.Those with experience in electronics will probably have experienced the impact a finger has on a circuit. Audio and radio circuits often respond to the presence of a finger by changing their output pitch or tuning to a different radio station. I once heard of someone discovering their radio receiver suddenly operated as expected by placing their finger on one of the valves. Being uninclined to place the said finger in the back of the radio forever, they replaced it with a sausage which provided good service for some time and a surprise for the technician who eventually had to replace the pork product with an actual repair.Capacitive touch circuits rely on the change in capacitance a finger or body part has on the function of a circuit. The presence of a finger forms a parallel capacitance to ground that increases the value of the capacitor in the circuit.One approach could use the capacitors in an oscillator. In this example, we vary the value of C2 between 1 µF and 7 µF in steps of 1.5 µF to simulate the introduction of a parallel capacitance.Looking at the outputs FFT (fast Fourier transform), we can see the frequency starts at 70 Hz, dropping to 40 Hz, 28 Hz, 21 Hz, and then 17 Hz in response to these changes. It should be noted that the output is a square wave, so many harmonics are obscuring the view.Here we have the beginnings of a touch detection circuit. The output could be connected to a counter. The difference between touch and no-touch can be determined by counting the number of pulses in a specified time period, say 100 ms, and setting a count threshold. Another approach is to measure the variation in on-pulse widths.At this point, real life comes into play as we try to implement such circuits. The human body forms a capacitance of somewhere between 100 pF and 200 pF. Replacing C1 in our circuit with a 300 pF capacitor and sweeping C2 between 100 pF and 200 pF, the output changes from 356 kHz with no human touch, dropping to 284 kHz in the presence of maximum human-body capacitance. It should be noted that this is only a simulation, and the transistors selected may not operate at this frequency in reality. However, we have the makings of a capacitive touch sensor.There are two types of capacitive sensing: self-capacitance and mutual capacitance. Self-capacitance is the approach described above, where the touch sensor forms a capacitor to ground, and the circuit measures the change in its value when a finger is placed on it. Rather than use the capacitor as part of an oscillator, touch circuits typically use approaches that can more accurately control the charge applied.One example is the Charge Time Measurement Unit (CTMU), a peripheral in some of Microchips microcontrollers. It works by applying a constant charge (0.55 µA, 5.5 µA, or 55 µA) to the sensor for a fixed period. Once this period is over, the voltage on the sensor is measured using an analog-to-digital converter (ADC). With the ADC measurement complete, the sensor is discharged completely, allowing the process to be repeated. This is replicated approximately in the circuit below.Like any analog sensing application, the measured signal will be influenced by interference, and some filtering will be necessary to detect a finger touch accurately. In the measurements below, an approaching finger reduces the peak voltage attained at the sensor.Self-capacitance touch sensors are typically used when only a limited number of buttons are required or for proximity detection. Grouping sensors together, they can form rotary interfaces or sliders. Interleaving the copper pads on the circuit board can smooth the transition between the individual sensors.Interference is tackled by applying ground rings around the sensor or placing a hatched ground behind the sensor. However, care must be taken to avoid reducing the sensitivity too far. The size of the sensor is also important. Ideally, the sensor area should match that of a human fingerprint, somewhere between 8 and 20 mm in diameter.Capacitive sensors are typically implemented behind a plastic cover. The thicker the material, the lower the sensor sensitivity. Finally, many surfaces, such as the user interface of a washing machine, are curved, while a printed circuit board is typically flat. Flexible PCBs on polyimide can be used to resolve this, but flex PCBs are expensive. Alternatively, the distance between the touch surface and PCB can be bridged using springs or conductive foam. While this resolves the issue mechanically, extra testing and further tuning of the circuitry and software are needed to ensure reliability.Mutual-capacitance sensor approaches use a capacitive sensor connected between two pins of the touch chip or a microcontroller, measuring the change in charge with and without the presence of a finger. The finger essentially steals charge from the capacitor as if it were being placed between the two plates. Thus, a touch appears as a drop in capacitance. This approach allows the creation of a grid of capacitors across flat surfaces to support touch screens, which is typically termed projected capacitive touch or PCAP. One method charges the X rows of the sensor area sequentially, evaluating the capacitances using the Y rows, with each cycle occurring tens of times per second. This is the preferred capacitive touch approach used for the screens of smartphones and touchpads on laptops.The diamond grid pattern is a good starting point and works well in copper. Ideally, both the X and Y rows should be on the same side, requiring a lot of through-hole connections for either the X or Y rows. Other patterns may also be used depending on application demands, such as size and sensitivity. In smartphones, the pattern is applied to the glass cover above the display using Indium-Tin Oxide (ITO). This material has a relatively low resistance, and its transparent, minimizing the impact of screen legibility and loss of brightness. Other materials, such as ultra-fine copper tracks on transparent foil, have also been used. To avoid impacting the visual effect of the display, the copper tracks are applied to lie between the rows of the displays pixels.These applications make use of dedicated chipsets, such as MaxTouch . Designers appreciate such fully-featured solutions as they can evaluate hundreds of capacitances per second and apply the necessary filtering. At their output, they reduce user interaction into X-Y coordinates for each finger and can even provide the gestures used (pinch, swipe, rotate). In the application software, this sensor data is treated much the same as other input devices, such as a mouse, without worrying about decoding gestures and removing noise from the signals.Ready-to-use capacitive touch ICs are available from Microchip Azoteq , and Texas Instruments . These greatly simplify circuit construction, typically providing a digital output or serial interface that interfaces directly with an Arduino or Raspberry Pi. However, it should be noted that successful deployment in an actual application requires much testing with different sensor designs and configurations to ensure long-term robustness and reliability. Alternatively, libraries are available for Arduino that enable the creation of capacitive sensors using just a resistor. This is more than enough to enable students and makers to create touch interfaces for exploring interface concepts and trying out ideas rapidly.Astable circuit @ 70 Hz:Astable Circuit @ 350 kHz:CTMU Model:

If you want to learn more, please visit our website Capacitive Touch Screen/Panel.