Make an 8 bit adder out of relays

I want to build a relay based 8 bit adder for fun, kind of like a puzzle or playing chess to exercise a different way of thinking. Also the clacking of the relay is quite soothing.

About the relay G5A-237P 5VDC

  1. Power IN to coil

  2. Power in to other side of coil

  3. Normally closed (diagram shown in NC state) = If no power on the coil then power from 2 will come out here

  4. Normally open = When power going in coil, magnet will pull latch and make NC open and this closed, which route the power out here.

Top view of the G5A-237P in normally closed position (no current to magnet)

1          3         5     6
+          + ------> +     +
  \        |  
   \       |        N      N
    COIL   |        C      O
   /       |
- /        - ------> -     -
12        10         8     7
  • When the magnet is activated a latch pulls the connection between 3/5 and 10/8 from 10/8 to 6/7

  • Why are there missing numbers ? they still count the missing pins (marked x below)

For the G5A-237P The pinout is as follows (top down)

Top Row
+ 1  x  3  x  5  6
- 12 x  10 x  8  7
Bottom row
  • 1 = + to coil

  • 12 = - ground for coil

  • 3 = + power in

  • 10= - ground

  • 5 = + normally closed (nc)

  • 8 = - nc ground

  • 6 = + normally open

  • 7 = - ground

In short there are 2 states:

  • When no power to 1/12 pins: the 3/10 pins will be routed to the nc 5/8 pins (nc) (and no power will be coming out the nc 6/7 pins)

  • When power applied to 1/12 pins: the 3/10 power will be routed to 6/7 pins (and no power will be coming out the nc 5/8 pins)

Logic Gates

Truth tables

AND


INPUT OUTPUT


A B A AND B

0 0 0

0 1 0

1 0 0

1 1 1

OR

+—+—+——–+ | I | | OUTPUT | | N | | | | P | | | | U | | | | T | | | +===+===+========+ | A | B | A OR B | +—+—+——–+ | 0 | 0 | > 0 | +—+—+——–+ | 0 | 1 | > 1 | +—+—+——–+ | 1 | 0 | > 1 | +—+—+——–+ | 1 | 1 | > 1 | +—+—+——–+

Resistor Values

http://resistor.cherryjourney.pt/

Notes

https://web.cecs.pdx.edu/~harry/Relay/RelayPaper.htm http://www.andrewkingsolver.com/creating-relay-logic-gates/

Comments

comments powered by Disqus