Partial Relay-Based Calculator Puts The Click Where It Counts

It looks like [Michal Zalewski] is raising the next generation the right way. First, his eldest son asks for help building a one-bit computer from discrete transistors. Not to be left behind, his little brother then asked for help with an even more retro project, which resulted in this partially relay-based calculator. Maybe there is some hope for the future.

Now, purists will no doubt notice the ATmega64 microcontroller sitting in the middle of the main PCB on this project and cry “Foul!” But perfect is the enemy of done, and as [Michal] explains, at $6 a pop for the Omron relays he and his son chose, there’s only so far you can go with relay logic before you’re taking out a second mortgage. So the relays are limited to the ALU of the calculator, along with the drivers for the six seven-segment LED displays. The microcontroller is just there for housekeeping functions like scanning the keyboard and decoding digits. All the actual calculations are in the relay logic, not silicon. And we’d be remiss not to praise his son’s stylistic choices for this design — that it uses relays with clear covers, and that it has single-sided PCBs with curvy, hand-drawn traces traces that look hand-drawn on old-school yellow substrate. [Michal]’s heart must swell with pride to have fathered someone with such exquisite taste.

For his part, [Mikal] did some really good documentation for this build, including excellent descriptions of Boolean math with half- and full-adders and how relays are used to create the basic logic gates that comprise them. The calculator itself is still a work in progress, with microcontroller code still in development, but it’s working enough that you can enjoy the display driver’s clickiness in the video below. If that doesn’t do it for you, we’ve got other relay calculators to scratch that click itch. Continue reading “Partial Relay-Based Calculator Puts The Click Where It Counts”

Automatic Transfer Switch Keeps Internet Online

Living in a place where the electric service isn’t particularly reliable can be frustrating, whether that’s because of a lack of infrastructure, frequent storms, or rolling blackouts. An option for those living in these situations is a backup generator, often turned on and connected by an automatic transfer switch. These are necessary safety devices too; they keep power lines from being back-fed by the generators. But there are other reasons to use transfer switches as well as [Maarten] shows us with this automatic transfer switch meant to keep his computers and Internet powered up.

The device is fairly straightforward. A dual-pole, dual-throw relay is housed inside of an electrical junction box with two electrical plugs, each of which can be connected to a different circuit or power source in [Maarten]’s house. The relay coil is energized by the primary power supply, and when that power is lost the relay automatically changes over to the other power supply, which might be something like a battery backup system. [Maarten] was able to get a higher quality product by building it himself rather than spending a comparable amount of money on a cheap off-the-shelf product as well. Continue reading “Automatic Transfer Switch Keeps Internet Online”

Hackaday 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.

 

Spy Transceiver Makes Two Tubes Do The Work Of Five

Here at Hackaday, we love following along with projects as they progress. That’s especially true when a project makes a considerable leap in terms of functionality from one version to another, or when the original design gets more elegant. And when you get both improved function and decreased complexity at the same time? That’s the good stuff.

Take the recent improvements to a vacuum tube “spy radio” as an example. Previously, [Helge (LA6NCA)] built both a two-tube transmitter and a three-tube receiver, either of which would fit in the palm of your hand. A little higher math seems to indicate that combining these two circuits into a transceiver would require five tubes, but that’s not how hams like [Helge] roll. His 80-m CW-only transceiver design uses only two tubes and a lot of tricks, which we admit we’re still wrapping our heads around. On the receive side, one tube serves as a mixer/oscillator, combining the received signal with a slightly offset crystal-controlled signal to provide the needed beat frequency. The second tube serves as the amplifier, both for the RF signal when transmitting, and for audio when receiving.

The really clever part of this build is that [Helge] somehow stuffed four separate relays into the tiny Altoids tin chassis. Three of them are used to switch between receive and transmit, while the fourth is set up as a simple electromagnetic buzzer. This provides the sidetone needed to effectively transmit Morse code, and is about the simplest way we’ve ever seen to address that need. Also impressive is how [Helge] went from a relatively expansive breadboard prototype to a much more compact final design, and how the solder was barely cooled before he managed to make a contact over 200 km. The video below has all the details.

Continue reading “Spy Transceiver Makes Two Tubes Do The Work Of Five”

Mechanical GIF Animates With The Power Of Magnets

It doesn’t matter how you pronounce it, because whichever way you choose to say “GIF” is guaranteed to cheese off about half the people listening. Such is the state of our polarized world, we suppose, but there’s one thing we all can agree on — that a mechanical GIF is a pretty cool thing.

What’s even better about this thing is that [Mitch], aka [Hack Modular], put some very interesting old aircraft hardware to use to make it. He came upon a set of cockpit indicators from a Cold War-era RAF airplane — sorry, “aeroplane” — that used a magnetically driven rack and pinion to swivel a set of prism-shaped pieces to one of three positions. Which of the three symbols displayed depended on which faces were turned toward the pilot; they were highly visible displays that were also satisfyingly clicky.

After a teardown in which [Mitch] briefly discusses the mechanism behind these displays, he set about customizing the graphics. Rather than the boring RAF defaults, he chose three frames from the famous Horse in Motion proto-motion picture by [Eadweard Muybridge]. After attaching vertical strips from each frame to the three sides of each prism, [Mitch] came up with a driver for the display; he could have used a 555, but more fittingly chose series-connected relays to do the job. Capacitors slow down the switching cascade and the frame rate; a rotary switch selects different caps to make the horse appear to be walking, trotting, cantering, or galloping — yes, we know they’re each physically distinct motions, but work with us here.

The whole thing looks — and sounds — great mounted in a nice plastic enclosure. The video below shows it in action, and we find it pretty amazing the amount of information that can be conveyed with just three frames. And we’re surprised we’ve never seen these displays before; they seem like something [Fran Blanche] or [Curious Marc] would love.

Continue reading “Mechanical GIF Animates With The Power Of Magnets”

Replace Your Automatic Transmission With A Bunch Of Relays

A “Check Engine” light on your dashboard could mean anything from a loose gas cap to a wallet-destroying repair in the offing. For [Dean Segovis], his CEL was indicating a fairly serious condition: a missing transmission. So naturally, he built this electronic transmission emulator to solve the problem.

Some explanation may be necessary here. [Dean]’s missing transmission was the result of neither theft nor accident. Rather, he replaced the failed automatic transmission on his 2003 Volkswagen EuroVan with a manual transmission. Trouble is, that left the car’s computer convinced that the many solenoids and sensors on the original transmission weren’t working, leaving him with a perfectly serviceable vehicle but an inspection-failing light on the dash.

To convince the transmission control module that a working automatic was still installed and clear the fourteen-odd diagnostic codes, [Dean] put together a block of eight common automotive relays. The relay coils approximate the resistance of the original transmission’s actuators, which convinces the TCU that everything is hunky dory. There were also a couple of speed sensors in the transmission, which he spoofed with some resistors, as well as the multi-function switch, which detects the shift lever position. All told, the emulator convinces the TCU that there’s an automatic transmission installed, which is enough for it to give the all-clear and turn off the Check Engine light on the dash.

We love hacks like this, and hats off to [Dean] for sharing it with the VW community. Apparently the issue with the EuroVan automatic transmissions is common enough that a cottage industry has developed to replace them with manuals. It’s not the only questionable aspect of VW engineering, of course, but this could help quite a few people out of a sticky situation.

Continue reading “Replace Your Automatic Transmission With A Bunch Of Relays”

Programmable Resistance Box

For prototype electronics projects, most of us have a pile of resistors of various values stored somewhere on our tool bench. There are different methods of organizing them for easy access and identification, but for true efficiency a resistance substitution box can be used on the breadboard to quickly change resistance values at a single point in a circuit. Until now it seemed this would be the pinnacle of quickly selecting differently-sized resistors, but thanks to this programmable resistor bank there’s an even better option available now.

Unlike a traditional substitution box or decade box, which uses switches or dials to select different valued resistors across a set of terminals, this one is programmable and uses a series of sealed relays instead. That’s not where the features stop, though. It also comes equipped with internal calibration circuitry which take into account the resistance of the relay contacts and internal wiring to provide a very precise resistance value across its terminals. It’s also able to be calibrated manually to account for temperature or other factors.

For an often-overlooked piece of test equipment, this one surely fits the bill of something we didn’t know we needed until now. Even though digital resistor substitution boxes are things we have featured in the past, the connectivity and calibration capabilities of this one make it intriguing.