Cross-Correlation Makes Quick Work Of Ads

Once relegated to the proverbial Linux loving Firefox user, ad blocking has moved into public view among increased awareness of privacy and the mechanisms of advertising on the internet. At the annual family gathering, when That Relative asks how to setup their new laptop, we struggle through a dissertation on the value of ad blockers and convince them to install one. But what about mediums besides the internet? Decades ago Tivo gave us one button to jump through recorded TV. How about the radio? If available, satellite radio may be free of The Hated Advertisement. But terrestrial radio and online streams? [tomek] wasn’t satisfied with an otherwise sublime experience listening streaming Polish Radio Three and decided to build a desktop tool to detect and elide ads from the live audio stream.

[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 Octave provides it in the box. After snipping the start-of-ad jingle out of a sample file and comparing it to a radio program [tomek] got the graph at the left. The conspicuous spike is the location of the jingle in the audio file.

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.

[tomek] packaged that tool into a standalone executable, but the gem here is the followup post. After removing ads in the online stream they adapted a RaspberryPi to listen to an FM receiver and remote control their Yamaha tuner over the network. So when the tuner is playing Radio Three the Pi notices and ducks the audio appropriately to avoid those pesky ads. Video of this after the break.

Continue reading “Cross-Correlation Makes Quick Work Of Ads”

An Upcycled Speaker Box With Hidden Features

At first glance, this fire engine red speaker box built by [NoshBar] looks straightforward enough. Just an MDF case and couple of drivers recovered from a trashed stereo. But the array of controls and connectors on the front, and a peek on the inside, shows there’s more to this particular project than meets the eye.

Built almost entirely from parts [NoshBar] found in the trash, construction started with some salvaged MDF IKEA shelves and their corresponding twist lock cam fittings. We don’t usually see those style cam fittings used to build DIY enclosures, but if it works for all those furniture manufacturers why not?

A pair of Sony stereo speakers he found gave up their internals, and a TPA3116 amplifier board off of eBay drives them. He’s wired up an audio pass-through mode for using headphones when the amplifier is powered off, and dual inputs so he can switch between PC and PS4.

But the audio components are only half of what’s inside that shiny red exterior. [NoshBar] packed in an ATX PSU and broke out the 3.3 V, 5 V, and 12 V lines to the front panel so he can use it as a bench power supply for his Arduino projects. It’s also home to a gigabit Ethernet switch and a Raspberry Pi acting as a file server.

We’re always amazed at what hackers are able to accomplish with parts they’ve literally pulled out of the trash, from a waterwheel to charge your phone to a functional CNC router. It seems there’s plenty of treasure in your local dumpster if you’re willing to get a little dirty.

Hacked LCD Shutter Glasses See The Light

It’s always a little sad to see a big consumer technology fail. But of course, the upside for us hacker types is that the resulting fire sale is often an excellent source for hardware that might otherwise be difficult to come by. The most recent arrival to the Island of Unwanted Consumer Tech is 3D TV. There was a brief period of time when the TV manufacturers had nearly convinced people that sitting in their living room wearing big dorky electronic glasses was a workable solution, but in the end we know how it really turned out.

Those same dorky glasses are now available for a fraction of their original price, and are ripe for hacking. [Kevin Koster] has been playing around with them, and he’s recently came up with a circuit that offers the wearer a unique view of the world. Any reflective surface will look as though it is radiating rainbows, which he admits doesn’t show up as well in still images, but looks cool enough that he thought it was worth putting the board into production in case anyone else wants in on the refraction action.

To explain how it works, we need to take a couple of steps back and look at the mechanics of the LCD panels used in these type of glasses. At the risk of oversimplification, one could say that LCDs are sort of like capacitors: when charged the crystals align themselves in such a way that the polarization of the light passing through is changed. Combined with an external polarization filter, this has the end result of turning the panel opaque. To put the crystals back in their original arrangement, and let the light pass through again, the LCD panel is shorted out in the same way you might discharge a capacitor.

What [Kevin] found was that if he slowly discharged the LCD panel rather than shorting it out completely, it would gradually fade out instead of immediately becoming transparent. His theory is that this partial polarization is what causes the rainbow effect, as the light that’s passing through to the wearers eyes is in a “twisted” state.

[Kevin] has provided all of the information necessary to build your own “Rainbow Adapter”, but you can also purchase a kit or assembled board from Tindie. If you’re looking for other projects to make use of those 3D glasses collecting dust, how about turning them into automatic sunglasses or having a go at curing your lazy eye.

A Unique Microphone Preamp

We live in a world in which nearly any kind of gadget or tool you can imagine is just a few clicks away. In many respects, this has helped fuel the maker culture over the last decade or so; now that people aren’t limited to the hardware that’s available locally, they’re able to create bigger and better things than ever before. But it can also have a detrimental effect. One has to question, for instance, why they should go through the trouble of building something themselves when they could buy it, often for less than the cost of the individual components.

The critic could argue that many of the projects that grace the pages of Hackaday could be supplanted with commercially available counterparts. We don’t deny it. But the difference between buying a turn-key product and building an alternative yourself is that you can make it exactly how you want it. That is precisely why [Sam Izdat] created this truly one of a kind microphone preamplifier. Could he have bought one online for cheaper? Probably. Could he have saved himself an immense amount of time and effort? Undoubtedly. Do we care? Not in the slightest.

The amplifier is based on the Texas Instruments INA217 chip, with an Arduino Nano and 128×64 OLED display providing the visualization. [Sam] was able to find a bare PCB for a typical INA217 implementation on eBay for a few bucks (see what we mean?), which helped get him started and allowed him to spend more time on the software side of things. His visualization code offers a number of interesting display modes, uses Fast Hartley Transforms, and very nearly maxes out the Arduino.

But perhaps no element of this build is as unique as the case. The rationale behind the design is that [Sam] wanted to compartmentalize each section of the device (power supply, amplifier, visualization) to avoid any interference. The cylindrical shapes were an issue of practicality: the compartments were constructed by using a hole saw to make wooden discs, which were then glued together and hollowed out. The case was stained and coated with polyurethane, but due to some slightly overzealous use of glue and fillers, the coloring isn’t uniform. This gives the final piece a somewhat weathered look, in sharp contrast to the decidedly high-tech looking display.

Overall, this build reminds us of the modular 3D printed amplifier we saw earlier in the year combined with these speaker-integrated Arduino VU meters.

Continue reading “A Unique Microphone Preamp”

Playing Jedi Mind-Tricks On Your TV

Gesture-enabled controls mean you get to live out your fantasy of wielding force powers. It does, however, take a bit of hacking to make that possible. Directly from the team at [circuito.io] comes a hand gesture controller for Jedi mind-trick manipulation of your devices!

The star of the show here is the APDS-9960 RGB and gesture sensor, with an Arduino Pro Mini 328 doing the thinking and an IR transmitter LED putting that to good use. The Arduino Sketch is a chimera of two code examples for IR LEDs and the gesture sensor — courtesy of the always estimable Ken Shirriff, and SparkFun respectively.

Of course, you can have the output trigger different devices, but since this particular build is meant to control a TV the team had to use a separate Arduino and IR receiver to discover the codes for the commands they wanted  to use. Once they were added to the Sketch, moving your hand above the sensor in X, Y or Z-axes executes the command. Voila! — Jedi powers.

Continue reading “Playing Jedi Mind-Tricks On Your TV”

Fix Your Insecure Amazon Fire TV Stick

I recently spent a largely sleepless night at a hotel, and out of equal parts curiosity and boredom, decided to kill some time scanning the guest network to see what my fellow travelers might be up to. As you’d probably expect, I saw a veritable sea of Samsung and Apple devices. But buried among the seemingly endless number of smartphones charging next to their sleeping owners, I found something rather interesting. I was as picking up a number of Amazon-made devices, all of which had port 5555 open.

As a habitual Android tinkerer, this struck me as very odd. Port 5555 is used for Android Debug Bridge (ADB), a development tool used to control and perform various administrative tasks on an Android device over the network or (more commonly) locally over USB. The number of users who would have legitimately needed to enable network ADB on their devices is surely rather low, so to see a half dozen of them on the network at the same time seemed improbable to say the least.

Why would so many devices manufactured by Amazon all have network ADB enabled? I realized there must be a connection, and it didn’t take long to figure it out.

Continue reading “Fix Your Insecure Amazon Fire TV Stick”

Gramazon Gives Your Echo Dot A 1920’s Makeover

Unless you’re particularly fond of hockey pucks, you probably aren’t really keen on the aesthetics of the NSA’s Amazon’s diminutive listening device, the Echo Dot. It’s not exactly ugly, but if anyone at Amazon spent more than ten minutes considering the visual design of the thing when it was being developed, we’d be shocked.

Luckily for us, there are hackers and makers who not only have the artistic chops to come up with visually appealing designs, but are kind enough to share them with those of us who are a few crayons short of a full box in that department. Such is the case with the jaw-dropping Gramazon by [Bård Fleistad], a 3D printed acoustic amplifier for the Echo Dot that converts the ho-hum looking device into a classic 1920’s style “horn” speaker.

[Bård] has wanted a horn speaker for awhile, but the prices on a real one in decent condition are getting pretty high. If he couldn’t have the real deal he figured the next best thing would be to 3D print his own version, but he’d still need electronics to put into it. Since the Echo is readily available and works as a Bluetooth speaker (not to mention plays audio from various online sources), it made sense to use it as the heart of his faux-horn.

The design he came up with is very slick, but the finish work on the printed parts is really what puts this project over the edge. [Bård] used Bondo and multiple primer coats to smooth the outside of the horn, and XTC-3D for the hard-to-reach internal curves. Plus sanding. Lots, and lots, of sanding.

If you’re looking for more information on putting high quality finishes on your 3D printed parts like this, check out our Visual 3D Print Finishing Guide. Or if you’d rather just find a swanky home for your always-listening hockey puck, we’ve got plenty of inspiration for you there as well.

Continue reading “Gramazon Gives Your Echo Dot A 1920’s Makeover”