The Most Useless Tools You Can’t Seem To Part With

I’m a tool person. No matter how hard I try, I eventually end up with a bunch of tools that I just can’t bear to banish from my workshop. Why? I’m gonna keep it 100%: it’s the same emotion behind hoarding — fearing that you might need a thing later and not be able to have it.

The stuff costs money, and if you have to script to buy a bunch of tools pertaining to Project X, you expect to still have and probably need those very same tools — even if they have to sit in a box on my shelf for 20 years, taunting me every time I have to move it to one side.  “Heat-bending element” the box’s label describes at tool I haven’t used in at least 5 years. I have a bunch of these white elephants. I’ll probably need to heat-bend acrylic real soon… yeah.

I’ve found that pretty much everyone in our crowd can relate. You buy a special tool for one project and it was expensive and tremendously helpful, and since then it’s been sitting around uselessly. You certainly couldn’t part with it, what if you needed it again? So you store it in your house for 20 years, occasionally coming across it when looking for something else, but it never actually gets used.

Join me now in a walk down our memory lane of useless tools.

Continue reading “The Most Useless Tools You Can’t Seem To Part With”

Raspberry Pi Media Streamer Is Combat Ready

We are truly living in the golden age of media streaming. From the Roku to the Chromecast, there is no shortage of cheap devices to fling your audio and video anywhere you please. Some services and devices may try to get you locked in a bit more than we’d like (Amazon, we’re looking at you), but on the whole if you’ve got media files on your network that you want to enjoy throughout the whole house, there’s a product out there to get it done.

But why buy an easy to use and polished commercial product when you can hack together your own for twice the price and labor over it for hours? While you’re at it, why not build the whole thing into a surplus ammo can? This the line of logic that brought [Zwaffel] to his latest project, and it makes perfect sense to us.

It should come as no surprise that a military ammo can has quite a bit more space inside than is strictly required for the Raspberry Pi 3 [Zwaffel] based his project on. But it does make for a very comfortable wiring arrangement, and offers plenty of breathing room for the monstrous 60 watt power supply he has pumping into his HiFiBerry AMP+ and speakers.

On the software side the Pi is running Max2Play, a Linux distro designed specifically for streaming audio and video remotely. [Zwaffel] says that with this setup he is able to listen to music on his Squeezebox server as well as watch movies via Kodi.

While none are quite as battle-hardened as this, we have seen several other Raspberry Pi Squeezebox clients over the years if you’re looking for more inspiration.

Interactive Visual Programming With Vvvv

Did you ever feel the urge to turn the power of image processing and OCR into music? Maybe you wanted to use motion capture to illustrate the dynamic movement of a kung-fu master in stunning images like the one above?  Both projects were created with the same software.

vvvv -pronounced ‘four vee’, ‘vee four’ and sometimes even ‘veeveeveevee’- calls itself ‘a multi purpose framework’, which is as vague and correct as calling a computer ‘a device that performs calculations’. What can it do, and what does the framework look like? I’d like to show you.

Since its first release in 1998 the project has never officially left beta stage. This doesn’t mean the recent beta releases are unstable, it’s just that the people behind vvvv refrain from declaring their software ‘finished’. It also provides an excuse for some quirks, such as requiring 7-zip to unpack the binaries and the UI that takes some getting used to. vvvv requires DirectX and as such is limited to Windows.

With the bad stuff out of the way, let’s take a look what vvvv can do. First, as implied by the close relationship with DirectX, it’s really good at producing graphics. An example for interactive video is embedded below the break. With its data flow/ visual programming approach it also lends itself to rapid prototyping or live coding. Modifications to a patch, as programs are called in this context, immediately affect the output.

The name ‘patch’ harkens back to the times of analog synthesizers and working with vvvv has indeed some similarities with signal processing that will make the DSP nerds among you feel right at home.

Continue reading “Interactive Visual Programming With Vvvv”

Restoring A Tonka Truck With Science

The yellow Tonka Truck. Instantly recognizable by any child of decades past, that big metal beast would always make you popular around the sandbox. There were no blinking lights to dazzle, no noises to be heard (unless you count the hard plastic wheels rolling on concrete), even the dumping action is completely manual. But back then, it was a possession to be treasured indeed.

So it’s perhaps no surprise that there is a certain following for these classic trucks today, though like with most other collectibles, a specimen in good condition can be prohibitively expensive. The truck that [PoppaFixIt] found in the trash was certainly not one of those specimens, but with some patience and knowledge of basic chemistry, he was able to bring this vintage toy back to the present.

The first step was to disassemble the truck. Before they switched over to Chinese mass production, these trucks were built with actual rivets. After drilling them out and unfolding the little metal tabs that toy makers loved back in the day, he was able to separate the metal body of the truck from the plastic detail bits. The plastic parts just needed a fresh coat of paint, but the rusted metal body would need a bit more attention.

Remembering a tip he read online, [PoppaFixIt] decided to attempt electrolytic rust removal to get the metal parts back into serviceable condition. A big plastic bin, some washing soda, and old steel window weights for his sacrificial anodes was all the equipment he needed for the electrolysis tank. To power the chemical reaction he used a standard 12 volt car battery and charger wired in parallel; this step is important, as he notes most newer chargers are smart enough not to work unless they see a real battery connected.

After running the setup overnight, the collected rust and junk on the window weights was proof enough the process worked. From there, it was just a fresh coat of yellow paint, a new sticker kit from eBay, and his Tonka truck was ready to face another 30+ years of service.

If you’re looking to restore things larger than a child’s toy, you may be interested in the much larger electrolytic setup we’ve covered previously. Of course if you’re really pressed for time, you could try blasting the rust away with a laser.

Remote controlled Billy from the Saw movies

Pi-Controlled Billy From The Saw Horror Flicks

[David0429] has made a very scary Raspberry Pi controlled puppet. Scary that is if you’ve seen the Saw movies where a serial killer uses one like it, called Billy, to communicate with his victims. If you haven’t, then it’s a pretty neat remote-controlled puppet-on-a-tricycle hack.

A stepper motor hidden under the front fender moves the trike by rotating the front wheel. It does this using a small 3D printed wheel that’s attached to the motor’s shaft and that presses against the trike’s wheel. Steering is done using a 3D printed gear mounted above the fender and attached to the steering column. That gear is turned by a servo motor through another gear. And another servo motor in the puppet’s head moves its mouth up and down.

All these servos and motors are wired to an Adafruit stepper motor HAT stacked on a Raspberry Pi hidden under the seat. Remote control is done from a webpage in any browser. The Flask python web framework runs on the Pi to both serve up the webpage and communicate with it in order to receive commands.

[David0429] took great care to make the puppet and tricycle look like the one in the movie. Besides cutting away excess parts of the trike and painting it, he also ran all the wires inside the tubular frame, drilling and grinding out holes where needed.  The puppet’s skeleton is made of wood, zip ties and hinges but with the clothes on, it’s pretty convincing. Interestingly, the puppet in the first movie was constructed with less sophistication, having been made out of paper towel rolls and papier-mâché. The only things [david0429] would like to do for next time are to quieten the motors for maximum creepiness, and to make it drive faster. However, the need for a drive system that could be hidden under the fender resulted one that could only work going slowly. We’re thinking maybe driving it using the rear wheels may make it possible provide both speed and stealth. Ideas anyone?

In any case, as you can see in the video below, the result is suitably creepy.

Continue reading “Pi-Controlled Billy From The Saw Horror Flicks”

Teensy Script Plays Nintendo Switch, Strikes Out

The most recent of the Zelda franchise, Breath of the Wild, is known for its many, many puzzles.  One of the more frustrating ones involved bowling with a giant snowball at the top of a hillside.  [Bertrand] did not like this, so he cheated the system hacked the Nintendo Switch so that he “genuinely earned” a strike every time he played.  He achieved this by writing a script for a Teensy module that got him those sweet rupees.

The Teensy houses an Atmel 90USB1286 microcontroller.  When paired with LUFA software, it can emulate numerous controllers including keyboards, joysticks, etc.  It also handily has a Mini-B USB connector located on its rear, allowing it to communicate to the Switch with ease.  After confirming the hardware was compatible, [Bertrand] looked towards the software side noticing the similarity between what already existed and what he was attempting to accomplish.  He happened upon this in a Splatoon 2 fork that allows players to draw posts. 

In essence, it takes image files as input and emulates the controls and buttons to draw a 1-bit version of the image automatically.  This takes care of syncing the hardware as well as how to simulate the button presses.  But instead of reading an image file, it needed to take a custom script as the input.  This required starting from scratch.  The first logical step — of course — was to create a language similar to Logo, a name that surely brings back memories of the time of big hair and shoulder pads.  He only needed a handful of simple commands to control Link:

typedef enum {
	UP,
	DOWN,
	LEFT,
	RIGHT,
	X,
	Y,
	A,
	B,
	L,
	R,
	THROW,
	NOTHING,
	TRIGGERS
} Buttons_t;

Continue reading “Teensy Script Plays Nintendo Switch, Strikes Out”

FPGA Metastability Solutions

Gisselquist Technology recently posted a good blog article about metastability and common solutions. If you are trying to learn FPGAs, you’ll want to read it. If you know a lot about FPGAs already, you might still pick up some interesting tidbits in the post.

Don’t let the word metastability scare you. It is just a fancy way of saying that a flip flop can go crazy if the inputs are not stable for a certain amount of time before the clock edge and remain stable for a certain amount of time after the clock edge. These times are the setup and hold times, respectively.

Normally, your design tool will warn you about possible problems if you are using a single clock. However, any time your design generates a signal with one clock and then uses it somewhere with another clock, metastability is a possible problem. Even if you only have one clock, any inputs from the outside world that don’t reference your clock — or, perhaps, any clock at all — introduce the possibility of metastability. Continue reading “FPGA Metastability Solutions”