A Smart Power Distribution Unit For Home Automation

Power distribution units, as the name implies, are indispensable tools to have available in a server rack. They can handle a huge amount of power for demands of intensive computing and do it in a way that the wiring is managed fairly well. Plenty of off-the-shelf solutions have remote control or automation capabilities as well, but finding none that fit [fmarzocca]’s needs or price range, he ended up building his own essentially from scratch that powers his home automation system.

Because it is the power supply for a home automation system, each of the twelve outlets in this unit needed to be individually controllable. For that, three four-channel relay boards were used, each driven by an output on an ESP32. The ESP32 is running the Tasmota firmware to keep from having to reinvent the wheel, while MQTT was chosen as a protocol for controlling these outlets to allow for easy integration with the existing Node-RED-based home automation system. Not only is control built in to each channel, but the system can monitor the power consumption of each outlet individually as well. The entire system is housed in a custom-built sheet metal enclosure and painted to blend in well with any server rack.

Adding a system like this to a home automation system can simplify a lot of the design, and the scalable nature means that a system like this could easily be made much smaller or much larger without much additional effort. If you’d prefer to keep your hands away from mains voltage, though, we’ve seen similar builds based on USB power instead, with this one able to push around 2 kW.

Crank-Powered Train Uses No Batteries Or Plugs

The prolific [Peter Waldraff] is at back it with another gorgeous micro train layout. This time, there are no plugs and no batteries. And although it’s crank-powered, it can run on its own with the flip of a switch. How? With a supercapacitor, of course.

The crank handle is connected a 50 RPM motor that acts as a generator, producing the voltage necessary to both power the train and charge up the supercapacitor. As you’ll see in the video below, [Peter] only has to move the train back and forth about two or three times before he’s able to flip the switch and watch it run between the gem mine and the cliff by itself.

The supercapacitor also lights up the gem mine to show off the toiling dwarfs, and there’s a couple of reed switches at either end of the track and a relay that handles the auto-reverse capability. Be sure to stick around to the second half of the video where [Peter] shows how he built this entire thing — the box, the layout, and the circuit.

Want to see more of [Peter]’s trains and other work? Here you go.

Continue reading “Crank-Powered Train Uses No Batteries Or Plugs”

A Long-Range Meshtastic Relay

In the past few years we’ve seen the rise of low-power mesh networking devices for everything from IoT devices, weather stations, and even off-grid communications networks. These radio modules are largely exempt from licensing requirements due to their low power and typically only operate within a very small area. But by borrowing some ideas from the licensed side of amateur radio, [Peter Fairlie] built this Meshtastic repeater which can greatly extend the range of his low-power system.

[Peter] is calling this a “long lines relay” after old AT&T microwave technology, but it is essentially two Heltec modules set up to operate as Meshtastic nodes, where one can operate as a receiver while the other re-transmits the received signal. Each is connected to a log-periodic antenna to greatly increase the range of the repeater along the direction of the antenna. These antennas are highly directional, but they allow [Peter] to connect to Meshtastic networks in the semi-distant city of Toronto which he otherwise wouldn’t be able to hear.

With the two modules connected to the antennas and enclosed in a weatherproof box, the system was mounted on a radio tower allowing a greatly increased range for these low-power devices. If you’re familiar with LoRa but not Meshtastic, it’s become somewhat popular lately for being a straightforward tool for setting up low-power networks for various tasks. [Jonathan Bennett] explored it in much more detail as an emergency communications mode after a tornado hit his home town.

Continue reading “A Long-Range Meshtastic Relay”

Multiply Your Multimeter With Relays And USB

Multimeters are a bit like potato chips: you can’t have just one. But they’re a lot more expensive than potato chips, especially the good ones, and while it’s tempting to just go get another one when you need to make multiple measurements, sometimes it’s not practical. That’s why something like this 2×4 relay-based multiplexer might be a handy addition to your bench

In this age of electronics plenty, you’d think that a simple USB relay board would be easy enough to lay hands on. But [Petteri Aimonen] had enough trouble finding a decent one that it became easier to just roll one up from scratch. His goal was to switch both the positive and negative test leads from up to four instruments to a common set of outputs, and to have two independent switching banks, for those times when four-lead measurements are needed. The choice of relay was important; [Petteri] settled on a Panasonic DPDT signal relay with low wetting current contacts and a low-current coil. The coils are driven by a TBD62783A 8-channel driver chip, while an STM32 takes care of USB duties.

The mechanical design of this multiplexer is just as slick as the electrical. [Petteri] designed the PCB to act as the cover for a standard Hammond project box, so all the traces and SMD components are mounted on the back. That just leaves the forest of banana-plug binding posts on the front, along with a couple of pushbuttons for manual input switching and nicely silkscreened labels. The multiplexer is controlled over USB using the SCPI protocol, which happily includes an instrument class for signal switchers.

We think the fit and finish on this one is fantastic, as is usual with one of [Petteri]’s builds. You’ll probably recall his calibrated current reference or his snazzy differential probe.

Pi Pico Enhances RadioShack Computer Kit

While most of us now remember Radio Shack as a store that tried to force us to buy batteries and cell phones whenever we went to buy a few transistors and other circuit components, for a time it was an innovative and valuable store for electronics enthusiasts before it began its long demise. Among other electronics and radio parts and kits there were even a few DIY microcomputers, and even though it’s a bit of an antique now a Raspberry Pi Pico is just the thing to modernize this Radio Shack vintage microcomputer kit from the mid 80s.

The microcomputer kit itself is built around the 4-bit Texas Instruments TMS1100, one of the first mass-produced microcontrollers. The kit makes the processor’s functionality more readily available to the user, with a keypad and various switches for programming and a number of status LEDs to monitor its state. The Pi Pico comes into the equation programmed to act as a digital clock with an LED display to drive the antique computer. The Pi then sends a switching pulse through a relay to the microcomputer, which is programmed as a binary counter.

While the microcomputer isn’t going to win any speed or processing power anytime soon, especially with its clock signal coming from a slow relay module, the computer itself is still fulfilling its purpose as an educational tool despite being nearly four decades old. With the slow clock speeds it’s much more intuitive how the computer is stepping through its tasks, and the modern Pi Pico helps it with its tasks quite well. Relays on their own can be a substitute for the entire microcontroller as well, like this computer which has a satisfying mechanical noise when it’s running a program.

Continue reading “Pi Pico Enhances RadioShack Computer Kit”

Pinball With No Computers

Pinball machines were the video games of their day. Back when they were king, there were no microcontrollers — everything was electromechanical. We know from experience that fixing these was difficult but we imagine that designing complex play behavior with a bunch of motors, relays, clutches, contacts, and more would have been excruciatingly difficult. [Technology Connections] has several videos about an old Aztec machine and he promises more to come. You can watch the first two below.

To give you an idea of what’s involved, imagine a very simple pinball machine that supports a single player and a handful of targets. When the ball hits a target, that could trigger a micro-switch. The switch closure could trigger a relay that closes a contact for a short period of time. That contact energizes a solenoid that advances the score wheels. So now, when a ball hits a target, the score wheel will spin enough to award ten points. To make sure there is enough time for the score to advance, the relay uses something like a mechanical flip flop.

Sound complicated? That’s nothing. Don’t forget, the machine also has to reset the score at the start of the game, count the ball in play, and end the game when the last ball returns. Then consider a real game. There will be multiple players and fancy sequences (e.g., hit the red target three times to award double scores for other targets).

While we knew a fair bit about the design of pinball machines already, we did learn a lot about their history and where the idea came from. The video also explains why it is called pinball since modern machines don’t really have pins — these were like relay-based computers with strange electromagnetic I/O devices.

While pinball machines were the best example of this sort of thing, there were also things like bowling machines and ladder-logic industrial control systems. We’ve even seen an electromechanical phone answering machine.

Continue reading “Pinball With No Computers”

Flashlight Door Lock Is A Bright Idea

There are many ways to lock a door. You could use a keypad, an RFID card, a fingerprint or retina scan, Wi-Fi, Bluetooth, the list goes on. You could even use a regular old metal key. But none of these may be as secure as [mircemk]’s Arduino-based door lock that employs a smartphone’s flashlight as a pass code.

At first blush, this seems horribly insecure. Use a plain old flashlight to open a door? Come on. But the key is in the software. In fact, between the typed-in pass code and the flash of light it generates, this lock kind of has two layers of security.

Here’s what’s going on: inside the accompanying smart phone application, there’s a list of passwords. Each of these passwords corresponds to a flash of light in milliseconds. Enter the correct password to satisfy the Arduino, and the phone’s flashlight is activated for the appropriate number of milliseconds to unlock the door.

As you’ll see in the video below, simply flashing the light manually doesn’t unlock the door, and neither does entering one of the other, bogus passwords. Although it does activate the flashlight each time, they don’t have the appropriate light-time length defined.

Hardware-wise, there is an Arduino Nano Every in charge of the LDR module that reads the flashlight input and the 12 V relay that unlocks the door. Be sure to check it out it the video after the break.

If you want to keep your critters from bringing wild critters back inside, check out this Wi-Fi cat door that lets you have a look at what might be dangling from their jaws before unlocking the door.

Continue reading “Flashlight Door Lock Is A Bright Idea”