Build Your Own… Whatever

You can read all about making, say, a bookshelf or bowling, but unless you’ve actually done it, you don’t really know how it works. That’s the idea behind [codecrafters-io] Build-Your-Own-X GitHub repository. It is a collection of software projects from around the Web that offer “step-by-step guides for recreating our favorite technologies from scratch.”

What can you find there? Well, how about writing your own version of Git itself? Or maybe you’d like to dive into a physics engine, blockchain code, or a text editor. Then there’s our favorite: an operating system.

Continue reading “Build Your Own… Whatever”

Grok Rust In A Flash

Here at Hackaday, we are big proponents of using the best tool for the job (or making your own tool if required). But when all you know how to use is Java, everything looks object-oriented. Bad jokes aside, it is important to have many tools at your disposal to allow you to choose wisely. Why not spend a few minutes with [No Boilerplate] and understand the basics of Rust?

The focus of the video is to go through as much Rust as possible and teach you how to read it. The idea is that rather than work your way from basic concepts, [No Boilerplate] will go over the vast majority of what you’ll see in a Rust-based program. Whether you’re coming from an object-oriented, functional, or just plain C-based background; you’ll feel comfortable since he makes an effort to compare to what you already know. Some of Rust’s more unique features are covered such as mutability, scope, matching, and strings. However, lifetimes, closures, and traits were left out to keep the video short. These topics are covered in an excellent blog post by [Faster than lime] which this video was based on.

What isn’t discussed is running Rust in a no-std environment like a PIC32. Rust has seen exciting development over the past few years with the Linux kernel getting rusty and the compiler getting continually better. Video after the break.

Continue reading “Grok Rust In A Flash”

3D Scanning Trouble? This Guide Has You Covered

When it comes to 3D scanning, a perfect surface looks a lot like the image above: thousands of distinct and random features, high contrast, no blurry areas, and no shiny spots. While most objects don’t look quite that good, it’s possible to get usable results anyway, and that’s what [Thomas] aims to help people do with his tips on how to create a perfect, accurate 3D scan with photogrammetry.

3D scanning in general is pretty far from being as simple as “point box, press button”, but there are tools available to make things easier. Good lighting is critical, polarizers can help, and products like chalk spray can temporarily add matte features to otherwise troublesome, shiny, or featureless objects. [Thomas] provides visuals of each of these, so one can get an idea of exactly what each of those elements brings to the table. There’s even a handy flowchart table to help troubleshoot and improve tricky scan situations.

[Thomas] knows his stuff when it comes to 3D scanning, seeing as he’s behind the OpenScan project. The last time we featured OpenScan was back in 2020, and things have clearly moved forward since then with a new design, the OpenScan Mini. Interesting in an open-sourced scanning solution? Be sure to give it a look.

Casting Parts In Urethane: Tips From A Master

When you want a couple copies of a thing, you can 3D print ’em. When you want a ton of them, you might consider making a mold. If those are the shoes you’re in, you should check out this video from [Robert Tolone] (embedded below). Or heck, just check out all of his videos.

Even just in this single video from a couple years back, there are a ton of tips that’ll help you when you’re trying to pour resin of just the right color into a silicone mold. Mostly, these boil down to testing everything out in small quantities before pouring it in bulk, because a lot changes along the way. And that’s where [Robert]’s experience shines through — he knows all of the trouble spots that you need to test for.

For instance? Color matching. Resin dyes are incredibly concentrated, so getting the right amount is tricky. Mixing the color at a high concentration first and then sub-diluting it slowly allows for more control. But even then, the dried product is significantly lighter than the mixture, so some experimentation is necessary. [Robert] sneaks up on just the right color of seafoam green and then pours some test batches. And then he pours it in the exact shape of the mold just to be sure.

That’s just one of the tips in this video, which is just the tip of the mold-casting iceberg. Pour yourself a coffee, settle down, and you’ll learn something for sure. If you’re into more technical parts and CNC machining, we still love the Guerilla Guide after all these years.

Much thank to [Zane] for tipping us off to this treasure trove.

Continue reading “Casting Parts In Urethane: Tips From A Master”

Working With BGAs: Design And Layout

The Ball Grid Array, or BGA package is no longer the exclusive preserve of large, complex chips on computer motherboards: today even simple microcontrollers are available with those little solder balls. Still, many hobbyists prefer to stay with QFP and QFN packages because they’re easier to solder. While that is a fair point, BGA packages can offer significant space savings, and are sometimes the only choice: with the ongoing chip shortage, some other package versions might simply be unavailable. Even soldering doesn’t have to be complicated: if you’re already comfortable with solder paste and reflow profiles, adding a BGA or two into the mix is pretty easy.

In this article we’ll show that working with BGA chips is not as difficult as it may seem. The focus will be on printed circuit board design: how to draw proper footprints, how to route lots of signals and what capabilities your PCB manufacturer should have. We’ll cover soldering and rework techniques in a future article, but first let’s take a look at why BGAs are used at all.

Continue reading “Working With BGAs: Design And Layout”

Diagram of the LTC protocol, showing the difference between 1 bits and 0 bits - both transmitted using one up and one down pulse, but with '1' bit pulses being half as short.

Animate Arcane Protocols With Interrupt-Backed Bitbanging

We often take our “SoftwareSerial” libraries for granted, and don’t investigate what goes on under the hood — until they fail us, at least. Would you like to learn how to harness the power of interrupt-driven bitbanging? [Jim Mack] teaches us how to make our protocol implementations fly using the LTC protocol as a springboard.

LTC (Linear/[Longitudinal] TimeCode) is a widely-used and beautifully-crafted protocol that tends to fly under our radar, and is one that hackers could learn plenty from. It’s used for synchronization of audio/video devices during media production and playback. LTC’s signal is almost digital but not quite: it doesn’t need a clock, and it has no polarity. Additionally, it mimics an audio signal really well, you can decode it at any playback speed, and many other benefits and quirks that [Jim] outlines. You do need to maintain the timings, though, and [Jim]’s article shows us how to keep them right while not inconveniencing your primary tasks.

Continue reading “Animate Arcane Protocols With Interrupt-Backed Bitbanging”

PVC Pipe Transformed Into Handy Tool Box

Would you believe the multi-tiered toolbox pictured here started its life as a piece of bog standard PVC pipe? It certainly wouldn’t be our first choice of building material, but as shown in the video after the break, it only takes a heat source and something suitably flat to convert a piece of PVC pipe into a versatile sheet material.

Flattening the heated PVC.

Unrolling the PVC pipe and getting it flat is covered in the first minute of the video, while the rest of the run time is dedicated to building the tool box. Each and every piece you see here, except for the screws and lid hinges, is carefully cut from the PVC sheet. Though we suspect a few more chunks of pipe went into this build than the video would have you believe.

Would we build such an elaborate box if we had to cut each piece of the thing out by hand? Probably not. But then, we can’t deny the final results here are pretty impressive. Incidentally, if you thought those hinges on the top looked a lot like links removed from a watch band…you’d be correct.

Admittedly we’re a bit late covering this one, and under normal circumstances we might have let it slip by given the several million views it’s amassed over the last year. But the central theme of reusing a common material to build something unexpected is solid Hackaday territory, and aligns closely with this year’s Hackaday Prize challenges.

Continue reading “PVC Pipe Transformed Into Handy Tool Box”