Tech Behind ThingsHow the ordinary machinery actually works

Devices

How A Stylus Knows How Hard You Are Pressing

Pressure sensitivity in a drawing stylus does not come from the screen at all, and the pen is powered by the display it is touching.

A classroom setting featuring laptops and desks, capturing a modern educational environment.
Photograph by Adam Sondel via Pexels
Editorial note. Independent reporting and analysis. Nothing here is sponsored or paid for. How we work.

A finger on a touchscreen registers position and little else. A stylus reports position far more precisely, plus pressure and often tilt, and it does so by a completely different mechanism.

The screen and the pen have separate layers

A tablet designed for a pen contains a second sensing layer behind the display, distinct from the capacitive grid that detects fingers.

That layer is a mesh of coils rather than transparent electrodes. It communicates with the pen electromagnetically, through the glass, without any electrical contact.

Because the two systems are independent, the tablet can ignore a resting palm while tracking the pen. The palm is visible only to the layer that has been told to disregard it.

Many styluses carry no battery

The coils in the tablet generate an alternating magnetic field. A resonant circuit in the pen absorbs energy from it, exactly as a wireless charger transfers power.

The pen then re-emits a signal that the tablet's coils detect. Position is determined by which coils see the strongest return, interpolated to a fraction of the spacing between them.

The whole exchange happens hundreds of times a second, which is why a pen feels attached to the line it draws rather than trailing behind it.

Pressure changes the tuning

Behind the nib sits a small component whose electrical properties change as it is squeezed. As you press harder, the resonant frequency of the pen's circuit shifts slightly.

The tablet measures that shift and converts it to a pressure value. No force is measured by the screen, and nothing needs to be transmitted as data.

Tilt is derived similarly, from the way the returned signal spreads across neighbouring coils. A pen held at an angle produces a lopsided pattern the tablet can interpret.

Active pens take a different route

Styluses for phones and laptops that lack a dedicated layer contain a battery and actively drive a signal into the ordinary capacitive touch grid.

Pressure is measured inside the pen and sent over a separate short-range radio link, because the touch layer alone cannot carry that information.

The result is comparable in use but depends on charging the pen, and the position accuracy is bounded by a grid designed for fingertips rather than nibs.

Latency is the remaining problem

Even with fast sensing, the ink lags the nib because the position must be processed, rendered and displayed. Each stage adds a few milliseconds.

Software hides some of it by predicting where the stroke is heading and drawing ahead, then correcting once the true position arrives.

Prediction is why fast strokes occasionally overshoot and snap back. The system guessed, the pen changed direction, and the correction became briefly visible.

Questions readers ask

Why does brightness jump when I unlock the phone?

The sensor is often only sampled while the screen is on, so the first reading after unlocking replaces a stale value from earlier.

Does automatic brightness save battery?

Usually yes, because most people set a fixed level high enough for the worst case and then leave it there in dim rooms.

Devicesdisplayssensorsperceptionpower
Grigor Petrov
Hardware writer, Tech Behind Things

Grigor writes about silicon, thermals and the physical limits designers keep bumping into.

Also by Grigor Petrov