If Only The Kids Knew About Pipes

Being a parent is hard work. You need to prepare your child to operate in the world. Reading, writing, arithmetic, and how to make good choices are just the beginning. They also ought to know regular expressions and Unix pipes. [Jackdoe] can help with that last one, thanks to their Unix pipe card game.

As an example, the task “print the most common line from a file” would require the answer:

cat 03.txt | sort | uniq -c | sort -n | tail -1

You can vary the rules to declare whoever has the smallest pipe or the largest pipe that accomplishes the task as the winner. We’d add a house rule that whoever has the fastest pipe ought to get something. We don’t, however, think this card game will make the Vegas tables, unfortunately.

You can print your own card deck and even the box. Or you can buy a nice set, if you don’t want to spend the time. You should probably know about cat, grep, tail, head, wc, sort, and uniq along with their options.

If you want some other esoteric kids’ learning activities, they also have “Programming Time” which teaches algorithms and Python, and “4917” to teach the basics of machine code.

If you want help with the other key skill — regular expressions — check out regexp golf or crosswords.

A small green circuit board with a tiny OLED display

An Oscilloscope Trigger For Vintage Video Processors

Working on retro computers is rarely straightforward, as [ukmaker] recently found out while designing a new display interface. Their oscilloscope was having trouble triggering on the video signal produced by older video circuitry, so they created the Video Trigger for Retrocomputers.

The Texas Instruments TMS9918 video display controller was used across a range of 1980s game consoles and home computers, from the well-known ColecoVision to Texas Instruments’ own TI-99/4. Substantial retro computing heritage notwithstanding, the video output from this chip was (for reasons unknown) not quite compatible with the Hantek DSO1502P oscilloscope. And without a better understanding of the video signal, it was difficult to use the chip with newer TFT displays, being designed for CRT televisions with more forgiving NTSC tolerances.

Maybe a different scope would have solved the problem, but [ukmaker] had a feeling that the ‘scope needed an external trigger signal. The Video Trigger project uses a LM1881 sync separator to tease out the horizontal and vertical sync signals from the vintage video chip, with the output piped into an ATmega 328P. Along with a smattering of discrete components, the ATmega aids the user in selecting which line to frame a trigger on, and the slope of the horizontal sync signal to align to. A tiny OLED display makes configuration easy.

If this has piqued your interest, [ukmaker] also has a great write-up over on GitHub with all the gory details. Maybe it will help you in your next vintage computing caper. Having the right tool can make all the difference, like this homebrew logic meter for hobby electronics troubleshooting. Or if you want to know more about the mystical properties of analog NTSC video, we’ve covered that, too.

Whip Up Some Homemade Artisanal Flux

You don’t think much about the power company until you flip the lights on and they don’t come on. The same can be said of soldering flux. You don’t think much about it, usually, until you try soldering without it. Flux has a cleaning action on metal surfaces that allows for a proper solder joint. The problem is, do you have any idea what’s in the flux you are using? We don’t either. [Catsndogs] has a recipe to make your own flux and then you’ll know.

At the heart of rosin flux is basically tree sap. If you live near pine trees, you can source it naturally. If not, you can find it at music instrument stores. Stringed instruments use rosin, so it is readily available. If you do source it yourself, [Catsndogs] reports that it doesn’t matter if it is old or clean.  You do want to pick out as much tree bark and dead ants as you can, though. You essentially dissolve it in alcohol (at least 80% isopropyl or ethanol). Then filter it through filter paper or a coffee filter.

You can adjust the viscosity by allowing the alcohol to evaporate to make the mixture thicker or by adding more alcohol to make it thinner. Thicker flux is good for tacking down SMD parts. As you might expect, this isn’t “no clean” flux. Also, the flux is very flammable, so be careful.

This isn’t the first time we’ve heard of this recipe. Or even the second time. But it is a good reminder that you can make your own free of whatever wacky chemicals are in the commercial preparations.

Art of 3D printer in the middle of printing a Hackaday Jolly Wrencher logo

3D Printering: Managing Multiple Printing Profiles

I know people who have 3D printers that are little more than appliances. They buy it, they print with it, and they don’t change much of anything. That doesn’t describe me and, I’m guessing, it doesn’t describe you either. This does lead to a problem, though, when it comes to slicers. You have to keep changing profiles and modifying them. It can be hard to keep things straight. For example, if you have profiles for different nozzles, you get to make a choice: keep one profile and edit the parts that change, or keep multiple profiles and any common changes have to be propagated to the other profiles.

Part of the reason I want to manage multiple profiles has to do with this mystery object…

I’ve long wanted to create a system that lets me have baseline profiles and then just use specific profiles that change a few items in the baseline. Turns out, I didn’t need to do it. Prusa Slicer and its fork, SuperSlicer, have the capability already. Both of these, of course, are based on Slic3r, but the scripting languages are different and what I’m doing does require G-code scripting. The problem is, this capability is not documented very well and the GUI doesn’t really support it directly, which requires a little sidestepping. I’ll show you how I have things set up and where the limitations are. If you want to try your hand at it, I highly suggest you backup your configuration directory or switch to a new one.

Continue reading “3D Printering: Managing Multiple Printing Profiles”

3D Printing With A Drone Swarm?

Even in technical disciplines such as engineering, there is much we can still learn from nature. After all, the endless experimentation and trials of life give rise to some of the most elegant solutions to problems. With that in mind, a large team of researchers took inspiration from the humble (if rather annoying) wasp, specifically its nest-building skills. The idea was to explore 3D printing of structures without the constraints of a framed machine, by mounting an extruder onto a drone.

As you might expect, one of the most obvious issues with this attempt is the tendency of the drone’s to drift around slightly. The solution the team came up with was to mount the effector onto a delta bot carrier hanging from the bottom of the drone, allowing it to compensate for its measured movement and cancel out the majority of the positional error.

The printing method relies upon the use of two kinds of drone. The first done operates as a scanner, measuring the print surface and any printing already completed. The second drone then approaches and lays down a single layer, before they swap places and repeat until the structure is complete.

Multiple drones can print simultaneously, by flying in formation. Prints were demonstrated using a custom cement-like material, as well as what appeared to be expanding foam, which was impressive feat to say the least.

The goal is to enable the printing of large, complex shaped structures, on any surface, using a swarm of drones, each depositing whatever material is required. It’s a bit like a swarm of wasps building a nest, into whatever little nook they come across, but on the wing.

We’ve been promised 3D printed buildings for some time now, and while we’re not sure this research is going to bring us any closer to living in an extruded house, we’re suckers for a good drone swarm here at Hackaday.

Continue reading “3D Printing With A Drone Swarm?”

Mining And Refining: Cobalt, The Unfortunately Necessary Metal

The story of humankind is largely a tale of conflict, often brought about by the uneven distribution of resources. For as long as we’ve been down out of the trees, and probably considerably before that too, our ancestors have been struggling to get what they need to survive, as often as not at the expense of another, more fortunate tribe. Food, water, land, it doesn’t matter; if They have it and We don’t, chances are good that there’s going to be a fight.

Few resources are as unevenly distributed across our planet as cobalt is. The metal makes up only a fraction of a percent of the Earth’s crust, and commercially significant concentrations are few and far between, enough so that those who have some often end up at odds with those who need it. And need it we do; what started in antiquity as mainly a rich blue pigment for glass and ceramics has become essential for important industrial alloys, high-power magnets, and the anodes of lithium batteries, among other uses.

Getting access to our limited supply of cobalt and refining it into a useful metal isn’t a trivial process, and unfortunately its outsized importance to technological society forces it into a geopolitical role that has done a lot to add to human misery. Luckily, market forces and new technology are making once-marginal sources viable, which just may help us get the cobalt we need without all the conflict.

Continue reading “Mining And Refining: Cobalt, The Unfortunately Necessary Metal”

Playdate Handheld Turned Typewriter

The Playdate is an interesting gaming system. It’s a handheld, has a black and white screen, and superficially reminds us a little bit of the original Game Boy, right down to the button layout. But the fact that it has a second controller that pops out of the side, that this controller is a crank, and that the whole system was made by the same people that made Untitled Goose Game, makes us quite intrigued. Apparently it has made an impact on others, too, because this project turns the gaming system into a typewriter.

The Playdate doesn’t have native support for USB accessories unless it’s plugged into this custom 3D printed dock. Inside of the dock is a Teensy 4.1 which handles some translation between the keyboard and the console. Once the dock is taken care of the text editor needs to be side-loaded to the device as well. The word processor has the ability to move the cursor around, insert and delete text, and the project’s creator, [t0mg], plans to add more features in future versions like support for multiple files, changing the font, and a few other things as well.

For anyone interested in recreating this project, all of the printable files, the text editor, and the schematics are all available in the GitHub repo. It’s an impressive project for a less well-known console that we haven’t seen many other hacks for, unless you count this one-off Arduboy project which took some major inspiration from the Playdate’s crank controller.