Working With I2S-Compatible FM Tuners

While the Internet is a great place to get access to any music or audio you can dream of, there’s still a place for broadcast radio. [mit41301] has recently been exploring implementing a simple FM tuner chip in various projects.

The chip in question is the RDA7088, which is designed to require the bare minimum in external components, and is available in a compact SOP16 package. As per the datasheet, it was intended for use in applications like portable radios, PDAs, cell phones, and MP3 players.

[mit41301]’s first attempt involved using the chip as a simple tuner, hooked up to a PIC10F200 for control. Investigation revealed it was capable of outputting digital audio via I2S, while being commanded via I2C. By default, it spits out audio at a low sample rate of 8 kHz, but reconfiguration will jump that up to 44.1 or 48 kHz. Piping that digital I2S stream out to a DAC then delivers analog output that can be fed to an amplifier. The build also got remote control, with the PIC handling decoding IR signals and outputting commands to the radio chip.

Following this success, [mit41301] then went further, hooking up an ESP-01 to the chip to try and get RDS going. If you’re unfamiliar with the Radio Data System, it’s a way for short textual messages to be sent out by FM broadcasters. In addition to the duties carried out by the PIC module, the ESP-01 is also charged with receiving RDS data from the RDA7088, and outputting it to a display.

While using such chips is routine in industry, it’s always great to see a DIY guide to interfacing with specific hardware. If you want to integrate FM radio into your own projects, the RDA7088 is a simple and easy way to do so. We’ve seen similar work before, adding FM radio to the Raspberry Pi.

Continue reading “Working With I2S-Compatible FM Tuners”

Ask Hackaday: What’s Going On With Mazdas In Seattle?

What hacker doesn’t love a puzzle? We have a doozy for you. According to KUOW — the NPR affiliate in Seattle — they have been getting an unusual complaint. Apparently, if you drive a Mazda made in 2016 and you tune to KUOW, your radio gets stuck on their frequency, 94.9 MHz, and you can’t change it.

According to a post from the radio station, it doesn’t just affect the FM radio. A listener named Smith reported:

“I tried rebooting it because I’ve done that in the past and nothing happened,” Smith said, “I realized I could hear NPR, but I can’t change the station, can’t use the navigation, can’t use the Bluetooth.”

Continue reading “Ask Hackaday: What’s Going On With Mazdas In Seattle?”

A Raspberry Pi next to a small circuit board

An Inexpensive FM Receiver For The Raspberry Pi

At this point, there are no shortage of impressive hacks for the Raspberry Pi. [Dilshan Jayakody] recently documented his experience in designing and building an inexpensive FM Stereo Receiver for the Pi platform, and the results are impressive.

Quite a few FM receiver projects center around the RDA5807 or TEA5767 ICs, however [Dilshan] has used the QN8035 by Quintic Corporation in his build. A handful of discrete components on a pleasing single-sided PCB is all that is needed to interface the QN8035 with the Pi’s I2C bus.

After demonstrating that the FM tuner could be, well, tuned at the command line, [Dilshan] then coded a smart looking GUI application that makes tuning a breeze. The software allows the listener to manually and automatically scan through FM stations, decode program service data, control the volume, and display the RSSI and SNR readings from the tuner.

As we reported earlier, FM radio is on a slow decline into obsolescence. This latest project isn’t aiming to break new ground, however its simplicity and inexpensive components are the perfect combination for beginner hackers and radio enthusiasts alike. More details can be found over on Hackaday.io. The schematic, source code and bill of materials can be found on GitHub.

Continue reading “An Inexpensive FM Receiver For The Raspberry Pi”

A Homebrew Radio, As All The Best Homebrew Radios Should Be

It started with an old TV sound chip, and some curiosity. The TDA1701 that [Philip Bragg] found in a box of junk is a complete FM IF strip and audio power amplifier from the golden age of analogue PAL televisions, and while it was designed for the 5.5 MHz or 6 MHz FM subcarrier of European broadcast TV, he found it worked rather well at the more usual 10.7 MHz of a radio receiver. There followed a long thread detailing the genesis bit-by-bit of a decent quality VHF radio receiver, built dead-bug-style on a piece of PCB material.

The TDA1701 was soon joined by a couple of stages of IF amplification with a ceramic filter, and then by several iterations of a JFET mixer. A varicap tuned MOSFET RF amplifier followed, and then a local oscillator. Finally it became a fully-functional FM radio, with probably far better performance than most commercial radios. He admits tuning is a little impractical though, with what appears to be a cermet preset potentiometer covering the entire band.

We suspect this project isn’t finished, and we hope he posts the schematic. But it doesn’t really matter if he doesn’t, because the value here isn’t in the design. Instead it lies in the joy of creating an ad-hoc radio just for the fun of it, and that’s something we completely understand.

We’ve covered a lot of radios in our time, and while it might be the first to feature a TV sound chip, it’s not the first built on bare PCB.

The Price Of Domestic Just In Time Manufacturing

Hardware is hard, manufacturing only happens in China, accurate pricing is a dark art. Facts which are Known To Be True. And all things which can be hard to conquer as an independent hardware company, especially if you want to subvert the tropes. You may have heard of [Spencer Wright] via his superb mailing list The Prepared, but he has also been selling an unusual FM radio as Centerline Labs for a few years. Two years ago they relaunched their product, and last year the price was bumped up by a third. Why? Well, the answer involves more than just a hand wave about tariffs.

The Public Radio is a single-station FM radio in a mason jar. It’s a seemingly simple single purpose hardware product. No big mechanical assemblies, no complex packaging, not even any tangential accessories to include. In some sense it’s an archetypically atomic hardware product. So what changed? A normal product is manufactured in bulk, tested and packaged, then stored in a warehouse ready to ship. But TPR is factory programmed to a specific radio station, so unless Centerline wanted one SKU for each possible radio station (there are 300) this doesn’t work. The solution was domestic (US) just in time manufacturing. When a customer hits the buy button, a unit is programmed, tested, packed, and shipped.

As with any business, there is a lot more to things than that! The post gives the reader a fascinating look at all the math related to Centerline Labs’ pricing and expenses; in other words, what makes the business tick (or not) including discussion of the pricing tradeoffs between manufacturing different components in Asia. I won’t spoil the logical path that led to the pricing change, go check out the post for more detail on every part. 

We love hearing about the cottage hardware world. Got any stories? Drop them in the comments!

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”

Edwin Armstrong’s Battle For FM Radio

Chances are you have at least one radio that can receive FM stations. Even though FM is becoming less used now with Internet and satellite options, it still is more popular than the older AM radio bands. FM was the brainchild of an inventor you may have heard of — Edwin Armstrong — but you probably don’t know the whole story. It could make a sort of radio-themed soap opera. It is a story of innovation, but also a story of personal vanity, corporate greed, stubbornness, marital problems, and even suicide. The only thing missing is a long-lost identical twin sibling to turn it into a full telenovela.

Early Days

Armstrong grew up in New York and because of an illness that gave him a tic and caused him to be homeschooled, he was somewhat of a loner. He threw himself into his interest in electric and mechanical devices. By 1909 he was enrolled in Columbia University where professors noted he was very focused on what interested him but indifferent to other studies. He was also known as someone more interested in practical results than theory. He received an electrical engineering degree in 1913.

Unlike a lot of college graduates, Armstrong didn’t go work for a big firm. Instead, he set up a self-financed independent lab at Columbia. This sounded good because it meant that he would own the patents on anything invented there. But it would turn out to be a two-edged sword.

Continue reading “Edwin Armstrong’s Battle For FM Radio”