Minimal MQTT With Micropython

I have been meaning to play around with MQTT for some time now, and finally decided to take the plunge one evening last week. I had three cheap home temperature and humidity sensors, and was bothered that they often didn’t agree. Surprisingly, while the analog one had a calibration adjustment in the back, I have no idea how to calibrate the two digital ones. I took this as a sign that it was time to learn MQTT and be able to install my own, accurate sensors. Of course, I began by ordering the cheapest sensors I could find, but I can always upgrade later on.

Three Cheap Sensors

While we have written quite a bit about MQTT in Hackaday, I had to go all the way back to 2016 to find this introductory four-part series by Elliot Williams. Five years is a long time in the tech world, but I decided to give it a try anyway. Continue reading “Minimal MQTT With Micropython”

Software Challenge’s Solution Shows Reverse Engineering In Action

[0xricksanchez] participated in a software reverse-engineering challenge and recently wrote up the solution, and in so doing also documented the process used to discover it. The challenge was called Devil’s Swapper, and consisted of a small binary blob that output a short message when executed. The goal of the challenge? Discover the secret key and the secret message within. [0xricksanchez]’s writeup, originally intended just as a personal record, ended up doing an excellent job of showing how a lot of reverse engineering tools and processes get applied to software in a practical way.

What’s also great about [0xricksanchez]’s writeup is that it uses standard tools and plenty of screenshots to show what is being done, while also explaining why those actions are being chosen and what is being learned. It’s easy to follow the thought process as things progress from gathering information, to chasing leads, and finally leveraging what’s been learned. It’s a fascinating look into the process of applying the reverse engineering mindset to software, and a good demonstration of the tools. Give it a read, and see how far you can follow along before learning something new. Want more? Make sure you have checked out the Hackaday 2020 Remoticon videos on reverse engineering firmware, and doing the same for PCBs.

Using MIDI To Solve A Keyboard Shortcut Problem

[Pete] admits that his MIDI-based slide advance alert system is definitely a niche solution to a niche problem, but it is a wonderful example of using available tools to serve a specific need. The issue was this: [Pete] is involved in numerous presentations streamed over video, and needed a simple and effective way for the Presenter to notify the Producer (the one responsible for the video streaming and camera switching) to discreetly advance slides on cue.

To most of us, this is a simple problem to solve. Provide the presenter with a USB macro keyboard to trigger the keyboard shortcuts for slide advancement, and the job’s done. But that didn’t quite cut it for [Pete]. In their situation, the Producer is managing more than just the slides as they switch between cameras, watch the chat window, and manage the video streaming itself. Triggering slide advancement via keyboard shortcuts only works if the presentation software is in focus when the buttons are pressed, which isn’t guaranteed.

[Pete’s] solution was to make a small two-button device (one button for next slide, one for previous slide) that uses MIDI to communicate with a small custom application on the producer’s machine, and doesn’t care about application focus. Pressing the slide advance button plays a distinct tone into the producer’s headphones, plus the custom application displays “Forward”, “Back”, or “Waiting” in a window, depending on the state of the Presenter’s buttons. The design is available on Instructables for anyone wanting a closer look.

[Pete] reports that it works and it’s far more discreet than saying “next slide, please” twenty or more times per presentation. You may notice from the photo that LEGO bricks play a prominent part in the device, and if you’d like to see more of that sort of thing, make sure to check out these other brick-mountable PCB designs.

Learn Bil Herd’s DIY Surface Mount Assembly Process

You can do your own Surface Mount Technology based PCB assembly with just a handful of tools and some patience. At the heart of my SMT process is stopping to inspect the various steps all while trying to maintain a bit of cleanliness in the process.

Surface mount or Surface Mount Technology (SMT) is the modern way to assemble Printed Circuit Boards (PCB) and is what is commonly seen when opening a modern piece of tech. It’s much smaller than the older Through-Hole (TH) technology where the component leads were inserted into holes in PCB, and act we called “stuffing” since we had to stuff the components into the holes.

A few specialized tools make this a lot easier, but resourceful hackers will be able to pull together a solder paste stencil jig, vacuum tweezers, and a modified toaster oven with a controller that can follow the reflow profile of the solder paste. Where you shouldn’t skimp is on the quality, age, and storage of the solder paste itself.

Join me after the break for my video overview of the process I use in my workshop, along with details of every step of my SMT assembly process.

Continue reading “Learn Bil Herd’s DIY Surface Mount Assembly Process”

Two-Key Keyboard Build Log Starts Small, But Thinks Big

Interested in making a custom keyboard, but unsure where to start? Good news, because [Jared]’s build log for an adorable “2% Milk” two-key mini-keyboard covers everything you need to know about making a custom keyboard, including how to add optional RGB lighting. The only difference is that it gets done in a smaller and cheaper package than jumping directly in with a full-size DIY keyboard.

[Jared] is definitely no stranger to custom keyboard work, but when he saw parts for a two-key “2% Milk” keyboard for sale online, he simply couldn’t resist. Luckily for us, he took plenty of photos and his build log makes an excellent tutorial for anyone who wants to get into custom keyboards by starting small.

The hardware elements are clear by looking at photos, but what about the software? For that, [Jared] uses a Teensy  Pro Micro clone running QMK, an open source project for driving and configuring custom input devices. QMK drives tiny devices like the 2% Milk just as easily as it does larger ones, so following [Jared]’s build log therefore conveys exactly the same familiarity that would be needed to work on a bigger keyboard, which is part of what makes it such a great project to document.

Interested in going a little deeper down the custom keyboard rabbit hole? You can go entirely DIY, but there’s also no need to roll everything from scratch. It’s possible to buy most of the parts and treat the project like a kit, and Hackaday’s own [Kristina Panos] is here to tell you all about what that was like.

Handheld Slayer Exciter Wand Makes For Easy High Voltage Magic

It’s often said that any sufficiently advanced technology is indistinguishable from magic, and when a DIY device lets you light up fluorescent bulbs with a flick of the wrist, it’s certainly not hard to see why. The latest creation from [Jay Bowles], this high voltage wand is actually a Slayer Exciter coil that’s able to boost the output of a standard 9 V alkaline or rechargeable battery high enough to perform some of the wireless power tricks we usually associate with the more complex Tesla coil.

We really can’t overstate how simple it is to build one of these yourself. Sure you’ll still need to wind the coil, but if you can chuck the 1/2 inch acrylic tube into a electric drill you should be able to make short work of it. Once you’ve wound your secondary coil from 32 gauge magnet wire, you only need a couple turns of common doorbell wire to make up the primary.

Think there must be some complex electronics hiding in the handle? Far from it. All that’s hidden by that faux-leather wrapping is a transistor to do the high-speed switching, an LED functioning as both the power indicator and the circuit’s diode, and a resistor. [Jay] put it all together dead bug style, but you could do it on a scrap of perfboard if you’d like something a little more robust.

Being a big believer in STEM education, [Jay] says the wand was designed to be as kid-friendly as possible so he could gift it to his young niece and nephew. Inspiring the next generation is certainly something we respect around these parts, though we think there’s plenty of adults who wouldn’t have been disappointed if they unwrapped a gadget like this over the holidays.

If you’d like to play around with a Slayer but aren’t into the whole Harry Potter motif, you might be interested in the larger and more capable version [Jay] built earlier in the year.

Continue reading “Handheld Slayer Exciter Wand Makes For Easy High Voltage Magic”

ESP8266 Socket Is A Snap-Fit, Breadboard-Friendly Wonder

It all started with wanting to program an ESP-12 variant of an ESP8266 module without involving any solder. Displeased with all the socket offerings on Thingiverse, [tweeto] set out to design their own breadboard-friendly snap-fit socket.

This certainly looks like a handy solution. All you have to do is print the thing, add all the wires, and stick your ESP in there. Even that wire is easy to find; [tweeto] used 0.8 mm paper clips which are sturdy, conductive, and haunting the darkest corners of every desk drawer. They’re also a little bit on the thick side, so [tweeto] plans to test out 0.6mm copper wire in the future.

The challenge with this type of print is to design something that will stand up to repeated breadboardings without losing legs or falling apart. [tweeto]’s elegant solution is a tiny groove for each wire in the bottom of the socket — it keeps the wire in place by countering the play caused by inserting it into and removing it from a breadboard. See how [tweeto] bends the paper clips in the short video after the break.

There’s more than one way to use 3D printing to your circuit-building advantage, even in permanent circuits — just take a look at this PCB-free Arduboy.

Continue reading “ESP8266 Socket Is A Snap-Fit, Breadboard-Friendly Wonder”