◆ Rebuild

Part 14 · Electronics and Computing

The Teleprinter

A typist at one end, printed text at the other — no Morse operators needed. Each letter travels as five on-off signals framed by a start and a stop signal; a motor-driven distributor sends them and a matching one at the far end catches them and prints the letter. Punched paper tape stores messages and sends them at full speed. The teleprinter is the bridge from the telegraph to the computer.

Difficulty
●●●●●
Time
A week for a tape punch and reader; months for a sending and receiving pair that print
Steps from zero
30 prerequisites →

You need first

The TelegraphThe Typewriter

This unlocks

—
The full path from nothing — 30 steps before this one
  1. Fire
  2. Cordage and Rope
  3. Stone Tools
  4. Finding and Preparing Clay
  5. Finding and Identifying Ores
  6. Hunting and Trapping
  7. Basic Woodworking
  8. Charcoal
  9. Pottery
  10. Hides and Leather
  11. Fermentation
  12. Lye and Potash
  13. The Wheel and Axle
  14. Ink
  15. Bellows
  16. The Lathe
  17. Paper
  18. Copper Smelting
  19. Iron (the Bloomery)
  20. Printing
  21. Blacksmithing
  22. The Battery
  23. Steel
  24. The Steam Engine
  25. Copper Wire
  26. Springs
  27. Machine Tools
  28. The Electromagnet
  29. The Telegraph
  30. The Typewriter
  31. The Teleprinter

Do them roughly in this order. See it on the tech tree →

Why it matters

A good Morse operator (The Telegraph) sends and copies about 20–25 words a minute, by ear, and must then write it all down. Operators take a year to train, they tire, and every message passes through two of them, each of whom may make mistakes.

The teleprinter removes the operators. A typist types on a keyboard like a The Typewriter's; at the far end of an ordinary telegraph line, another machine prints the same letters on paper — unattended, day or night. A standard machine runs at 60 words a minute. Messages can be punched into paper tape ahead of time, sent at full speed, received onto tape, and passed on from station to station without anyone retyping them.

It matters for a second reason. The teleprinter turns letters into fixed groups of on-off signals — five binary digits per character (Logic and Binary). That is the beginning of digital communication. Teleprinters and their paper tape were the keyboards, printers and program stores of the first relay computers and electronic computers, and the start-stop signalling they introduced is still how simple serial data travels between machines (Networks and the Internet).

How it works

A fixed-length code

Morse uses short codes for common letters and long codes for rare ones. That is efficient for a human ear, but hard for a machine, which needs to know where each letter begins and ends. The teleprinter instead uses five signals for every character, each either mark (current flowing) or space (no current). Five on-off choices give 2 × 2 × 2 × 2 × 2 = 32 combinations.

Thirty-two is not enough for 26 letters, 10 figures and punctuation, so two of the combinations are shifts: after LETTERS (all five marks) the machine prints letters; after FIGURES it prints figures and punctuation from the same codes, until shifted back — like the shift key of a typewriter that stays down.

The international code (International Telegraph Alphabet No. 2, ITA2), with 1 = mark and the five units in order:

Letter Code Fig. Letter Code Fig. Letter Code Fig.
A 11000 – K 11110 ( U 11100 7
B 10011 ? L 01001 ) V 01111 =
C 01110 : M 00111 . W 11001 2
D 10010 N 00110 , X 10111 /
E 10000 3 O 00011 9 Y 10101 6
F 10110 P 01101 0 Z 10001 +
G 01011 Q 11101 1 Space 00100
H 00101 R 01010 4 Carriage return 00010
I 01100 8 S 10100 ' Line feed 01000
J 11010 T 00001 5 LETTERS 11111
FIGURES 11011

00000 is "blank" and does nothing. The figures on the top letter row (Q W E R T Y U I O P = 1 2 3 4 5 6 7 8 9 0) match a typewriter's number row, which makes them easy to learn. The figures left empty here differ between countries; agree on them within your network.

Start and stop: keeping two machines in step

Both machines turn their distributors — rotating switches that handle the five units one after another — with motors running at the same speed. But no two motors run at exactly the same speed. The trick that makes the teleprinter practical is start-stop:

  1. When no letter is being sent, the line rests at mark (current flowing). This also shows that the line is unbroken.
  2. Each character begins with a start unit: one unit of space. The sudden drop in current releases the receiver's distributor, which has been held still by a latch. Both now start together.
  3. Then come the five code units.
  4. Then a stop unit of mark, at least one and a half units long. During it the receiving distributor finishes its turn and is caught by its latch again, ready for the next start.
The letter H = 00101 the receiver looks here, in the middle of each unit mark space line resting ready for next start1space2space3mark4space5markstop1.5 units at 10 baud each unit is 100 ms; the whole character takes 0.75 s
Fig. 1 One character on the line: the letter H (00101). The line rests at mark. A start unit of space releases the receiver; it then looks at the line in the middle of each of the next five units, and the stop unit lets it come to rest before the next letter.

Because the two machines start together on every character, a speed error only has to be small enough not to build up over seven units. The receiver samples each unit in its middle, so it can be up to half a unit out by the last unit and still read correctly — in theory about 7% of speed difference. In practice keep the two motors within 2% of each other.

Speed

The length of one unit sets the speed. Its inverse is the signalling rate in baud (units per second, after Émile Baudot):

Unit length Baud Characters a second (7.5 units each) Words a minute
100 ms 10 1.3 about 13
50 ms 20 2.7 about 27
22 ms 45.5 6 60 (the classic standard)

Start slow. A machine built from relays and hand-made distributors runs reliably at 10–20 baud, which is as fast as a Morse operator and needs no operator at the far end.

What you need

Item Quantity Notes
Typewriter 1 per receiving station Typebar machine from The Typewriter, adapted with print magnets
Relays About 50 per receiver Small, fast relays as in The Relay Computer; uniform and adjusted
Electromagnets 30–35 per receiver One per typebar plus space, return, line feed and shift
Electric motor with governor 1 per machine Small DC motor (The Electric Motor) with a contact governor (Governors and Speed Control)
Brass discs and rings For distributors Turned on the The Lathe; segments insulated with mica and shellac
Paper tape Many metres Strong paper (Paper) cut 17.5 mm wide
Punches and die plate 1 set Hardened steel pins (Steel)
Battery 60–130 V for the line As for the The Telegraph; plus 12–24 V local battery
Line Any telegraph line Two wires, or one wire with earth return

Where to find it

All materials come from the The Telegraph, The Typewriter and The Relay Computer chapters: soft iron, covered copper wire, brass, German silver or phosphor-bronze springs, hardwood, shellac, mica, slate panels for terminals. Paper tape is cut from long sheets of strong rag paper (Paper), glued end to end with a thin lap joint and rolled; dip it in thin oil or wax for strength if it tears.

Step 1: Paper tape

Tape is the teleprinter's memory. Build this first: it lets you learn the code, check every later machine, and store messages.

  1. The tape: 17.5 mm wide. Each character is one row across the tape, 2.54 mm (a tenth of an inch) further along than the last.
  2. The holes: five code holes about 1.8 mm across, spaced 2.54 mm apart across the tape, punched where the code has a 1 (mark). A smaller feed hole (about 1.2 mm) between the second and third code holes is punched in every row; a toothed sprocket wheel engages these to move the tape exactly.
  3. A hand punch: a steel die plate with five holes and a feed hole, a stripper plate above it with a slot for the tape, and six hardened steel punch pins sliding in guide holes. Above each code pin is a key. Press the keys for the code, then press the punch bar, which drives down only the selected pins plus the feed pin and then, on its way up, turns the sprocket one tooth. Make punches and holes on a jig so they line up exactly (Drills and Boring).
  4. Reading by eye: operators quickly learn to read punched tape as words. Write the code table on a card with the holes drawn as they appear on tape.
LTRSHIspaceEA start12345stop Punched tape 5 code holes + feed holes tape moves on one row per turn Feeler pins a pin rises through a hole each pin wired to its own segment Distributor brush turns once per character to the line brush
Fig. 2 Punched tape and the tape-sending distributor. Five feeler pins rise through the holes of one row and close their contacts. A brush, turned once per character by a governed motor, sweeps the start segment, the five code segments in turn, and the stop segment, connecting the line to each in order. Then the sprocket steps the tape on.

Step 2: The sender

  1. The tape reader: five steel feeler pins pushed up by light springs against the underside of the tape. Where there is a hole, a pin rises through it and closes a contact; where the tape is solid, the pin stays down. A cam lowers all the pins while the tape moves, then lets them rise.
  2. The distributor: a disc of slate or shellacked board with a ring of seven brass segments set in it, separated by thin mica. In order: start (wired to nothing — space), units 1 to 5 (each wired through its feeler contact to the line battery), and stop (wired straight to the battery — always mark), with the stop segment one and a half times as long as the others. A brush of springy brass wire, on an arm driven by the motor, sweeps round all seven, connecting each in turn to the line.
  3. The motor: a small DC motor with a contact governor — a spinning arm with a weight on a spring that flies outward and opens a contact when the speed is too high, cutting the current for a moment (Governors and Speed Control). Gear it so the brush makes one turn per character: at 10 baud, 7.5 units of 100 ms = 0.75 s per turn, 80 turns a minute.
  4. Stepping the tape: a cam on the same shaft, during the stop segment, lowers the feeler pins and steps the sprocket wheel one tooth.
  5. Checking speed: fit a revolution counter (a worm and wheel, Gears) and time it for one minute with a watch. Adjust the governor's spring until every machine on the network gives the same count within 1%.

A keyboard perforator (better): put a typewriter keyboard on the punch. Each key pushes down on five code bars lying under all the keys; a notch or a lug on each bar under each key decides which bars that key moves. The bars select the punch pins, and the bottom of the key stroke trips the punch. The typist types onto tape at full speed, checks the tape, and then the tape is sent. This is the arrangement that made teleprinting fast.

Step 3: The receiver

The receiver turns the stream of units back into five stored marks and spaces, and then into a printed letter.

  1. The line relay (the "selector magnet"): a sensitive relay in the line, as on any telegraph. Its armature is held over towards mark while current flows.
  2. The receiving distributor: like the sender's, with seven segments and a brush. But its shaft is driven through a friction clutch from the continuously running motor, and is held still by a latch at the stop position.
  3. Start: when the line drops to space for the start unit, the line relay releases and trips the latch. The brush starts round.
  4. Sampling: on the receiver, segments 1 to 5 are short — about a third of a unit — and set so the brush crosses each one in the middle of that unit's time. As the brush crosses segment n, if the line relay is at mark, current flows through segment n to storage relay n, which operates and locks itself in through its own contact (The Relay Computer). If the line is at space, relay n stays out.
  5. Print: on the stop segment, the five storage relays hold the character. A print contact on the shaft now sends a pulse of current through a decoding tree — the storage relays' changeover contacts wired in a branching pattern, 1 path → 2 → 4 → 8 → 16 → 32 — so that exactly one of 32 wires is energised. That wire's print magnet pulls down one key or typebar of the typewriter.
  6. Shift: the LETTERS and FIGURES codes operate a latching shift relay instead of printing; it switches the typewriter's shift and stays until the other code comes. CARRIAGE RETURN and LINE FEED codes work magnets on the carriage return lever and the platen ratchet.
  7. Reset: as the brush comes round past the start position, a contact briefly breaks the storage relays' holding circuit, clearing them for the next character. Then the latch catches the shaft until the next start unit.

The receiving reperforator (simpler first goal): instead of a decoder and typewriter, connect the five storage relays to five punch magnets over a tape punch. The machine punches the incoming message onto tape, which the operator can read by eye, keep, or put straight into a sender to pass the message on to the next station. Build this before the printing receiver: it has a fifth of the parts.

Step 4: Line and testing

  • Line current: teleprinters work on a neutral line — current for mark, none for space — of 20–60 milliamperes, set by a resistor in series with the battery. Long lines use repeating relays, exactly as for the telegraph.
  • Bias: if a relay closes faster than it opens, marks come out longer than spaces and sampling shifts. Test by sending a steady stream of R and Y — 01010 and 10101, which alternate every unit — and watch the receiving relay on a slow-moving smoked paper strip, or listen: the buzz should be even. Adjust the relay's spring until marks and spaces are equal.
  • A test message: send "RYRYRYRY" and then the sentence THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG 1234567890, which uses every letter. It must print perfectly ten times running.

How to tell it worked

  • A punched tape read back by eye matches the message typed.
  • The receiving reperforator punches a tape identical, hole for hole, to the one being sent.
  • The printing receiver prints the test sentence with no errors at your chosen speed, again and again, with the sender in another building.
  • Breaking the line makes the receiver run continuously but print nothing (it sees an endless string of blanks); restoring it brings the machines back into step at the next character with no adjustment.

Note Troubleshooting. Wrong letters, but always the same wrong ones → a unit is being read in the wrong time slot: speed mismatch. Re-check both motors' counts. Letters wrong only sometimes → bias in a relay, or the sampling segments are near the edges of the units. Run the RY test and adjust. Everything prints as figures → a lost LETTERS shift. Senders should send LETTERS at the start of every line, as a habit. Receiver never starts → line relay sticking at mark, or the latch too stiff. Receiver runs continuously → line open, or the line relay's spring too strong. Tape jams or tears → sprocket teeth too sharp or tape too weak; wax the tape. Two characters print on top of each other → stop unit too short; lengthen the sender's stop segment.

Dangers

Warning Line batteries for teleprinter circuits run at 60–130 V and can give a dangerous shock across wet hands. Disconnect the line before working inside the machine. Fit lightning arresters on every outdoor line (The Telegraph).

  • Moving parts: the motor, clutch and distributor turn whenever the power is on, and the shaft can start without warning when a start unit arrives. Keep fingers, hair and sleeves away; switch off before adjusting.
  • Contact sparks at distributors and print magnets wear contacts and can ignite paper dust and oil. Put a small capacitor and resistor across each magnet's contacts (Resistors, Capacitors and Coils) and clean out paper chips (chad) regularly.
  • Hearing: a room full of running teleprinters is very loud. Pad the tables with felt.

What this unlocks

  • Networks of offices: switched teleprinter networks (telex) use the The Automatic Telephone Exchange's selectors to connect any two machines by dialling.
  • Radio teleprinting: key a transmitter (Amplifiers and Oscillators) by the same marks and spaces, or shift its frequency slightly for mark and space; a receiver turns the tones back into line current. With a crystal-controlled transmitter, text crosses oceans.
  • Secret messages: in 1917 Gilbert Vernam showed that adding a second, random tape to the message tape, unit by unit (mark plus mark gives space), makes it unreadable; the receiver adds the same key tape to recover the text. If the key tape is truly random and used only once, the cipher cannot be broken (Codes, Ciphers and Encryption).
  • Computers: tape is the program and data store of the first computers, and the teleprinter is their keyboard and printer (The Relay Computer, The Computer, Programming). Later codes use seven or eight units per character, but the start-stop framing stays the same.

How it was first done

Royal Earl House in the United States built a printing telegraph in 1846, and David Edward Hughes's type-wheel printing telegraph of 1855, in which two type-wheels were kept spinning in step, was widely used in Europe. Émile Baudot of the French telegraph service invented his five-unit code in 1874, with a distributor that shared one line among several operators, each pressing five piano-like keys at once. Donald Murray, a New Zealander working in Britain, added a typewriter keyboard and punched tape around 1901, and reassigned the codes so that the commonest letters needed the fewest holes; his version, modified, was agreed internationally between the two world wars as the code ITA2. Charles Krum and his son Howard Krum in Chicago, backed by Joy Morton, developed the start-stop method around 1910, which let simple machines keep in step without precise timing; their company became the Teletype Corporation. Telex networks connecting teleprinters through automatic exchanges began in Germany in the early 1930s and spread worldwide, and in 1940 George Stibitz worked a relay computer remotely through a teleprinter.

Source: content/entries/electronics/teleprinter.md