Part 14 · Electronics and Computing
Punched-Card Tabulating Machines
Before computers, offices kept records on punched cards and handled them with electric machines — punches, sorters, tabulators that add and print, collators that merge files, all set up by wiring a plugboard. How to build them, from Hollerith's hand-fed census press to card-fed machines, and how to run a town's accounts, census or billing with them.
- Difficulty
- ●●●●●
- Time
- A week for a hand punch and pin-press counter; a season for a card-fed sorter; a year or more for a printing tabulator
- Steps from zero
- 60 prerequisites →
This unlocks
—The full path from nothing — 60 steps before this one
- Fire
- Cordage and Rope
- Stone Tools
- Finding and Preparing Clay
- Finding and Identifying Ores
- Sulfur
- Writing and Numbers
- Hunting and Trapping
- Basic Woodworking
- The Kiln
- Pottery
- Charcoal
- Arithmetic and Fractions
- Hides and Leather
- Lime
- Bricks
- Salt
- Mercury
- Lye and Potash
- Fermentation
- The Wheel and Axle
- Logic and Binary
- Glass
- Firebrick and Refractories
- Bellows
- Saltpeter
- The Lathe
- Gears
- Copper Smelting
- Iron (the Bloomery)
- Lead
- Laboratory Glassware
- Sulfuric Acid
- Pumps
- The Waterwheel
- Lenses
- Blacksmithing
- Gold and Silver
- Hydrochloric Acid
- The Battery
- The Vacuum Pump
- Magnets
- The Light Bulb
- Copper Wire
- Photography
- The Generator
- The Electromagnet
- The Vacuum Tube
- The Electric Arc Furnace
- The Induction Coil
- The Telegraph
- The Relay Computer
- The Telephone
- Pure Silicon
- Semiconductors and the Transistor
- Radio
- Integrated Circuits
- Cathode Rays and Television
- The Computer
- Displays, Printers and Data Storage
- Punched-Card Tabulating Machines
Do them roughly in this order. See it on the tech tree →
Why it matters
A census counted by hand is out of date before it is finished. The United States census of 1880 took about eight years to tabulate by clerks with tally sheets. In 1890, with Herman Hollerith's punched cards and electric counters, the first population total was out in about six weeks.
The trick is to put one record on one card: one person, one sale, one meter reading, one day's work. Once the facts are holes, machines can count them, sort them into any order, add the numbers on them, print lists and totals, and merge two files, hundreds of cards a minute, without tiring or miscounting. A small crew with card machines replaces dozens of ledger clerks for payroll, stock, bills, taxes, rationing, hospital records and statistics (Statistics and Probability).
These machines are the bridge between the paper ledger (Money, Trade and Record-keeping) and the stored-program The Computer. They use the cards of Displays, Printers and Data Storage and the relays and logic of The Relay Computer, but need no memory and no program: the "program" is a board of wires. They are far easier to build than a computer, and for routine records they do much of the same job.
How it works
The card is a record
The standard card (Displays, Printers and Data Storage) has 80 columns and 12 rows. Group the columns into fields: columns 1–6 a person's number, 7 sex, 8–9 age, 10–12 occupation code, and so on. Write everything as numbers, using printed code books (occupation 214 = blacksmith). Decide the layout once, print it on the card stock as a guide, and never change it without renumbering.
A digit is one hole in a column, in row 0 to 9. A letter is two holes: one zone punch in row 12, 11 or 0, plus one digit punch. A to I are 12 plus 1–9; J to R are 11 plus 1–9; S to Z are 0 plus 2–9.
Reading by timing
Every card machine reads the same way. The card moves, row after row, under a brush of fine springy wire pressing on a metal roller carrying current. Where there is a hole, the brush touches the roller and a pulse flows. The machine knows which digit it is by when the pulse comes. Fed with the 9 row first, the 9-hole reaches the brush first, then 8, and so on down to 0.
This makes adding easy. A counter wheel turns all the time on a driven shaft, but only moves when its clutch magnet is engaged. A pulse from the brush engages the clutch at hole time; a cam disengages all clutches together just after the 0 row. A hole in row 7 engages the wheel with seven steps left to run, so it advances exactly seven. Ten wheels side by side, with a carry from each to the next as it passes 9, make a ten-digit adding machine with no gears to set.
Sorting, counting, adding, merging
Four jobs cover nearly all record work:
- Sort cards into order on any field.
- Count cards with a given code ("how many farmers in the north valley").
- Add the numbers in a field, with subtotals each time a group changes ("total wages for each workshop").
- Merge two decks in order, or match them ("put each customer's meter readings behind the customer's address card").
What you need
| Item | Notes | See |
|---|---|---|
| Card stock | Stiff, even paper 0.18 mm, cut to 187.3 × 82.6 mm within 0.1 mm | Paper, Displays, Printers and Data Storage |
| Hardened steel plate and rod | Punch dies and pins | Steel, Presses, Punches and Dies |
| Relays, by the hundred | Selectors, comparing, control | The Relay Computer |
| Electromagnets and counter wheels | Counters | The Electromagnet, Clockwork, Music Boxes and Counting Machines |
| Phosphor bronze or brass wire | Reading brushes, contact springs | Zinc and Brass, Iron and Brass Wire |
| Small motor, cams, clutches | Card feed and timing | The Electric Motor, Gears |
| Insulating board | Plugboards | Early Plastics, or varnished hardwood |
| DC supply, 24–50 V | Magnets and relays | Power Supplies and Regulators |
Card stock. 160–180 g/m² paper of long, strong fibres, every sheet the same thickness within 0.01 mm. One card weighs about 2.5 g; a town of 2,000 households billed monthly needs 24,000 cards, about 60 kg of paper, a year. Keep cards between 40 and 60% humidity: damp cards swell and jam, dry ones curl.
The card punch
The hand punch
The simplest punch is a die plate: two plates of hardened steel, 4–6 mm thick, spaced a card's thickness apart, both drilled or filed with the full pattern of hole positions, 2.21 mm apart along a row and 6.35 mm between rows. The card slides between them against an end stop. Push a hardened steel pin, filed to the hole shape (1.4 × 3.2 mm), through the top plate, card and bottom plate with a small lever press. The bottom hole is about 0.02 mm larger all round so the chip clears.
Hollerith's pantograph punch (1890) made this faster: a big index plate with a labelled hole for each position, a stylus on a lever over it, and a single punch at the other end of the lever over the card. Poke the stylus into "male", "age 30–34", press, and the punch cuts that hole.
The keypunch
A keypunch cuts a whole column at a time from a keyboard, like the tape punch of the The Teleprinter.
- Twelve punch pins in a row over a die, one for each row of the card.
- Keys for 0–9, 11 and 12 (and letters, each wired or linked to its zone and digit pins). A key pushes a small steel interposer under the top of its pin.
- A power stroke from a cam or magnet drives a bar down. Only the pins with an interposer under the bar are driven through the card.
- After each stroke, a rack and escapement (The Typewriter) move the card one column, 2.21 mm. A space key moves it without punching.
- Skip and duplicate: a "program card" on a drum, with holes marking where fields begin, lets the punch skip unused columns and copy repeated fields from the previous card automatically.
A good operator punches 8,000–12,000 key strokes an hour. Verify everything: a second operator types the same source documents on a verifier, which senses the holes already in the card and stops, with a notch, at any column that does not match. Most errors in card systems are punching errors.
The pin-press reader: Hollerith's first machine
This is the simplest card machine that is truly useful, and you can build it before any card feed. It counts one card at a time, as fast as a clerk can work: 50–80 cards a minute.
- The bed: a plate of hard insulating board with a hole under every card position, and in each hole a small contact, a phosphor-bronze spring or a cup. Hollerith used cups of mercury; springs are safer and work well. Two corner pins locate the card exactly.
- The press: a hinged upper plate carrying one spring-loaded pin over each position, each pin wired to a common supply. Pull the handle and the plate comes down: pins over paper are pushed back up their springs; pins over holes pass through and touch the contacts below.
- Counters: each contact you care about is wired to an electromagnetic counter — a ratchet wheel stepped one tooth by a magnet each time it is pulsed, driving a dial of 100 divisions, with a second dial for hundreds (Clockwork, Music Boxes and Counting Machines). Forty counters on a board count forty facts at once.
- Combinations: to count "female farmers", wire the female contact through a relay coil and the farmer contact through that relay's contact in series: only cards with both holes step the counter. This is the AND gate of Logic and Binary.
- The sorting box: a cabinet of numbered compartments with lids. Wire a lid's latch magnet to a field, and the right lid springs open as the press closes; the clerk drops the card in and shuts it.
- A bell rings on every good reading. If the clerk does not hear it, the card was not read: re-press it.
The card sorter
The sorter puts a deck in order on any field, one column at a time.
How it is built.
- A hopper holds 1,000–3,000 cards face down, 9-edge first.
- A thin steel picker knife, moving back and forth on a crank, pushes only the bottom card through a throat set to about 1.5 card thicknesses (0.25–0.3 mm), into rubber-covered feed rolls.
- The card passes under one reading brush, which slides along a rail and locks over the column you want to sort on, and over a contact roller.
- Beyond it the card runs under a stack of thin, springy chute blades, one per pocket, whose tips the sorting magnet holds up out of the way. At the instant the hole passes the brush, the magnet releases the blades and they drop onto the moving card. Because the card has travelled one row-spacing further for each digit time, the timing decides how many blade tips its leading edge has already passed, and so which channel it slips into.
- Thirteen pockets: 9, 8 … 0, 11, 12, and reject for cards with no hole in that column.
Run it at 100–250 cards a minute at first; well-built sorters reach 600–2,000.
Sorting a deck. To sort on a three-digit field in columns 23–25:
- Set the brush on column 25 (units) and run the deck. Collect the pockets in order, 0 on top of 1 on top of 2 and so on, keeping each pocket's order.
- Move the brush to column 24 (tens), run the whole deck again, collect in order.
- Column 23 (hundreds), run, collect. The deck is now in order.
Always start with the last digit. A field of n digits takes n passes. Letters take two passes per column: digit first, then zone. To select rather than sort ("pull out all cards with occupation 214"), sort on just that field and take one pocket.
The tabulator
The tabulator (later the accounting machine) reads every column of every card, adds chosen fields into counters, and prints.
- Reading: 80 brushes, one per column, read each card as it passes, at 100–150 cards a minute.
- Counters: banks of the clutch-driven wheels described above, 5 to 10 digits each, with carry. Eight to sixteen counters is plenty.
- Printing: one type bar per print position, carrying type 0–9 (and letters) up its length. All the bars rise together in step with the card moving under the brushes; a pulse at hole time fires a stop magnet that catches the bar with the right digit at the printing line. Then hammers strike all the bars at once through an inked ribbon onto paper (The Typewriter). Later machines used print wheels instead of bars.
- Listing or totals: the machine either prints a line for every card, or prints only totals.
Subtotals by group (control break). A second set of brushes reads each card one cycle ahead. Comparing relays check a chosen field, such as the workshop number, between the card being added and the card coming next. When they differ, the group is finished: the machine stops feeding for one total cycle, prints the counter, and clears it to zero. A second counter collecting the same numbers but cleared only at the end gives the grand total.
Subtracting. Mark credit cards with a punch in the 11 row of one column. That hole picks up a selector relay which makes the counter add the complement of the amount, which is the same as subtracting (The Relay Computer).
The plugboard
A tabulator does a different job every day: payroll on Monday, stock on Tuesday. The plugboard (control panel) sets which column goes to which counter or print position, by wires.
How to make it.
- A board of hard insulating material, 6–10 mm thick: phenolic resin board (Early Plastics), hard rubber, or varnished hardwood, about 30 × 45 cm for a full tabulator.
- Hubs: brass tubes or split sockets pressed into the board in a regular grid about 6–10 mm apart, each ending in a flat contact at the back.
- Rows of hubs for each machine function, printed or engraved on the face: card read (80), counter entry (one per counter digit), print entry (one per print position), control and compare, selector pickups and contacts.
- A frame on the machine holds rows of contact springs. The board slides into the frame, a lever presses it home, and every hub meets its spring.
- Cords: flexible insulated wire 10–60 cm long with a brass tip at each end, split so it grips the hub. Colour or mark them by length.
Wiring a job. Run a cord from each card-read hub of the field to the matching counter-entry hub, highest digit to highest digit; from the counter's exit hubs to the print hubs where the total should appear; from the control field's read hubs to the comparing relays. Label the board with its job, and keep wired boards in a rack: a library of programs. Always run a test deck with known totals after wiring or changing a board.
The collator
The collator compares two decks and combines them. It has two hoppers, a primary and a secondary, three or four output pockets, and relays that compare a field from each card digit by digit and decide high, equal or low.
- Merge: two sorted decks become one sorted deck.
- Match-merge: put each transaction card behind its master card; cards with no partner go to a separate pocket for checking.
- Select: pull cards whose field is above, below or equal to a set number.
- Sequence check: stop if any card is out of order.
Monthly billing, for example: a master card for each customer (number, name, address, rate) stays in a file. Each month the readers punch one card per meter reading (Electricity Meters and Billing). Sort the reading cards by customer number, match-merge them behind the masters on the collator, and run the combined deck through the tabulator: it prints a bill for each customer and a total for the day. Pull the masters back out and refile them.
Running records with cards
- Control totals. Before cards go into the machine room, count them and add a key field by hand or on an adding machine (Calculating Aids). After each run, the machine's card count and totals must match. A lost card is found the same day.
- Interpret cards: an interpreter prints the meaning of the holes along the top edge so people can read them.
- Reproduce: a reproducer (gang punch) copies a deck, or punches fixed data into many cards at once.
- Storage: 1,000 cards stand about 18 cm deep. Keep them in drawers or boxes, upright, numbered, dry, away from fire.
- Throughput. A weekly payroll for 1,000 workers: sorting on a four-digit number, four passes at 400 a minute, takes about 10 minutes; tabulating takes 7–10 minutes more. A crew of three or four does what twenty ledger clerks did.
How to tell it worked
- Punching: hold a punched card over a correctly punched master against the light. Every hole lines up within a quarter of its width. Clean edges, no hanging chips.
- Pin press: press the same test card 100 times; every counter must read 100. A counter that reads 99 has a weak contact.
- Sorter: sort a test deck of 100 cards numbered 000–099 in random order. After two passes they must come out in order, with none in reject.
- Tabulator: run a test deck whose totals you worked out by hand, including subtotals and a credit card. Run it three times. Every figure must match every time.
- Feeding: 1,000 cards through any machine without a jam or a double feed.
Note Troubleshooting. Two cards feed at once — throat too wide, or cards stuck together by damp; fan the deck before loading. Cards jam — swollen or curled stock, a burr on the throat, or a torn card edge. Wrong digit read (one too high or low) — brush or cam timing has slipped; re-time against a card punched with all digits. A digit sometimes missing — dirty or bent brush wires; clean the contact roller. Totals wrong only on some days — a loose plugboard cord, or a cord in the wrong hub. Check the board against its wiring sheet.
Dangers
Danger Privacy and power. A card file of people — names, religion, ethnicity, health, politics — is a tool that can be used to hurt them. In the 1930s and 1940s, punched-card population registers in Germany and occupied Europe helped authorities find people for persecution and deportation. Collect only what a record truly needs, keep identifying cards locked, limit who may sort them, and destroy records that are no longer needed.
- Moving parts: feed rolls, picker knives, cams and type bars trap fingers. Clear jams only with the motor stopped.
- Electricity: machines run on 24–110 V supplies with large relay banks; switch off before working inside.
- Mercury, if you copy Hollerith's cups, is poisonous (Mercury); use spring contacts instead.
- Fire: tons of card stock burn fiercely. No smoking or open flames in the card store (Fire Extinguishers and Alarms).
What this unlocks
Card machines run payroll, stock, bills, banking, health and census statistics for a whole region. The same cards later feed the first electronic computers, and the plugboard leads to the idea of a stored program (Programming). Card systems also drive weaving looms (Textile Machinery). Like the later internet, they show how much power lies in organised records — which is why the warning under Dangers matters.
How it was first done
Joseph-Marie Jacquard's loom (1804) chose threads with punched cards (Textile Machinery), and Charles Babbage planned to program his Analytical Engine with them in the 1830s. Herman Hollerith, an American engineer who had worked on the 1880 census, patented his punched-card tabulating system in 1889. For the 1890 United States census his pantograph punches, pin-press readers with mercury cups, dial counters and sorting boxes processed about 63 million people. His machines were soon counting censuses in Austria, Canada, Norway and Russia. He added automatic card feeds, adding counters, horizontal sorters (1901) and a wiring panel (about 1906). His Tabulating Machine Company merged in 1911 into the firm renamed IBM in 1924, which introduced the 80-column rectangular-hole card in 1928; James Powers' rival machines led to Remington Rand's 90-column card in 1930. Printing accounting machines such as the IBM 405 (1934) and 407 (1949), and the collator (1937), ran the offices of the world until stored-program computers took over in the 1960s and 1970s.
Source: content/entries/electronics/punched-card-machines.md