PURPLE · Volume 10
PURPLE — Volume 10 — Building a PURPLE — Design
No kit exists, so this is a design: seven telephone stepping switches, a two-conductor plugboard, a small controller that only decides which magnet to pulse, and a fallback that needs no switches at all
10.1 About This Volume
This is the first of three build volumes. There is no PURPLE kit and, unlike the Enigma or the Apollo DSKY, no open-source reproduction to buy, so the build is a design of its own: a working PURPLE analog that enciphers and deciphers with real electromechanical stepping switches, set from the same keys the Japanese used, and checked letter for letter against the published decipherment of the 14-part message of December 1941.
The design follows the SIS analog in everything that matters cryptographically. A sixes switch and three twenties stages of 25-point telephone stepping switches carry the letters; plugboards on either side set the daily alphabet; the stepping rule of Volume 4 decides which switch moves. Two things are modern. A small microcontroller does what the second section of the SIS sixes switch did — reading positions and choosing which magnet to pulse — and it also listens to the input teletype, drives the output teletype and keeps a log. And every switch carries one extra level whose only job is to report where the switch actually is, so that a missed step is caught at once instead of turning the rest of a message into nonsense.
The volume covers the requirements, the history the design draws on, the choice of stepping switch (with real types and their published data), the architecture, the allocation of switch levels, the plugboard, the two teletypes that stand in for the original’s two typewriters (and the other ways of typing in and printing out), power, the all-electronic fallback, a bill of materials, and layout and safety. Volume 11 covers the wiring, the controller logic and verification against the simulator; Volume 12 covers operating it.
None of this has been built yet. Everything here is a design and a procedure. Where the account of the actual build will go, the text carries a marker.

10.2 What the Replica Has to Do
The requirements fall out of Volume 4.
- Encipher exactly as PURPLE did. For any key — four starting positions, one of six motions, a 26-letter alphabet — the machine must produce the same letters as the simulator,
03-outputs/tools/purple_sim.py, which in turn reproduces the published decipherment of Part 1 of the 14-part message letter for letter (Volume 11). That is the acceptance test. - Do the enciphering in the switches. The cryptographic path — plugboard, sixes switch, three twenties switches, plugboard — must be a continuous electrical path through real wipers and bank contacts, as in 1940. Nothing digital may compute a substitution.
- Run both ways. Decipher mode feeds the twenties stages from #3 to #1; encipher mode feeds them from #1 to #3, so that the wires apply their inverse. The analog did this by swapping typewriters; the replica does it with a switch.
- Step by the rule. The sixes switch steps after every letter, and exactly one twenties stage steps with it, chosen from the positions before stepping: slow if the sixes stands at 24 and the middle at 25, middle if the sixes stands at 25, fast otherwise.
- Take a key quickly. Setting four starting positions and a motion must take a minute, not a screwdriver; the 1944 improved analog had buttons for exactly this.
- Know where it is. Every switch’s position must be readable at all times and compared with what it should be. A stepping switch that misses one step silently corrupts everything after it; the machine must notice.
- Type in on one machine, print on another. The Japanese machine sat between two electric typewriters, one to type on and one to print the result (Volume 4). The replica does the same with two teleprinters, and the output goes to paper, grouped in fives, and to a log that can be compared with the simulator line by line.
10.3 What the SIS Built
The design draws on two American machines. The first analog, built in 1940 and now known as PURPLE Analog No. 1, used commercial six-level, 25-point telephone switches: one for the sixes, a second six-level section moving with it to control the stepping and the position lamps, and four six-level switches moving as one for each twenties stage — thirteen or fourteen switches in all, depending on whether the sixes’ control section is counted separately (FSW, p. 5; Library copy; CQ 1984–85, p. 71). It had one physical plugboard with double-contact jacks serving as both input and output plugboard, which works because the Japanese plugged both identically (FSW, p. 3).
The second is the improved analog of 1944 on display at Fort Meade (Volume 6 shows it). Its front panel carries position lamps, a central plugboard, the six-position stepping-order knob shown in Volume 4 and buttons for setting the switches’ starting positions. English-language descriptions say it carried each stage’s levels on a single shaft and added a level that set the starting positions automatically (Wikipedia, “Type B Cipher Machine”); no primary description of its circuit was found, and the design here does not depend on one. The design here is closest in spirit to the 1944 machine: fewer, larger switches; set-up buttons; and a position indication on every switch.
10.4 Choosing Stepping Switches
10.4.1 What a PURPLE switch must be
The cipher constrains the switch tightly.
- Exactly 25 positions in an endless cycle. Position 25 must step to position 1 with one pulse, as a double-ended wiper on a half-ring bank does. A switch with a 26th “home” or brush position can be used, but only by stepping through the extra position with an extra pulse each time round.
- Enough levels. The sixes need 6 cipher levels; each twenties stage needs 20. One more level per switch is wanted for position sensing.
- Non-bridging wipers on the cipher levels. A bridging wiper touches the next contact before leaving the last; a non-bridging one breaks first. Bridging wipers would momentarily join two contacts — two cipher outputs — as the switch steps. Automatic Electric’s handbook defines the two and the reason for choosing between them: non-bridging wipers have “shorter tips that leave one bank contact before engaging the next, avoiding the electrical interconnection between circuits of adjoining bank contacts” (AE, How to Use Rotary Stepping Switches, 1964, p. 5; Library copy). Because the controller never steps a switch while current is flowing in the cipher path (Volume 11), bridging wipers would in fact work, but non-bridging ones remove the question.
- Pulse-driven, at a modest rate. Every telephone stepping switch of this family can be stepped by external pulses. The replica needs no more than about ten letters a second.
10.4.2 Types that fit
Three families of telephone switch meet these requirements, and surplus examples of all of them turn up.
British Post Office uniselectors (Nos. 2 and 3) and their STC equivalents. The standard British uniselector has a bank of 25 contacts per level, with the wipers double-ended so that the switch gives “two appearances of 25 points per revolution”. STC’s catalogue sheet for its types 4150 and 4160, which it describes as equivalent to the Post Office Nos. 2 (heavy duty) and 3 (light duty), lists versions with 3, 4, 5, 6, 8, 10 or 12 levels; bridging or non-bridging wipers; contacts rated 0.5 A at 50 V; impulse drive with a minimum make of 20 ms and break of 10 ms, to a maximum of 80 revolutions a minute; and a life of 500,000 revolutions (light duty) or 2,000,000 (heavy duty) (STC/SASCO data sheet, p. 564; Library copy). The Post Office’s own training pamphlet numbers the contacts 0 to 24 and calls the mechanism “reverse action”: the wipers move when the magnet releases (P.O. Telephones 3/2; Library copy). Post Office exchanges used them in huge numbers until the 1990s, which is why they are the most common surplus 25-point switch today. The level list on p. 564 promises more than the ordering table on the facing page delivers. That table has no 12-level code at all; its only 10-level types (4160, equivalent to P.O. 2/1010A and its relatives) are single-ended 50-point switches; and the largest double-ended, 25-point type is the 8-level 4158 — STC 4158DJ, P.O. 2/820A, with every wiper non-bridging (STC/SASCO data sheet, p. 565). The Post Office’s pamphlet on uniselector mechanisms likewise describes banks of “from 3 to 10 rows of contacts, known as levels” (P.O. Telephones 4/1). A 12-level, 25-point uniselector therefore appears never to have been a catalogue part, and eight levels is the practical limit of this family for PURPLE. STC’s 50 V coil (code letter D) is 75 Ω; other windings were made, so the coil of any particular unit should be measured.
Automatic Electric Type 13. AE’s 1961 bulletin describes the Type 13 as “arranged for 25-point operation”, with wiper tips 180° apart so that each contact is traversed twice per revolution, one to six levels, indirect drive (the wipers advance as the armature restores), 30 steps a second from external pulses and 50 self-interrupted, and standard coils for 6 to 110 V. The 48-volt coil is 100 Ω (AE Technical Bulletin 961-473, §8 and Table I). A six-level 25-point switch is what the SIS used; a PURPLE built from Type 13s follows the 1940 layout exactly.
Automatic Electric Type 45. The larger AE switch has 25 bank contacts per level “and one wiper brush terminal contact”, up to 16 levels, bridging or non-bridging wipers, about 35 steps a second from external pulses, and the same 100 Ω coil at 48 V. But “there are 26 steps to each half revolution”: the 26th step parks the wipers on the brush position (AE TB 961-473, §11). AE’s own handbook shows the cure, in a scanning circuit where “Position 26 on the Type 45 stepping switch is absorbed in each half rotation, so that 25 points are sequentially scanned” (AE 1964, “Scanning Circuit”). The replica’s controller can absorb it the same way, with an extra pulse whenever a switch reaches 26. The bulletin also limits the number of levels: “No more than 12 wiper tips are to be on the bank contacts at any one time”, so a 12-level Type 45 is the largest with every wiper double-ended — exactly the size the design needs (AE TB 961-473, §11). Type 45s are also the 25-point switch most often offered in the United States. The 12-level Type 45 is the primary choice for this design. The measured operate and release times — 18 ms and 5 ms — and a maximum of about 43 pulses a second leave ample margin (AE 1964, Fig. 18).
Bell System switches of the same pattern exist too. The Telephone Museum in Waltham displays a Western Electric 206A “with 6 layers and 25 positions” (Commons); no published data sheet for it was found, so its electrical details would have to be measured.

Table 1 — Types that fit
| Type | Points | Levels | Wipers | Step on | Pulse rate | 48–50 V coil | Fit for PURPLE |
|---|---|---|---|---|---|---|---|
| P.O. No. 2 / 3; STC 4150 / 4160 | 25, double-ended | 3–8 (10 only as 50-point) | bridging or non-bridging | release | make ≥ 20 ms, break ≥ 10 ms (≤ 33 pulses/s) | 50 V, 75 Ω (STC code D); measure | 8-level: eleven-switch alternative |
| AE Type 13 | 25, double-ended | 1–6 | per order | release | 30 steps/s | 100 Ω | SIS layout (14 switches) |
| AE Type 45 | 25 + 1 brush position | up to 16; at most 12 all double-ended | bridging or non-bridging | release | ~35 steps/s | 100 Ω | primary choice: 12 levels, 26th step absorbed |
| WE 206A | 25 | 6 (museum label) | not known | not known | not known | not known | measure before buying many |
Sources: STC/SASCO data sheet pp. 564–565; P.O. Telephones 4/1; AE Technical Bulletin 961-473 (1961) §§8, 11 and Table I; AE “How to Use Rotary Stepping Switches” (1964; Library copy) Fig. 18; Telephone Museum label via Commons. STC gives a maximum of 80 rpm in impulse drive; its minimum make and break times limit external pulsing to about 33 pulses a second, three times what the replica needs.
10.4.3 Buying surplus switches
There is no new production; everything comes from collectors and surplus. Listings read on 3 November 2026 give a picture of the market. AE Type 45s turn up regularly on eBay in the United States at roughly $60 to $110 each (eBay US search). Their PW- and D- part numbers do not give the level count, and listings rarely state it, so ask each seller for a side-on photograph and count the wipers. P.O. Type 2 uniselectors are common and cheap on eBay in Britain, about £15 to £30 for a complete mechanism, but most have three to five levels; 8-level ones exist. British sellers count levels as “arcs” or “banks”, and “bank only” means the contacts without the mechanism (eBay UK search). A matched batch is most likely from collectors: in Britain, the Telecommunications Heritage Group’s members’ swapmeet (THG); in the United States, Telephone Collectors International (TCI) and the Antique Telephone Collectors Association. Many British sellers ship only within the UK. Parcels from Britain to the United States also attract duty and brokerage charges since the US suspended its $800 duty-free threshold for small shipments in August 2025 (BDO). For comparison, AE’s 1964 handbook quoted about $45 for a twelve-level, 25-point switch new (AE 1964, “Economy”).
What to check before buying, and on arrival:
- Count the levels and the points. A 25-point bank with double-ended wipers, and the number of levels needed: 12 on an AE Type 45 for the primary design, 8 on a P.O. Type 2 (codes 2/820A to 2/828A) for the alternative. Listings rarely state the count, so ask for a side-on photograph and count the wipers. A 50-point, single-ended switch (P.O. 2/81xA, 2/101xA) does not fit, and “bank only” means the contacts without the mechanism.
- Look at the wiper tips. Short tips are non-bridging, long flat tips bridging. Mixed assemblies exist.
- Read the coil. Coils usually carry a code and resistance. Measure the resistance; a coil reading open or far below its marking is burned out.
- Step it by hand. With the armature pressed and released by hand, the wipers must advance cleanly one contact at a time, all the way round, with no rubbing between levels.
- Look for corrosion and old lubricant. Gummed oil on the ratchet causes missed steps. Cleaning and relubrication follow AE’s or the Post Office’s instructions; the Telephones section of this site covers them (Telephone Switching History, Volume 8).
- Buy spares. One spare 12-level switch covers a failure in any stage.

10.5 Architecture
The machine has six parts: the switch stack, the plugboard, a line interface, a controller, the operating panel and a pair of teletypes, each on its own loop interface board.
The switch stack holds seven identical 12-level, 25-point rotary stepping switches — AE Type 45s in the primary design: one for the sixes and two for each of the three twenties stages. My design uses seven identical 12-level switches so that a single spare — an eighth — can replace any of them. The two switches of a stage are pulsed together and wired as one 24-level switch; they behave exactly as the four six-level switches of a 1940 stage did.
The plugboard sets the daily alphabet for both directions at once (below).
The line interface puts a small current into the cipher path at one end and looks for it at the other. It has a driver and a sensor on every one of the 52 plugboard lines — 26 on the input side and 26 on the output side — so that the same hardware can run the path in either direction. When a key is pressed in decipher mode, the controller switches 24 V onto that key’s input line; the current runs through the plugboard, the switch wipers and the strapping, back through the plugboard, and lights the optocoupler on exactly one output line. That line is the output letter. In encipher mode the roles of the two sides swap.
The controller is a Raspberry Pi Pico 2 — “available now from $5”, with three ADC inputs and twelve PIO state machines (raspberrypi.com, read October 2026). It reads the input teletype, operates the line interface, sends each output letter to the output teletype, and after each letter decides from the switch positions which stage steps, then pulses the magnets. It never computes a substitution: if the strapping is wrong, the machine prints a wrong letter, exactly as a mis-wired 1940 analog would. It does, however, check its own work, by reading every switch’s sense level after every step and comparing the reading with the position it expects.
The operating panel carries a six-position motion selector engraved with the six motions as on the 1944 analog, an ENCIPHER/DECIPHER switch, a set button and a two-digit position readout for each of the four switches, and a reset button.
The teletypes stand either side of the panel, as the typewriters stood either side of the Japanese machine: an input machine with a keyboard, and an output machine that prints. Each teletype has its own small interface board that makes its 60 mA loops from a 15 V adapter and talks to the controller over a serial line.
10.5.1 Why a controller at all
The SIS analog had no computer. Its stepping logic was a few contacts on the sixes switch’s second section, and a faithful relay version is possible here too (Volume 11 sketches it). The controller earns its place in three ways. It makes key-setting fast: pressing SET on a switch steps it until its sense level reads the wanted position. It catches missed steps, which in a relay machine show up only as garbled plaintext forty letters later. And it logs every letter with the positions it was enciphered at, which is what makes a line-by-line comparison with the simulator possible.
10.6 Allocating the Levels
Each twenties stage gets two sense levels, one per switch, because the two switches of a stage are separate mechanisms. If one of them misses a step, the stage’s 20 levels are no longer in the same position, and only a sense level on each can show it. With 12-level switches this leaves one spare level on every twenties switch and five on the sixes, useful for repairs: a level with a damaged contact can be moved to a spare. The sixes needs only eight levels, and an 8-level switch would work there; nothing in the wiring, the sense ladder or the controller depends on the number of levels. Using the same 12-level type for all seven positions costs four unused levels and buys interchangeability: one spare switch covers a failure in the sixes or in any twenties stage (its straps are moved across from the failed switch, or the failed switch’s mechanism is swapped where the bank comes away from it), and the sixes’ spare levels are where the relay alternative of Volume 11 takes its stepping contacts. On a Type 45 every level also passes the 26th, brush, step at the end of each half-turn. The controller absorbs it: whenever a switch leaves position 25 it lands on the brush step, its sense level reads open, and the controller gives it one more pulse before the next letter (Volume 11). The cipher therefore only ever sees positions 1 to 25.
Alternative: the 1940 layout. With six-level switches such as the AE Type 13 or WE 206A, the stack becomes fourteen switches: two for the sixes (cipher plus sense and control) and four for each twenties stage (24 levels: 20 cipher, four sense). Nothing else in the design changes; the controller simply pulses four magnets per stage instead of two, and reads more sense levels.
Alternative: Post Office 8-level uniselectors. In Britain, and on British-pattern exchanges abroad, the common 25-point switch is the P.O. Type 2 uniselector, and its largest 25-point form has eight levels: P.O. 2/820A to 2/828A (the last digit counts the bridging wipers; 2/820A has none), STC 4158D_ with the 50 V coil. With these the stack becomes eleven identical switches, ten in use and one spare: the sixes on one switch, and each twenties stage on three switches pulsed together.
Table 2 — Allocating the Levels
| Switch | Cipher levels | Sense level | Spare |
|---|---|---|---|
| Sixes | 1–6: A E I O U Y | 7 | 8 |
| Twenties “a” (×3) | 1–7: inputs 1–7 | 8 | — |
| Twenties “b” (×3) | 1–7: inputs 8–14 | 8 | — |
| Twenties “c” (×3) | 1–6: inputs 15–20 | 7 | 8 |
The straps are the same as in the primary design, spread over three switches instead of two. P.O. uniselectors have no brush step, so nothing needs absorbing. Each letter pulses four magnets — the sixes and a three-switch stage — and 75 Ω coils run from 48 V draw 0.64 A each, about 2.6 A together: inside the 3.3 A supply, with less margin. The controller needs ten magnet drivers and ten sense channels. The schematic in Volume 11 stays as drawn, with two changes: the key chain moves to the end of the line-sense chain through J11, freeing GP21, GP22 and GP27 for the three extra magnet gates, and a second MCP3208 on SPI1 takes its chip select on GP28.
10.7 The Plugboard
The 1940 analog’s single plugboard with double-contact jacks is the right idea, and modern audio parts make it easy. The board has two rows of 26 three-pole (TRS) jacks.
- The typewriter row is labelled A–Z. Each jack’s tip is the keyboard line for that letter in decipher mode, and its ring is the printer line.
- The machine row is labelled in machine order, A E I O U Y and then B C D F … Z. Each jack’s tip goes to the switch end that receives the input in decipher mode — a sixes wiper or a twenties #3 wiper — and its ring goes to the other end: a sixes output bus or a twenties #1 output bus.
A two-conductor cord from typewriter jack N to machine jack A therefore connects keyboard N to the sixes wiper A and sixes output bus A to printer N: one cord sets both plugboards, and they cannot disagree. Setting a daily alphabet means plugging 26 cords, reading the alphabet straight across in machine order (Volume 12). Shielding is unnecessary; the path carries ten milliamps of direct current.
Two practical details matter. Use jacks whose tip and ring springs are both switched off when no plug is present, or no switching at all, so that an empty jack leaves its line open rather than shorting it. And colour the six sixes jacks differently from the twenty twenties jacks, as the illustrations in this series do: a cord plugged into the wrong group is the commonest setting error, and the machine cannot detect it.
10.8 Two Teletypes and the Panel
The Japanese machine sat between two electric typewriters: the clerk typed on one, and the other printed the result (Volume 4). The SIS’s automatic analogs of 1940 had an input keyboard and a solenoid-operated output typewriter (Volume 5). My design keeps that arrangement with two teleprinters — teletypes — one to type on and one to print. A teletype is the electrical typewriter of the same period, built to be driven by pulses on a wire, and it needs no modification to work here.
10.8.1 What a teletype brings
A Teletype speaks a five-unit code, Baudot or more exactly the International Telegraph Alphabet No. 2 (ITA2), over a current loop: the line carries current (“mark”) or none (“space”). Each character is a start unit of space, five code units and a stop unit of mark. At the standard “60 speed” a unit lasts 22 ms — 45.45 baud — and a character occupies 7.42 units; Teletype gives the Model 15’s speed as “368 operations per minute (approximately 61 words per minute)” and its line current as “.060 ampere”, with a wiring change for 0.020 A circuits (Teletype Specification S-5359, 1944). Model 28 sets of 1969 were “arranged for 20 or 60 MA neutral operation” and described as using a “five-level, 7.42 unit code” (Teletype P.D. 130, 1969). The loop is fed from about 120 to 130 V DC through a resistor that sets the current (Aetheric, “Refurbishing a Model 15”).
Five units give 32 codes, so the code shifts: an LTRS code selects letters and a FIGS code figures and punctuation. PURPLE traffic is the 26 letters and nothing else, all of which are in the letters case, and teletypes print capitals only — as the intercepts themselves were printed. Figures are needed only for typing a key, and the input machine’s FIGS key provides them. Volume 11 gives the code table and how the controller handles the shifts.

10.8.2 The options
Table 3 — The options
| Option | Input | Output | For | Against |
|---|---|---|---|---|
| Model 15 pair (recommended) | Model 15 KSR | Model 15 KSR or RO | period-correct; typebar printing; sending and receiving circuits on separate jacks; simpler to put right than a Model 28 | heavy and loud; surplus only |
| Model 28 pair | Model 28 KSR | Model 28 RO | very common among radio amateurs; the RO is often the cheaper machine; gear sets for 60, 75 or 100 words a minute | 1950s; more adjustments; a KSR’s keyboard and printer usually share one loop; the DeRamp board suits only some Model 28 configurations, otherwise the discrete loop fallback |
| One split-loop KSR | the KSR’s keyboard | the same KSR’s printer | one machine to find, carry and keep | prints only the output; the input is only in the log |
| Wheelwriter 5 pair | IBM/Lexmark Wheelwriter 5 | second Wheelwriter 5 | quiet; a desk machine; daisywheel print | an interface board per machine; reading its keys not yet documented |
| Keyboard and thermal printer (minimal) | 29 keyswitches on the panel | 58 mm TTL thermal printer | small, cheap, quiet; the panel’s spare inputs already take the keys | none of the period character |
Sources: Teletype S-5359 (1944) and P.D. 130 (1969); the Wheelwriter projects cited below; Volume 11, sheets 8 and 9.
The Model 15 was made from 1930 to 1963, about 200,000 of them, and was the mainstay of US military communications in the Second World War (Wikipedia, “Teletype Model 15”). It prints with typebars like a typewriter. Its motor was “either synchronous or governed”, the governed motor set to speed with a tuning fork, and its sending and receiving lines “are brought to separate jacks” (S-5359) — which is what makes it easy to use as either the input or the output machine of the pair. Its selector magnet is most often a “pulling magnet” of about 200 to 220 Ω; the other form, a “holding magnet”, has two coils which in parallel measure about 50 to 55 Ω (DeRamp, Model 15 interface manual; Aetheric). Which one a machine has decides one resistor on its interface board (below). For a replica of a 1941 machine it is the natural choice, and it is the one the design recommends.
The Model 28 first went to the US military in 1951 and to commercial users in 1953. It prints from a removable type box and handles control functions with a “stunt box”, and it was usually geared for 100 words a minute (Wikipedia, “Teletype Model 28”); Teletype sold gear sets for 60, 75 and 100 words a minute (P.D. 130). It was a common radioteletype machine among radio amateurs, so working examples and people who can adjust them are easier to find. A KSR for input with a receive-only (RO) printer for output is the usual pairing; the RO, having no keyboard, often sells for less. The interface board described below is designed for the Model 15; its author says it “can also be used with some configurations of the Model 28” and asks to be contacted first (DeRamp manual). A Model 28 pair that it does not suit uses the discrete loop circuit of Volume 11 (sheet 10), which runs each loop at its own speed.
One machine. A single KSR can be both, if its keyboard circuit and its selector magnet are on separate loops: the keyboard drives the keyboard loop and the selector magnet sits on the printer loop. On a Model 15 the two circuits already have their own jacks. On most Model 28 KSRs they are wired in series through the set’s electrical service unit, and separating them is a wiring change made from the set’s wiring diagram. The machine then prints only what the controller sends — the output — and the typed input survives only in the log.
IBM Wheelwriter 5 pair. For a quiet desk version, two electronic typewriters can stand in for the teletypes. The early IBM (later Lexmark) Wheelwriters 3, 5 and 6 have an internal option connector carrying the machine’s own serial bus, and two open projects drive them through it: Jim Loos’s printer interface (wheelwriter-printer), which warns that “Not all Wheelwriters have this J1 connector” and that “the Wheelwriter 10 and 15 do not”, and John Kua’s (wheelwriter-interface), which identifies the bus as “an Intel 8051 9-bit serial bus in mode 2”. Both print through the bus; neither documents reading the typewriter’s own keys, so the input machine of a Wheelwriter pair may need its keyboard read some other way, or the panel keyboard below. Buy the 3, 5 or 6, not the 10 or 15.
Keyboard and thermal printer. The minimal option uses the panel itself: 29 mechanical keyswitches — 26 letters, GARBLE, FIGS and LINE FEED — on four more 74HC165s chained behind the panel’s own, and a 58 mm thermal receipt printer with a TTL serial input on the teletypes’ connector. Adafruit’s Mini and Tiny thermal printers, the usual hobby choice, were both marked “No longer stocked” when checked in October 2026 (Mini, Tiny); generic modules using the same command set remain on sale. It is also the build’s test fixture: the teletype interface and the panel keyboard plug into the same places.

10.8.3 Buying a teletype
There is no new production, and the machines turn up from collectors, radio amateurs and estate sales. What to ask and check:
- A video of it running. Motor up to speed, a line typed on its own keyboard (a KSR in local copy prints what is typed), carriage return and line feed working, and a full line of RYRY… or THE QUICK BROWN FOX if the seller can send one. A machine that has not run in decades should not be plugged in to find out: congealed oil can jam the mechanism, and the first power-up comes after cleaning and inspection (Restoring a Teletype).
- The motor and its speed. Synchronous motors run at a fixed speed from 60 Hz mains; governed motors must be set with the speed indicator (S-5359). The gearing must suit 60 words a minute (45.45 baud) unless the controller is to be set to the machine’s speed; a Model 28 can be re-geared (P.D. 130).
- Cleaned and oiled, or not. “Congealed lubricants had jammed key parts of the mechanism” on one 1940s Navy machine that had been retired in working order (Aetheric). Ask when it was last cleaned and oiled, and with what.
- Complete. Typing unit, keyboard (on a KSR), motor, base, cover, line cords and plugs; on a Model 28, the electrical service unit. Check whether the selector is strapped for 60 or 20 mA, whether a polar relay drives it, and measure the magnet’s resistance: about 200 to 220 Ω for a pulling magnet, about 55 Ω for a holding magnet.
- The wiring. Some original Model 15 wiring is insulated with asbestos-containing material; it is best left undisturbed (Aetheric).
- Transport. These are heavy. The Army’s TT-5/FG set lists the Model 15 printer alone at 112 lb, its table at 39 lb and its rectifier at 46 lb — “net weight 200 pounds” (JANAP 161, 1952; Library copy). A floor-model Model 28 KSR is about 130 lb (Wikipedia). Plan on two people, a hand truck and, usually, collection in person; lock the carriage and pack the typing unit separately.
- Supplies. Model 15s normally take a friction-fed roll “approximately five inches in diameter” and were set “to print 72 characters per line” for message work (Teletype Specification S-5409, 1943). Teleprinter bond rolls 8 7/16 in (214 mm) wide are still sold by the case (Thermal Paper Direct). “All the mechanical Teletype machines use the same 1/2” Underwood typewriter ribbons” (Aetheric, “Supplies”).
The Dots & Dashes section of this site covers the machines themselves: Teletype Machines for the Model 15 and Model 28 in context, Inside the Teletype Mechanism for how the selector reads a character, Restoring a Teletype for cleaning, oiling and the first loop, and Paper Tape and the Perforator for tape working. A fuller dive on the Model 15 and Model 28 is being written there.
10.8.4 The teletype interface
The main design does not build its own loop circuit. It uses Mike Douglas’s published interface board for the Model 15, published by DeRamp (deramp.com; video, “Interfacing the Teletype Model 15”). The board “generates the 60ma loop current required by the Teletype without the need for a high voltage loop supply or high power (hot!) components”: it runs from a small 15 V adapter, and “during a mark to space data transition, the snubber circuit captures 40v-60v from the decaying magnetic field of the selector magnet onto a pair of capacitors”, energy which “is then dumped back into the loop during a space to mark transition”; an optional switching circuit can boost that voltage by 20, 30 or 40 V. A PIC16F1824 does the timing at 60, 67, 75 or 100 words a minute. The teletype side is two separate loops on ¼-in jacks — keyboard and printer — and the host side is RS-232 at 9600 baud, 8N1, on an RJ-14 jack, with a handshake line by which the board throttles the host. A monitor reached over the same port sets the options, among them “a baudot pass-through mode”, unshift on space and carriage-return timing (DeRamp manual). The bare board and a programmed PIC cost $20 from its author by email; the rest are ordinary parts, listed with Mouser numbers in the manual.

Two boards, one per teletype. The manual is explicit that the board “is designed to drive just one Teletype in the loop” and that the machine’s printer and keyboard loops “must be wired separately – not in series”. My design therefore gives each teletype its own board. Board A serves the input machine: its keyboard loop carries what is typed to the controller, and in half-duplex mode the board also prints each keystroke on the same machine, so the input teletype prints its input as the Japanese input typewriter did. Board B serves the output machine and only prints. Because each loop holds one machine, a single board could take the input machine’s keyboard and the output machine’s selector — but the input machine would then print nothing as it is typed; this one-board arrangement is an economy, not the recommendation.
One serial port for both. The controller’s UART0 sends to board B and receives from board A, with board B’s handshake on a spare pin, through a MAX3232 level shifter: the board’s host input is a true RS-232 receiver and its outputs swing 0 to 5 V in RS-232 sense, so both directions need inverting (DeRamp schematic). In Baudot pass-through “the lower five bits of each byte contain a Baudot character”, in both directions, so the controller keeps its own code table, shift handling and line layout, and the boards only make the loops. Volume 11 gives the wiring (sheet 9) and the settings.
The board’s limits are the reasons for the fallback. It is “not a general purpose Teletype loop interface”: a selector driven through a polar relay must be converted to neutral working first, and a Model 28 may or may not suit. For those machines Volume 11 keeps a discrete loop circuit (sheet 10): an isolated supply of about 150 V, a 2.4 kΩ ballast resistor in each loop and optocouplers to the controller — the traditional answer to the selector magnet’s inductance of about four henries (Trammell Hudson, “Model 15 Teletype”), which needs a high voltage behind a large resistor if the current is to rise within a 22 ms code unit. Some Model 15s also have a noise-suppression capacitor across the keyboard. John Nagle’s similar low-voltage driver warns that it is “large enough to cause typing errors with this board” and that “it may be necessary to disconnect the noise suppression option” (ttyloopdriver); the same applies to any board whose keyboard loop draws little current, so it is worth looking for one when a machine arrives.
10.8.5 The panel
Displays and controls. Two four-digit seven-segment displays on HT16K33 I2C backpacks, the first showing the sixes and #1 and the second #2 and #3, give the four positions, read from the sense levels rather than from the controller’s memory, so that they show what the switches are actually doing. The motion selector is a single-pole six-way rotary switch with a resistor on each position, read by one of the Pico’s ADC inputs. The four SET buttons, a RESET button and the ENCIPHER/DECIPHER toggle each have their own input of a 74HC165 shift register; because the line interface can drive either side, nothing in the cipher path is switched. With teletypes, a starting position is typed on the input machine as FIGS, the digits, LTRS — on a teleprinter the top letter row Q W E R T Y U I O P gives the digits 1 to 0 in figures case — followed by SET on the switch to be set.
10.9 Power
Three supplies with their returns joined at one point:
- 48 V for the magnets. A Type 45’s 100 Ω coil at 48 V draws 0.48 A. Each letter steps the sixes switch and both switches of one twenties stage — three magnets at once, about 1.5 A for 40 ms. A 48 V, 3.3 A supply (for example Mean Well’s LRS-150-48) has ample headroom; the controller never energises more than four magnets at once, even when setting several switches. The P.O. alternative’s 75 Ω coils draw 0.64 A each, four per letter, about 2.6 A — still inside the same supply. Coils of other windings draw differently; measure first and size accordingly.
- 24 V for the cipher path. The path current is set by a resistor at each sensor to about 10 mA. Telephone contacts of nickel silver are designed for exchange voltages and benefit from a wetting current; 24 V at 10 mA is a conservative choice well inside STC’s 0.5 A, 50 V contact rating.
- 5 V for logic. A 5 V, 3 A supply covers the Pico, the logic and the serial adapter, with room for the minimal build’s thermal printer, which draws over 1.5 A while printing.
The two teletype interface boards each run from their own 15 V wall adapter, and the teletypes’ motors plug into the mains separately. Only the discrete loop fallback needs a loop supply: a 115 V : 115 V, 50 VA isolating transformer, a bridge rectifier and a 220 µF capacitor, about 150 V DC with both loops running, floating, fused at 500 mA in the primary and 100 mA in each loop (Volume 11, sheet 10).
Every magnet coil gets a flyback diode, and the 48 V wiring is kept apart from the logic wiring. Each supply has its own fuse on its output — 3.15 A slow-blow on 48 V, 500 mA on 24 V, 3.15 A on 5 V — behind a fused, switched IEC mains inlet. A 3.3 V regulator on the logic board makes the logic rail from the 5 V supply. Volume 11 gives the complete schematic.
10.10 The All-Electronic Fallback
A stepping-switch machine depends on surplus parts that may take months to find. The design has a fallback that keeps everything except the switches: the same panel, teletypes (or keyboard and printer), plugboard and displays, with the switch stack replaced by the Pico computing the substitution from the published tables.
In the fallback, the machine row of the plugboard is wired to a second line interface — 26 sensors on the tip contacts and 26 drivers on the ring contacts, the same parts again — instead of to the switch stack. When a key is pressed, the controller sees which machine-row jack the keyboard current reaches through the cords, computes the switch permutation from the published tables, and drives the resulting machine-row ring line, so that the cords carry the answer back to the output line. The cords therefore still do the plugboard’s work physically, and the motion selector, set buttons and displays behave as before. The code is a direct port of purple_sim.py’s Purple class, which is plain Python with no dependencies and runs under MicroPython; its fifteen self-tests run on the Pico itself.
The fallback is also how the switch build should start. Built first, it gives a working panel, tested teletype loops, a tested line interface and a tested controller, and it becomes the reference against which each switch stage is brought up: the stack replaces the simulated stages one at a time (Volume 11).
10.11 Bill of Materials
Quantities are for the primary design: AE Type 45 switches and a Model 15 teletype pair. The I/O rows give the alternatives; buy one of them. Prices are not given for surplus switches and teletypes, which have no list price; catalogue parts are standard and widely stocked.
Table 4 — Bill of Materials
| Item | Part | Qty | Notes |
|---|---|---|---|
| Stepping switches | AE Type 45 rotary stepping switch, 12 levels, 25 points + brush step, 48 V 100 Ω coil | 7 + 1 spare | identical: SS1 sixes, SS2–SS7 twenties; non-bridging preferred. Alternative: 10 + 1 P.O. 2/820A (STC 4158DJ) 8-level uniselectors |
| Controller | Raspberry Pi Pico 2 | 1 | MicroPython or C |
| Logic supply | LD1117V33 3.3 V regulator; 1N5819 Schottky diode | 1; 1 | +3V3 rail; Pico VSYS feed |
| Line drivers | 74HC595 shift register + TBD62783A 8-channel source driver | 7 + 7 | 52 lines; TBD62783A rated 50 V, −500 mA per channel; 100 Ω series resistor per line |
| Line sensors | TLP291-4 quad optocoupler + 74HC165 shift register | 13 + 7 | 52 lines; 2.2 kΩ series resistor per line; 10 kΩ × 8 pull-up networks |
| Magnet drivers | IRL540N logic-level MOSFET, 1N4007 diode; 74HCT541 gate buffer | 7 + 7; 1 | one per switch; 5 V gate drive through 1 kΩ, 100 kΩ pull-down; 470 µF 63 V on the 48 V rail |
| Position sense | MCP3208 8-channel 12-bit ADC; 1 kΩ 1 % resistors | 1; 7 × 24 + 14 × 2 kΩ | one ladder per switch; 1 MΩ and 1 nF per channel; 150 k/10 k divider watches the 48 V rail |
| Plugboard | TRS panel jacks; two-conductor patch cords | 52; 26 | sixes jacks in a different colour |
| Panel buttons | 74HC165; 10 kΩ × 8 network; 10 kΩ | 1; 1; 1 | U801, RN801; R809 holds the chain end low |
| Motion selector | 1-pole 6-way rotary switch + 7 × 1 kΩ | 1 | engraved 123 … 321; 100 kΩ, 100 nF at the ADC pin |
| Mode switch, set and reset buttons | toggle; momentary buttons | 1; 5 | S805; S801–S804, S806 |
| Displays | 4-digit 7-segment + HT16K33 I2C backpack | 2 | sixes and #1; #2 and #3 |
| I/O: teletypes (primary) | Teletype Model 15 KSR | 2 (or KSR + RO) | TT1 input, TT2 output; 60 mA, 60 wpm; period-correct |
| I/O: alternative | Teletype Model 28 KSR + Model 28 RO | 1 + 1 | 20/60 mA; geared 60, 75 or 100 wpm |
| I/O: alternative | one KSR with split loops | 1 | keyboard on the keyboard loop, selector on the printer loop; prints the output only |
| I/O: quiet alternative | IBM/Lexmark Wheelwriter 5 (or 3, 6) | 2 | internal option bus; not the 10 or 15 |
| I/O: minimal | keyswitches + keycaps; 74HC165; 10 kΩ × 8 networks; 58 mm TTL thermal printer | 29 + 3 spare; 4; 4; 1 | S807–S835, U802–U805, PR1; 5–9 V, 1.5 A peak |
| Teletype supplies | teleprinter bond paper, 8 7/16 in rolls; ½ in Underwood-type spool ribbons | 1 case; 2 + spares | 72 characters a line |
| Teletype interface boards | DeRamp Model 15 loop interface: bare board + programmed PIC16F1824 | 2 | A901 (TT1), A902 (TT2); $20 each from Mike Douglas, deramp.com, by email |
| Parts for each board | per the DeRamp manual’s Mouser list: 2 × 1.0 µF 250 V, 3 × FR104, 2 × BAT46, 2 × TN5325N3, LH1505AB relay, 78L05, 50 Ω trimpot, 100 µH (boost, optional), resistors, jacks, 15 V adapter, Pac-Tec JM-42 case; ¼-in loop plugs and cord | 2 sets | R2 = 0 Ω for a pulling magnet, 150 Ω 1 W for a holding magnet; J2 jumper always fitted |
| Serial adapter | MAX3232 (DIP-16); 0.1 µF × 5; RJ-14 jacks; 4-conductor phone cables | 1; 5; 2; 2 | U901, C901–C905, J901, J902; on +5 V from J10 |
| Fallback loop supply | 115 V : 115 V 50 VA isolating transformer; bridge 600 V 1.5 A; 220 µF 250 V; 47 kΩ 2 W | 1 each | only for the discrete fallback (sheet 10): T1001 (Triad N-68X), BR1001, C1001, R1001 |
| Fallback loop interface | PC817 optocoupler; IRF840 MOSFET; 1.5KE300A TVS; 12 V zener; 2.4 kΩ 25 W ballast | 3; 1; 1; 1; 2 | fallback only: U1001–U1003, Q1001, D1001, D1002, R1002/R1003 |
| Fallback loop resistors and terminals | 22 Ω, 10 Ω 1 %, 470 kΩ, 390 Ω, 10 kΩ; 4-way covered barrier strip; test points | 2, 2, 1, 1, 2; 1; 2 | fallback only: R1004–R1011; TB1001; TP1001, TP1002 |
| Logic-board dividers | 10 kΩ, 15 kΩ | 1 each | R205/R206 (GP28) |
| Power | 48 V 3.3 A; 24 V 1.5 A; 5 V 3 A supplies | 1 each | e.g. Mean Well LRS-150-48, LRS-35-24, LRS-15-5 |
| Mains entry and fuses | IEC inlet with fuse and switch; 5 × 20 mm fuse holders | 1; 3 (+3 for the fallback) | 2 A T mains; 3.15 A T, 500 mA T, 3.15 A T outputs; fallback: F5 500 mA T primary, F6/F7 100 mA T loops |
| Small parts | decoupling and filter capacitors; other resistors; IC sockets | — | values on the schematic (Volume 11) |
| Connectors | 26-way IDC headers; 10-way IDC headers; KK 254 housings (10- and 8-way); 6-way terminal block; ribbon | 8; 5; 2 sets; 1 | harnesses J2, J5–J13 (Volume 11) |
| Wiring | 0.2 mm² stranded hook-up wire in 20 colours; tag strips | ~2,000 joints | the strapping (Volume 11) |
| Enclosure | wooden or steel case, switch rack, front panel | 1 |
A printable version with tick boxes, part numbers, alternates and reference designators from the schematic is at the end of this volume (Printable Bill of Materials).
The TBD62783A in DIP (APG suffix) is listed as no longer manufactured by at least one distributor; the surface-mount AFG version on an adapter, or a discrete high-side switch per line, are substitutes.
10.12 Layout and Safety
The switch stack is the heavy part. The seven switches mount on a vertical rack, wipers facing the front so that the moving parts can be watched through a window, with the strapping fanned out behind on tag strips. A stage’s two switches sit side by side; the stages run left to right in the deciphering order #3, #2, #1, which keeps the inter-stage cables short and makes the signal path readable from the front, as in the SIS schematic. The electronics sit on a separate board at the bottom of the rack, away from the magnet wiring. The two teletype interface boards sit in their own small cases beside the teletypes, on their own tables either side of the panel, with the loop cords run separately from every ribbon cable.
Four hazards need care.
- Stored energy in coils. A magnet switched off without a diode produces a spike of hundreds of volts. Every coil has its diode at the coil, not at the driver board.
- 48 V on open contacts. 48 V DC is not usually dangerous to touch, but it is enough to arc on dirty contacts and to destroy logic parts if shorted to them. The magnet supply has its own fuse, and nothing at 48 V runs on the plugboard.
- The teletype loops. Even on the DeRamp boards the loop sees the 40 to 60 V the snubber captures, more with the boost enabled, and the manual warns not to fit the boost inductor until everything works and never to run a board with its current-sense jumper J2 open. The discrete fallback is more dangerous: about 150 V DC at 60 mA, and more when a selector magnet’s field collapses. Its supply is isolated by its transformer and fused on each loop; its loops reach the logic only through optocouplers and never share a connector with the 24 V cipher path or the plugboard; its terminals are a covered barrier strip, not open jacks; its 25 W ballast resistors are bolted to the chassis because they run hot; and its capacitor has a bleeder, but the supply is switched off before any loop wire is touched. Original teletype wiring may contain asbestos insulation and is best left alone.
- Pinch points. A stepping switch’s ratchet and armature move fast and hard. The rack is enclosed, and the window is clear plastic, not open. A teletype’s typing unit is no gentler: its cover stays on while it runs.
10.13 Printable Bill of Materials
The parts list above is also a printable PDF for the bench: PURPLE stepping-switch replica BOM (PDF). Each part has a row with tick boxes for ordered, in hand and fitted, the quantity and its reference designators on the Volume 11 schematic, an example part number, alternates, where to buy it, its tag and space for notes. The last page is an order log.
Next — Volume 11: Building a PURPLE — Wiring, Controller and Verification. Strapping 1,650 contacts from the wiring tables, the line interface and magnet drivers, the position-sense ladders, the controller’s logic, the complete schematic, and the test that proves the finished machine deciphers the Pearl Harbor message exactly as the simulator does.
Comments (0)