Skip to content
PlayOwl
Computers & communication · #50

How does a touchscreen know where you touched?

A grid of invisible wires under the glass notices your finger, works out where it is, and turns your touch into a button press, a swipe or a drawing.

The big idea: A touchscreen has a grid of see-through wires in rows and columns. Your finger changes the electricity where a row and a column cross. A chip checks every crossing many times a second to find the spot, and the tablet decides if you tapped, swiped or drew.

Start exploring
0 of 5 parts done
A finger touching a tablet while a glowing grid of rows and columns finds the spot, How Things Work poster
1Watch it

From fingertip to button press

  1. You tap a star on a tablet and it pops. The glass doesn't move or click. So how does the tablet know exactly where you touched?
  2. A touchscreen is a sandwich of layers. On top is strong glass. Under it is a grid of see-through wires in rows and columns. At the bottom is the display that makes the picture.
  3. Electricity flows into the rows and makes a tiny electric field that reaches the columns. Your finger is a bit like salty water, so it steals some of that field. The column gets less signal.
  4. A chip checks each row, one after another, and listens on every column. Where the signal drops, it has found your finger: this row, this column!
  5. The tablet watches how your finger moves. A quick touch in one place is a tap. A fast slide is a swipe. A slow, long path becomes a drawing.
  6. Because the chip checks every crossing on its own, it can find two or more fingers at the same time. Spread them apart to zoom!
2Look inside

The layers of a touchscreen

The screen has been pulled apart into layers. Tap each part to find out what it does.

  • Cover glass. Tough glass protects everything underneath. It's thin enough that the electric field reaches through it to your finger.
  • Drive lines (rows). These see-through wires run across the screen in rows. The chip sends a tiny electric signal into one row at a time.
  • Sense lines (columns). These wires run up and down in columns. They listen for the signal from the rows. When your finger is near, they hear less.
  • Display. Under the touch layers is the display, made of millions of tiny colored lights called pixels. It shows the buttons, games and pictures.
  • Flex cable. A thin, bendy cable connects every row and column to the touch chip.
  • Touch controller chip. This chip checks every crossing many times a second. It works out where your finger is and sends that spot to the main computer.
  • Processor. The main computer gets the touch position and decides what it means: which button you pressed, or whether you swiped or drew.
  • Battery. The battery powers everything. Scanning the touch grid uses a little energy every time.
3Try it

Find the finger

Tap the screen and watch which row and column light up. Then wear the woolly glove and tap again. What happens? Try buttons, swiping and drawing too.

Experiment: Will the screen notice your tap if you wear a woolly glove?

  1. Tap the screen with your bare finger. Which row and column light up?
  2. Switch on “Wear a woolly glove” and tap again.
  3. Look at the controller chip. Did it find anything?

What we found: Your bare finger conducts electricity, so it steals some of the electric field and the chip finds the row and column. Wool doesn't conduct, so the field passes through and nothing changes. Pressing harder doesn't help, because the screen senses electricity, not pushing. That's why special touchscreen gloves have conductive threads in the fingertips.

Turn on JavaScript to try it yourself.

4Solve a challenge

Design a touch grid

Choose how many sensor lines the screen has, then test it. It must find every test tap. Fewer lines cost less and save battery.

5Go deeper

Grids, fields and fingers

Most phones and tablets use a capacitive touchscreen. Under the glass is a grid of wires so thin and clear that you can't see them. Some run across in rows and some run up and down in columns.

The touch chip sends a tiny electric signal into one row and listens on the columns. The signal makes an invisible electric field around each place where a row crosses a column. Your body conducts electricity, a bit like salty water, so when your finger comes close it pulls away some of that field. The column hears a weaker signal.

The chip checks every crossing, row by row, many times every second. The crossings with the weakest signal tell it where your finger is. It can even compare neighboring crossings to find spots between the lines.

Then the tablet's main computer decides what you meant. A quick touch is a tap, so it presses the button under your finger. A fast slide is a swipe that turns the page. A long path becomes a drawing. Because every crossing is checked on its own, the screen can feel two fingers at once, which is how pinch-to-zoom works.

Key words

Capacitive touchscreen
A screen that senses your finger by the way it changes a tiny electric field.
Electrode
A see-through wire in the touch grid.
Electric field
The invisible region around electric charges where they can push or pull on other charges.
Scan
Checking every crossing of the grid, one row at a time.
Interpolation
Working out a spot between the lines by comparing neighbors.
Gesture
A pattern of touch movement, such as a tap, a swipe or a pinch.

Check your thinking

  1. What does your finger change when it touches a capacitive screen?

    Show the answer

    The tiny electric field at the crossings. Your finger conducts electricity and steals some of the field, so the chip notices.

  2. Why doesn't a wool glove work on a touchscreen?

    Show the answer

    Wool doesn't conduct electricity, so it doesn't change the field. Touchscreen gloves have conductive threads in the fingertips so they work.

  3. Which gesture is a quick touch that stays in one place?

    Show the answer

    A tap. A tap is short and still. A swipe moves fast, and a pinch uses two fingers.

  4. How does the chip find your finger?

    Show the answer

    It checks every crossing and looks for where the signal drops. The crossings under your finger have a weaker signal, so the chip knows the row and column.

  5. How can a screen track two fingers at once?

    Show the answer

    It measures every crossing separately, so each finger makes its own dip. Mutual-capacitance sensing maps all crossings, so separate touches show up as separate peaks.