The seam is the secret
A lock never checks your key. It checks five gaps. The plug turns the instant every gap between a gold pin and a red pin sits on the shear line, whatever put them there.
A field guide to the insides of things
Each explainer takes one ordinary object apart. Slide it, turn it, slow it down and watch every piece do its job, until you could explain it to someone else.
Start with the lockExplainer No. 1
Most front-door locks run on a single trick: a few stacks of tiny pins, and one line they all have to agree on. Step through it below, or grab the sliders and play.
Pick a depth for each cut: 0 is shallow, 5 is deep. Get all five gaps onto the shear line.
Point at a part to find it in the drawings.
The cylinder that turns. The keyway runs through it, and its back end turns the cam that works the bolt.
Five cuts, each one a height for one stack. All a key ever does is lift.
The gold bottom pins. Each is cut to a different length to match a different cut depth.
The red top pins, usually all the same length. They're the ones that actually block the plug.
Push each stack back down, so the lock re-locks itself the moment the key comes out.
The fixed shell around the plug. It holds the top half of every pin hole.
Not a part at all: the seam where plug meets housing. Every gap has to land exactly here.
A lock never checks your key. It checks five gaps. The plug turns the instant every gap between a gold pin and a red pin sits on the shear line, whatever put them there.
To come out, the key has to push each gold pin up over its ridges. Once the plug turns, there's solid housing above those pins instead of a hole, so they can't rise and the key can't move. Turn back to the start and it slides right out.
On common house keys, neighboring cut depths are only about 0.4 to 0.6 mm apart. One cut off by a single step leaves one red pin straddling the seam, and one pin is all it takes.
No lock is machined perfectly, so the pin holes are a hair out of line. Turn the plug gently and one pin binds before the others. Lift it to the line and it stays put; then the next one binds. The drawing above has perfectly aligned holes, so it can't show this.
Wooden locks in ancient Egypt may have used the same pin idea about 4,000 years ago. Linus Yale Sr. built the modern pin-tumbler lock in 1848, and in 1861 his son, Linus Yale Jr., patented the small, flat key with a serrated edge.
More explainers