Modern digital computers have complex instruction sets that runs on state-of-the-art ALUs which in turn are a consequence of miniaturized logic gates that are built with tiny transistors. These tiny transistors are essentially switches. You could imagine replacing with electromagnetic relays, and get what is called a relay computer. If you can imagine it, someone’s done it. In this case, [jhallenworld].
The Z3 was the first working programmable, fully automatic digital computer designed by Konrad Zuse. The board employs modern semiconductor devices such as memory and microcontrollers, however, the CPU is all relays. A hexadecimal keyboard allows for program entry and a segment display allows tracking the address and data. The program is piped into serial to the parallel decoder and fed to the CPU where the magic happens. Since the core is electromechanical it is possible to connect the output to peripherals such as a bell as demonstrated near the end of the video.
This project is a good balance of retro and modern to be useful to anyone interested in mechanical computers and should be a lot of fun for the geek kind. Hacking this computer to modify the instruction set should be equally rewarding and a good exercise for students of computing theory.
There is a SourceForge page dedicated to the project with the details on the project including the instruction set and architecture. Check out the video below and if you are inspired by the project, be sure to check out the [Clickity Clack]’a Videos on designing a relay computer bit by bit.
Great work! I just love these types of projects! What would call them, retro computers? Have you seen this one: https://www.youtube.com/watch?v=lNa9bQRPMB8? Keep it up.
What is it with gaming computers, and LED’s?
That is a “relay” interesting single board computer…
And yet very relayable!
Here’s a list with a handful of other relay computers and projects where the relays are used as a logic device rather than just for switching a load.
https://hackaday.io/project/11798-relay-based-projects
I used to work in a three story relay based computer. There was no CPU as such, as it would have been a single point of failure so it had distributed CPU resources that all worked in parallel.
The relay clicks came across in waves and after working there for a decade you could here when an individual relay was falling in speed and needed adjusting.
It’s amazing what was done with relays ‘in the day’. It was an expensive technology that took up lots of room and heaps of power. The 2 copper power rails had a cross-section of one inch by 14 inches and run right through the building.
> I used to work in a three story relay based computer.
I now picture you as a human relay. Shouldn’t be too hard, you just flick a switch when you feel the jumper cables tingling your feet.
Human computer as an example of an over-engineered solution.
Imagine all the trolls flicking the switch whenever their feet aren’t tingleing.
A year ago, I had no idea of ‘relay logic’, but devised a flip-flop using two relays and a diode (to show/hide a TV with a momentary button press).
Thanks to the effect of Baader-Meinhof, I will never be allowed to forget that this is a ‘thing’.
I’ve learned about the Baader-Meinhof effect just 10 minutes ago aaaaand now I see you mentioning it… wow, I’m impressed
How delightfully useless…
A strong contender for winning the internet today. This is a seriously cool hack.
Very nice.
Why did they never employ the skills of a watch maker to miniaturise armatures and coils making it smaller with less power demands ?
A MEMs computer.
$$$
Time. Developing the techniques necessary to reliably design small relays would take a long time.
Most important: there were better alternatives already improving in price and quality while being much faster (orders of magnitude!). Relays were used as they were available and worked well enough.
Now I want a relay based pocket watch!
That has actually been done throughout the years.
But as other comments have stated, other technologies have out competed relays in this application.
Other applications where relays are still to this day used are however in need of smaller ones, and therefor smaller relays have been built.
Smallest mechanical relay I have seen so far is around 1 cm long, 0.7 cm wide, and around 0.5 cm tall. So rather small.
Reed relays are pretty common. Digikey lists thousands of different part numbers. They are about the size of DIP ICs, and are an order of magnitude lower power, faster, and longer-lived than traditional relays.
I want to buy this!
Here you go, though the price may be a bit of a turn-off.
https://www.tindie.com/products/jhallen/single-board-relay-computer/
Thanks for the link :)
JEEZ! SIX HUNDRED BUCKS!
I’d like to make one of these… :)
Very clever. Good explanations, too!
Incredible! I love the sound of all those relays.
I’ve done some projects with relays at oscillating at ~high frequencies, but I worry about life span. Anybody have experience with that?
A friend of mine was restoring a 56 chevy pickup (I think it was a 56) and was looking at putting in power mirrors.
He was looking at a kit that would let him control both the driver and passenger side window from one switch (which looked like an window hand crank).
I can’t find the schematic now, but he showed it to me, and I looked befuddled at the large amount of relays… (maybe 20-30 of them?) took me a moment to see the first logic gate, then I quickly figured out what was being done… and told him that it was a series of logic gates, and explained how the whole thing worked. Then I told him I could do that on silicon for him and it would be about the size of one relay (not that it matters, plenty of space on those old trucks.)
I guess some antique car shows don’t allow any silicon on their vehicles, so relay logic took over more complicated functionality (like pushing down twice to roll down the passenger side window, and once for the driver side).
Very modern steampunk…
I spent a few years of my life working for a welder repair company replacing relay-logic spot-welder controllers that fired huge ignitron tubes with silicon-powered SCR-based controllers. Some of those things were just works of art in all the things they sequenced.
Is it available for purchase? It’s a great educational piece!