Finding The Right Hack Is Half The Battle

Sometimes you just get lucky. I had a project on my list for a long time, and it was one that I had been putting off for a few months now because I loathed one part of what it entailed — sensitive, high-accuracy analog measurement. And then, out of the blue I stumbled on exactly the right trick, and my problems vanished in thin air. Thanks, Internet of Hackers!

The project in question is a low-vacuum regulator for “bagging” fiberglass layups. What I needed was some way to read a pressure sensor and turn on and off a vacuum pump accordingly. The industry-standard vacuum gauges are neat devices, essentially a tiny little strain gauge on a membrane between the vacuum side and the atmosphere side, in a package the size of a dime. (That it’s a strain gauge is foreshadowing, but I didn’t know that at the time.) I bought one for $15 ages ago, and it sat on my desk, awaiting its analog circuitry.

See, the MPX2100 runs on 12 V and puts out a signal around 40 mV on top of a 6 V offset. That voltage level is inconvenient for modern 3.3 V microcontroller ADCs, and the resolution would get clobbered by the 6 V signal if I just put a voltage divider on it. This meant whipping together some kind of instrument amplifier circuit to null out the 6 V and amplify the 40 mV for the ADC. The circuits I found online all called for 1% resistors in values I didn’t have, and mildly special op-amps. No fun, for me at least. So there it sat.

Picture of sketchy-looking vacuum apparatus.
Cut the blue wire or the red wire? HX711 module and pressure sensor on the left.

Until I ran into this project that machetes through the analog jungle with one part, and it happened to be one I had on hand. A vacuum pressure sensor is a strain gauge, set up like a Wheatstone bridge, just like you would use for weighing something with a load cell. The solution? A load-cell ADC chip, the HX711, found in every cheap scale or online for under a buck. The only other trick was finding a low-voltage pressure sensor to work with it, but that turns out to be easy as well, and I had one delivered in two days.

In all, this project took months of foot-dragging, but only a few clicks and five minutes of soldering once I got the right idea. The industrial applications and manufacturers’ app notes all make sense if you are making hundreds or millions of these devices, where the one-time cost of prototyping up the hard bits gets amortized, but the hacker solution of using a weight-scale chip was just the ticket for a one-off. That just goes to show how useful sharing our tips and tricks can be — you won’t get this from the industry. So send us your success stories, and your useful failures too, and Read More Hackaday!

Retrotechtacular: The Dangers Of Confined Spaces

Many people find themselves working in confined spaces every day, whether it be in sewer systems, drains, or other tight spots. These areas come with their own unique risks to life and limb that must be carefully considered in order to avoid disaster.

To this end, the Worker’s Compensation Board of British Columbia, known as WorkSafe BC, produced a video on the dangers of working in these areas. Confined Spaces, Deadly Spaces highlights how these areas can kill, and the right way to work around these hazards.

Continue reading “Retrotechtacular: The Dangers Of Confined Spaces”

Hackaday Podcast 136: Smacking Asteroids, Decoding Voyager, Milling Cheap, And PS5 Triggered

Hackaday editors Elliot Williams and Mike Szczys look back on a great week of hardware hacking. What a time to be alive when you can use open source tools to decode signals from a probe that has long since left our solar system! We admire two dirt-cheap builds, one to measure current draw in mains power, another to mill small parts with great precision for only a few bucks. A display built from a few hundred 7-segment modules begs the question: who says pixels need to be the same size? We jaw on the concept of autonomous electric cargo ships, and marvel at the challenges of hitting an asteroid with a space probe. All that and we didn’t even mention using GLaDOS as a personal assistant robot, but that’s on the docket too!

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 136: Smacking Asteroids, Decoding Voyager, Milling Cheap, And PS5 Triggered”

This Week In Security: Office 0-day, ForcedEntry, ProtonMail, And OMIGOD

A particularly nasty 0-day was discovered in the wild, CVE-2021-40444, a flaw in how Microsoft’s MSHTML engine handled Office documents. Not all of the details are clear yet, but the result is that opening a office document can trigger a remote code execution. It gets worse, though, because the exploit can work when simply previewing a file in Explorer, making this a potential 0-click exploit. So far the attack has been used against specific targets, but a POC has been published.

It appears that there are multiple tricks that should be discrete CVEs behind the exploit. First, a simple invocation of mshtml:http in an Office document triggers the download and processing of that URL via the Trident engine, AKA our old friend IE. The real juicy problem is that in Trident, an iframe can be constructed with a .cpl URI pointing at an inf or dll file, and that gets executed without any prompt. This is demonstrated here by [Will Dormann]. A patch was included with this month’s roundup of fixes for Patch Tuesday, so make sure to update. Continue reading “This Week In Security: Office 0-day, ForcedEntry, ProtonMail, And OMIGOD”

Powering Up With USB: Untangling The USB Power Delivery Standards

Powering external devices directly from a PC’s I/O ports has been a thing long before USB was even a twinkle in an engineer’s eye. Some of us may remember the all too common PS/2 pass-through leads that’d tap into the 275 mA that is available via these ports. When USB was first released, it initially provided a maximum of 500 mA which USB 3.0 increased to 900 mA.

For the longest time, this provided power was meant only to provide a way for peripherals like keyboards, mice and similar trivial devices to be powered rather than require each of these to come with its own power adapter. As the number of  computer-connected gadgets increased USB would become the primary way to not only power small devices directly, but to also charge battery-powered devices and ultimately deliver power more generally.

Which brings us to the USB Power Delivery (USB-PD) protocol. Confusingly, USB-PD encompasses a number of different standards, ranging from fixed voltage charging to Programmable Power Supply and Adjustable Voltage Supply. What are the exact differences between these modes, and how does one go about using them? Continue reading “Powering Up With USB: Untangling The USB Power Delivery Standards”

Ask Hackaday: What’s The Best Way To Heat A Tent With A Laptop?

For Europeans, August is usually a month of blistering heatwaves, day after day of cloudless skies and burning sun that ripens fruit and turns we locals a variety of shades of pink. Hacker camps during this month are lazy days of cool projects and hot nights of lasers, Club-Mate, and techno music, with tents being warm enough under the night sky to dispense with a sleeping bag altogether.

Sometimes though, the whims of the global weather patterns smile less upon us hackers, and our balmy summer break becomes a little more frigid. At BornHack 2021 for example we packed for a heatwave and were met with a Denmark under the grip of the Northern air mass. How’s a hacker to keep warm?

Continue reading “Ask Hackaday: What’s The Best Way To Heat A Tent With A Laptop?”

a variety of enclosure options

The Many Ways To Solve Your Enclosure Problems

Most projects around here involve some sort of electronics, and some sort of box to put them in. The same is true of pretty much all commercially available electronic products as well.

Despite that, selecting an enclosure is far from a solved problem. For simple electronics it’s entirely possible to spend more time getting the case just right than working on the circuit itself. But most of the time we need to avoid getting bogged down in what exactly will house our hardware.

The array of options available for your housing is vast, and while many people default to a 3D printer, there are frequently better choices. I’ve been around the block on this issue countless times and wanted to share the options as I see them, and help you decide which is right for you. Let’s talk about enclosures!

Continue reading “The Many Ways To Solve Your Enclosure Problems”