top of page

Search this site

18 results found with an empty search

  • Relay-lab | Vintage Relay Computers

    Relay Dynamics Measurements A relay's operate speed determines how quickly a relay-based calculator or computer can compute and switch logic, so understanding relay behavior is essential. Here I share the lab tests used to choose the R30's relays. A few were selected from among many relays to optimize the machine's performance. Included are oscilloscope photos of the key relay operating parameters. Figure 1 shows five relays from an early telephone exchange, part of my collection of relays from which I chose 30 for the R30's. Fig 1, E-type relays, Panel Exchange, ~1925 build (author’s collection) There are three primary parameters of interest: Contact operating and release times Inductive kickback voltage and its reduction Contact bouncing on open and close All three metrics are involved in setting the relay’s max operations/second (ops/sec) rate. The goal was to select relays that could work dependably at 25 ops/sec then run them at 15 ops/sec to reduce wear and prolong their lifetime. I made measurements of these metrics on many telephone relays. These were mostly designed at Bell Labs (BL) and manufactured by Western Electric (WE). The E-type was patented in 1915 (WE) by Edward Craft and the U-type in 1938 (BL). Most WE relays used a nominal voltage of 48 VDC and a coil current of 30-60 ma is common. Modern relays often offer better specifications, so the measurements in this section should be treated as practical guidance rather than state-of-the-art benchmarks . Even so, the principles discussed below apply to all relays. Relays from the same family (all E type, all U type,..) share many similar characteristics. However, there are variations among type based on the contact “pile up”, operating current, and operate/release times. A measurement circuit was built to interface 48VDC, an adjustable pulse generator, the relay under test and the scope. The pulse generator drove the relay coil via a high-speed mercury whetted relay for isolation. See Figure 2. In the oscilloscope images that follow, the yellow trace shows the coil state and the green trace shows a contact's on/off state. The exact Y-axis voltage levels are not always needed for understanding. In most cases, Vhigh and Vlow correspond to the coil being on or off. If you are new to relays, see the explainer article on this site. Next, let’s look at each of these parameters starting with contact switching speed. Fig 2, Author’s lab setup for testing relay operational parameters The short video below shows a U1149 relay wired for a speed test (real time and slomo) Operate and release times When voltage is applied to a relay’s coil it takes time for the magnetic field to build and likewise to decay when the voltage is removed. This delay is due to the inductance of the relay’s coil. Many U-type relays have an inductance of 3-5 Henrys. Here NO is normally open and NC is normally closed. In Figure 3, the lower curve is the coil's magnetic field. It takes some milliseconds to climb high enough to close (pull-in) the NO contacts, and after the voltage is removed it takes a similar time to fall low enough for them to open (drop-out). Some relays are designed for quick pull-in and others for slow drop-out depending on circuit needs. Of course, the same reasoning applies for contacts that are NC at rest. Western Electric manufactured about 6,400 different relay versions in 1955 (Calling315.com ). Fig 3, Relay operate and release time delays for NO contact Figure 4 shows a scope image of an operating U184 WE relay. The relay follows a 25 ops/sec pulse train (40 ms period). Fig 4, U184 relay, yellow is the coil drive signal, green is NO contact response The operate time is measured from when the coil voltage is applied until contact closure. The contact for this test is a NO type. In Fig 4, the close time (Ton) is ~15 ms measured from the rising edge of coil drive to first edge of contact close (voltage rise). There is some apparent rising edge jitters, to be covered later. The contact opening time (Toff) is ~7 ms measured from the falling edge of the coil drive signal. This test has a “flyback diode” connected across the coil. Contact pull-in and drop-out delay times will change slightly for the same relay based on ops/sec rate due to the residual magnetism in the coil at high operate rates. Modern performance-based Mercury Whetted relays can operate comfortably at 200 ops/sec if speed is the aim. So, it’s possible to build a 1-bit adder at ~200 adds/sec although I have not yet seen a working model. With careful relay selection and excellent design a 32-bit relay adder may reach ~300 adds/sec. 2. Managing inductive kickback Current flowing through a relay coil creates a magnetic field that stores energy. See Figure 5. The moment the applied relay current is cut off, the collapsing magnetic field tries to keep current flowing in the same direction. To do this, the coil flips its voltage polarity creating a sharp high-voltage transient. Appendix A examines this in more detail. Fig 5, The Back EMF spike is seen on relay release In the diagram, there is an optional standard diode (like a 1N4002) across the coil. The orange trace is what happens without the diode: the current stops almost instantly, so the voltage shoots very negative, up to hundreds of volts! The green dashed trace is with a flyback diode: the current fades away gradually, and the coil voltage stays clamped at nearly zero (-.7V). That slower fade has a cost: the relay releases later because the current decays more slowly. Note that the diode is connected across the coil so it only conducts (note polarity) when the current is cut off and the coil voltage reverses. Without the diode protection, the large voltage spike could easily cause arcing contacts and damage connected components. For more on spiking, arcing and relay life-time see the article on relay reliability . Figure 6 shows a measurement of a E6458 relay coil voltage. There is no diode! In the center of the screen the coil supply voltage (yellow) goes “open circuit” and falls. The coil voltage immediately spikes 286 V from about +46 VDC to -240 VDC. The contacts open (green trace) in only Toff = 5.75 ms from supply removal. The larger the inductive spike the faster the coil current decays. Fig 6, Measured Back EMF spike (yellow) on the relay release – 2.0 ms/div The R30’s relays interface with a low voltage microcontroller (via driver transistors) so I needed to limit the spike voltage to prevent component damage and at the same time not increase relay operation speed. Next, I tested with a common 1N4002 diode across the coil of the same E6458 relay. Figure 7 shows this case. This causes the coil voltage to go from about +48 to only -.7 volts (diode drop) when the supply current stops. The coil current diminishes more slowly than a non-protected coil. Note that the contact release time is Toff = ~20 ms (yellow to green falling edges), almost 4 times slower than without any protection diode. Good to reduce spiking but bad for speed.

  • adder-synthesis | Vintage Relay Computers

    Binary Adders – Let Me Count the Ways Abstract: The 1-bit adder is a fundamental component of every calculator, computer and AI compute engine. The article Examples of Relay-based Adders presented eight examples of 1-bit full binary adders. The variety raises two questions: are there systematic methods for generating adder circuits and can a catalog of all possible designs be constructed? This section explores those questions, traces the influence of early relay designs on modern transistor-based adders, and addresses a gap in the limited literature on relay-adder synthesis. Introduction to logic design synthesis To frame the “how many adders” problem, let’s turn to the basic logic diagram that defines the 1-bit full adder. Other forms can always be reduced to this version. Fig 1, Combining 2 half-adders to make a full adder Konrad Zuse invented a 5-relay adder (based on Fig 1) for his Z3 computer (1941) and he thought [1] this was the minimum number of relays needed. Years later he designed a 2-relay method for his 1961 replica version. Konrad would have benefited from logic synthesis tools to eliminate the guess work but very little existed at the time. Claude Shannon’s master’s thesis [2] revolutionized logic circuit design, replacing trial-and-error design with a systematic, mathematically solvable discipline . This single breakthrough laid the foundation for modern computing, enabling the evolution of everything from basic logic functions to advanced microprocessors. So, how do Shannon’s ideas help us implement Fig 1 in relays? Let’s break down the answer in two parts. 1. What logical relationships describe the Sum term in Fig 1? Sum = A⊕B⊕Cin This can be seen from Fig 1 where ⊕ is the XOR symbol. Another way to state this is: Sum = True when exactly 1 or 3 inputs are asserted. This is 3-Input odd parity rule . Sum = S₁,₃ (A, B, Cin) Using Claude Shannon’s symmetric function terminology for odd parity of the 3 inputs. 2. What logical relationships describe the Carry_out term in Fig 1? Cout = True when 2 or 3 inputs are asserted. Cout = S₂,₃(A, B, Cin) This is the Shannon 2-out-of-3 majority rule These two basic relationships describe the operation of Figure 1. Below are four (there are more) common symmetric functions. These are perfect for relay designs because they naturally implement counting, branching, and selection. Parity (odd/even number of 1s) Majority (at least half are 1) Threshold (≥ k inputs are 1) Equality (all inputs same) A Boolean function F (X1, X2, X3, …Xn) is symmetric if and only if its truth value depends solely on the total count of the Xn input variables that are TRUE (1), rather than on which specific variables are TRUE. Shannon’s ideas opened the floodgates for new possibilities of design. His work influenced generations of mathematicians and engineers working on logic designs, starting at Bell Labs (AT&T). Say goodbye to trial and error and hello to design by synthesis. Relay Design Synthesis Methods In the context of relay‑based logic design, two classical synthesis families dominate. These tools can help with any logic problem but the focus here are designs for 1-bit full adders. Aside from these two methods, others are discussed later. A pure Shannon Contact Tree is a brute-force binary decoder: Relay A selects a branch, Relay B selects sub-branches, and Relay C selects the final leaves. This is a 1-to-8 decoding tree where leaves are tied to form the desired truth table outputs. A Two-Dimensional Switching Lattice (folded and unfolded) exploits the mathematical symmetry of the truth tables by folding intermediate nodes together before reaching the output terminals. Let’s look at two examples, one for each method. The Shannon Contact Tree Figure 2 shows a three-input Shannon Contact Tree for a 3-relay 1-bit full adder. The tree shape is obvious and parsing the design is straightforward. The relay forms are not shown but their contacts are. Fig 2, Shannon Contact Tree (binary decision tree) for 3-relay adder All eight combinations (000 to 111) of the 3 inputs (A, B, Cin) are mapped across the tree. In total there are 6 form-C contacts (SPDT) and 2 simple normally open (NO) contacts. For this circuit a logic 1 = +V and a logic 0 = float (open). What’s impressive about this circuit is its simplicity. This is truly a turn-the-crank method to design a binary adder. Next, let’s use another Shannon method to develop a full adder. Two‑Dimensional Switching Lattice (Shannon) Shannon’s MIT paper is challenging to understand. His nomenclature was new and no surprise since he was breaking new ground. Figure 3 is Fig 24 from his paper and shows a diamond or lattice diagram. Let’s crack the code with an example. The logic function (truth table) of the diagram is not explained here only how to read the diagram. Fig 3, Lattice diagram from Shannon’s paper To decipher this, there are 3 relays X1, X2 and X3. Input ‘a’ is routed to output ‘b’ based on the desired truth table. X1 has 2 contacts and the diagonal one, X1, is normally open (NO) while the horizontal one, X1’ is normally closed (NC). X2 has 4 contacts and X3 has 6 contacts. Shannon's convention uses the word "hinderance" to describe a contact state. See Endnote A for more on this and how to understand Fig 4 as it deviates somewhat from Shannon's original work. Shannon gave an example (Fig 4) of how to design a 1-bit full adder using the lattice method. Fig 4, Shannon’s Fig 37, 3-relay lattice adder with annotations The figure (bottom) shows two symmetric functions, one for the Sum and one for Cout. The lattice diagram shows 3 relays (a, b, c) and 2 output register relays (external to adder) to record the Sum and Cout values. The index ‘j’ makes the adder generic but for our case j= 1 (or blank). Inputs A, B, Cin (0,1) engages relays a, b, c respectively. If you map each of the 8 input states, Sum and Cout are always correct. I created a logically equivalent view of the lattice diagram in Fig 5. Fig 5, Shannon’s 3-relay lattice adder, redrawn This adder has a ripple carry delay and this becomes an increasing penalty when chaining k adders. It’s possible to design a 3-relay adder with no ripple carry delay. More on the ripple delay effect below. I used exhaustive simulations and proved that this is the absolute simplest 3-relay adder possible using a min of 4 form-C contacts and 2 NO contacts. This highlights the power of Shannon’s approach. Note that this design and Figure 2 have identical in/out logic mappings. The lattice method is the specialist compared to the tree method. Sum and carry in an adder are symmetric functions, which depend only on how many inputs are on, so a lattice can fold the repeated parts into shared nodes and come out smaller compared to the tree method. The lattice takes more design effort and care. There are several steps to prune the lattice but these are not covered here. A 2-relay adder lattice design With Claude AI as my research assistant, I refined a lattice network for a 2-relay 1-bit adder through successive iterations. I was impressed by its grasp of the subtleties of Shannon’s lattice method. Fig 6 shows the results using standard NO/NC switches extracted from the lattice design. Logic 1 = +V and logic 0 = float. There is no ripple delay carry penalty. It uses “dual-rail carry propagation” for the carry in and out lines. The synthesis method uses a two-variable Shannon symmetric-function lattice. Dual-rail carry uses two wires: Cin and its complement, Cin′ (and Cout/Cout’). Because the carry passes through contacts without operating a relay, there is no ripple delay. In a chain of k adders, it propagates at wire speed; only the first stage needs an inverter to generate Cin′. So, the overhead of needing two wires per carry is very low and well worth it. The contact count is: -Relay A: 4 form-C, 1 NO, 1 NC contacts -Relay B: 3 form-C contacts Fig 6, Shannon’s lattice 2-relay 1-bit adder This completes the examples using Shannon’s two techniques for relay adder design. I did not know what to expect when the research started and was pleased to see how well Shannon’s techniques work. So, are there other synthesis methods to augment Shannon’s work? Are there more adder designs to be discovered? Let’s find out. How many the relay-based adders are there? Web searches reveal scattered examples of 1-bit adders that use varying numbers of relays, but no comprehensive circuit catalog exists. Such a catalog would enable direct comparisons between circuits and help designers make more informed decisions. The goal here is to create a catalog with the following features: A list of synthesis methods for designing 1-bit full adders A count of distinct adders (using 4, 3, and 2 relays) generated per synthesis method Adders grouped based on logic convention Generating one-of-a-kind circuits is complex because of the numerous wiring and contact permutations and combinations, differing logic conventions, and variations in synthesis methods. It is not a goal to render as a circuit every possible adder. More on this later. Existing modern tools are not optimized for full multi-contact relay design. Standard logic minimizers are excellent at optimizing Boolean expressions. But they will miss non-series-parallel topologies. There is no one-size-fits-all tool to design relay-based adders. I consulted Shannon's two chief papers (1938 and 1949), and reference texts like Keister, Ritchie & Washburn's The Design of Switching Circuits and Caldwell's Switching Circuits and Logical Design — both excellent Bell Labs-era books written specifically on relay-based circuit design. See Appendix B. I also turned to Claude AI as a research assistant to help me create a list of synthesis methods including the two from Shannon discussed above. No AI system is an expert on this obscure topic. It is noteworthy that Claude AI is assisting with this task, as the name was inspired by Claude Shannon. It’s likely that some designs are missing from the totals. There is no guaranteed way to catalog all adder forms without an enormous number of simulations to find all the corner cases. One estimate is 10E43 simulations for the 5-relay adder case to exhaust all possible circuits using brute force combination testing. The Catalog The first task is to define the system logic conventions. Fig 7 shows the table for six conventions that are in common use. So, for #2, a logic 1 is +V and a logic 0 is GND (0 volts). Many telephone systems (~1900 onward) use #2 (usually -V rather than +V). The adder schematic will be different for each chosen convention. Typically, voltage V is chosen depending on the relay operate voltage. Fig 7, Six digital logic conventions in common use Next, I set off to define a list of synthesis methods and started with the two Shannon synthesis methods discussed above. I had no idea how many different methods would be discovered. Figure 8 is the list, compiled by iteratively adding synthesis methods. Each of the eight entries represents a different method for designing adders or other logic circuits. Because no single method can produce every circuit variation, methods M1–M8 are each applied to design adders using two, three, and four relays. Only unique designs are included in the count of adders. The labels M1–M8 are used for convenience here. Also, there may be other synthesis methods (M9 +) that my research missed. Shannon and Boole synthesis are responsible for M1, M3, M4 and M5 . M6 and M7 are new (mux-chain) and not described elsewhere to my knowledge. The differential coil method, M2 , is also a new method to describe how the R30 adder works. Both M2 and M8 use the same trick at the start; a coil is driven by the A and B inputs, so it pulls in only when A and B differ. Then the methods diverge. Some designs have ripple carry delay and some do not. More on this below. M7 is marked "no-ripple" but other methods also feature no-ripple delay but not identified as such in the Figure. Methods M3 and M5 were used to create Fig. 2 and Fig. 5 (above) respectively. The M1-based Zuse and Stibitz 2-relay adders (Figs. 8 and 10) and the M6/M7 hybrid Zuse 5-relay adder (Appendix C)—are detailed in Examples of Relay-based Adders . While sample circuits were designed for methods M1 through M8, only a subset are reproduced in this paper. Fig 8, A listing of eight adder synthesis methodologies Fig 8, A listing of eight adder synthesis methodologies Note, for M1 and M2 the relay’s input is the selector, and the signals it chooses are the cofactors, which are simpler functions of the remaining inputs. The final catalog is Figure 9, folding in aspects of Figs 7 and 8. There are 58 individual circuit designs in total . Some logic conventions are only supported by some designs. For example, the 3-relay M8 design only supports logic conventions 2 and 4. The 3-relay M7 designs support all six logic conventions. Note that 3 entries are “DPDT capped”. This means the relay was limited to two form-C contacts for easier access to off-the-shelf relays. Also, relay H is referenced, and this is: H = A XOR B, the “half-sum”. Figure 9, Abridged catalog of 2, 3 and 4 relay 1-bit full adders The catalog is abridged. Why? Initially the goal was a catalog of designs from 5 to 2 relays. I removed the 5-relay case to reduce the validation efforts. Once the Fig 9 data was solid, I expanded to the 5-relay case. I estimate that this adds ~35 additional circuit designs not shown in Fig 9. Each circuit is synthesized using a single synthesis method per adder. Combining methods—for example, M4 for the Sum logic and M6 for the Carry logic—produces additional hybrid designs. I estimate that these mixed-method designs add about 30 schematics. Include also a few 1-relay adder circuits described in Examples of Relay-based Adders . So, the sum of individual relay-based adders to implement Figure 1 is at least 125 designs across the six logic conventions supporting 5 to 1 relay designs. Another way to look at this is there are roughly 20 designs per each logic convention (1 from 6). If diodes are allowed in the circuit, then the number of circuits is certainly greater. For example, DIY designer Jeroen Brinkman's full 1-bit adder is 4-relays plus 2 diodes. If dual coil relays are included (opposed or added fields) yet more adder designs are possible. The RC Metric In Figure 9, the column “RC” metric gives the Relay-Contact Metric. First, some definitions of terms. A Form-C pole (common + NC + NO) counts as 2 contacts — it's physically two separate make/break junctions (common-to-NC, and common-to-NO), even though they share one moving blade and one coil. This contact form is also called SPDT type. A plain NO-only or NC-only pole counts as 1 contact — only one junction exists. The RC metric is the number of contacts times the number of relays in the design. For example, in Figure 9 table, ID = 8, there are 8 contacts across the three relays to generate an RC Metric of 24. This metric is a rough gauge of adder complexity. However, a 4-relay design may be more desired (larger RC value) compared to a 3-relay design if the contacts per relay are fewer. The M2 2-relay design used for the R30's adder has an RC Metric of only 12. One five-relay adder (not included in Fig 9) uses only one Form-C contact per relay (readily available), giving it an RC metric of 50. A higher RC value does not necessarily make a design less attractive. The Ripple Delay Problem When cascading k 1-bit adders, the effects of carry ripple are very important. A k-bit adder has the form in Figure 10 (k =4). In a delay free carry ripple 1-bit adder, carry-out never waits for a relay driven by carry-in. Chained adders connect each carry-out to the next carry-in; any relay that must engage to pass the carry adds delay at each stage. In a delay-free design, carry passes at “wire speed” through contacts already set by each stage’s A and B inputs. Figure 10, A 4-bit adder (k=4) It turns out that 1-bit relay adders can be built with delay-free carry or with ripple delay. Of course, ripple delay free is always desired but there is usually some logic overhead to accomplish this. To learn more about the ripple delay problem and solutions see Appendix C Conclusions Cataloging 1-bit adder designs helps researchers, engineers and hobbyists understand their options by organizing an otherwise scattered collection of circuits into a coherent design landscape. It also highlights Boole’s and Shannon’s importance to early computing. A listing of synthesis methods supports informed choices instead of trial and error. This helps balance relay count, contact complexity, logic convention choice and ripple-carry performance. To generate a circuit schematic, give an AI tool the catalog’s full method name—not its M1–M8 label—along with the desired relay count and other constraints. Note that some of the adder synthesis methods are only published here so there is no guarantee that AI tools (including Claude) will be aware of them. Results will vary among tools, so refining the prompt or trying another tool may help produce the best design for your needs. Endnote A Note on Shannon’s Notation: In his 1938 paper, Shannon used two conventions that are the exact inverse o f modern digital logic: he defined logic states by hindrance (0 = closed switch, 1 = open switch), and in his lattice diagrams, he defined unprimed variables (X) as normally closed (NC) contacts and primed variables (X') as normally open (NO) contacts. While internally consistent within his thesis, this dual inversion can be confusing to modern readers. To keep the schematics intuitive, this article reverses both conventions—using modern transmission logic (1 = +V, 0 = open / float) and treating unprimed contacts (X) as normally open (NO) and primed contacts (X') as normally closed (NC). Because both the logic sense and contact states are inverted simultaneously, the resulting adder truth tables remain logically identical. References Konrad Zuse, “The Computer – My Life ”, 1993 edition Shannon, Claude, A Symbolic Analysis of Relay and Switching Circuits, 1938, MIT, Thesis paper. J. Sklansky, "Conditional-Sum Addition Logic, " IRE Transactions on Electronic Computers, June 1960, p. 226 P. M. Kogge and H. S. Stone, “A Parallel Algorithm for the Efficient Solution of a General Class of Recurrence Equations,” IEEE Transactions on Computers, vol. C-22, no. 8, pp. 786-793, August 1973. V. N. Roginskiy, Elements of the Structural Synthesis of Control Relay Circuits , Moscow 1959; JPRS 5518, 22 Sept 1960; English edition The Synthesis of Relay Switching Circuits, Van Nostrand 1959. T. Kilburn and others, "Parallel Addition in Digital Computers: A New Fast 'Carry' Circuit ", Proceedings of the IEE - Part B: Electronic and Communication Engineering, pp. 464–466, September 1959. Appendix A The Manchester Carry Chain A Manchester carry chain passes the carry through a multi-bit adder using a row of pass-thru transistor switches (CMOS) instead of logic gates. It was developed at the University of Manchester in 1959 [6]. Each bit position uses its A and B inputs and sets its switch to generate a new carry, pass the incoming carry along, or block it, and all of these switches are set at the same time. This is the same as the P&G method discussed in Appendix C. Once they are set, the carry flows down the line without a gate delay at each stage, which makes it fast and cheap in transistors. Its limit is that long chains become slower because of transistor switch loss, so it is usually used in short blocks of about 4 to 8 bits. In one sense, this method approximates the ideal relay contact (lossless) to pass through a signal. Some transistor adder designs use a combo of Manchester Carry (say, k =4) and lookahead methods between 4-bit adder blocks to build any large k length adder. Appendix B The Work of V. N. Roginskiy Roginskiy’s 1959 book [5] is a general theory for designing relay contact networks with as few contacts as possible. Its main tools are Povarov’s cascade method, a graphical construction for symmetric networks, and rules for avoiding false (sneak) circuits. G. N. Povarov was a Soviet researcher in relay-contact theory in the 1950s. For relay designers his book offers: A step-by-step method for tree and lattice circuits, which fits M3–M5 type adders outlined in the main body of this article A way to prevent sneak-paths Contact savings from unused input states Multi-coil relay logic is considered in Chapter 8 It has no adder examples and doesn’t cover the cofactor-select, mux-chain or differential-coil methods (M1, M2, M6–M8). It is at best a reference and not a source of ready-made circuits. Roginskiy credits Shannon for the theory of symmetric networks and Povarov for the cascade and graphical constructions. Bottom line, likely no new adder synthesis methods (i.e. no M9 method) from his work or that of Povarov. Appendix C Delay-free Carry: The Problem and Solutions What is delay-free carry (DFC)? Figure C1 shows a simplified 4-bit adder built from four 1-bit adders in series. In each adder, the carry input drives a relay coil, and the relay may operate before producing a carry output. The carry therefore passes through up to four relay delays, one per stage, before Cout is valid. This limits speed, and the delay grows with every bit added. Fig C1, 1-bit adders each with ripple carry delay Fortunately, there are at least two ways to build DFC adders of length K. In the first, each 1-bit cell has delay-free carry. In the second, the carry decisions are moved outside the cells into a separate network, an approach called carry lookahead, which is the subject of a later section. We start with the first method. Inside every delay-free carry cell (Fig C2), the relays are energized only by the A and B inputs to form two internal logic states: the generate term, G = A·B, and the propagate term, P = A ⊕ B. G tells the cell to produce a carry out independent of the carry in value. P tells the cell to pass the carry in directly to the carry out. Both terms depend only on A and B and they act as steering signals that set up the carry path in advance. No “Cout” relay operates based on Cin arriving. Let’s call this first method “bit-level P&G generation.” It is not always easy to identify the P&G terms inside a DFC adder cell, but they are always there even if cloaked by the design method. Fig C2, Internal logic of a 1-bit, delay-free carry, full adder cell Figure C3 shows a chain of such cells. The Ai and Bi inputs operate the internal relays of all K cells in parallel, so every cell has formed its P and G terms not depending on Cin. The carry into each cell then reaches its output by passing through closed relay contacts alone: the contacts pass Cin when P = 1 and supply the generated carry when G = 1. After a single relay operate time that does not depend on K, Cin propagates to the final Cout at close to wire speed, limited only by the small resistance and capacitance of the contacts and wiring. Fig C3, 1-bit delay-free ripple carry adder cells Considering the M1-M8 design methods (Fig 8, main article), M1, M2, M7, and M8 can generate 1-bit delay-free carry designs while the other methods do not. Several examples of ripple delay-free designs are found in the main article but without calling out the internal P and G signals. Fast carry using lookahead logic A second method to achieve fast carry is to use logic outside of the 1-bit adder cell. So, no P&G terms inside the cell are needed. Fig C4 shows one version of such a circuit. The lookahead logic computes the carry signals (C1, C2, C3) simultaneously and feeds these into each full adder. So, there is no ripple carry delay effect. The lookahead logic computes each P and G term, based on Ai and Bi, and outputs the C1, C2 and C3 carry signals. Fig C4, Carry Lookahead Adder 4-bit block diagram (Nandland.com) Note, that since it’s easy to build a 1-bit delay-free carry adder cell, the form in Fig C4 would not be practical for a relay-based system. However, it is of great value in a transistor-based design. Adder designs using transistors In modern transistor-based CPU designs, all 8- to 1024-bit adders use some form of lookahead logic to quicken the total add time. The lookahead cost is extra gates and wiring, so designers couple it in small blocks, often four bits wide, to balance carry speed against chip area. One arrangement is building 4-bit blocks with each adder using the Manchester Carry chain approach (See Appendix A) and N blocks ganged together using a carry lookahead method similar to Fig 4. This yields a 4*N bit adder. This method uses two forms of carry propagation speedup- one internal to each cell (say in a 4-bit block) and one external to the N blocks. For more on carry lookahead designs, see the Kogge–Stone method and its variants [4]. An interesting comparison, a 2026 vintage 16-bit Kogge–Stone adder may use more or less 950 transistors, whereas a 16-bit 2-relay (M2) delay-free carry ripple adder requires 96 contacts. The carry speed in a 1,024-bit DFC relay adder is nearly the same as for a 1-bit adder -- at wire speed. One billion 1-bit adders The Cerebras Wafer-Scale Engine 3 (WSE-3) is a dinner-plate-sized AI accelerator fabricated from an entire 300mm silicon wafer, packing 4 trillion transistors . Across the wafer’s 900,000 cores, roughly two-thirds (~756 million ) of its estimated 1.15 billion 1-bit adders are dedicated solely to multiplication inside the cores' FP16/BF16 (Brain Floating Point 16), partial-product reduction trees. The remaining one-third (~392 million ) handles everything else: finishing floating-point accumulation and exponent math (~243 million ), stepping through memory addresses via dedicated tensor address generators (~99 million ), and general-purpose integer math (~50 million) . George Stibitz and Konrad Zuse would be amazed. Note: Core architecture specifications based on Cerebras Systems WSE-3 technical disclosures (900,000 cores, 4 trillion transistors). Adder counts are derived from estimated arithmetic logic gate allocations across tensor compute units, exponent accumulation paths, and address generators.

  • Explore the Contents | Vintage Relay Computers

    Exploring the Basics of Relay Computers The Building Blocks Binary Number Explorer Relay Computer Timelines Electromechanical Telephone Exchanges The Minimalist Calculator The Relay Lab -- Measurements Digging Deeper: Principles of Relay-based Design Historical and Contemporary Studies Digital Logic Gates An Interactive 1-bit Adder DIY Modern Relay Computers Adder Design Methods How Relays Work Examples of 1-bit Adders History of the Relay The Arithmetic Logic Unit (ALU)

  • Home | Vintage Relay Computers

    Work in Progress.. Stay Tuned Come back March 2027... (calling315.com companion site) Before vacuum tubes and transistors, pioneers like Claude Shannon, George Stibitz, and Konrad Zuse launched the computing revolution in the late 1930s using Boolean logic and electromechanical relays. A primary focus of this site is DIY relay-based computing, featuring articles ranging from logic basics to step-by-step guides on binary arithmetic using relays. Building a machine from scratch is more than a retro-engineering challenge—it is a hands-on masterclass in how the basic on/off switch forms the foundation of all modern computation. History : Select "Pascal to Zuse " in the menu above for the historical background of computation. The DIY Build : Select "R30 Computer " to follow the design, construction and operation of a 30-relay computer. Exploring : Visit "Explore the Contents " for technical explainers, historical context, prime examples of published DIY computers, interactive demos and understanding how to do complex math using relay-based adders. Your Home for Relay-based Computing

  • digital-logic-gates | Vintage Relay Computers

    Digital Logic Gates Before there were physical logic gates, there was the math. In 1847, English mathematician George Boole published The Mathematical Analysis of Logic. Boole pioneered the algebraic representation of logical operations corresponding to AND , OR , and NOT , laying the foundation for what later became Boolean algebra. Each performs some operation based on the 1/0 (TRUE/FALSE) state of its inputs. There is also a fourth operation, the XOR (Exclusive OR). Boole did not introduce the XOR operator or physical "gate" but he did introduce the concept. By wiring copies of these four basic gate types, we can construct any digital computing device. The four gates are: A and B are the inputs, either 1 or 0 for either. C is the output. Importantly, all digital gates are internally built from combinations of on/off switches. By definition; AND: A and B must both be 1 for C=1 OR: A or B must be 1 for C=1 XOR: Output C= 1 only when its two inputs are different . So, C=0 when A=B. INV: The output is the inversion of the input. 1 becomes 0 , 0 becomes 1 Experiment with the Digital Logic Evaluator below to see how each gate works. Keep in mind that all computer hardware operations are made from these gate types or logically equivalent circuits. Also, as highlighted on this site, all logic operations can be relay-based. The power of the inverter Augustus De Morgan, a 19th-century British mathematician proved (De Morgan’s Law) that NAND (AND with Inverter on output) gates alone can build any logic circuit. The same holds true for a NOR (OR with Inverter on output). This means that the four basic gates above can each be made using some wired combo of NANDs only (or NORs only). For example, here is the equivalent of a standalone XOR gate made with 4 NANDs. Why is this important? One gate type can be reapplied to make the most sophisticated computers imaginable. Is the NAND (or NOR) only approach the most efficient way to build any gate type? Not usually, but the concept is powerful. Also, without the inverter operation (needed for the XOR no matter how it is built), there would be no digital adders -- no computers. An inverter must be built using an active device like a relay or vacuum tube or transistor. On the other hand, AND and OR gates can be constructed using passive resistors and diodes only. In 1921 Emil Post, a mathematics professor, proved that a system of logic gates is only capable of performing any mathematical operations if it includes a way to flip bits, such as a NOT gate. Without this ability to invert values, a system relies entirely on gates whose outputs can never decrease when inputs increase, making general computation impossible. A relay is a natural inverter, it deserves our respect.

  • adder_demo | Vintage Relay Computers

    Interactive 1-bit Full Adder Abstract: A brief description of how a full adder works followed by an interactive demo Addition is the fundamental arithmetic operation in digital computers. Just like elementary school decimal addition—where adding 9 + 3 produces a sum of 2 and a carry-out of 1 —computers add digits column by column, passing carries to the next position. While humans calculate in base-10, computers operate in binary (0 and 1). Check out the Binary Number Explorer for some interactive fun. The standard building block for multi-bit addition is the 1-bit Full Adder. It takes three 1-bit inputs: A and B (the bits to add) Carry_in (the Carry_out bit received from the previous column) The adder processes these inputs to produce two outputs: Sum (the result bit for the current column) Carry_out (the carry bit passed to the next column as Carry_in) Expressed as an equation: A + B + Carry_in = 2 x Carry_out + Sum The classic adder truth table below shows all possible input and output values. With 3 inputs there are 8 possible sets of outputs. The "Dec" column is the decimal equivalent of the 2 binary outputs. See for example the last row where all the inputs add to decimal 3. The adder below is the classic 1-bit form made of AND, OR and Exclusive OR gates. Learn more about these gates here . This basic block can be replicated and chained to create any length of adder (8, 16, 32, 64,...bits). The R30 relay computer uses a 2-relay, 1-bit adder, six times to create a 6-bit adder. The two-relay adder is described elsewhere on this site and is equivalent to the diagram below in logic operation. Importantly, there are many variations of this circuit so don't get confused if you see something called a "Full Binary Adder" and the design looks different. All methods are equivalent logically with 3 inputs and 2 outputs. To see the adder in operation, experiment with the demo below. Try different inputs and see the resultant outputs.

  • R30 Computer | Vintage Relay Computers

    WIP -- much more to add... Technical Specifications Architectural Core 32-bit electromechanical logic architecture A comprehensive breakdown of the R30's architecture and design philosophy. Switching Logic All binary math is done using telephone relays from the 1940's Power & Voltage Operating voltage: 48V DC. Designed for stable, low-noise power supply integration. Physical Dimensions TBD Design Philosophy The R30 is built to be a masterclass in hybrid electromechanical engineering, emphasizing precision and educational value over speed or "all relay" correctness.

  • Bricks and Mortar | Vintage Relay Computers

    The Building Blocks Abstract: At the foundation of all digital computation lies the active, three-port binary switch—a primitive device capable of opening or closing a circuit under electrical control. While architectural paradigms like Harvard and von Neumann define higher-level processor organization, computation itself is impossible without this foundational switching mechanism. This article outlines a five-layer implementation stack to show how relays, vacuum tubes, and solid-state transistors each fulfill this role to construct primitive gates, combinational logic, arithmetic units, and instruction decoders. Regardless of the underlying physical substrate, the fundamental on/off switch serves as the essential bedrock enabling all digital processing. In the early days of computing, two foundational models emerged: Aiken’s Harvard architecture (1944) and von Neumann’s architecture (1945). Over time, engineers refined and extended both ideas, and the machines we use today blend elements of each. Modern CPUs expose a unified memory model like von Neumann envisioned, yet internally they borrow Harvard’s separation of instruction and data pathways to boost speed and parallelism. The result is a hybrid design that traces its lineage directly back to those two original approaches. There are ample resources explaining basic computer organization, so it won’t be covered here. The focus here is the implementation stack . What is this? Figure 1 shows a hierarchy of five implementation layers. Each layer provides the primitives needed to construct the next. In this case the “top” is the most fundamental element that all lower layers depend on. The coverage is more about the building blocks (or nuts and bolts) and less about the architect's floorplans. Decoupling the two allows an architectural model to endure across vastly different hardware designs, with software only entering the hierarchy at layer 5. Fig 1, A computer implementation stack Although this site focuses on relay-based computing, the following discussion examines three logic-switch technologies fundamental to computer operation: relays, vacuum tubes, and transistors. Each independently played an important role in the history of computing. Understanding these 3 switching devices in relation to each other provides a wider perspective than just how relays were used. The Figure 1 model is deliberately kept simple. Let’s examine each layer. The Stack Layer 1: The Switch Nothing computes or decides without the active (powered) on/off binary switch. This is not a hand operated switch. Rather it’s a 3-port device with a control port(s) that opens and closes a switch(s). Figure 2 shows the concept diagram of this type of switch. For this example, the circuit performs an inverter action, a HIGH In closes the switch and produces a LOW out (0V). When the input is LOW (0V) the switch opens and the Output is HIGH (+V). The control port is typically low current, and this causes switching action of a higher current/voltage if needed. There are many ways to wire switches and Fig 2 is just one example. The Rload resistor limits the current when the switch is on and other variations may not have this resistor. Note too that some switches are normally off (NO) as in Fig 2 and some are normally closed (NC). An NC switch is also modeled by Fig 2 but with the switch being on before the control signal is input. Fig. 2. Conceptual electrically controlled switch Figure 3 shows the Relay, Vacuum tube, and Transistor. Each can be modeled as a binary switch by the Figure 2 concept diagram. These three are the most important electrically controlled switching devices ever invented. Importantly, all three in this figure were manufactured by Western Electric with the designs by Bell Laboratories (both AT&T). Importantly for logic design, the relay can have many contact arrangements -- NO, NC, SPDT/Form-C and more. This gives the relay a super logic power that the tube and transistor don't possess (NO/NC only). There are more exotic experimental switches, but our focus is on the three well established types in Fig 3. See Appendix A . Fig 3, Three primary switching devices from Western Electric U650 Relay (1920s-50s), 300B Tube (1938), 2N67 Transistor (1953) For about 13 years, beginning in 1941, relays were used in computers . During the vacuum-tube era—including the ABC, ENIAC, Colossus, and Ferranti computers—every computer used some relays for slower operations. It was not until 1954, with the introduction of the Bell Labs TRADIC transistor computer, that relays disappeared from computer designs. Layer 2: Primitive Gates If you are unfamiliar with logic gates it will help to review this explainer first (with an interactive explorer). The most fundamental elements are the 6 logic gate types at layer 2 in Fig 1. The NAND and NOR gates are Negated AND & Negated OR, respectively. Inversion (also called negation) turns 0 to 1 and 1 to 0. All digital operations can be performed using only these primitives or clever logically equivalent circuits. Each of these gates are implemented using switches. Figure 4 shows three example gates with supply (+V ) voltage values of +12V, +350V, and +6V, respectively. Why are they so different? The supply voltages are selected based on the individual circuit design needs. Important for us, regardless of the actual voltage, a logic HIGH output is +V and a logic LOW output is at ground potential, zero volts. Fig 4, relay, tube and transistor logic circuit examples For the relay AND gate, if A and B are HIGH their respective relays engage and the output is HIGH (+12V in this case), else LOW. Without describing how resistors, tubes or transistors work (see Appendix A), the following gives a high-level explanation for how, for example, NOR and OR logic gates operate. For the tube based NOR, when A and B are LOW (A = 0, B = 0), neither tube conducts electricity. Because no current flows through the pull-up resistor the output voltage stays at +350V, which represents a HIGH (1) state. If A or B = 1 then the output is LOW (0V) because one or both tubes are conducting. For the transistor OR circuit, if either input is HIGH (respective transistor conducts) the output is HIGH (~6V). There are many variations of these circuits for each gate type. Importantly, using only a voltage source, switches, wires and passive resistors all logic gate types can be built. Some modern designs use semiconductor diodes to assist. The AND gate and OR gate can be built using only diodes and resistors (DRL gates) and a switch is not strictly needed. This design approach has limits due to signal loss but it was used in some early designs. The IBM 608 (1957), an all-transistorized computer, used diode-resistor logic for AND/OR gating, with transistors only for inversion and level restoration. In contrast, the Colossus Mark 1 (England) [3] used about 1,500 vacuum tubes and no relays. Layer 3: Combinational Logic Circuits With gates available as building blocks, we can construct complex logic circuits. Figure 5 is an example of a “multiplexer” (Mux: k-in, 1-out), a commonly used module for digital designers. There are 4 data inputs and 2 selector inputs. The idea is for the 2 selector values to route one of the 4 inputs to the single output, Y. This is a chooser circuit and found often in computer design. See the Truth Table to see all four routing combinations. For example, S1 S0 = 1 1 routes only I3 to the output. Notice it uses 3 primitive gates – AND, OR and the Inverter. No matter how complex, all digital circuits can be made from the primitive gates. There are clever circuit shortcuts for some designs but in the end, all circuits use the primitives in one way or another. It’s easy to imagine this circuit being packaged with 4+2 inputs, 1 output and 2 pins for power. There are 500+ different transistor-based modules available today. Search for the 74LS153 Mux module as an example. These are like Lego blocks for DIY computer builders. There are relay and tube equivalent Mux implementations, but they are not described here. Fig 5, Building a multiplexer using gate primitives Another important element is bit memory. Fig 6 shows a latching relay circuit. In a computer, memory is needed for both program and raw data storage. In the figure, there is a push button to engage the relay (it stays on once its contact closes) and a reset button to disengage it. There may be other contacts if needed. Using a relay to store bits is expensive! 1,000 bits need 1,000 relays. So, engineers looked for more efficient ways to store bits. The first relay-based calculator from Bell Labs used 100-point crossbar switches to store ten decimal digits per switch. See examples here on a companion site dedicated to relay-based telephone systems. Also, some early relay (mostly) computers use short term “1-bit capacitor memory”, some used special mechanically latched relays, and some modern versions use semiconductor memory (often NAND based). Fig 6, Relay latch circuit for 1 bit Layer 4: Hardware Based Math One of the most powerful logic modules is the 1-bit full adder. Experiment with an interactive single 1-bit adder here . Cascading cells enables composite adders of any length in hardware (4, 8, 16, 32 bits,…). See Fig 7 for a hardware 4-bit adder example. A and B each are 4 input bits, S (Sum) are the 4 output bits. Note that the Carry_out bit of each adder is connected to the Carry_in bit of the next adder in the chain. The final Carry_out bit may be forwarded to another adder chain to increase the effective adder bit length beyond 4 bits. Search for the transistorized 74LS83 4-bit adder module to learn more. The R30 cascades six, 1-bit, relay-based full adders, resulting in a 6-bit adder. Each 1-bit adder needs only two relays. The adder is described elsewhere TBD on this site. Th R30's six-bit adder is cascaded (in 6 passes), via the microcontroller, to make a full 36-bit adder and used for all math operations. Fig 7, Hardware 4-bit integer adder made of four small 1-bit adders What about hardware multipliers and dividers? These are also made of one or more n-bit adders but with additional control logic to implement the methods that we all learned in primary school. Here is the systematic method for unsigned integer multiplication: Bit Check: Look at the multiplier one bit at a time, from right to left. Add if 1, skip if 0 : If the bit is a 1, add the multiplicand into a running total (the accumulator). If it is a 0, add nothing. Shift : Slide the multiplicand one bit left, set the new LSB with a zero, and move to the next bit. Repeat : A simple controller repeats this cycle until every bit is checked and the final total is ready With an effort to manage the multiplier and multiplicand exponents (adding exponents is equivalent to multiplying), this method can be extended to signed floating point numbers. The R30 uses the methods above to multiply and the non-restoring method to divide. The R30 supports 32b floating point math with a dynamic range of (+-) 1.4×E-38 to 3.4E+38 based on its 36-bit adder discussed above. Its math accuracy conforms to IEEE 754 Standard for Floating-Point Arithmetic . See the explainer on relay adders here TBD. Many vendors make Floating Point Math accelerators. These are digital chips that can “bolt on” to CPU hardware chips to improve calculation speeds (not expanded on here). Note too that there are many methods available to speed up hardware calcs (i.e. Booth’s algorithm for multiply) but these are beyond our coverage although the R30 uses Booth. Layer 5: The Execution Layer Layers 1 through 4 provide the nuts and bolts —switches, gates, decoders, adders, registers, storage and more. But none of these components can decide what to do on their own. Layer 5 provides the conductor: the control unit, instruction decoding logic, and sequencing hardware (all based on logic gates) that orchestrate data movement across the machine. Of course, these four layers appear as “black boxes” to Layer 5 execution. So, it’s possible to design a hybrid computer using combos of the switches in Fig 2. For example, the IBM SSEC (Selective Sequence Electronic Calculator, 1948) is one of the largest switch hybrids ever built. It combined 12,500 vacuum tubes (for the arithmetic unit and high-speed control) with 21,400 electromechanical relays used for intermediate memory registers and sequence control [1]. There are no known hybrids that use all three switch types. Another example is the famous ABC “first vacuum tube” computer (1939-42). It was more a calculator than a computer. Nonetheless it used tubes for all math and relays for program execution. See Endnote A. Fig 8, R30 program and output listings for solving a quadratic equation Execution centers on the classic instruction cycle: Fetch, Decode, and Execute. A program counter (PC) holds the address of the next command, pointing to a location in memory (whether film, paper tape, electromagnetic store, or modern semiconductor memory). During the fetch phase, this instruction is loaded into an Instruction Register. Next, decoding logic inspects the bit pattern (the opcode). Rather than running math directly, the decoder is essentially a traffic director: it asserts specific control lines that open multiplexers, enable register output onto shared buses, and tell the Layer 4 math units whether to add, invert, or shift. For the famous Zuse Z3 relay computer, about 25% of all the relays (plus some electromechanical stepping switches) were used for program execution. See Endnote B. Layer 5 also manages the boundary between the internal machine state and the outside world via Input/Output (I/O). Using a microcontroller to manage all user I/O (WiFi connected tablet interface for the R30) is very practical and saves many relays. See Figure 8 for a R30 program listing and outputs for computing the two roots of the quadratic equation x*x + 5x + 6 = 0. Appendix A Tubes and Transistors The Vacuum Tube There are many excellent web resources on the operations of the vacuum tube and the transistor. This Appendix gives a tip-of -the-iceberg view of these important devices, especially functioning as binary switches. In 1904, John Ambrose Fleming (British) patented the first vacuum tube diode, called the Fleming Valve . He realized that the Edison effect — one‑way electron flow inside a heated vacuum bulb — could be used as a radio-wave detector (passes one signal polarity, blocks the other). Edison himself had not recognized any practical use for it. Fleming’s diode became the first practical electronic component, enabling reliable detection of wireless signals and effectively starting the electronics industry. In the figure below, if the "plate" element on the right side of the tube is positive in charge, it attracts the electrons from the heated filament. If the plate has a negative voltage the plate repels electrons. A vacuum provides a collision‑free path, allowing electrons to reach the plate more effectively. Fleming's invention is not a full on/off switch but very close to it. The Fleming Valve Vacuum Tube Lee de Forest’s invention — the Audion (1906) — was directly built on Fleming’s valve. De Forest began experimenting with the Edison effect and Fleming’s diode, trying to improve radio detection. He added a third electrode, the grid, creating the first triode (3 element) tube. The Audion became the foundation of radio broadcasting, long‑distance telephony, and eventually early computers. Adding a grid (the control element in Figure 2 above) to the tube allowed it to function as an on/off binary switch or linear amplifier depending on how the tube was wired into the circuit. The grid (see image below) controls the flow of electrons from the cathode to the plate, allowing amplification, switching, and modulation. Without the grid, a tube is just a diode -- a Fleming Valve. By applying varying voltages to the grid element the electron flow is modulated as needed from binary on/off to varying in a linear fashion and causing amplification of audio and radio signals. Finally a new on/off electrical switch that is much faster than a relay! The Lee de Forest Triode Vacuum Tube Source: hamradioschool.com AT&T (through Western Electric and what later became Bell Labs) bought the rights to De Forest’s Audion, and this purchase is what allowed them to industrialize and radically improve the triode. AT&T saw the potential for long‑distance telephone amplifiers and negotiated rights to use and develop the Audion. Over time the triode was used as a binary switch but this was not AT&T's original use case. The first telephone call from New York to San Francisco in 1915 used three vacuum‑tube repeaters along the 3,400 mile (copper wire length) route. Surprisingly, before the tube AT&T used mechanical amplifiers (repeaters) for weak telephone signals. Hundreds of model 6C8G "dual triode" (RCA or Sylvania likely) tubes were used in the original ABC tube computer (1942). The Transistor The transistor was invented (there were two versions) in late 1947-8 at Bell Telephone Laboratories by John Bardeen, Walter Brattain, and William Shockley. Their breakthroughs created the first solid-state device capable of amplifying and switching electrical signals. Several names were proposed and one was semiconductor triode [2], a nod to the triode tube. In the end, "transfer resistor" or transistor was chosen. One way to understand a transistor is to picture a water faucet and its valve. Instead of water, electricity flows through it. Turning the handle is equivalent to applying a tiny trickle of electricity to the B (base) terminal causing electricity to flow between the C and E terminals. There is a similarity between the tube and transistor, each have 3 terminals and one controls the flow of current between the other two. Tube: cathode → grid → plate Transistor: emitter → base → collector Both use a small input signal at the control terminal (grid/base) to modulate a larger current between the other two terminals. One type of transistor (NPN) is made of layers of the element Silicon with tiny amounts of Phosphorus and Boron. Applying a small forward voltage to the base lowers the internal energy barrier at the base-emitter junction, allowing electrons to flow between the collector and the emitter. The figure below shows a working circuit to supply current to a load (lamp, other) and this is controlled by a low current control switch. The resistor limits the base current to a small value. When the control switch is closed the transistor "turns on" and current flows into the load (as in the figure below). When the control switch is off (open), the transistor "turns off" and there is no load current. Importantly the load current can be ~100x more than the control base current so the transistor is an amplifier in a similar way to how tubes amplify [Endnote C]. Relays can't be wired to linearly amplify a signal whereas a tube and transistor can. Vitally, all three devices can operate as binary switches. Faucet and Transistor relationship illustration Transistor circuit and its equivalence with the control switch =closed Transistors are far smaller, more rugged, and draw significantly less power than vacuum tubes because they operate without fragile glass envelopes or power-hungry heater filaments. They also turn on instantly, generate minimal heat, and last decades without the inevitable burnout and degradation that plagued vacuum tubes. Hence, transistors dominate our digital world co-existing with some specialty vacuum tubes for audio and relays for power switching. How many transistors were produced in 2025? There is no official count. However, extending the reasoning of industry analyst Jim Handy [4], an order-of-magnitude estimate is about 10E23 (about a trillion trillion) transistors, with almost all a part of integrated circuits. For example, a single Nvidia Blackwell B200 die has ~104 billion transistors implementing about .7 million adders of various lengths. We've come a long way since the George Stibitz 2-relay adder in 1937. A relay is not just a slow transistor It is tempting to see the relay as a primitive, sluggish ancestor of the transistor. Not so. A transistor's control signal always shares a terminal with the path it switches, whereas a relay's coil is electrically isolated from its contacts. So, tens of milliamps can command large or small voltages with no common ground. One coil can drive many independent contacts at once, each with both normally-open and normally-closed positions, a job that would need a small network of transistors and isolators to reproduce. A closed contact behaves like a "lossless wire." Contacts can be wired directly into logic, with series for AND, parallel for OR, and self-holding circuits for memory, while the coil's built-in hysteresis and the relay's defined state on power loss make it valuable in safety circuits. Sure, relays are slower, they wear out, and they need coil power. But they offer isolation, many contacts from one input, polarity-free switching and ruggedness, which a transistor cannot provide on its own. References 1. Bashe, C. J., Johnson, L. R., Palmer, J. H., & Pugh, E. W. (1986). IBM's Early Computers . MIT Press. 2. Gertner, Jon, The Idea Factory, Bell Labs and the Great Age of American Innovation, 2012, page 98 3. Randell, Brian (ed.). The Origins of Digital Computers: Selected Papers . Springer, 1973. Contains Flowers’ original post‑war paper describing Colossus. 4. Computer History Museum --https://tinyurl.com/ycfermse Endnotes Endnote A: The control system of the ABC did not use vacuum tubes for decoding because it was not a stored-program or tape-programmed computer. It ran a fixed algorithm (Gaussian elimination to solve simultaneous linear equations) governed by approximately 30 telephone relays. The vacuum tubes outside the adders served as amplifiers for the capacitor memory drums (about 30 tubes). The arithmetic logic functions were fully electronic, implemented with vacuum tubes. Based on materials in: Alice R. Burks and Arthur W. Burks: The First Electronic Computer: The Atanasoff Story (University of Michigan Press, 1988). Endnote B : Dr. Raúl Rojas reverse-engineered the relay logic schematics of the Z3 computer by Konrad Zuse. He wrote the paper: "Konrad Zuse’s Legacy: The Architecture of the Z1 and Z3 " (IEEE Annals of the History of Computing, Vol. 19, No. 2, 1997). In Section 3 ("The Control Unit"), Rojas notes: The opcodes read from the 8-track punched film were parsed by a decoding tree of relays requiring minimal hardware (fewer than 40 relays for instruction decoding). The execution sequencers (handling iterative shifts for multiplication and square roots) used rotary stepping switches and interlock chains, leaving data storage and addition related operations to consume over 75% of the machine's physical relay inventory. Endnote C: Tubes and transistors amplify in the sense that the control signal input (grid or base terminal) controls a much larger current. For a transistor, this is done in a linear fashion such that Current_out = K*Control_current, where K is the amplifying factor. A tube is a voltage‑controlled current source, different from how a transistor works. The Current_out= Function(grid voltage). The input-output transfer curve is not linear and beyond the scope here. Importantly, they can also operate in an on/off mode acting as a switching element. With a relay the relationship is different. The control current engages the electromagnetic coil to operate one or more switch contacts. The switch current is independent of the coil current and can be as high or low as needed based on the contacts ability to handle the current.

  • Computer Timeline | Vintage Relay Computers

    The image below (partial) is from "The First Computers -- History and Architecture " by Raul Rojas and Ulf Hashagen, page 10, chart by Michael Williams, 2000. All of the computers in this timeline are relay-based except for the Howard Aiken Mark 3 that was a hybrid relay-tube design. Also the Zuse Z1 was mechanical. The Z2 prototype had a relay-based adder. Early Major (mostly) Relay Computing Events (dates are approximate) Click here to see a higher resolution version of the timeline Relay Computer Timelines Below is a timeline of computer evolution based on switch type. It's instructive to see how relays evolved to transistors over a 17 year period. Table created by Al Kovalick. It is interesting that Fujitsu would build their FACOM 100 relay-only computer in 1954 when tubes were a solid option. Fujitsu was a telephone company with deep relay experience. A team of young engineers led by Toshio Ikeda started developing a “computing machine”. They made relays by the tens of thousands, so it was a natural decision. It had approximately 4,500 relays and took 0.35 seconds for addition and subtraction, 1.8 seconds for multiplication and 5.0 seconds for division with 8-digit (decimal) precision. Click here to see a higher resolution version of the timeline

  • Minimalistic | Vintage Relay Computers

    The Minimalist Calculator Abstract: You might expect a machine that multiplies, divides and takes square roots to need special circuits for each job. It doesn't. This article describes the Minimalistic Calculator, which does all of its math with just two parts, one that adds and one that inverts, plus memory and a controller that runs the steps in order. Subtraction, multiplication, division and even square roots all turn out to be simple patterns of addition and subtraction. Extra hardware makes math faster, but it is never needed to make math possible. Want to compute PI to 1,000 places? This can be done too using the minimalistic approach. Let's see why this is true. All arithmetic can be performed with just four elements: an adder, an inverter, a data sequencer and storage registers. The adder does the addition, and the inverter produces negative numbers (2’s complement) so that subtraction is possible. The adder’s carry-out directs the sequencer’s next step. This is true for computers and calculators since they share the same math subsystem. This may seem counter intuitive so let's dig deeper. See Figure 1. Fig 1, Doing arithmetic with minimal hardware (Kovalick) Marvin Minsky [Minsky] showed that multiplication, division, square roots and floating-point math are just sequences of additions and subtractions directed by the carry, and they need no further arithmetic hardware. Additional hardware adds speed, not capability. The R30 was constructed based on this premise and therefore only has a hardware adder, hardware inverter and a microcontroller for sequencing and for data storage. At one time I thought that a calculator also required right/left bit shifters, muxes, zero detectors, bit masks and more. I was wrong. Sure, these may speed up some operations, but an adder and an inverter are sufficient to do all math ops. Reference : Minsky, M. L., Computation: Finite and Infinite Machines. Prentice-Hall,1967 All you need is adding To understand how only 4 components can execute all calculator math, let’s briefly review the common binary operations for long division. Fig 2, Long division steps to divide two numbers So, step 1 is a left shift , step 2 is add or subtract, step 3 is set a bit (store) and step 4 is a right shift . It turns out that for multiply (the inverse of divide), there is a left shift required during the multiply process. We all learned "restoring division" in primary school but "non restoring" is easier to execute in hardware. Let’s see how to do the shifts using only an adder. • A shift left is done by a d ding a number to itself (A + A), this doubles it. 00110 becomes 01100 . • A shift right can be done using a method we will call shifting right by shifting left. Shifting bits right by shifting bits left A right bit shift of a 32-bit number can be implemented without a hardware-based right shift register by performing 31 successive modular doublings using an adder. Each doubling corresponds to a one-bit cyclic left rotation . 31 such rotations therefore produce a one-bit right rotation. Although very inefficient, the method allows a right-shift operation to be synthesized using an integer adder rather than additional shift hardware. Here is an example of dividing 4 by 2 (Fig 3). In this case A=4 to start. Each addition of A + A gives a left shift as seen in steps 1, 2 and 3. At step 2 the Carry-out = 1 and is fed to the Carry-in (circular rotation). So, at step 3 the result is 2 = 4/2 and this is the same as one right shift of A in a standard shift register. Fig 3, Shifting right by shifting left Trading speed for simplicity These methods trade longer execution time for less hardware. I was surprised to find an “adder solution” for every bit-manipulation operation I examined (including AND, OR, XOR, and NOT). Also, these principles allowed the R30 design to be lightweight, portable, and still be a legitimate relay-based calculator/computer of Class 3 . Some readers may object to this approach based on calculation speed and say, "For the speed increase, the extra hardware is well worth it." In fact, most CPU architectures use very advanced techniques for speeding up math calculations. Unfortunately, the R30 can't afford these due to the extra size and weight especially when using 1940's era relays. The page on the Arithmetic Logic Unit reviews speed up methods that would be very useful for a relay-based machine if size and weight were not a driving factor.

  • DIY relay computers | Vintage Relay Computers

    Modern Day Relay-based Computers A small group of DIY inventors have built relay computers and calculators. This section does not cover every known system. However, it highlights a few notable projects by dedicated experimenters. In general, “relay computers” fall into three broad classes used here to clarify the different types. These are: 1. Pure relay-only for all functions (~300 to ~2K relays). Some have capacitor charge memory and may use diodes for some logic gating. 2. Mostly relays with some diodes for logic steering and semiconductor RAM/ROM memory. It takes 1,000 relays to store 1,000 bits so using semiconductor memory offers a huge saving in size, power and cost. 3. Hybrid designs. A small microcontroller, such as an Arduino, Raspberry Pi, or ESP32, helps with the user interface, storage, and some program controls. Relays still handle the math. This approach makes the computer smaller, lighter, and more energy efficient, while allowing features such as a Wi-Fi tablet interface and 32-bit floating point math. It is not made entirely from relays, but it still shows the power of relay logic. Some designs use only one relay type repeatedly (say, SPDT) while others use SPDT, DPDT and even more complex contact forms in the same machine. The following summaries are based on my current understanding of these machines. If you see an error please contact me and I will update the description. All images are taken from the inventor's respective published sites. The R30 Electromechanical computer (Class 3) is a DIY project is covered here . The famous Z3 computer was reconstucted by experts and a coverage follows the DIY inventers. Review of some Noteworthy DIY Relay Computers 1- - Jeroen Brinkman (Netherlands), MERCIA all Relay Computer, 2016. ~2,000 relays. 10 bits instruction width, 1K storage, integer math. No semiconductors except for diodes. One relay type (SPDT) is repeatedly used for all logic circuits. Capacitors are used for 1/0 storage and refreshed if needed. This is a Class 1 design and an amazing effort to show all the key aspects of relay computing. It is strictly a fixed-point/integer 10-bit machine. Any fractional or extended-precision arithmetic could be implemented in software/microcode. MERCIA relay computer 2 -- Simon Winder (UK), 8 bits, floating point, 480 relays. Computes square roots only. Note the value in the Nixie tubes below, the square root of 2. Simon started the project in 2009 and finished it in 2014. Digit entry uses a telephone dial. This is a Class 1 design. See a video here . 3 —Dr. Harry Porter’s relay computer. 2015, 415 relays, Data Bus (8 bits), Address Bus (16-bits). Uses the Konrad Zuse Z3 relay adder circuit. Uses semiconductor SRAM for program storage to reduce relay use so falls into a Class 2 design. It supports 8-bit integer math. https://web.cecs.pdx.edu/~harry/Relay/ https://www.youtube.com/watch?v=n3wPBcmSb2U 4 —DipDot, 2026 (YouTube). A DIY relay computer, evolving story. It appears that this is a Class 1 relay computer. Initially, the designer used semiconductor static RAM then later transitioned to a period-accurate 1940s-style Capacitor-Diode Memory . ~450 DPDT relays fully populated. Very clean design with many custom PC boards. He uses an Arduino to assist in testing new designs quickly, but this is not needed for real-time math calculations. Uses 8-bit integer math with a 16-bit address bus for storage access. https://www.youtube.com/watch?v=Jy2j2jv5MPI 5 -- Paul Law's architecture is heavily inspired by Dr. Harry Porter's Relay Computer. Law’s machine reportedly has about 400 relays. So, it supports 8-bit integer math. Pragmatically, it uses semiconductor memory and transistor arrays to interface between SRAM and the relays. It uses a 5-relay per bit, full adder design. It was designed for portability and has the feeling of the MITS Altair 8800 computer (1975) user control panel. It is packaged beautifully and portable. Because the hardware ALU can only operate on 8 bits at a time, calculations like division or long addition are chained together using multi-byte software algorithms (e.g., repeating 8-bit addition with carry). In a Youtube video Paul shows an example of calculating PI to 20 decimal places. He needs an external controller (PC or other) that “assembles” a complex math routine into 8-bit operations that are loaded into the machine’s semiconductor ROM. So, without external assembly of microcode this is a Class 2 machine. For complex math operations this looks like a Class 3 machine. https://youtube.com/shorts/UN4LOo79pjg?si=BHGuPcSv5SLtqjzi Paul Law’s relay computer, front side 6. Michał Zalewski published an article titled Now you're thinking with relays in 2023 on Substack. He describes relay-based logic functions and crafts a 12-relay 1-bit adder using AND/OR/XOR functions. He acknowledges that 12 is excessive but did it "for fun." Here is his 1-bit adder with a keyboard and microprocessor for control. The CPU sequences all operations and funnels all arithmetic to the 1-bit adder. Michał also created a display board. "Here is where I went a bit nuts and constructed a Rube Goldberg-esque device just for the sake of it. The PCB contains six 7-segment displays, but they are driven entirely by relays ". The 2 PCB's are mounted in a hand crafted walnut case. This project is a study in extremes. A calculator using only relays for "1-bit math" and a microprocessor to mange all else except for the 42 display driver relays. The walnut case is exquisite and adds charm to this outstanding example of "Thinking with Relays ." Z3 Reconstructions by Experts There is a special class of "DIY" relay computer that is built by experts from universities and museums. Outstanding examples are the four versions of the Z3 relay computer originally by Konrad Zuse. For more info on the original Z3 (1941) see the article on this site - From Pascal to Zuse . Of the four, two are practical replicas and two are hybrid machine reconstructions. In 2027 each of these are in museums in Germany and Switzerland. The first replica was built by Konrad Zuse in 1961 for the Deutsches Museum in Munich. This is a Class 1 all-relay machine with electromechanical stepping switches for memory. Because the original machine was destroyed by wartime bombing in 1943, Konrad Zuse recreated his masterpiece entirely from memory and surviving documents to act as an historically accurate, structurally identical clone. Pictures of this version are often considered the original since there are no images remaining of the 1941 version. A second major reconstruction (Z3r) was engineered and built by Konrad Zuse’s eldest son, Professor Dr. Horst Zuse, between 2008 and 2010. Permanently housed at the Deutsches Technikmuseum in Berlin, this version deliberately diverges from the original Z3 blueprint for educational purposes. Horst added diagnostic LEDs to the relay blocks so live museum audiences could physically trace the movement of bits. He made other changes too for demo and simplification purposes. It uses a Siemens Simatic PLC (S7) electronic controller to assist in stepping through program sequences. This is a Class 3 machine. See a video of Horst explaining, in German and English, his version of the Z3. Two other versions were build by Dr. Raúl Rojas and Dr. Christof Traber respectively. See below. Snapshot of Horst Zuse in front of his version of the Z3, 2022 at the Museum The four reconstructions of the Z3: 1. 1961 (Zuse KG / Konrad Zuse): Built by Zuse's own company to serve as technical evidence for patent claims and historical priority. It reproduced the logical operation using newer, smaller relays in a single memory cabinet configuration and is on permanent display at the Deutsches Museum in Munich. This uses the very clever 2 relay full adder circuit compared to the 5 relay 1-bit adder design for the original Z3. 2. 2001 (Dr. Raúl Rojas / Free University of Berlin): An educational, hybrid reconstruction using relays for the arithmetic and memory units combined with digital components and a PC for user I/O. It is housed at the Konrad Zuse Museum in Hünfeld, Germany. 3. 2010 (Dr. Horst Zuse's Z3r): Built at approximately full historical scale using around 2,500 modern industrial relays to mark the centenary of Konrad Zuse’s birth. It features LED indicators and manual single-bit stepping controls, and is located at the German Deutsches Technikmuseum in Berlin. 4. 2021–2024 (Dr. Christof Traber): A fully operational electromechanical reconstruction based on the 1941 patent application, using modern relays, stepping switches, and relay-chain clock generation. It is housed and regularly demonstrated at the Enter Technikwelt Solothurn in Derendingen, Switzerland. The 2001 reconstruction of the Z3 by Raul Rojas and team. Modern relays were interconnected using circuit boards. The console and punched tape were simulated by means of a modern display. Photograph by R. Rojas. Christof Traber describing the Z3 replica at Enter Technikwelt Solothurn circa 2025

bottom of page