About Escapement
Escapement v1.1.0
Escapement shows how a mechanical clock works, using one clock you can run and take a look inside: a spring-driven skeleton bracket clock with a Graham deadbeat escapement and a half-second pendulum. Every part can be picked and has a short explanation, and the numbers behind it — the pendulum's period, the gear ratios, the power reserve — are worked out on the page.
The model
The clock was built in Blender by a script (blender/build_clock.py), not by hand: every wheel's teeth, every arbor's position and every pallet come from one specification (src/clock.js), so the teeth mesh exactly and the pallets span the right number of teeth. The model was exported to glTF; the page loads it with three.js and turns each moving part about its own arbor.
How it moves
The pendulum swings as θ = A·sin(2πt/T) with T = 1 s and A = 3°. The escape wheel stands still while it is locked and turns half a tooth during a short impulse each time the pendulum passes the middle; every other wheel follows through the gear ratios, so the minute hand turns once in exactly 3600 s and the hour hand once in 12 hours. The same rule drives the Blender animation and the page, and tests check that both agree. The pallets are traced from this motion (src/escapement.js), and a test steps through whole beats to check that no tooth ever passes into a pallet.
What it leaves out
The motion follows the rules of the escapement rather than simulating forces: the pallets are shaped so the teeth meet them exactly, but the pendulum's swing does not grow or shrink with the spring's force, and friction is not modelled. Proportions follow real skeleton clocks, but this is not a drawing of a particular clock.