Colorado Man Finds He Was Billed for Neighbor's Electricity Meter for 16 Yrs. When Trying to Reduce His Xcel Energy Bill
Jun 04, 2023Poland’s PGE Dystrybucja’s smart meters rollout to get under way
May 29, 2023EEDC introduces mobile metering in Imo
May 15, 2023Virginia Ski Resort Adding New Solar Array To Power Waterpark
May 07, 2023Ukraine Hunts the World for Parts to Fix Crippled Energy Grid
Apr 27, 2023Hackaday Prize 2023: Building A Relay ALU
There's much truth in the advice that, to truly understand something, you need to build it yourself from the ground up. That's the idea behind [Christian]'s entry for the Re-engineering Education category of the 2023 Hackaday Prize. Built as an educational demonstrator, this is a complete arithmetic-logic unit (ALU) using discrete relays — and not high-density types either — these are the big honking clear-cased kind.
The design is neatly, intentionally, partitioned along functional lines, with four custom PCB designs, each board operating on 4-bits. To handle a byte-length word, boards are simply cascaded, making a total of eight. The register, adder, logic function, and multiplex boards are the heart of the build with an additional two custom boards for visualization (using an Arduino for convenience) and IO forming the interface. After all, a basic CPU is just an ALU and some control around it, the magic is really in the ALU.
The fundamental logical operations operating upon two operands, {A, B} are A, ~A, B, ~B, A or B, A and B, A xor B, can be computed from just four relays per bit. The logic outputs do need to be fed into a 7-to-1 bit selector before being fed to the output register, but that's the job of a separate board. The adder function is the most basic, simply a pair of half-adders and an OR-gate to handle the chaining of the carry inputs and generate the carry chain output.
3D printed cable runs are a nice touch and make for a slick wiring job to tie it all together.
For a more complete relay-based CPU, you could check out the MERCIA relay computer project, not to mention this wonderfully polished build.