Part 10 · Machines
Automata, Barrel Organs and Player Pianos
Machines that play a part by themselves, read from a stored program. Cams that make wooden figures nod, hammer and dance; pinned barrels that play organs and ring bells; and punched paper rolls that play a piano. They are toys, music for people without a musician, and the first programmed machines.
- Difficulty
- ●●●●●
- Time
- A weekend for a cam toy; a winter for a small barrel organ; a year or more for a player piano
- Steps from zero
- 26 prerequisites →
This unlocks
—The full path from nothing — 26 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
- Pottery
- Hides and Leather
- Musical Instruments
- The Wheel and Axle
- Bellows
- Gears
- Iron (the Bloomery)
- Copper Smelting
- The Waterwheel
- Blacksmithing
- Zinc and Brass
- Steel
- Sheet Metal and Rolling
- Horns, Pianos, Organs and Accordions
- Springs
- The Mechanical Clock
- Clockwork, Music Boxes and Counting Machines
- Automata, Barrel Organs and Player Pianos
Do them roughly in this order. See it on the tech tree →
Why it matters
An automaton is a machine that performs a sequence of actions by itself, following instructions stored in its own parts. The instructions can be stored three ways: in the shape of a cam, in pins on a turning barrel, or in holes punched in paper. All three appear in this chapter.
That idea has practical uses. A barrel organ gave hymns to village churches with no organist, and dance music to streets and fairs. A chiming drum rings tunes on a tower's bells every hour. A player piano plays music no one in the house can play. Cam automata are toys, shop-window displays and teaching models. And the same idea — a machine reading a stored program — runs the Jacquard loom (Textile Machinery), the The Teleprinter, factory machines and every The Computer (Programming).
The music box is already the simplest automaton: a pinned cylinder plucking a steel comb. This chapter builds on it, and on the organ and piano in Horns, Pianos, Organs and Accordions.
How it works
Every automaton has four parts:
- Power: a hand crank, a falling weight, a wound spring (Clockwork, Music Boxes and Counting Machines), or later an electric motor.
- Timing: something that turns at a steady rate — a crank turned by hand, or a clockwork train with a fly governor (Governors and Speed Control).
- The program: cams, a pinned barrel or a punched roll, moved by the timing.
- The actors: followers, levers, wires and rods that carry each instruction to a figure's arm, an organ's pipe or a piano's hammer.
The program carriers differ in what they are good for:
| Carrier | Stores | Good for | Limit |
|---|---|---|---|
| Cam | A smooth movement: how far and how fast | Figures, nodding heads, hand movements | One movement per cam; one cycle per turn |
| Pinned barrel | On or off, for many channels at once | Music, bells, sequences of switches | Length limited to one turn of the barrel; hard to change |
| Punched roll or cards | On or off, many channels | Long music, patterns, data | Needs a reader; paper wears |
Cams for moving figures
A cam is a shaped disc on a turning shaft; a follower rests on its edge and moves as the edge rises and falls (Cranks, Cams and Linkages). For figures, the shape matters:
- Eccentric — a round disc fixed off-centre. Smooth, even up and down: breathing, nodding, rocking, a boat on waves.
- Snail — a spiral that rises slowly through one turn and drops off a step. Slow lift, sudden fall: a hammer, an axe, a pecking bird. It works in one direction only.
- Pear — a circle with one bump. Rest, lift, hold, drop back: a head that turns to look and returns.
- Multi-lobed — two, three or four bumps. Fast repeated movements each turn: a dancing foot, a sawing arm.
Followers. A peg with a rounded end is simplest. A small roller (a wooden wheel or a bead on a pin) runs far easier and wears less. The follower is held on the cam by gravity or by a light spring (Springs).
Steepness. If the cam's edge rises too steeply, the follower jams sideways in its guide instead of rising. Keep the slope gentle: the edge should never meet the follower at more than about 30° from straight on. In practice, when a cam must lift its follower by as much as its own smallest radius, spread that rise over at least a quarter of a turn.
Drawing a cam to any motion
- Plan the motion on a strip of paper: a line 12 squares long, one square for each 30° of the turn, and above each square mark how high the follower should be.
- On card, draw the cam's base circle (the follower's lowest position), at least 3 times as wide as the greatest lift. Draw 12 radial lines 30° apart.
- Along each line, measure out from the base circle the height for that step. Number the lines against the direction the cam will turn, because the cam's edge moves under a fixed follower.
- Join the points with a smooth curve. For a roller follower, this curve is the path of the roller's centre: draw the actual cam edge inside it, one roller radius in, by drawing many small circles of the roller's size along it and joining their inner edges.
- Glue the drawing on hardwood or plywood, saw just outside the line and sand down to it.
Building a cam box
A hand-cranked box with a figure on top is the classic first automaton. Make it once and you can make any of them.
- The box. Four sides and a lid of 6–9 mm hardwood or plywood (Plywood, Veneer and Boards), about 20 cm long, 12 cm wide and 15 cm tall, glued and pinned (Doors, Windows and Joinery). Leave the front open so people can see the works; that is half the charm.
- The camshaft. A straight hardwood dowel or steel rod, 6–8 mm, through holes drilled exactly opposite each other in the two ends, a little loose. Fit a crank handle on one end and a collar on the other so the shaft cannot slide.
- The cams. Cut them 4–6 cm across from 9–12 mm hardwood. Drill them a tight fit on the shaft, but do not glue them yet.
- Guides. Drill holes in the lid directly over each cam, and in a second thin board fixed 3 cm below it, so each push rod is held upright at two points.
- Push rods of 5 mm dowel, with a small wooden wheel or a smooth rounded foot at the bottom. Their top ends drive the figure.
- The figure of carved or turned wood (Wood Turning and Treen), with joints made by passing fine wire through drilled holes. A push rod lifting the back of a hinged arm makes it swing; a rod pushing one side of a head pivoted on a wire makes it nod; a rod turning a small crank through a cord makes it rotate.
- Time the cams. Turn the crank slowly and twist each cam on the shaft until the movements happen in the right order. Then mark, drill and pin each cam through to the shaft.
- Finish with wax or oil (Pigments, Paints and Varnish) and lubricate the shaft holes and cam edges with a little beeswax (Beekeeping) or soap.
For automatic movement, drive the camshaft from a clockwork motor with a fly (Clockwork, Music Boxes and Counting Machines) through a gear train that brings it down to one turn every 5–20 seconds.
A good automaton runs through its whole cycle with a light, even pull on the crank, with no catch, knock or hesitation, and every movement reads clearly from across a room.
The great clockwork automata
The famous automata of the 1700s, which wrote, drew and played music, used exactly these parts, made by watchmakers (Watches and Small Clocks). The writing figure by the Jaquet-Droz family has a stack of cams for its hand: one stack for left–right movement, one for up–down, one to lift the pen off the paper. A program wheel carries a row of removable tabs, one per letter, which shifts the cam followers to the right part of the stack for each letter in turn. Changing the tabs changes the text. It needs nothing that is not in this book, only patience: thousands of parts made and fitted by hand.
Pinned barrels
A pinned barrel is a cylinder studded with pins. As it turns, each pin lifts a key for a moment. A row of keys along the barrel gives many channels at once. One turn is one tune.
The barrel organ
A barrel organ is a small pipe organ (Horns, Pianos, Organs and Accordions) whose keyboard has been replaced by a pinned barrel.
- Pipes and windchest. Usually 20–30 notes in one to three ranks of wooden stopped pipes, which are short, easy to make and sweet-toned. Choose the notes for the tunes you want: a scale of two octaves, plus the few sharps the tunes need.
- Bellows. Two small wedge bellows (feeders) pumped alternately by cranks on the main shaft, filling a reservoir weighted to give steady wind of about 60–80 mm of water (Bellows, Pressure and Vacuum Gauges).
- Barrel. A wooden cylinder of well-seasoned, close-grained wood — lime, poplar or pear — built up from glued staves round end discs so it will not warp, 15–25 cm across and as long as the row of keys, turned true on a The Lathe. One turn takes as long as the tune: typically 30–60 seconds.
- Drive. The crank, turned steadily at about one turn a second, drives the barrel through a worm and wheel (Gears) of about 40 or 60 to 1. The player sets the tempo with the crank, so practise turning evenly.
- Keys. A keyframe of light wooden levers, one per note, 5–8 mm apart, each with a hardened brass or steel nose resting on the barrel. When a pin lifts the nose, the key's tail pulls a thin wooden or wire sticker that opens the pallet for that pipe.
- Pins and bridges. Pins of brass wire 1–1.5 mm for short notes; flat bridges (staples of brass strip) for long notes, as long round the barrel as the note lasts. A pin stands about 3 mm proud.
Noting the barrel — marking where every pin goes — is the real skill.
- Write out the tune and decide how many beats fit round the barrel.
- Mount the barrel on a frame with a dividing wheel (Scientific Instrument Making) so it can be turned exactly one beat, or a fraction of a beat, at a time.
- A marker bar carrying a scriber for each key sits along the barrel. For each step of time, press down the scribers for the notes sounding then. Mark the start and end of each note.
- Drill each mark, drive in the pins and bridges, and lean them very slightly forward so the key rides up smoothly.
- More tunes on one barrel. Put a second tune's pins a millimetre or so to one side of the first, and so on. A stepped cam at the end of the barrel slides it sideways one step to change tunes. Eight to ten tunes on one barrel was usual.
A good barrel organ speaks every note cleanly with no cipher (a pipe that sounds when it should not), the rhythm sounds right at an even crank speed, and changing tune does not leave keys caught between tracks.
Chiming drums and carillons
A clock that plays tunes on bells uses the same idea, bigger. A large chiming drum of wood or iron, turned by the clock's own striking train (The Mechanical Clock), lifts levers connected by wires to hammers outside the bells. Each hammer is lifted 3–5 cm and falls on the bell's lip, and a stop holds it 1–2 mm off the bell afterwards so the bell rings freely. The Flemish carillon drums of the 1500s onward were iron cylinders drilled with a grid of thousands of holes, in which the bell-master set and reset movable pegs, so the town's tunes could be changed each season: a reprogrammable machine four hundred years before the computer.
Punched rolls: the player piano
A pinned barrel is limited to one turn. A roll of punched paper can be as long as you like, is cheap to copy, and is easy to store. To read it, the piano is fitted with a pneumatic action that uses the holes as valves.
The parts:
- Exhausters: two large bellows worked by the player's feet, which suck air out of a reservoir held open by springs. They keep the whole action at a steady suction of roughly 20–40 cm of water: gentle pumping for soft music, harder for loud.
- The tracker bar: a brass bar with a row of slots, one per note. The standard 88-note roll is 28.6 cm (11¼ inches) wide, with 9 holes to the inch (one every 2.8 mm).
- The roll of strong, smooth paper, wound from a supply spool down over the tracker bar onto a take-up spool, pulled by a small air motor — five little bellows driving a crankshaft. A sliding valve sets its speed, which is the tempo. A second gear rewinds the roll.
- The valve chest: for each note, a tube (lead, brass or rubber, 3–4 mm bore) runs from the tracker bar slot to a little chamber closed by a thin leather pouch. A bleed hole, about 0.5 mm, connects that chamber to the suction, so normally the pouch lies flat.
- The pouch valve: when a hole in the paper passes the slot, outside air rushes down the tube faster than the bleed can remove it. The pouch puffs up and lifts a small disc valve. The valve shuts off the striker pneumatic from the outside air and opens it to the suction.
- The striker pneumatic: a small bellows of thin wood and rubber-coated cloth, about 12 cm long and 2 cm wide. Opened to suction, it collapses and pushes a wooden finger that lifts the piano's key or action, striking the note. When the paper covers the slot, the bleed empties the tube, the valve drops, air flows back in, and the note releases.
- Expression: levers by the player's hands soften one half of the keyboard or work the sustaining pedal, or extra holes at the edges of the roll do it automatically.
Making it. Build the action as a separate unit that sits inside an upright piano above the keys. All of it is woodwork, leather and glue: sound, airtight joints are everything. Seal all wooden channels with shellac varnish (Pigments, Paints and Varnish) and test each note's channel for leaks by sucking on it.
Making rolls. Mark a master roll by hand from the written music, on paper ruled with a line for every note, using one length of paper for each beat. Then punch it. For copies, a perforator stacks a dozen layers of paper and punches them all together, guided by the master. Roll paper must not stretch with damp: store rolls in their boxes, in a dry room.
A good player piano plays every note when its hole passes and releases cleanly, repeats a fast note without missing, and keeps steady tempo through the roll.
Book music
Fairground and dance organs use book music: thick card punched with holes and folded zigzag into a stack. It feeds through a key frame of spring-loaded feelers (mechanical) or over a tracker bar (pneumatic). Card lasts longer than paper in damp, rough use, and the books can be as long as you like. The Jacquard loom reads its cards the same way.
How to tell it worked
- Cam box: the cycle repeats exactly on every turn, with no jam at any point; the figure's movements can be seen clearly at 3 m.
- Barrel organ: play a scale tune; every note must speak and stop on time. Turn the crank half speed: notes should not slur into one another.
- Chiming drum: every bell struck with the same strength; no hammer resting on its bell.
- Player piano: run a test roll with each note in turn, then chords; no note missing, none hanging on.
Note Troubleshooting.
- Cam follower jams: the rise is too steep; reshape the cam with a longer rise, or fit a roller.
- Figure moves jerkily: the push rod rubs in its guide; ream the holes, and wax the rod.
- Organ note keeps sounding (a cipher): a key or pallet sticking, a sticker too long, or dirt under the pallet.
- Organ notes thin or wavering: bellows leak, or the reservoir weight is too light.
- Player piano note silent: a torn pouch, a blocked bleed, a cracked tube, or a leak in the striker pneumatic. Note won't stop: the bleed hole is blocked with dust; clear it with a fine wire.
- Roll drifts sideways: fit a tracking device — two edge holes on the bar that steer the spool sideways — or keep the paper dry and the spools true.
Dangers
Danger Tower clock and carillon drives use weights of hundreds of kilograms. A snapped rope or a slipped ratchet lets them fall. Never stand under the weight line; inspect ropes every year; keep a lock on the winding handle.
- Wound springs store a lot of energy. Let a spring down through its click slowly, never by pulling the click (Clockwork, Music Boxes and Counting Machines).
- Fingers in cams and gears. Children love automata. Cover gears and pinch points on toys meant for small hands, and make sure no part can come off and be swallowed (Toys).
- Lead tubing and lead–tin organ pipe metal are poisonous to work: wash hands, never eat in the workshop (Lead).
- Pianos are very heavy. Move them with enough people and never stand on the downhill side of a piano on a slope.
What this unlocks
Pinned barrels and punched rolls are the first stored programs. The same ideas lead to the Jacquard loom and factory machines that follow a pattern (Textile Machinery), the paper tape of the The Teleprinter, punched-card tabulating machines, and the stored programs of the The Computer (Programming, Displays, Printers and Data Storage). Cams remain everywhere: in the The Sewing Machine, the valve gear of every The Internal Combustion Engine engine, and Robots and Automation.
How it was first done
Hero of Alexandria, in the first century AD, described automatic theatres in which figures were moved by cords wound round turning drums, with pegs that reversed the cord: the cord's winding was the program. In 9th-century Baghdad, the three Banu Musa brothers described a water-powered organ played by a pinned cylinder — the oldest known description of a programmable machine. Al-Jazari, in 1206, described a boat of musician figures worked by a pegged drum whose pegs could be moved to change the rhythm.
Automatic chimes on bells spread through the towers of Flanders and the Netherlands from the 1300s and 1400s. In the 1700s Jacques de Vaucanson built a flute player and a "digesting" duck, and Pierre and Henri-Louis Jaquet-Droz with Jean-Frédéric Leschot built the Writer, the Draughtsman and the Musician, finished around 1774; they still work in a museum in Neuchâtel, Switzerland. Barrel organs filled English village churches from about 1790 to 1860, until harmoniums and trained organists replaced them.
Punched paper first controlled looms: Basile Bouchon in 1725, Jean-Baptiste Falcon with cards in 1728, and Joseph-Marie Jacquard in 1804. Edwin Votey built the Pianola, a cabinet pushed up to an ordinary piano to play it from a roll, in the late 1890s; players soon moved inside the piano, and makers agreed the 88-note roll in 1908. By the early 1920s more than half the pianos made in the United States were player pianos, until the gramophone and radio replaced them (Recording Sound, Radio).
Source: content/entries/mechanics/automata.md