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”

A Rant On Personal Software Projects

Looking across your hard drive and GitHub, you might find hundreds of notes and skeletons of Git repositories. A veritable graveyard of software side projects. The typical flow for many of these projects is: get an idea, ruminate on the idea until it becomes exciting, eventually becoming more exciting than the current side project, notes are captured, a repository is created, and work begins at a blistering pace as the focus and excitement are there. There might be some rewrites or some changes in direction. Questions of whether the project is worthwhile or “what even should this project actually be” start to arise. Eventually, enthusiasm wanes as these questions continue to multiply. Progress slows as the path forward seems less clear-cut as it once did. The project is either sunset with a mournful promise to someday return or quietly put aside as something new and exciting comes to take its place. Sound familiar? Perhaps not, but the principles here could be helpful.

This particular article is largely a piece of opinion from one engineer to another. It’s about engineering the process by which you design a project to have better outcomes. There are many reasons why a project could be shelved or scrapped and not all of them are from a lack of clear project definition. In the case where it isn’t clear what the project is, it can be helpful to think about it in a more holistic/meta sense. There are two types of personal projects in broad strokes: technology demos and products.

Continue reading “A Rant On Personal Software Projects”

A bee pollinates a flower.

Even Bees Are Abuzz About Caffeine

Many of us can’t get through the day without at minimum one cup of coffee, or at least, we’d rather not think about trying. No matter how you choose to ingest caffeine, it is an awesome source of energy and focus for legions of hackers and humans. And evidently, the same goes for pollinator bees.

You’ve probably heard that there aren’t enough bees around anymore to pollinate all the crops that need pollinating. That’s old news. One solution was to raise them commercially and then truck them to farmers’ fields where they’re needed. The new problem is that the bees wander off and pollinate wildflowers instead of the fields they’re supposed to be pollinating. But there’s hope for these distracted bees: Scientists at the University of Greenwich have discovered that bees under the influence of caffeine are more likely to stay on track when given a whiff of the flower they’re supposed to be pollinating.

Continue reading “Even Bees Are Abuzz About Caffeine”

Hackaday Links Column Banner

Hackaday Links: September 12, 2021

The last thing an astronaut or cosmonaut on the International Space Stations wants to hear from one of their crewmates is, “Do you smell plastic burning?” But that’s apparently what happened this week aboard the increasingly problematic spacecraft, as the burning smell and visible smoke spread from the Russian Zvezda module to the American side of town. The reports say it occurred while charging the station’s batteries, and we all know how dicey that can get. But apparently, the situation resolved itself somehow, as normal operations continued soon after the event. Between reports of cracks, air leaks, problems with attitude control, and even accusations of sabotage, the ISS is really starting to show its age.

Speaking of burning and batteries, normally a story about burning Tesla batteries wouldn’t raise our eyebrows much. But this story out of California introduces a potential failure mode for Tesla batteries that we hadn’t considered before. It seems a semi-truck with a load of Tesla batteries lost its brakes on Interstate 80 in the Sierra Nevada mountains and ended up flipping across the highway. Video from the scene shows the cargo, which looks like replacement batteries or perhaps batteries salvaged from wrecked cars, scattered across the highway on their shipping pallets. A fire was reported, but it’s not clear whether it was one of the batteries which had gotten compromised in the crash, or if it was something other than the batteries. Still, we hadn’t considered the potential for disaster while shipping batteries like that.

Attention all GNURadio fans — GRCon21 is rapidly approaching. Unlike most of the conferences over the last year and half, GRCon21 will actually be both live and online. We always love the post-conference dump of talks, which cover such a wide range of topics and really dive deeply into so many cool areas. We’re especially looking forward to the SETI talks, and we’re pleased to see our friend Hash, who was on the Hack Chat a while back, scheduled to talk about his smart-meter hacking efforts. The conference starts on September 20 and is being held in Charlotte, North Carolina, and virtually of course. If you attend, make sure to drop tips to your favorite talks in the tips line so we can share them with everyone.

We got a tip this week on a video about how 1/4-wave tuning stubs work. It’s a simple demonstration using a length of coax, a signal generator, and an oscilloscope to show how an unterminated feedline can reflect RF back to the transmitter, and how that can be used to build super-simple notch filters and impedance transformers. We love demos that make the mysteries of RF a little simpler — W2AEW’s videos come to mind, like this one on standing waves.

Continue reading “Hackaday Links: September 12, 2021”

Pick Up The Ball And Run With It

Once in a while we get to glimpse how people build on each other’s work in unexpected and interesting ways. So it is with the GateBoy project, a gate-level emulator built from die shots of the original Game Boy processor. The thing is, [Austin Appleby] didn’t have to start by decapping and taking photos of the chip. He didn’t even have to make his own schematics by reverse engineering those structures. Someone else had already done that and made it available for others to use. A couple of years back, [Furrtek] started manually tracing out the DMG chip and posted schematics to the DMG-CPU-Inside repo, kindly licensing it as CC-BY-SA 4.0 to let people know how they can use the info.

But playing Game Boy games isn’t actually the end game of [Austin’s] meticulous gate-level recreation. He’s using it to build “a set of programming tools that can bridge between the C/C++ universe used by software and the Verilog/VHDL universe used by hardware.” A new tool has been born, not for gaming, but for converting a meta language that assigns four-letter codes to gate structures (somewhat reminiscent of DNA sequences) and will eventually convert them to your choice of C++ or a Hardware Description Language for use with FPGAs.

The open source community is playing four-dimensional football. Each project moves the ball downfield, but some of them add an additional goal in an alternate hardware universe — advancing the aims of both (like finding and fixing some errors in [Furrtek’s] original schematics).

Of course the real challenge is getting the word out that these projects exist and can be useful for something you’re working on. For instance, [Neumi’s] depth sounding rowboat allows an individual to make detailed depth maps of lakes, rivers, and the like. It was in the comments that the OpenSeaMap project was brought up — a site working to create crowd sourced waterway charts. It’s the perfect place for [Neumi] to get inspiration, and help move that ball toward a set of goals.

How do we get the word out so more of these connections happen? We’ll do our part here at Hackaday. But it’s the well-document and thoughtfully-licensed projects that set the up playing field in the first place.