Part 10 · Machines
Clockwork, Music Boxes and Counting Machines
A wound spring, a ratchet, a train of gears and a fan to hold the speed down make a clockwork motor — enough to run toys, music boxes and an alarm clock. Wheels marked 0 to 9 that carry one to the next make counters, odometers, combination locks and the cash register. This chapter shows how to build each.
- Difficulty
- ●●●●●
- Time
- A weight-driven roasting jack in a week; a music box or counter in two to four weeks; a combination lock or cash register in a season
- Steps from zero
- 18 prerequisites →
The full path from nothing — 18 steps before this one
- Fire
- Cordage and Rope
- Stone Tools
- Finding and Preparing Clay
- Finding and Identifying Ores
- Measurement from Scratch
- Hunting and Trapping
- Basic Woodworking
- Charcoal
- Hides and Leather
- The Wheel and Axle
- Bellows
- Gears
- Iron (the Bloomery)
- Blacksmithing
- Steel
- Springs
- The Mechanical Clock
- Clockwork, Music Boxes and Counting Machines
Do them roughly in this order. See it on the tech tree →
Why it matters
A The Mechanical Clock spends its stored power slowly, over a day. Spend it in a minute or two instead and you have a small motor that needs no fuel, wind, water or electricity. Clockwork turned roasting spits, played music, ran toys, cameras, gramophones and timers for 400 years, and it still works where there is no electricity.
Counting machines are the other half of this chapter. A wheel marked 0 to 9 that kicks the next wheel on by one as it passes from 9 to 0 is a machine that remembers numbers. It measures roads, counts pump strokes or bales, records every sale in a shop, and guards a door with a number instead of a key. The same carrying wheels lead to mechanical calculators (Calculating Aids) and in the end to the The Computer.
How it works
A clockwork motor has five parts:
- Power: a coiled steel mainspring, usually in a drum (the barrel) (Springs), or for big slow jobs a falling weight.
- Ratchet and click: winding turns a ratchet wheel; a sprung click (pawl) drops into its teeth so the spring cannot unwind back through the key (Cranks, Cams and Linkages).
- The train: gears that step the speed up — the opposite of a clock (Gears). Three pairs of 6 : 1 give 216 : 1.
- The governor: a fly — two light vanes on the fastest arbor that waste power on the air faster the faster they spin, so the train settles at a steady speed (Governors and Speed Control).
- A stop lever that catches the fly.
How much power? Not much. A spring 0.3 mm thick, 8 mm wide and 50 cm long stores about 1–2 joules — the work of lifting 1 kg by 10–20 cm: a toy across a room, or a music box for a minute or two. For heavier work use a weight: 10 kg falling 2 m stores 200 joules.
Counting with carries. Each digit wheel turns one-tenth of a turn per count. Once per turn, as it passes from 9 to 0, it nudges the next wheel on by one-tenth — "nine plus one is ten, write nought, carry one".
What you need
| Item | For | Chapter |
|---|---|---|
| Spring steel strip and wire | Mainsprings, clicks, combs, detents | Springs |
| Brass sheet 1–2 mm, rod and tube | Plates, wheels, cylinders, rings | Zinc and Brass |
| Steel wire 0.3–3 mm | Arbors, pins, pivots | Iron and Brass Wire |
| Files, fine saws, drills, a small lathe | Wheels and pinions | Files and Saws, The Lathe |
| Tinplate, solder | Toy bodies, small joints | Tin and Pewter, Soldering and Brazing |
| Seasoned hardwood | Cases, wooden wheels | Basic Woodworking |
| Pine resin, beeswax | Music-box cylinder cement | Tar, Pitch and Glue |
The clockwork motor
Simplest: the weight-driven roasting jack
Kitchens turned their roasting spits with a weight long before springs were cheap. Build this first; it teaches every part at a forgiving size.
- Frame: two plates of iron or hardwood about 20 × 15 cm, held 6–8 cm apart by four pillars (The Mechanical Clock).
- Drum: a wooden drum 8 cm across, wound with cord carrying a 5–15 kg weight over a pulley, with a ratchet and click so a crank can wind it.
- Train: a 60-tooth wheel on the drum into a 10-leaf pinion; a second 60 into 10. The last arbor carries a fly of two sheet-iron vanes, each 10 × 6 cm.
- Output: a pulley and cord from the second arbor to the spit, which should turn about once every 20–40 seconds. Bigger vanes run it slower.
The spring motor
- Spring: for a small motor about 0.3 mm thick, 8–12 mm wide and 40–60 cm long (Springs), inner end hooked to the arbor, outer to the barrel. Cheap toys use an open spring, coiled round the arbor with its outer end hooked to a frame pillar.
- Ratchet: a steel wheel of 20–30 teeth on the winding arbor, with a click held in by a small leaf spring. File the arbor end square for a key.
- Frame: two brass plates 1.5–2 mm thick, drilled together so the pivot holes line up, held by pillars.
- Train: brass wheels and steel pinions of 6–8 leaves (Gears, Watches and Small Clocks), getting lighter and finer toward the fly.
- Fly: two thin brass vanes, held on their arbor by friction so a sudden stop lets them slip instead of breaking a tooth. A worm (screw) driving the fly arbor gives a big speed-up in one step.
Good and bad: a good motor runs at nearly the same speed from fully wound until nearly run down, starts by itself, and is silent but for the hum of the fly. If it starts fast and crawls, the spring is too weak for the load; if it will not start, look for a tight pivot or gears meshed too deep.
Wind-up toys
A spring motor with little or no governor, driving wheels or a linkage.
- A running car or animal: an open spring, one or two gear steps of about 4 : 1 to the driving axle, and wheels 2–3 cm across with a cloth or rubber tyre. The wheels' load on the floor limits the speed.
- Walking, pecking or drumming: a crank or cam on the output arbor moves a leg, beak or drumstick (Cranks, Cams and Linkages).
- Bodies: cut tinplate, emboss details with a blunt punch over end-grain wood, and join parts by tabs pushed through slots and bent over (Sheet Metal and Rolling). Paint before assembling. Or carve the body from wood.
Fold over every cut edge and file off burrs — a child will put it in its mouth (Toys).
The music box
The comb
A plate of spring steel with a row of teeth cut into one edge, each tuned to one note.
- Plate: carbon steel 1–2 mm thick, as wide as the cylinder is long. A small box has 15–20 teeth on a comb 3–5 cm wide; a large one 50–100.
- Teeth: saw slots with a fine saw or thin grinding wheel, leaving teeth 1–2 mm wide, then file each tooth down to 0.4–0.6 mm thick, keeping the back of the plate thick.
- Pitch rises with thickness and falls with the square of length. A steel tooth 0.5 mm thick sounds about 650 vibrations a second at 25 mm long and about 1,800 at 15 mm. Grade the teeth from long (low) to short (high).
- Harden and temper to a spring (blue) temper (Springs).
- Tune against a reference (Musical Instruments): grind the tip to raise a note, grind near the root to lower it. Bass teeth are lowered further with a blob of lead soldered underneath.
- Dampers: a tiny feather of fine steel wire under each bass tooth touches it just as the next pin arrives, so a still-ringing tooth does not buzz.
- Mount the comb by its thick back, screwed hard to a heavy brass or iron bedplate on the wooden case. Rigid mounting gives a long, clear ring.
The pinned cylinder
- Cylinder: brass tube 3–6 cm across, as long as the comb, with end caps carrying a steel arbor.
- Lay out the tune: wrap paper round the cylinder, draw a line round it under each tooth, and divide the circumference into equal steps of time — say 96 steps for 24 bars of four beats. Mark a dot at each note's tooth line and beat.
- Drill each dot (0.3–0.5 mm) and push in hard steel wire, leaving about 1 mm standing, all leaning very slightly forward.
- Cement: warm the cylinder and roll a melted mix of pine rosin and a little beeswax around inside it. It locks the pins and deadens the tube's ring.
- True the pins: spin the cylinder and touch the pin tips to a fine stone so all stand at the same height.
- Set the comb so each pin lifts its tooth tip about 0.3 mm before letting go. Deeper snaps teeth; shallower misses notes.
One turn of the cylinder plays the tune, usually in 30–60 seconds. Large boxes shift the cylinder sideways a step after each turn to bring another set of pins under the teeth, giving six or eight tunes.
The drive: a spring barrel turns a wheel on the cylinder arbor; from there two or three steps up end in a worm and fly, with a stop lever on the fly.
The simplest music box has no motor: a hand crank turns the pinned cylinder through a worm. A good box plays every note evenly with no buzz, keeps an even tempo and stops cleanly.
The alarm clock
The simplest alarm: a nail pushed into a burning candle at the right height drops onto a metal plate when the wax melts away (Hourglasses, Water Clocks and Simple Timers).
A mechanical alarm is a spring-driven clock (The Mechanical Clock) with a second, smaller spring and train that rings a bell.
- The ringing train: a small barrel drives an escape wheel whose rocking pallets (a verge) carry a hammer, flung back and forth 10–20 times a second against a bell of brass or bell bronze 5–7 cm across (Bronze).
- The release: a light lever (the detent) rests against the hammer arm, holding it still.
- Setting: behind the dial, a setting wheel with its own small hand faces the hour wheel. One wheel has a pin, the other a notch, and a light spring presses them together. At the hour the setting hand points to, the pin drops into the notch, the hour wheel moves sideways 1–2 mm, and a lever riding on it lets the detent fall. The bell rings until the spring runs down or a shut-off slide pushes the detent back.
Because the pin slides into its notch gradually, such an alarm is accurate to about 10–15 minutes — enough to wake a household or call a change of watch.
Counting machines
The mechanical counter
Simplest: a ratchet wheel of 10 or 100 teeth with numbers on its face, advanced one tooth per stroke by a pawl, held by a sprung detent.
The dial counter (as on gas and water meters): a train of 10 : 1 gears, each arbor with a pointer on its own dial — units, tens, hundreds. Easy to make, easy to misread.
The digit-wheel counter, showing a row of figures in a window:
- Number wheels: discs of brass or hardwood about 2 cm across and 5–6 mm wide, figures 0–9 round the rim. On one side, a ring of 20 small teeth; on the other, a smooth locking rim with a notch and, beside the notch, two carry teeth.
- Transfer pinions: on a second shaft, a 6-tooth pinion sits between each pair of wheels. Every other tooth is full width and reaches the locking rim of the lower wheel; the others are half width and reach only the higher wheel's 20 teeth.
- Carrying: most of the time two full-width teeth straddle the smooth rim, so the pinion cannot turn. As the lower wheel passes 9 to 0, its notch comes round and its two carry teeth sweep the pinion through one-third of a turn. That moves the higher wheel 2 of its 20 teeth — one number — and it locks again.
- Driving: a ratchet, crank or gear turns the units wheel. A light sprung detent in each wheel stops it squarely on each number.
Good and bad: figures sit squarely in the window; it rolls from 0999 to 1000 without sticking; it never moves when shaken.
The odometer
- The measuring wheel: a surveyor's wheel pushed by hand, made exactly 1 m round (31.8 cm across) or 2 m round (63.7 cm). On a cart, roll the wheel one turn along a line and measure its track.
- Reduce: a single-thread worm on the axle turns a worm wheel one tooth per turn (Gears). With a 2 m wheel and a 50-tooth worm wheel, the worm wheel turns once per 100 m.
- Count: a pin on the worm wheel kicks a digit counter on by one per turn, so it reads in hundreds of metres.
- Calibrate over at least 1 km measured by chain (Surveying and Levelling), and recheck each season as tyres wear.
The speedometer
Simplest: a stopwatch and two posts 100 m apart. Speed in km/h = 360 ÷ seconds taken — 36 seconds is 10 km/h, 6 seconds is 60 km/h.
Centrifugal: a small flyball governor driven by a flexible cable from the wheel. As speed rises the balls swing out against a spring and slide a collar that moves a pointer. The scale is uneven; mark it by timed runs between posts.
Magnetic (eddy-current): the cable spins a permanent magnet (Magnets) inside a thin cup of aluminium or copper (Aluminium) without touching it. Electric currents set up in the cup drag it round, harder the faster the magnet spins; a fine hairspring (Watches and Small Clocks) holds it back. The cup's pointer settles where spring and drag balance, on an even scale. Calibrate the same way.
The combination lock
The ring (letter) lock
- Body: a brass tube about 15–20 mm across, closed at one end, with a slot along one side.
- Rings: 3–5 brass rings turning on the tube, each with 10 figures or letters outside and one notch inside. Thin fixed washers between them stop one ring dragging its neighbour.
- Bar: a rod inside the tube with one lug per ring sticking out through the slot, trapped behind the rings — until every ring's notch lines up with the slot.
- Changing the code: make each ring in two parts — numbered outer ring and notched inner sleeve — pinned together in any of 10 positions.
Four rings of ten figures give 10,000 combinations.
The dial lock (safe lock)
- Wheel pack: three brass wheels, each with a gate (notch) in its rim and a small pin on each face, turning loosely on a post.
- Drive cam: fixed to the dial spindle; its pin picks up the first wheel, whose pin picks up the second, which picks up the third.
- Fence: a bar on a pivoted lever resting on all three rims. Only when all three gates line up can it drop in; then the lever's nose falls into a notch in the drive cam and turning the dial draws the bolt.
- Dialling a three-number code: left four turns to the first number; right three turns to the second; left two turns to the third; then right until the bolt draws.
Good and bad: wheels exactly round and the same size, gates only slightly wider than the fence, and shallow false notches in every wheel. Sloppy work lets a patient person feel the gates through the dial. For bolts and safes see Locks and Keys.
The cash register
It adds every sale, shows each one to the customer, and opens the drawer only when a sale is entered — so takings and records agree.
Simplest: a locked drawer with a bell and a counter that advances each time it opens, checked against a daybook (Money, Trade and Record-keeping).
The key-driven register:
- Keys: a column of nine keys (1–9) for each place: units, tens, hundreds.
- Adding: all keys in a column press on one lever pivoted at one end — key 1 close to the pivot, key 9 nine times as far out — so a full stroke of key 9 swings the lever nine times as far. A toothed sector on the lever turns that column's total wheel one tooth per unit through a one-way ratchet. Total wheels carry into each other as in the counter.
- Full stroke: a rack and pawl on each key stop it rising until it has gone fully down, so a half-press cannot add a wrong amount.
- Display: each key lifts a tablet showing its amount in a window on top.
- Drawer and bell: at the bottom of any key's stroke, a catch releases a spring that pushes the drawer open and swings a hammer against a bell.
- Totals: locked under a cover that only the owner can open to read and reset.
Make the case of wood, levers of brass or steel strip, and total wheels as in the counter. A printing register adds type wheels and an inked ribbon on a paper roll (Printing).
How to tell it worked
- A motor runs steadily for most of its run and starts by itself when released.
- A music box plays every note in tune at an even tempo.
- An alarm rings within 15 minutes of the set time, every time.
- A counter or odometer agrees with a careful hand count or measured distance within 1–2%.
- A combination lock opens only on its code, with no play you can feel.
- A cash register's total equals the money in the drawer at day's end.
Note Troubleshooting. Motor will not start → tight pivot, bent arbor or teeth meshed too deep; free each arbor alone and check it coasts. Runs too fast → fly too small or slipping. Spring breaks at the inner end → arbor thinner than 25 times the spring's thickness, or a sharp hook. Music box misses notes → pins too low or comb set too far back. Buzz → missing damper or loose comb screw. Counter skips or double counts → weak detent, or carry pinion not locked by the rim. Alarm at the wrong hour → setting wheel slipping on its arbor.
Dangers
Danger A loose mainspring. A wound spring that escapes its hook uncoils violently, slicing fingers and flying at eyes. Always let a spring down under control first — hold the key, lift the click, let the key turn slowly through your fingers — before taking clockwork apart. Wind springs into barrels with a winding tool, and wear eye protection.
- Quenching springs and combs in oil can flare; do it outdoors with a lid at hand (Springs).
- Lead and solder fumes: work in moving air and wash your hands (Lead).
- Tinplate toys: fold every edge; keep small parts from babies.
- Hot rosin is flammable and clings to skin; melt it slowly, never over an open flame.
What this unlocks
Clockwork drives gramophones (Recording Sound), cameras (Photography), telescope mounts (The Telescope) and lighthouse lenses (Harbours and Lighthouses). A pinned cylinder is a stored program — the same idea that drives Automata, Barrel Organs and Player Pianos — leading to punched-card looms (Textile Machinery) and punched-card tabulators. Carrying digit wheels lead to calculators (Calculating Aids), relay counters and the The Computer; odometers and speedometers belong on every The Bicycle, The Motor Vehicle and locomotive (Railways).
How it was first done
Vitruvius (about 25 BC) and Hero of Alexandria (1st century AD) described a hodometer: a cart wheel moving a toothed wheel that dropped a pebble into a box at every mile. Spring-driven clocks appeared in Europe in the 15th century, followed by clockwork roasting jacks, Automata, Barrel Organs and Player Pianos and toys. Pinned barrels played church bells and organs from the 14th century; Antoine Favre, a Geneva watchmaker, made the first steel-comb music box in 1796. Letter locks were known in Europe by the 16th century. Levi Hutchins of New Hampshire built himself an alarm clock in 1787 that rang only at 4 a.m.; Antoine Redier of France patented an adjustable alarm in 1847. James Ritty, a saloon keeper of Dayton, Ohio, patented the cash register in 1879, and the National Cash Register Company made it universal from 1884. Otto Schulze patented the eddy-current speedometer in Germany in 1902.
Source: content/entries/mechanics/clockwork-and-counters.md