Little Hex Tricks Make Little Displays A Little Easier

Depending on the device in hand and one’s temperament, bringing up a new part can be a frolic through the verdant fields of discovery or an endless slog through the grey marshes of defeat. One of the reasons we find ourselves sticking with tried and true parts we know well is that interminable process of configuration. Once a new display controller is mostly working, writing convenience functions to make it easier to use can be very satisfying, but the very first thing is figuring out how to make it do anything at all. Friend of Hackaday [Dan Hienzsch] put together a post describing how to use a particular LED controller which serves as a nice walkthrough of figuring out the right bitmath to make things work, and includes a neat trick or two.

The bulk of the post is dedicated to describing the way [Dan] went about putting together his libraries for a 7-segment display demo board he makes. At its heart the board uses the IS31FL3728 matrix driver from ISSI. We love these ISSI LED controllers because they give you many channels of control for relatively low cost, but even with their relative simplicity you still need to do some bit twiddling to light the diodes you need. [Dan]’s post talks about some strategies for making this easier like preconfigured lookup tables with convenient offsets and masking bits to control RGB LEDs.

There’s one more trick which we think is the hidden star of the show; a spreadsheet which calculates register values based on “GUI” input! Computing the bit math required to control a display can be an exercise in frustration, especially if the logical display doesn’t fit conveniently in the physical register map of the controller. A spreadsheet like this may not be particularly sexy but it gets the job done; exactly the kind of hack we’re huge fans of here. We’ve mirrored the spreadsheet so you can peek at the formulas inside, and the original Excel document is available on his blog.

Car Alternators Make Great Electric Motors; Here’s How

The humble automotive alternator hides an interesting secret. Known as the part that converts power from internal combustion into the electricity needed to run everything else, they can also themselves be used as an electric motor.

The schematic of a simple automotive alternator, from US patent 3329841A filed in 1963 for Robert Bosch GmbH .
The schematic of a simple automotive alternator, from US patent 3329841A filed in 1963 for Robert Bosch GmbH.

These devices almost always take the form of a 3-phase alternator with the magnetic component supplied by an electromagnet on the rotor, and come with a rectifier and regulator pack to convert the higher AC voltage to 12V for the car electrical systems. Internally they have three connections to the stator coils which appear to be universally wired in a delta configuration, and a pair of connections to a set of brushes supplying the rotor coils through a set of slip rings. They have a surprisingly high capacity, and estimates put their capabilities as motors in the several horsepower. Best of all they are readily available second-hand and also surprisingly cheap, the Ford Focus unit shown here came from an eBay car breaker and cost only £15 (about $20).

We already hear you shouting “Why?!” at your magical internet device as you read this. Let’s jump into that.

Continue reading “Car Alternators Make Great Electric Motors; Here’s How”

Automate Your Life With Node-RED (Plus A Dash Of MQTT)

For years we’ve seen a trickle of really interesting home automation projects that use the Node-RED package. Each time, the hackers behind these projects have raved about Node-RED and now I’ve joined those ranks as well.

This graphic-based coding platform lets you quickly put together useful operations and graphic user interfaces (GUIs), whether you’re the freshest greenhorn or a seasoned veteran. You can use it to switch your internet-connected lights on schedule, or at the touch of a button through a web-app available to any device on your home network. You can use it as an information dashboard for the weather forecast, latest Hackaday articles, bus schedules, or all of them at once. At a glance it abstracts away the complexity of writing Javascript, while also making it simple to dive under hood and use your 1337 haxor skills to add your own code.

You can get this up and running in less than an hour and I’m going to tackle that as well as examples for playing with MQTT, setting up a web GUI, and writing to log files. To make Node-RED persistent on your network you need a server, but it’s lean enough to run from a Raspberry Pi without issue, and it’s even installed by default in BeagleBone distributions. Code for all examples in this guide can be found in the tutorial repository. Let’s dive in!

Continue reading “Automate Your Life With Node-RED (Plus A Dash Of MQTT)”

Building A Real Wooden Table Saw

A table saw is one of those tools that aren’t strictly necessary to have, but immensely helpful if you do happen to have one around. The folks at [I Build It] have made a three part series that features a homemade table saw build, so you can finally get around to adding one to your makerspace.

The build uses a real table saw arbor and is made from Baltic birch plywood and solid wood, with some plastic sheets for the trunnions and top. The blade is housed in a blade lift made out wooden panels with a pivot point and slot for the lift mechanism. Bearings allow the blade the freedom of movement, while a curved cutout allows it to stay flat against the wall of the slot while the blade lift mechanism moves.

Meanwhile a reused motor from a previous table saw is dusted, cleaned, and rewired to run in reverse. While most table saws only need two trunnions, a third is used for supporting the motor, since it has to move with the lift and tilt. Once the lift/tilt mechanism is complete, the frame for the table saw is more straightforward, with many steps involving clamping, measuring, cutting, fitting, and painting the assembly. For the final few steps, a switched is mounted outside the table saw in a small box that connected to the power supply and motor, as well as a shop vac for handling dust collection from the saw. While the enclosure isn’t a metal box, as long as the connections are secured properly the wires shouldn’t come loose.

If you want to see other examples of homemade table saws, check out this teeny tiny saw and this kid-friendly table saw build.

Continue reading “Building A Real Wooden Table Saw”

Embedding A Smart Switch In A Java Factory

When you need coffee, you don’t need any hassles standing between you and caffeination. Especially ironic hassles, like having to do more to turn on appliances inside of home automation schemes than you did without them.

[Maurice Makaay] bought a smart plug to add this beautiful drip coffee machine to his Z-Wave setup, but it isn’t all that smart. Starting the brew remotely means making sure that both the machine’s power switch and the smart plug switch are on. Some members of the household still like making their coffee the old-fashioned way, so [Maurice] came up with a smart, single switch solution to satisfy both cases.

The answer comes in the form of a Z-Wave switch that takes dual inputs and is small enough to fit inside the machine. After a lot of searching around for compatible, splash-proof parts, [Maurice] replaced the existing on/off rocker with a momentary rocker for making coffee manually. That switch labeled ‘extra heet’ used to turn the warming burner on and off. Since he never uses the burner, the switch receptacle now houses a power indicator light.

[Maurice] went about this mains appliance hack the right way — he used extra thick wires connected with lever nuts, and kept the machine’s equally beautiful spare parts and safety documentation by his side the whole time. A person could probably become a lot more comfortable with the idea of installing these by looking over [Maurice]’s pictures of the process.

You know how coffee makes everything better? Turns out ‘everything’ includes printer filament.

Drill Thrice, Solder Once

If you design printed circuit boards, then you will have also redesigned printed circuit boards. Nobody gets it right the first time, every time. Sometimes you can solder a scrap of 30gauge wire, flip a component 180°, or make a TO-92 transistor do that little pirouette thing where the legs go every-which-way. If you angered the PCB deities, you may have to access a component pad far from an edge. [Nathan Seidle], the founder of Sparkfun, finds himself in this situation, but all hope is not lost.

Our first thought is to desolder everything, then take a hot iron and tiny wires to each pad. Of course, this opens up a lot of potential for damage to the chip, cold joints, and radio interference. Accessing the pin in vivo has risks, but they are calculated. The idea is to locate the pin, then systematically drill from the backside and expose the copper. [Nate] also discovers that alcohol will make the PCB transparent so you can peer at the underside to confirm you have found your mark.

In a real, “fight fire with fire” idea, you can rework with flex PCBs or push your PCB Fu to the next level and use PCBs as your enclosure.

These Lessons Were Learned In Enclosure Design, But Go Far Beyond

[Foaly] has been hard at work making an open-source long range camera remote, and recently shared a deeply thoughtful post about how it is never too early to consider all aspects of design, lest it cost you in the end. It all started with designing an enclosure for a working prototype, and it led to redesigning the PCB from scratch. That took a lot of guts, and we recommend you make some time to click that link and read up on what he shared. You’ll either learn some valuable tips, or just enjoy nodding sagely as he confirms things you already know. It’s win-win.

Note the awkward buttons right next to the antenna connector, for example.

The project in question is Silver, and calling it a camera remote is selling it a bit short. In any case, [Foaly] had a perfectly serviceable set of prototypes and needed a small batch of enclosures. So far so normal, but in the process of designing possible solutions, [Foaly] ran into a sure-fire sign that a project is in trouble: problems cropping up everywhere, and in general everything just seeming harder than it should be. Holding the mounting-hole-free PCB securely never seemed quite right. Buttons were awkward to reach, ill-proportioned, and didn’t feel good to use. The OLED screen’s component was physically centered, but the display was off-center which looked wrong no matter how the lines of the bezel were sculpted. The PCB was a tidy rectangle, but the display ended up a bit small and enclosures always looked bulky by the time everything was accounted for. The best effort is shown here, and it just didn’t satisfy.

[Foaly] says the real problem was that he designed the electronics and did the layout while giving some thought (but not much thought) to their eventual integration into a case. This isn’t necessarily a problem for a one-off, but from a product design perspective it led to so many problems that it was better to start over, this time being mindful of how everything integrates right from the start: the layout, the components, the mechanical bits, the assembly, and the ultimate user experience. The end result is wonderful, and we’re delighted [Foaly] took the time to document his findings.

Enclosure design is a big deal and there are many different ways to go about it. For a more unique spin, be sure to check out our how-to make enclosures from the PCBs themselves. For a primer on more traditional enclosure manufacture and design, take a few minutes to familiarize yourself with injection molding.