Hackaday Links Column Banner

Hackaday Links: April 5, 2020

Git is powerful, but with great power comes the ability to really bork things up. When you find yourself looking at an inscrutable error message after an ill-advised late-night commit, it can be a maximum pucker-factor moment, and keeping a clear enough head to fix the problem can be challenging. A little proactive social engineering may be in order, which is why Jonathan Bisson wrote git-undo, a simple shell script that displays the most common un-borking commands he’s likely to need. There are other ways to prompt yourself through Git emergencies, like Oh Shit, Git (or for the scatologically sensitive, Dangit Git), but git-undo has the advantage of working without an Internet connection.

Suddenly find yourself with a bunch of time on your hands and nothing to challenge your skills? Why not try to write a program in a single Tweet? The brainchild of Dominic Pajak, the BBC Micro Bot Twitter account accepts tweets and attempts to run them as BASIC programs on a BBC Microcomputer emulator, replying with the results of the program. It would seem that 280 characters would make it difficult to do anything interesting, but check out some of the results. Most are graphic displays, some animated, and with an unsurprising number of nods to 1980s pop culture. Some are truly impressive, though, like Conway’s Game of Life written by none other than Eben Upton.

The COVID-19 pandemic is causing all sorts of cultural shifts, but we didn’t expect to see much change in the culture of a community that’s been notoriously resistant to change for over a century: amateur radio. One of the most basic facts of life in the amateur radio world is that you need a license to participate, with governments regulating the process. But as a response to the pandemic, Spain has temporarily lifted licensing requirements for amateur radio operators. Normally, an unlicensed person is only allowed to operate on amateur bands under the direct supervision of a licensed amateur. The rules change allows unlicensed operators to use a station without supervision and is intended to give schoolchildren trapped at home an educational experience. In another change, some countries are allowing special callsign suffixes, like “STAYHOME,” to raise awareness during the pandemic. And the boom in interest in amateur radio since the pandemic started is remarkable; unfortunately, finding a way to take your test in a socially distant world is quite a trick. Our friend Josh Nass (KI6NAZ) has some thoughts about testing under these conditions that you might find interesting.

And finally, life goes on during all this societal disruption, and every new life deserves to be celebrated. And when Lauren Devinck made her appearance last month, her proud parents decided to send out unique birth announcement cards with a printed circuit board feature. The board is decorative, not functional, but adds a distinctive look to the card. The process of getting the boards printed was non-trivial; it turns out that free-form script won’t pass most design rule tests, and that panelizing them required making some compromises. We think the finished product is classy, but can’t help but think that a functional board would have really made a statement. Regardless, we welcome Lauren and congratulate her proud parents.

DIY Closed-Cell Silicone Foam

Most of us have a junk drawer, full of spare parts yanked from various places, but also likely stocked with materials we bought for a project but didn’t use completely. Half a gallon of wood glue, a pile of random, scattered resistors, or in [Ken]’s case, closed-cell silicone foam. Wanting to avoid this situation he set about trying to make his own silicone foam and had a great degree of success.

Commercial systems typically rely on a compressed gas of some sort to generate the foam. Ken also wanted to avoid this and kept his process simple by using basic (pun intended) chemistry to generate the bubbles. A mixture of vinegar and baking soda created the gas. After a healthy amount of trial and error using silicone caulk and some thinner to get the mixture correct, he was able to generate a small amount of silicone foam. While there only was a bit of foam, it was plenty for his needs. All without having a stockpile of extra foam or needing to buy any specialized equipment.

We appreciate this project for the ingenuity of taking something relatively simple (an acid-base reaction) and putting it to use in a way we’ve never seen before. While [Ken] doesn’t say directly on the project page what he uses the foam for, perhaps it or a similar type of foam could be used for building walk-along gliders.

Photo via Wikimedia Commons

Making An Arduino Ventilator? Read This First

Thanks to the virus crisis, lots of people are designing makeshift ventilator designs in the hopes of saving people’s lives. Many of these are based around some sort of Arduino-powered CPU. [Armstrong Subero] things that’s a great idea, but cautions that making an electronic pair of dice is a different proposition than creating a machine to breathe for someone. But he isn’t just complaining. He talks about considerations when building a real-time and safety-critical system.

[Armstrong] has a lot of good points, although we aren’t sure you need the complexity of a real-time operating system just to squeeze a bag. If anything, that seems like it might make it more susceptible to unexpected operation. However, we agree with his comments that you should have closed-loop control to make sure the device is working, alarming when the device isn’t working, and watchdog timers to guard against lockup.

Continue reading “Making An Arduino Ventilator? Read This First”

Data Glove Gets A Grip On Gesture Input

If we really want wearable computing to take off as a concept, we’re going to need lightweight input devices that can do some heavy lifting. Sure, split ergo keyboards are awesome. But it seems silly to restrict the possibilities of cyberdecks by limiting the horizons to imitations of desk-bound computing concepts.

What we really need are things like [Zack Freedman]’s somatic data glove. This fantastically futuristic finger reader is inspired by DnD spells that have a somatic component to them — a precise hand gesture that must be executed perfectly while the spell is spoken, lest it be miscast. The idea is to convert hand gestures to keyboard presses and mouse clicks using a Teensy that’s housed in the wrist-mounted box. You are of course not limited to computing on the go, but who could resist walking around the danger zone with this on their wrist?

Each finger segment contains a magnet, and there’s a Hall effect sensor in each base knuckle to detect when gesture movement has displaced a magnet. There’s a 9-DoF IMU mounted in the thumb that will eventually allow letters to be typed by drawing them in the air. All of the finger and thumb components are housed in 3D-printed enclosures that are mounted on a cool-looking half glove designed for weightlifters. [Zack] is still working on gesture training, but has full instructions for building the glove up on Instructables.

It’s true: we do love split ergo keyboarded cyberdecks, and this one is out of this world.

The CLUE Tracker Points You To A Target, Using CircuitPython

The main components are an Adafruit CLUE, Stemma GPS, and a lithium-polymer battery. No soldering required.

[Jay Doscher] shares a quick GPS project he designed and completed over a weekend. The device is called the CLUE Tracker and has simple goals: it shows a user their current location, but also provides a compass heading and distance to a target point. The idea is a little like geocaching, in that a user is pointed to a destination but must find their own way there. There’s a 3D printed enclosure, and as a bonus, there is no soldering required.

The CLUE Tracker uses the Adafruit CLUE board (which is the same size as the BBC micro:bit) and Stemma GPS sensor, with the only other active component being a lithium polymer battery. The software side of the CLUE Tracker uses CircuitPython, and [Jay] has the code and enclosure design available on GitHub.

[Jay] did a nice job of commenting and documenting the code, so this could make a great introductory CircuitPython project. No soldering is required, which makes it a little easier to re-use the parts in other projects later. This helps to offset costs for hackers on a budget.

The fact that a device like this can be an afternoon or weekend project is a testament to the fact that times have never been better for hobbyists when it comes to hardware. CircuitPython is also a fast-growing tool, and projects like this can help make it easy and fun to get started.

Turn Off Those Batteries With Their Protection Chip

It should be a feature of every device powered by a lithium-ion battery, that it has a protection chip on board that automatically disconnects it should it go out of its safe voltage range. A chip most often used for this purpose in single-cell applications is the Fortune Semiconductor DW01, and [Oliver] shares a tip for using this chip to power down the battery. The DW01 has a CS, or current sense pin, which if taken high momentarily will put the chip into an off state until the battery is disconnected.

Looking at the DW01 datasheet we can see that this would work, but we can’t help having a few questions. The CS pin is a safety sensor pin, providing over current, short circuit, and reverse polarity detection. It’s the kind of pin one might mess with only when one is absolutely certain it’s not likely to trigger a dangerous fault condition, so a bit of care should be required. However, we can see that leaving its resistor in place and supplying it a momentary logic level through another resistor should work. We’d be interested in the views of any readers with more experience in the world of lithium battery protection on this hack.

Meanwhile, a good read for any reader should be our look last year at lithium-ion safety.

R/C Toilet Paper Roll Is The Hero We Deserve

For reasons that most rational consumers can’t fathom, a not inconsiderable segment of the population believes the key to their continued survival during a pandemic unprecedented in modern times is to stockpile toilet paper. This leaves those of us not compelled to act based on the whims of our bowels looking at bare racks in the paper product aisle more often than not.

Which makes it the perfect time for [Ariel Yahni] to develop his remote controlled toilet paper roll. With this gadget deployed, you just might have a chance at drawing the Karens away from all the rolled gold long enough to grab yourself a pack. Even if it doesn’t distract the other competitors shoppers, you can at least enjoy the looks on their faces as it scurries by.

The project starts with, of all things, popsicle sticks. These are used to make a reinforced platform to which the two motors, radio receiver, speed controller, and battery are mounted. With some clever packing, [Ariel] is able to (tightly) fit it inside of a cardboard tube with just the bottoms of the two wheels protruding through cutouts. A careful wrapping with toilet paper is then used to give it the look of a partially used roll, including a trailing “tail” that flutters in its wake.

In the video after the break, you can see [Ariel] take his roll of motorized TP through a local mall for a test drive. We’re sorry to say that nobody appears to make a wild dive for it during the test. But that could be because the video was recorded back in December before people had resorted to fighting over toiletries. It also explains why he was able to get into a mall in the first place.

Just think, if we had embraced the high-tech toilets of the future back when we had a chance, we could have avoided this whole thing. As far as dystopias go, this one is shaping up to be pretty weird.

Continue reading “R/C Toilet Paper Roll Is The Hero We Deserve”