IṢẸ́ ỌNÀ
ẸWÀ ÀTI ÌLERA
IṢẸ́ ỌWỌ́
ÀṢÀ ÀTI ÌTÀN
ÌṢERÉ
ÀYÍKÁ
OÚNJẸ ÀTI OHUN MÍMU
REVERSE ENGINEERING
SÁYẸ́ǸSÌ
ERÉ ÌDÁRAYÁ
ÌMỌ̀-Ẹ̀RỌ
ÀWỌN OHUN WÍWỌ̀
Logic Gates from Relays
Ed

Ṣẹ́dá nipasẹ̀

Ed

27. Oṣù Kẹjọ 2026FI
47
0
0
0
0

Logic Gates from Relays

A relay is a switch operated by an electromagnet, invented to repeat telegraph signals over long lines and already in this catalogue for that purpose. It has one property its inventors had no reason to care about: because a relay is a switch that ELECTRICITY operates, the output of one relay can operate the next. That is the whole of digital logic. Claude Shannon noticed in 1937, in a master’s thesis usually called the most important of the century, that a network of such switches behaves exactly like Boolean algebra — series contacts are AND, parallel contacts are OR, and a normally-closed contact is NOT. Suddenly a body of mathematics from 1854 became a design method for circuits, and circuit design stopped being intuition and became algebra you could simplify on paper before touching a soldering iron.
Àárín
5 hours 30 minutes

Ìlànà

1

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.

2

Wire AND, OR and NOT from contacts

Three circuits, and every digital device ever built is made of them.

  1. AND: wire two relay contacts in SERIES between supply and lamp. The lamp lights only if both coils are energised.
  2. OR: wire two contacts in PARALLEL. The lamp lights if either coil is energised.
  3. NOT: use a normally-CLOSED contact. The lamp lights when the coil is NOT energised.
  4. 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.

Àwọn ohun èlò fún ìgbésẹ̀ yìí:

RélèRélè4 ẹyọ
Ìdìpọ̀ LED àmìÌdìpọ̀ LED àmì1 ìtò
Àkójọ RẹsístàÀkójọ Rẹsístà1 ohun èlò
Pátákó Aláwọ̀ / Pátákó ÀpẹẹrẹPátákó Aláwọ̀ / Pátákó Àpẹẹrẹ1 ẹyọ
Okun waya ìsopọ̀Okun waya ìsopọ̀1 reel

Àwọn irinṣẹ́ tí a nílò:

Ibùdó ÌtannáIbùdó Ìtanná
Òṣùwọ̀n Oníṣirò Díjítà Ìpele Yàrá ÌwádìíÒṣùwọ̀n Oníṣirò Díjítà Ìpele Yàrá Ìwádìí
Orísun Iná Tábìlì Tí A Lè ṢàtúnṣeOrísun Iná Tábìlì Tí A Lè Ṣàtúnṣe
Gílásì Ààbò Tí Ó Mọ́Gílásì Ààbò Tí Ó Mọ́
3

Build the same logic as blocks

Ààyè Iṣẹ́ Blockly

Loading Blockly workspace...

Àwọn irinṣẹ́ tí a nílò:

Kọ̀ǹpútà TábìlìKọ̀ǹpútà Tábìlì
4

Simulate, simplify, and count the contacts

Ń ṣí ìwé Jupyter…

Àwọn irinṣẹ́ tí a nílò:

Kọ̀ǹpútà TábìlìKọ̀ǹpútà Tábìlì
5

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.

  1. Drive a relay coil with a square wave and put the oscilloscope on both the drive and the contact output.
  2. Measure the delay from coil energising to contacts closing, and again for release.
  3. Watch the contact closure closely at high sweep speed.
  4. 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.

Àwọn ohun èlò fún ìgbésẹ̀ yìí:

RélèRélè3 ẹyọ
Àkójọ RẹsístàÀkójọ Rẹsístà1 ohun èlò

Àwọn irinṣẹ́ tí a nílò:

ÒsílóskóòpùÒsílóskóòpù
Ẹ̀rọ Ìdá ÌgbìẸ̀rọ Ìdá Ìgbì
Òṣùwọ̀n Oníṣirò Díjítà Ìpele Yàrá ÌwádìíÒṣùwọ̀n Oníṣirò Díjítà Ìpele Yàrá Ìwádìí
Orísun Iná Tábìlì Tí A Lè ṢàtúnṣeOrísun Iná Tábìlì Tí A Lè Ṣàtúnṣe

Àwọn ohun-èlò

5

Àwọn irinṣẹ́ tó nílò

7

CC0 Àgbègbè Gbogbogbò

Blueprint yìí ti jáde lábẹ́ CC0. O lè ṣe àdàkọ, yí padà, pín, àti lò láìsí ìyọ̀ǹda.

Ṣàtìlẹ́yìn Olùṣẹ́dá nípa rírà àwọn ọjà nipasẹ̀ Blueprint wọn Ẹ̀san Olùṣẹ́dá tí àwọn Olùtajà gbé kalẹ̀, tàbí ṣẹ̀dá àtúnṣe tuntun ti Blueprint yìí kí o sì fi sínú Blueprint rẹ gẹ́gẹ́ bí ìsopọ̀ láti pín owó-wíwọlé.

Ìfọ̀rọ̀wérọ̀

(0)

Wọlé láti dara pọ̀ mọ́ ìfọ̀rọ̀wérọ̀

Ń gbé àwọn ọ̀rọ̀ wọlé...