We aren’t suggesting you go digging through the trash looking for empty cans, but if you’ve already got some empty cans in the privacy of your own home, you could certainly do worse than turning them into unique enclosures for your electronics projects. Better than sitting in the landfill, surely.
This hack from [Robin Hartley] turns an empty Cadbury hot chocolate can into a portable speaker that’s sure to get some attention. But don’t be fooled: a surprisingly amount of engineering went into this project in the form of a 3D printed structure on the inside of the can. Even if you aren’t big on the idea of putting your next project into a piece of literal trash, there’s something to be said for how professionally everything fits together in this build.
The key to this build is the 3D printed “skeleton” that holds the speaker and circuit board in place. An especially nice touch is how [Robin] designed the mount for the speaker: as it had no flange to attach to, he made a two piece clamp that screws together around the rear of the speaker and holds it in place.
You may wonder why somebody who’s clearly as well versed in CAD and 3D printing as [Robin] is might want to use an empty can as an enclosure; surely he could just design and print a case? Undoubtedly. But the goal here is to reuse what would otherwise be trash, and that occasionally means taking the “scenic” route as it were.
To take this concept to the next level, check out the upcycled speaker box we recently covered. We’ve seen some gorgeous home audio builds that started as a curbside find, but depending on how lucky you are, it’s almost like cheating.



[tomek] was aware of this hip knowledge domain called Digital Signal Processing but hadn’t done any of it themselves. Like many algorithmic problems the first step was to figure out the fastest way to bolt together a prototype to prove a given technique worked. We were as surprised as [tomek] by how simple this turned out to be. Fundamentally it required a single function – cross-correlation – to measure the similarity of two data samples (audio files in this case). And it turns out that
At this point all that was left was packaging it all into a one click tool to listen to the radio without loading an entire analysis package. Conveniently Octave is open source software, so [tomek] was able to dig through its sources until they found the bones of the critical xcorr() function. [tomek] adapted their code to pour the audio into a circular buffer in order to use an existing Java FFT library, and the magic was done. Piping the stream out of ffmpeg and into the ad detector yielded events when the given ad jingle samples were detected.





