Hackaday Links Column Banner

Hackaday Links: September 6, 2020

That was a close shave! On Tuesday, asteroid 2011 ES4 passed really close to the earth. JPL’s close approach data pegs its nominal distance from earth at about 0.00081083276352288 au! Yeah, we had to look it up too: that’s around 75,000 miles (120,000 kilometers), just ten times the diameter of the earth and only about one-third the distance from the earth the moon. It got within about 52,000 miles of the moon itself. Bookworms who made it all the way through Seveneves are surely sweating right now.

There’s a low current arms race when it comes to lighting up LEDs. The latest salvo in the field comes from [Christoph Tack] who boasts a current of 1.36 µA at 3 V for a green LED that is roughly 10x brighter than a phosphorescent watch dial. Of course, the TritiLED is the design being chased, which claims to run 17.6-20.2 years on a single CR2032 coin cell.

Proving once again that Hanna and Barbera were indeed future-tech prophets, flying cars are now a thing. Sky Drive Inc. made a four-minute test flight of a single passenger octo-rotor aircraft. Like a motorcycle of the sky (and those are a thing too) this thing is single-passenger and the cockpit is open air. The CNN article mentions that “The company hopes to make the flying car a part of normal life and not just a commodity”. Yeah, we’re sure they do, but in an age when electric cars are demonized for ranges in the low hundreds of miles, this is about as practical for widespread use as self-balancing electric unicycles.

Just when you thought the Marble Machine X project couldn’t get any bigger, we find out they have a few hundred volunteers working to update and track CAD models for all parts on the machine. Want a quick-start on project management and BOM control? These are never seen as the sexy parts of hardware efforts, but for big projects, you ignore them at your own peril.

Google and Apple built a COVID-19 contact tracing framework into their mobile platforms but stopped short of building the apps to actually do the work, anticipating that governments would want to control how the apps worked. So was the case with the European tracing app as Elliot Williams recently covered in this excellent overview. However, the United States has been slower to the game. Looks like the tech giants have become tired of waiting and have now made it possible for the framework itself to work as a contact tracing mechanism. To enable it, local governments need to upload a configuration file that sets parameters and URLs that redirect to informational pages from local health departments, and users must opt-in on their phone. All other tracing apps will continue to function, this is meant to add an option for places that have not yet adopted/developed their own app.

And finally, it’s time to take back responsibility for your poor spelling. Auto-correct has been giving us sardines instead of teaching how to fish for them ourselves. That ends now. The Autocorrect Remover is an extension for Google Docs that still tells you the word is wrong, but hides the correct spelling, gamifying it by having you guess the right spelling and rewarding you with points when you get it right.

Keep It Simple, Smartly

“Keep it simple” sounds like such good advice, but what exactly is the “it”; what parts of a project should you try to keep simple? You can’t always make everything simple, can you? Are all kinds of “simplicity” equally valuable, or are there aspects of a design where simplicity has multiplier effects on the rest of the project?

I ran into two seemingly different, but surprisingly similar, design problems in the last couple weeks, and I realized that focusing on keeping one aspect of the project simple had a multiplier effect on the rest — simplifying the right part of the problem made everything drastically easier.

EA Axon Great plane, but heavy!

The first example was a scratch-built airplane design. I’d made a few planes over the summer, focusing on plans on the Interwebs that emphasize simplicity of the actual build. Consequently, the planes were a bit heavy, maybe not entirely aerodynamic, and probably underpowered. And this is because the effort you expend building the plane doesn’t fundamentally have anything to do with flight. Keeping the build simple doesn’t necessarily get you a good plane.

Weight, on the other hand, is central. Wings produce lift, whether measured in grams or ounces, and anything heavier just isn’t gonna fly. But reducing weight has a multiplier effect. Less weight means smaller and lighter motors and batteries. Structures don’t need to be as stiff if they’re not subject to heavier bending forces. And, important to the noob pilot, planes with less weight per wing area fly slower, giving me (ahem, the noob pilot) more reaction time when something goes sideways. Trying to simplify the design by trimming weight has knock-on effects all around.

My latest fully-DIY design threw out anything that brought weight along with it, including some parts I thought were necessary for stiffness or crash resistance. But with the significantly lowered weight, these problems evaporated without needing me to solve them — in a way, the complexity of design was creating the problems that the complexity of design was supposed to solve. Ditching it meant that I had a slow plane, with simple-to-build wings, that’s capable of carrying a lightweight FPV camera. Done and done! Simply.

Nope. Too complex.

At the same time, I’m building a four-axis CNC foam cutter. I’ve built many 3D printers, and played around with other folks’ DIY CNC machines, so I had a few design ideas in my head starting out. My first iteration of an XY axis for the machine runs on metal angle stock with a whopping eight skate bearings per axis. It’s strong and rigid, and clumsy and overkill, in a bad way for this machine.

3D printers want to move a relatively light tool head around a small volume, but relatively quickly. CNC mills need to be extremely rigid and shoulder heavy side loads, subject to some speed constraints. A foam cutter has none of these needs. The hot wire melts the foam by radiation, so there are no loads on the machine because it doesn’t even contact the workpiece. And because it cuts by melting, it has to go slow. These are the places in the design where simplification will bear the most fruit.

I write this in retrospect, or at least from the perspective of a second prototype. I wanted the first design to hold the cutting filament taut, hence the rigid frame. But separating the tension from the motion, by using a lightweight external bow to keep the filament tight, meant that the machine could be dead simple. I could use smaller plastic sliders instead of complex bearings, on thin rods instead of bulky rails. In a day after having this realization, I got twice as far as I had on the previous machine design in a week, and it takes up a lot less space in my basement.

So take your KISS to the next level. Brainstorm a while about the binding constraints on your design, and what relaxing any of them can do. Do any particular simplifications enable further simplifications? Those are the ones that you want to start with. Keep it simple, smartly. And because it’s not always easy to find these multiplier effects, tell your friends!

Retrotechtacular: Forging In Closed Dies

It is the norm for our Retrotechtacular series to concentrate on a technology that has passed out of use but is still of interest to Hackaday readers, so it is perhaps unusual now to feature one that is very much still with us. Drop forging is a technique for forming hot metal in dies under huge force, and while it is still a current technique the 1950s educational film we are featuring is definitely retro.

An automotive connecting rod, sectioned and acid treated to show the grain structure. (CC BY-SA 2.5)
An automotive connecting rod, sectioned and acid treated to show the grain structure. (CC BY-SA 2.5)

If you have followed our occasional series on blacksmithing, you’ll be familiar with the process of forming metal by heating it to a temperature at which it becomes malleable enough to deform under pressure, and using a hammer to shape it against an anvil. This process not only shapes the metal, but also forms its inner grain crystal structure such that with careful management the forging process can impart significant resistance to fatigue in the finished item. Think of drop forging as automation of the manual blacksmithing process, with the same metallurgical benefits but in which the finished product is shaped in a series of dies rather than by the blacksmith’s hammer. It loses the craft of the smith over the process, but delivers an extremely consistent result along with a high production turnover.

The film that we’ve placed below the break is an in-depth introduction to the industry in a very period style and with components for the automotive, aerospace, and defense industries of the day. It takes the viewer through the different types of press and examines the design of dies to produce in stages the required grain structure and shapes.

Of particular interest is the section on upset forging, a technique in which a piece of steel stock is forged end-on rather from above. The components themselves make the video worth watching, as we see everything from jet turbine blades to medical forceps in production, along with many parts from internal combustion engines. The smallest piece shown is a tiny carburetor part, while the largest is a huge aircraft carrier catapult part that requires a special vehicle to load it into the press.

Drop forging is generally the preserve of a large metalworking factory due to the size of the presses involved. But it’s not entirely beyond the capabilities of our community given the resources of a well-equipped hackerspace or blacksmith’s shop. My father made simple forging dies by assembling a basic shape in weld and pieces of steel stock before grinding it to his requirements and heat treating. Mounted in a large rotary fly press for repetitive small scale shaping and forming tasks in ornamental ironwork, I remember bumping them out from red hot steel bar in my early teens.

This is one of those techniques that’s useful to know about in our community, because while the need to manufacture significant quantities of ornamental ironwork may not come your way too often, it’s still worth having the capability should you need it. Meanwhile the video below the break should serve to provide you with enough heavy machinery enjoyment to brighten your day.

Continue reading “Retrotechtacular: Forging In Closed Dies”

Hackaday Podcast 083: Soooo Many Custom Peripherals, Leaving Bluetooth Footprints, And A Twirlybird On Mars

Hackaday editors Mike Szczys and Elliot Williams ogle the greatest hacks from the past 168 hours. Did you know that Mars Rover didn’t get launched into space all alone? Nestled in it’s underbelly is a two-prop helicopter that’s a fascinating study in engineering for a different world. Fingerprinting audio files isn’t a special trick reserved for Shazam, you can do it just as easily with an ESP32. A flaw in the way Bluetooth COVID tracing frameworks chirp out their anonymized hashes means they’re not as perfectly anonymized as planned. And you’re going to love these cool ways to misuse items from those massive parts catalogs.

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (60 MB or so.)

Continue reading “Hackaday Podcast 083: Soooo Many Custom Peripherals, Leaving Bluetooth Footprints, And A Twirlybird On Mars”

This Week In Security: Zero Days, Notarized Malware, Jedi Mind Tricks, And More

Honeypots are an entertaining way to learn about new attacks. A simulated vulnerable system is exposed to the internet, inviting anyone to try to break into it. Rather than actually compromising a deployed device, and attacker just gives away information about how they would attack the real thing. A honeypot run by 360Netlab found something interesting back in April: an RCE attack against QNAP NAS devices. The vulnerability is found in the logout endpoint, which takes external values without properly sanitizing them. These values are used as part of an snprintf statement, and then executed with a system() call. Because there isn’t any sanitization, special characters like semicolons can be injected into the final command to be run, resulting in a trivial RCE.

QNAP has released new firmware that fixes the issue by replacing the system() call with execv(). This change means that the shell isn’t part of the execution process, and the command injection loses its bite. Version 4.3.3 was the first firmware release to contain this fix, so if you run a QNAP device, be sure to go check the firmware version. While this vulnerability was being used in the wild, there doesn’t seem to have been a widespread campaign exploiting it.

Continue reading “This Week In Security: Zero Days, Notarized Malware, Jedi Mind Tricks, And More”

Linux Fu: Moving /usr

Linux has changed. Originally inspired by Unix, there were certain well understood but not well enforced rules that everyone understood. Programs did small things and used pipes to communicate. X Windows servers didn’t always run on your local machine. Nothing in /usr contributed to booting up the system.

These days, we have systemd controlling everything. If you run Chrome on one display, it is locked to that display and it really wants that to be the local video card. And moving /usr to another partition will easily prevent you from booting up, unless you take precautions. I moved /usr and I lived to tell about it. If you ever need to do it, you’ll want to hear my story.

A lot of people are critical of systemd — including me — but really it isn’t systemd’s fault. It is the loss of these principles as we get more programmers and many of them are influenced by other systems where things work differently. I’m not just ranting, though. I recently had an experience that brought all this to mind and, along the way, I learned a few things about the modern state of the boot process. The story starts with a friend giving me an Intel Compute Stick. But the problems I had were not specific to that hardware, but rather how modern Linux distributions manage their start-up process.

Continue reading “Linux Fu: Moving /usr”

The B-Sides: Curious Uses Of Off-the-Shelf Parts

I admit: a few years of prototyping without easy machine shop access really whets my tastebuds for turning metal chips. But all that time spent away from proper machine tools has also pushed me to re-imagine part catalogs, something I see almost every day. Without any precision metalworking tools handy, stock mechanical parts have become my supplement for complexity. And so a former dogma to machine-everything-thyself has been transformed into a hunt for that already-made-part-that-does-it-for-you.

But with part catalogs featuring tens of thousands of purpose-built parts, I started reimagining some of them for other misdeeds. And after a few years spent reinventing use cases for some of these parts, I’m about ready to tell you how to misuse them properly. So today I’d like to show you some of my favorite mechanical part B-sides, so to speak. These are ordinary parts in unorthodox places–something you surely won’t find in the datasheet! Now let’s have a look. Continue reading “The B-Sides: Curious Uses Of Off-the-Shelf Parts”