
Logic Gates from Relays
Instrucciones
Start from the telegraph relay
Start from the telegraph relay
Build or re-read the relay first. It was invented to solve a completely different problem — a telegraph signal too weak to travel further, restored by using it to operate a local switch on a fresh battery.
Note the property that matters here and mattered not at all to its inventors: the thing that operates the switch is the same KIND of thing the switch controls. A lever needs a hand; a relay needs only another relay. That closure under composition is what makes logic possible, and it was sitting unused in telegraph offices for eighty years.

Se basa en
The Telegraph Relay
A signal on a wire gets weaker with distance, and it never gets stronger again. Beyond some length the click at the far end is too feeble to hear, and no amount of care at the sending end fixes it — thicker wire and a bigger battery buy kilometres, not continents.
The relay refuses the whole framing. It does not try to strengthen the arriving signal. It uses the arriving signal, weak as it is, to operate a switch on a completely fresh circuit with its own battery.
An electromagnet wound with many turns of fine wire responds to a current far too small to work a sounder. Its armature closes a second circuit, and that circuit — local, short, full-strength — does the actual work.
The consequence is the important part. The output is not a copy of the input; it is a reconstruction. The incoming pulse may have arrived smeared, drooping and half-buried in noise, and what leaves is a clean, square, full-amplitude pulse, because the outgoing circuit only ever does two things: fully on, fully off. Timing passes through; degradation does not.
So the reach becomes unlimited in principle. Chain relays, and the signal is rebuilt at every stage instead of accumulating damage. Every repeater, every logic gate and every digital link since is this idea.
Wire AND, OR and NOT from contacts
Wire AND, OR and NOT from contacts
Three circuits, and every digital device ever built is made of them.
- AND: wire two relay contacts in SERIES between supply and lamp. The lamp lights only if both coils are energised.
- OR: wire two contacts in PARALLEL. The lamp lights if either coil is energised.
- NOT: use a normally-CLOSED contact. The lamp lights when the coil is NOT energised.
- Build all three and fill in a truth table for each by trying every input combination.
Series is AND, parallel is OR, normally-closed is NOT. That is Shannon's entire correspondence, and it is worth pausing on how unreasonable it is that a topology of wires should match an algebra of propositions.
Now the payoff: because it IS algebra, you can simplify circuits symbolically. De Morgan's laws say NOT(A AND B) equals NOT A OR NOT B — which means the same function can be built two different ways, and you pick whichever needs fewer contacts. Engineers had been optimising relay circuits by intuition; after 1937 they optimised them by algebra.Materiales para este paso:
Relé4 piezas
Juego de LED indicadores1 juego
Resistencia1 kit
Placa perforada / placa de prototipos1 pieza
Cable de conexión1 reelHerramientas necesarias:
Estación de soldadura
Multímetro digital
Fuente de alimentación de banco ajustable
Gafas de seguridadBuild the same logic as blocks
Build the same logic as blocks
Espacio de trabajo Blockly
Loading Blockly workspace...
Herramientas necesarias:
Ordenador de sobremesaSimulate, simplify, and count the contacts
Simulate, simplify, and count the contacts
Herramientas necesarias:
Ordenador de sobremesaMeasure the switching time, and find the ceiling
Measure the switching time, and find the ceiling
Relay logic works perfectly and is slow. Measure exactly how slow, because that number ends the era.
- Drive a relay coil with a square wave and put the oscilloscope on both the drive and the contact output.
- Measure the delay from coil energising to contacts closing, and again for release.
- Watch the contact closure closely at high sweep speed.
- Chain three relays so each drives the next, and measure the total delay.
A relay takes something like 5 to 20 milliseconds to switch, and the contacts BOUNCE for a millisecond or two after closing. Chain them and the delays add, so a computation passing through fifty gates takes most of a second.
The bounce is its own problem: a single logical transition arrives as a burst of several, and any counter downstream counts them all. Debouncing exists because a mechanical contact does not close once.
So the ceiling is mechanical, not logical. The algebra is fine and the relay is honest; it simply has mass, and mass takes time to move. The escape is a switch with no moving parts at all — the vacuum tube, which switches in microseconds, and then the transistor, which does it without the heat. That is the rest of this batch.Materiales para este paso:
Relé3 piezas
Resistencia1 kitHerramientas necesarias:
Osciloscopio
Generador de funciones
Multímetro digital
Fuente de alimentación de banco ajustableMateriales
5- 7 piezasMarcador de posición
- 1 juegoMarcador de posición
- Marcador de posición
- Marcador de posición
- 1 reelMarcador de posición
Herramientas requeridas
7- Marcador de posición
- Marcador de posición
- Marcador de posición
- Marcador de posición
- Marcador de posición
- Marcador de posición
- Marcador de posición
Planos relacionados
Estos planos comparten conocimiento — técnicas, materiales o principios
CC0 Dominio público
Este Plano se publica bajo CC0. Eres libre de copiar, modificar, distribuir y usar este trabajo para cualquier propósito, sin pedir permiso.
Apoya al Maker comprando productos a través de su Plano, donde gana una Comisión del Maker establecida por los vendedores, o crea una nueva iteración de este Plano e inclúyela como conexión en tu propio Plano para compartir ingresos.


