Hackaday Links Column Banner

Hackaday Links: November 19, 2023

Two RUDs are better than one, right? That might be the line on Saturday morning’s briefly spectacular second attempt by SpaceX to launch their Starship vehicle atop a Super Heavy booster, which ended with the “rapid unscheduled disassembly” of both vehicles. The first attempt, back in April, had trouble from the get-go, including the rapid unscheduled partial disassembly of their Stage Zero launch pad, followed by rapid but completely predictable disassembly of a lot of camera gear and an unfortunate minivan thanks to flying chunks of concrete.

Starship’s first “hot” separation

Engineering changes helped keep Stage Zero more or less intact this time, and the Super Heavy booster performed flawlessly — for about three minutes. It was at that point, right after the start of the new “hot staging” process, where Starship’s six engines light before the booster actually drops away, that the problems started. The booster made a rapid flip maneuver to get into the correct attitude for burn-back and landing before disappearing in a massive ball of flame.

Reports are that the flight termination system did the deed, but it’s not yet exactly clear why. Ditto the Starship, which was also snuffed by the FTS after continuing to fly for about another five minutes. Still in all, the SpaceX crew seem to be ecstatic about the results, which is understandable for a company with a “move fast, break things” culture. Nailed it.

Continue reading “Hackaday Links: November 19, 2023”

Hacking Apple’s Magic Mouse To Fix Its Worst Flaws

The Magic Mouse was first released by Apple in 2009 and was a major departure from previous designs. It was sleek, low-profile, and featured a touch pad on the top for gestures. Although the first generation was powered by two AA batteries and didn’t lead to much commentary, the 2015 redesign caused a lot of scathing memes and worse, mostly due to the rechargeable battery and the Lightning charging port that had been located on its bottom, leading to Dead Magic Mouse syndrome when you wanted to charge it. Since then myriad hackers have tried to fix the Magic Mouse’s issues, with [Ivan Kuleshov]’s recent attempt being perhaps the most straightforward and possibly successful.

Essentially, the Magic Mouse has two major flaws: ergonomics and the worst possible location of the charging port. Although both 3D models and commercial products exist to alleviate the former issue – and some of these even add wireless charging in between mousing sessions – all attempts to relocate the charging port were met by failure, as the Magic Mouse cannot be both charged and used at the same time due to how Apple designed the circuit.

What [Ivan] did differently is that aside from tweaking some existing 3D models for Magic Mouse extensions to his liking, he also fixed the charging issue by avoiding Apple’s circuitry altogether and adding a USB-C port in the process. He also added a TP4056-based charging module, directly soldered to the battery’s terminals, that will top off the battery when plugged in. During experimentation on a live Magic Mouse, this led to the battery charge reported in MacOS increasing correspondingly. More or less, at least.

The 3D printed shell isn’t just a wrapper around the original mouse either, but splits the squat rodent into its upper and lower sections, so that the optical sensor isn’t suspended off the surface, while also keeping the touch-sensitive top section where it should be. According to [Ivan] the project files will be made available on his GitHub account in the near future.

Fixing Astronomy In The Blink Of An Eye

If you’ve ever set a telescope up in your backyard, you probably learned how quick any kind of lighting ruins your observation. In fact, a recent study found that every year, about 10% of the stars that were visible the previous year disappear in the mishmash of light scattering through the atmosphere. A company called StealthTransit has a solution: blink the lights in a controlled way. They have an animated video explaining the concept.

The technology, named DarkSkyProtector, assumes there is LED lighting and that the light’s owner (or manufacturer) will put a simple device in line that causes the LED to blink imperceptibly. As you might guess, the telescope — presumably some giant observatory uses a GPS receiver to synchronize and then images only when the LED lights all turn off. That presumes, of course, that you have a significant number of lights under control.

It is hard to imagine every city and home having astronomy-safe lighting. However, we can imagine a university installing a lighting system on its campus to protect night viewing. The system underwent a test in the Caucasus mountains using a 24-inch telescope and was apparently quite successful with a shutter rate of about 150 Hz. We weren’t clear if each LED control module has to have a GPS-disciplined time source, but it seems like you’d have to. However, the post talks about how the bulbs wouldn’t cost more to make than conventional ones, so maybe they don’t have anything fancy in them.

You can see satellites in the day with some tech tricks. Want to check out observatories? Hit the road. Or, get time on a telescope with Skynet University.

Two-Channel Guitar Stomp Box Makes Momentary Switches Latching

When we first saw [Maarten Tromp]’s article about a “momentary latching switch” for guitar effects pedals, we have to admit to being a bit confused. When it comes to push-button switches, “momentary” and “latching” seem to be at odds with each other, with different mechanisms inside the switch to turn one into the other. What gives?

As it turns out, [Maarten]’s build makes perfect sense when you consider the demands of a musical performance. Guitar effects pedals, or “stomp boxes,” are often added to the output of electric guitars and other instruments to change the signals in some musically interesting way. The trouble is, sometimes you only need an effect for a few bars, and the push-on, push-off switches on many effects pedals make that awkward.

[Maarten]’s idea was to build a stomp box with momentary switches that act as inputs to an ATtiny2313 microcontroller rather than directly controlling the effect. That way, a bit of code can determine how long the switch is tapped, and activate a relay to do the actual switching accordingly. A short tap of the button tells the microcontroller to latch the relay closed until another tap comes along; a long press means that the relay is held open only as long as the button is held down.

Yes, he could have used a 555, a fact which [Maarten] readily acknowledges, but with some loss of flexibility; he currently has the threshold set at 250 milliseconds, which works for his performance style. Changing it would be a snap in code, as would toggling the latching logic. A microcontroller also makes expansion from the two-channel setup shown here easier.

Looking for more effects pedal action? We’ve got a bunch — a tube-amp tremolo, an Arduino Mega multipedal, a digital delay line. Take your pick!

Pineberry Pi HatDrive: Using NVMe SSDs With The Raspberry Pi 5

When the Raspberry Pi 5 launched, many were left chomping at the bit after seeing the PCIe FPC connector alongside the promise that an ‘NVMe SSD HAT would be forthcoming’. Although the official Raspberry Pi NVMe HAT is still a long while off, the Polish company Pineberry Pi is ramping up to release its Top & Bottom versions of its very wittily called HatDrive.

They sent a prototype to [Jeff Geerling], who has been putting his grubby mitts all over them before putting together a video showing off the HatDrive Top, which can accept 2230 and 2242 size NVMe drives.

The primary goal of adding an NVMe drive to the RPi is of course to get rid of those slow and fragile SD cards. Although the SD card standard supports near-NVMe-like speeds with UHS-III, the Raspberry Pi 5 bottoms out at UHS-I, around 100 MB/s. Despite this, using an NVMe drive for booting still takes some work, as [Jeff] lays out in a clear article. Most of this involves tweaking the /boot/config.txt file to enable external PCIe support, editing the onboard EEPROM to change the boot order (in lieu of having a PC-like BIOS screen) and getting the OS image flashed onto the NVMe drive you intend to boot from.

Although things seem to work fine during [Jeff]’s testing, some caveats remain, such as the RPi 5 officially supporting only PCIe Gen 2 x1, with Gen 3 possible, but with potential data integrity issues. There’s also the fundamental limit of having only a single lane of PCIe available. If that’s no problem, then Pineberry Pi offers the aforementioned HatDrive Top for traditional HAT-style mounting, and a Bottom version that can accept up to 2280 format NVMe SSDs. Including the provided ribbon cables, you can order the Top and Bottom for €20 and €25.99 respectively, with the first batch to ship in early December.

Continue reading “Pineberry Pi HatDrive: Using NVMe SSDs With The Raspberry Pi 5”

A 1/5th scale hydraulic jack model

Miniature Hydraulic Jack Is A Scale Marvel

Most hydraulic jacks are big tools that can lift upwards of 1000 kg but [Maker B]’s is quite a bit smaller than average.

The world’s smallest hydraulic jack is a tiny hand-machined model made out of tiny pieces of iron, brass and copper. But here’s the kicker: It’s a real hydraulic jack with real hydraulic fluid! At 1/5th scale, it obviously isn’t as strong as a full-size jack, but it can still easily lift an impressive 24 soda cans! Switching between the lathe and mill, [Maker B] shows how all the parts of the jack are made from stock metal in detail, and even explains in simple terms how a hydraulic jack works in this masterpiece of a video.

Over the years, we’ve seen plenty of tiny objects cranked out from stock pieces of metal — often bolts. But the fact that the end result here is a working tool, puts it into a decidedly less common niche. Of course, given what we’ve seen from [Maker B] in the past, it’s hardly a surprise.
Continue reading “Miniature Hydraulic Jack Is A Scale Marvel”

Bigfoot Turns Classic Sewing Machine Into A Leather-Eating Monster

If you try to sew leather on a standard consumer-grade machine, more often than not you’ll quickly learn its limits. Most machines are built for speed, and trying to get them to punch through heavy material at the low motor speeds often needed for leather work is a lesson in frustration.

How frustrating? Enough so that [Joseph Eoff] expended considerable effort to create this sewing machine speed controller for his nearly century-old Adler sewing machine. The machine was once powered by a foot treadle, which is probably why the project is dubbed “Bigfoot,” but now uses a 230 V universal motor. Such motors don’t deliver much torque when run at low speeds with the standard foot-pedal rheostat control, so [Joseph] worked up an Arduino-based controller with a tachometer for feedback and a high-power PWM driver for the motor.

There are a ton of details in [Joseph]’s post and even more in the original blog article, which is well worth a read, but a couple really stand out. The first is with the tachometer, which uses an off-the-shelf photointerrupter and slotted disc. [Joseph] was displeased with the sensor’s asymmetrical and unreliable output, so he made some modifications to the onboard comparator to square up the signal. Also interesting is the PID loop auto-tuning function he programmed into Bigfoot; press a button and the controller automatically ramps the motor speed up and down and stores the coefficients in memory. Nice!

The short video below shows Bigfoot in action with varying thicknesses of faux leather; there are also some clips in the original article that show the machine dealing with a triple thickness of leather at slow speed and not even breaking a sweat. Hats off to [Joseph] on a solid build that keeps a classic machine in the game. And if you want to get into the textile arts but don’t know where to start, we’ve got you covered.

Continue reading “Bigfoot Turns Classic Sewing Machine Into A Leather-Eating Monster”