Close
0%
0%

Raspberry Pi Jazz Radio

The old radio to play old songs on new hardware

Similar projects worth following
I've always loved the look of older radios, a long with that i've always had a strong love for jazz music. Recently i've decided that the pefect thing to add to my desk was something to play jazz, but when i had that idea i felt that i needed to take it one step further. I found an old radio built in the 1930's and won the auction on it, i'm planning on restoring the condition of the case and using a raspberry pi along with some other components to play jazz music from an archive i found on archive.org (found here: https://archive.org/details/davidwnivenjazz?&sort=-publicdate&page=1) which contains a massive library of music (nearly 640gb).

Project Completed 08/04/2016

I first had the idea for this project a few months ago, i wanted a radio that could play jazz all day and all night in such a way that i could enjoy it well enough without hearing the same song over and over. The real enabling factor for this project was the large online archive that i found made by David W. Niven (Found here: https://archive.org/details/davidwnivenjazz) .

I didn't really want to build an internet radio, i felt like that project was too well laid out and that in the end it'd come down to "put the pi in the box, flash the SD card, and hook up the speakers". I could be wrong about that but there seems to be a fair bit of support for ready-made solutions such as MPC Radio.

I wanted to go my own route, and do something that i haven't seen done before. I know that in the end what I've created is basically a fancy MP3 player, but its something i'm incredibly happy with and which frees me from the external working condition of having an internet connection. The Radio is beautiful and it works fantastically, i cannot be happier with how this project turned out. Take a look through the project logs and see how i did it at each stage, i put a lot of time into recording this project so i hope that you enjoy it!

I'm just going to include some questions that I've been asked by friends when they saw the project either in progress or completed, hopefully this saves at least one person from making a comment.

Q: How's the audio quality? the videos that were posted seem to be a bit lacking.

the quality is about as good as its going to get, the audio circuit and the speakers work fantastically, unfortunately the archive that i got all the music from is actually an archive of old cassette tapes which contain recordings made between 1920 and 1990, there's very little extra that i can do to reduce the noise in the sound. I knew this would happen and i'm not unhappy about it, i chose to restore an old radio purposely because i thought it would make the entire project feel more authentic, and it did. I genuinely believe that someone walking into the room, who saw this radio, would think nothing of the audio quality due to the design of the radio itself.

Q: did the radio work when you got it?

it did not, i picked the radio up on ebay for $50 in an auction, it was found in the attic of a house which was sold. When i got it and removed the guts so that i could begin restoring it i found that it had for the most part rotted away. Many of the wires were cracking and falling apart, not to mention that whatever was originally powering this thing was gone.

another clip of radio working.webm

i made two clips, here's the second.

Open Web Media Project - Video - 19.94 MB - 09/05/2016 at 06:07

Download

Clip of Radio Working.webm

here's a clip of the radio working for your viewing pleasure.

Open Web Media Project - Video - 22.97 MB - 09/05/2016 at 04:56

Download

attiny_ADC_for_radio_project.zip

Program for the ATiny which reads the pot for the pi (really its not a complicated program at all)

Zip Archive - 914.00 bytes - 09/04/2016 at 06:24

Download

  • 1 × ATTINY85 Microprocessors, Microcontrollers, DSPs / ARM, RISC-Based Microcontrollers
  • 2 × PAM8403 Audio ICs / Audio Amplifiers
  • 1 × Raspberry PI B+
  • 2 × 10k potentiometer
  • 1 × 3300uf 25v capacitor

View all 13 components

  • Electronics and Project Completion

    Matthew James Bellafaire09/05/2016 at 05:54 0 comments

    With the entire front face of the radio complete it's time to move to the internals which actually make the thing do its jazzy magic. I'm not going to say everything was clean or professional, but for the most part it looks good and functions very well as long as you don't get into the fine details (or hate hot glue).

    i started with the hard drive since it's by far the largest component in this assembly. I also decided pretty early that this was what i was going to mount the pi and the audio board on top of, since it has so much real estate being wasted on its top.

    the hard drive dock is held by screws which come up through the base. The nuts on these screws serve a double purpose:

    first they hold the hard drive dock firmly to the base, preventing it from moving.

    second they hold the hard drive itself firmly against the connector ensuring that it won't be bumped out of place which would cause the entire radio to stop functioning.

    mounting the pi was simple, i just picked a spot and hot glued it down. I know that it has mounting screws but for my purposes this was much quicker and it got the job done well.

    i really hate to skip steps like this but i forgot to take pictures at this point in the project. I next added the audio board which i completed in a previous log. this takes 5v in which isn't hard to come by, and in combination with the power demands of the pi, makes a great board for this project. The power source for this entire project comes in the form of that block of electrical tape. Inside there are two different wall warts, one is a 4 USB phone charger and the other is a 12v dc adapter for the external hard drive. Both are wrapped (mostly) safely in the electrical tape and hot glued to the base. power is run directly from those two boards and into the rest of the radio. at the end of the day everything functions perfectly.

    Everything was cleaned up using a staple gun and zip ties, i did my best to manage the wires, and i feel pretty confident that i did a good job here.

    the final product looks fantastic! if anyone wonders whether the thing is actually working, check the files on this project's hackaday.io page, i included a quick webm of me changing the volume and songs on the radio using the knobs.

    thanks to everyone who followed this project, i hope that it lived up to your expectations, i know it certainly did mine.

  • Minor Restorations To The Front Of The Radio!

    Matthew James Bellafaire09/05/2016 at 05:29 0 comments

    this is where we left off in the last project log, the speakers had just been attached. Anyone who's been following this project will notice that the orginal radio came with brass trimmings around the tuning needle and above the mechanical station select (what i presume it to be, it never worked when i got it).

    when i first got the radio these were in pretty bad shape. The plastic over the tuning needle was pretty foggy and the brass on both trims was dirty and tarnished.

    i managed to restore the first trim pretty well using some steel wool and headlight cleaning compound, i think that's as close as i'm going to get it to brand new. some high grit sandpaper would probably give it a nicer finish and even get more crud out, but given the thickness of this brass i don't want to make it weaker than it already is.

    the other brass part didn't clean up nearly as nicely, but it did manage to gain some nice highlights that i think work well when everything's assembled.

    Finally i brought everything together, including the original internals which I've modified to work with the circuitry i'm adding into this project. Add some knobs that i found on ebay for a decent price and we have the front part of the radio complete.

  • Speaker Mounting

    Matthew James Bellafaire09/05/2016 at 05:18 0 comments

    the project was actually finished today but i think that i'm going to split up all the steps i took into separate logs, just to prevent having one massive log. first things first i added two more coats of polyurethane, although this image doesn't show it very well on account of the awful lighting it is noticeable in person.

    The speakers are both mounted to a piece of half inch plywood which has nuts to hold the wood tight to the front of the radio. here's a picture with this entire part of the project completed.

    i started with the plywood, then marked out and drilled the appropriate holes.

    found some screws.

    and mounted the speakers. the only thing left to do on the speaker assembly was to flatten these screws which would definitely poke holes in the grill cloth. its not very clean but it gets the job done, plus the wood here won't even be visible from the outside due to the grill cloth.

    i put the screws in first, then ran the grill cloth over the screws to ensure that it stayed even. the grill cloth was then held down by putting the speaker assembly on behind it which firmly holds it in place. some nuts keep everything in order. Everything came together pretty well, the grill cloth is both supported and held in by the plywood to its back and both the speakers are held in tight. in the next log i'll go over some of the smaller restorations i made to the front.

  • Audio Board Complete

    Matthew James Bellafaire09/04/2016 at 06:10 0 comments

    audio control on this project has been my biggest enemy, i tried for awhile to have it controlled on the PI (which would have been a much better solution) but ended up with just building a circuit for it. Even this one isn't very clean, currently it has a few issues with the volume, notably the fact that i only have 10k pots laying around so the range on the volume is entirely controlled by the first quarter turn. and the two boards are slightly redundant, i had much better results on my breadboard by running two modules each with a different channel. the volume is controlled by a pot which essentially just shorts the signal to ground in varying degrees and prevents it from getting to the modules (the pots going to be mounted to the inside of the radio and not the board, the header is for wires to come in). the connectors make the hookup nice and easy. All and all i'm decently happy with this board, its hit the point of "good enough" for this project, especially considering the quality of the audio from the archive.

    i also forgot to mention that the attiny sitting in the corner is its own circuit, its for communication to the PI. it just activates a pin when it detects a significant change in the pot its connected to. the entire attiny circuit runs on 3.3v directly from the PI.

    all that's left to do is to put the circuit in the radio box and see how it all works together, hopefully there's more project logs comming!

  • Nearly There

    Matthew James Bellafaire09/02/2016 at 05:30 0 comments

    This project has had way more setbacks then i ever thought were possible. For the last week or two I've been trying to work with the pi to control the audio on the speakers. Unfortunately the player i'm using (omxplayer) doesn't support volume control during the playing of a song. Also every python wrapper i attempted to use with it seemed to have little to no documentation on the functions i needed or flat out these functions didn't have any code in them when i looked at the source.

    either way the electronics are as complete as i'm going to make them for the time being. The speakers are controlled by two PAM8403 each handling 1 speaker. Technically these can handle both speakers with ease but I've gotten better results sound quality wise by doing this. I'm pretty sure it has everything to do with the circuit surrounding the board and not the boards themselves, but i'm pretty eager at this point to get everything together and have this radio on my desk.

    other than that everything seems to be in perfect order. My next update will probably have the boards soldered and everything ready to be put into the box. see you then!

  • General Update

    Matthew James Bellafaire08/15/2016 at 06:22 0 comments

    Its been a week since my last update, currently the project stands somewhere past halfway completion (fingers crossed). I'm attempting to keep the finished project looking as close to the original as possible, because of this i've decided to use the original dials and buttons for a control interface. When i got the radio the string which connected the tuner knob to the needle and the rest of the radio's tuner circuitry broke, I've since repaired that.

    in addition to that I've also added a potentiometer additionally attached to the wheel which controls the needle. My plan from the start was to use the tuner knob as a kind of shuffle button so that it will pick a random track whenever the knob was turned.

    the rest of the work was just some small soldering and wire clipping. a lot of the internal circuitry still exists inside the metal box but i don't see any reason to remove it.

    for the most part the radio box is ready to go, all that is left is the code for the pi and the audio system for which i'll be using a PAM8403 (or maybe two) along with speakers salvaged from old CRT TVs, which i am in no shortage of.

    the circuitry for the pi could be better. Due to the pi's lack of audio reading capability I've opted to use a attiny85 as a makeshift ADC for the two potentiometers which will control the song shuffling and the volume. all and all it works pretty well, along with that I've opted to use a desktop drive dock which I've thrown a salvaged hard drive into to store the music. I've also managed to download the music archive (at least all the mp3 files) which is in total 85GB. the hard drive and the code running on the attiny work perfectly as they're suppose to. I've had many setbacks with the pi however, mostly having to do with the audio player I've decided to use OMXplayer and its lack of code control-ability and the inconsistent reliability of wrappers for it. I'm hoping to find something better soon but i may just have to make due.

  • Stain and Finish

    Matthew James Bellafaire08/06/2016 at 08:09 0 comments

    the new stain and finish is on. I opted for a two color finish to match the original a bit more closely and added a polyurethane coating to protect the wood. Now its time to start working on the electronics

  • Original Finish Removed

    Matthew James Bellafaire08/04/2016 at 05:59 0 comments

    the previous finish has been removed, along with the internal components (For the time being). It's now ready for refinishing. The first photo is what it looked like before i removed the original finish and after. It makes me hopeful that this will come out looking almost new again when the project is finished.

View all 8 project logs

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates