← ELI5 中文
EXPLAIN LIKE I'M 5

Tap it, it's sharp.
How does it know?

For anyone who takes photos with a phone
No. 388Inside Computers & the InternetPart 41 of 42Inspired by RedditFact-checked Oct 26, 2026
Video2:40 · English voice (AI) · English subtitles

Can't play sound? The illustrated version is right below.

Read the transcript

The full narration of the video.

Tap, and it turns sharp. Not editing. A tiny lens actually moved. You shoot a cup: the window behind is crisp, the cup is a blur. Tap the cup, and it snaps into focus. Tap a spot, that spot gets sharp. How does the phone know? Let's follow that tap inside.

First, why things blur. Light passes through the lens and has to meet again in tiny points behind it. That's a sharp picture. Light from near things meets farther back, from far things farther forward. There's only one sensor, so the near cup and the far window often can't both be sharp. The fix is to move the lens: forward, and near things sharpen. Back, and far things do.

How far does it travel? Less than a millimeter. What pushes it is a coil of thin copper wire and a small magnet, the same trick your earbuds use to make sound. Send current and the magnet shoves the coil, more current, farther. Cut the power and a tiny spring pulls it back. It's called a voice coil motor, and it sits inside that little camera bump.

The real puzzle: the phone has to know which way, and how far. Picture the lens as a car backing into a parking spot. Older phones were like reversing without a parking sensor: creep a bit, stop, take a look. Look at what? The edges. Where it's sharp, light and dark sit right next to each other. Where it's blurry, they smear into gray.

Move a bit, edges sharpen, keep going. Go too far, it blurs, back up. That's why focusing used to look like the picture was hunting. The newer way is like having a parking sensor: no inching and checking, it just tells you how far, and which way. It relies on some special tiny squares on the sensor, each split in two: the left half only catches light from the lens's left side, the right half only from the right.

Out of focus, the two halves see the cup as two shifted copies. In focus, the copies merge into one. Which way they're shifted tells forward or back. How far they're shifted tells how much. One calculation, and the motor pushes straight there. This is called phase detection autofocus, a phrase you'll often see on spec sheets. The sensor's "this much farther" is, in the phone, how far apart the two copies sit.

That tap also sets the brightness from the spot you touched: tap a dark spot, the photo brightens. Tap a bright one, it dims. So it's sharp where you tap because you told it where to look. The rest is two copies compared, and one push from the motor. Try this: aim your phone at a blank wall and tap. No edges, nothing for the copies to compare, so many phones hunt back and forth.

Stick up a page with writing and tap again: it locks right on. Aimed at a blank wall, does your phone lock on, or hunt?

1

A tap moves a tiny lens

The tap doesn't edit the photo.
It moves a lens inside the phone.

Next time something close up looks blurry, don't press the shutter yet. Tap it on the screen first. Shoot a cup with a window behind it: the window is sharp, the cup is blurry. Tap the cup, and the cup gets sharp.

2

Near and far can't both be sharp

sensor lens

Light from near things meets further back. Light from far things meets further forward.

Light passing through the lens has to meet in tiny points behind it for the photo to be sharp. There is only one sensor, so a near cup and a far window often can't both be sharp. The fix is to move the lens: forward for near things, back for far things. How far? Less than a millimetre.

3

A tiny motor pushes the lens

A coil of thin copper wire and a small magnet, the same parts that make sound in earphones. Send current through it and the magnet pushes the coil. More current, further it goes. Cut the current and a small spring pulls it back.

It's called a voice coil motor, and it sits in the camera bump on the back of your phone.

4

The hard part: which way, how far

Think of the lens as a car backing into a parking space.

EARLIER PHONES
Parking without sensors: move a bit, stop, look
They look at edges. Where it's sharp, light and dark sit right next to each other. Where it's blurry, they smear into grey. Go too far, back up again. That's why focus used to hunt back and forth.
LATER PHONES
Parking sensors: they tell you how far, and which way
No inching. One calculation, and the motor pushes straight there.
5

Tiny pixels split in half

Out of focus: two shadows In focus: one cup leftright

The sensor has some special pixels, each split into a left half and a right half. The left half only takes light from the left side of the lens. The right half only takes light from the right side.

Out of focus, the two halves see the cup as two shadows, apart. In focus, the two shadows line up as one.

Which way they're apart tells it forward or back. How far apart tells it how far to move. This is phase detection autofocus, often written PDAF on spec sheets.

The car→the lens
The space→the sharpest spot
Sensor reading→how far apart the shadows are
6

It also sets the brightness

The same tap also sets brightness from the spot you touched. Tap a dark area and the photo gets brighter. Tap a bright area and it gets darker.

So tap to focus is you telling it where to look. The rest: compare the shadows, push the motor.

7

Try it

?

Point your phone at a blank white wall and tap. With no edges, the shadows have nothing to compare, and many phones hunt. Stick up a sheet of paper with writing on it and tap again. It locks on at once.

Pointed at a white wall, does your phone lock on at once, or hunt?
The whole trip the lens makes: less than a millimetre.
UP NEXT

How Do Deleted Files Come Back?

Deleting only crosses out a line in the drive's contents page; the data stays until it's overwritten. Phones and SSDs are different.

No. 389 · 6 minKeep going →
← Back to ELI5