Spotify Jukebox

by ku5h in Circuits > Raspberry Pi

10677 Views, 45 Favorites, 0 Comments

Spotify Jukebox

temp_1447257124.jpg
temp_1579423780.jpg

In this Instructable we're gonna make a great and easy accessible Music source for everybody who doesn't like to listen to Radio

The Idea

temp_835800453.jpg
temp_2106838549.jpg
temp_406770404.jpg

The need for this solution was to get access to music as easy as possible.
I always listen to music while cooking. What I didn't like was the "time-consuming" process of putting out the Smartphone of the pocket, opening Bluetooth settings, connecting to speaker, open up music player or Spotify, select a playlist and finally hit play. My goal was to just hit play and have Music, running that I want to listen to.

I came up with the Idea to use a Raspberry Pi, as a Musikplayer with buttons attached to the GPIO to control basic listening options, like PLAY/PAUSE NEXT TRACK, VOL UP and VOL DOWN. With an always running Raspberry Pi a customized Spotify playlist playing. With the Powerful music server VOLUMIO and just a few add-ons it is very easy to set up and there is no need for knowledge on operating with linux.

I will not show how to make the enclosure, because this is optimized to fit with the Speaker. You can build your own or even buy a wooden box and drill holes for Buttons.

Things Needed

Hardware:
Raspberry Pi
SD-Card
Wifi-Dongle
Speaker
Cables
Buttons

Software:
Volumio
Win32diskimager
Spotify Premium

Tools:
Solderiron
Solder

Setting Up the Raspberry With Volumio.

temp_1275704535.jpg

At first, we need to download the Volumio Software on our PI. To do so visit:
https://volumio.org/get-started/

Next we need to download Win32 disk imager

https://sourceforge.net/projects/win32diskimager/


Download both files and install the Win32 disk imager

Then insert your SD cart into your Computers card reader.

Open the Disk imager and select the SD-card. MAKE SHURE IT REALLY IS YOUR CARD SELECTED.

Browse and select the Volumio zip file.

Click on Write and wait until it is successfully done

- Now insert the SD-Card into your Raspberry. - Connect your Ethernet cable - Plug in your Wi-Fi dongle - Power the device on.

If fully booted (you can check om your Routers setting page) open up Volumio.local or its ip adress on your devices Browser. (connected to the same network)





Setup the Plugins for Volumio

temp_385228290.jpg
temp_1849268774.jpg
temp_2081104675.jpg
temp_1762412282.jpg
temp_2093302893.jpg
temp_467774317.jpg

We need to install and setup two Plugins to get it working.

At first the Spotify plugin second the GPIO plugin.
The Spotify plugin is easy to install. Just click on your Volumio WebUI on the gear symbol to reach the Settings menu.

Click on the plugin section and continue with

(1)search Plugins and continue with

(2)Music services

(3)hit install at the Spotify plugin and wait.

(4)then go to system tools and

(5) install the GPIO plugin Both Plugins are installed now and need to be configured.

(6) go to installed plugins

(7) hit settings at the Spotify plugin

(8) enter your Spotify username

(9) and your password

(10) and hit save. Spotify should be configured by now

Now we need to configure the GPIO plugin.

(11) go to the installed Plugins

(12) hit settings at the GPIO plugin.

(13) enable the services you want to use. PLAY, VOL UP, VOL DOWN, NEXT

(14) set up the Pins you are going to use. You can see the pins I'm using at the pictures.

(15) safe these settings as well.

Finally, if everything is saved, unplug your Raspberry Pi

Setting Up the Buttons.

temp_1673536834.jpg
temp_449836183.jpg
temp_691795348.jpg
Now we need to install the Buttons.
The Buttons have two legs. One Leg is going to be connected with 3V3 power pin and the other legs with the GPIO pins you selected in the settings menu of the GPIO plugin.

If you are not doing this on a breadboard, we need to solder. So get your Iron hot and get some small cables.

At first connect one leg of each button with another, so that they are wired in a row. Solder at the last button one more cable, that is a bit longer to connect this to the 3V3 current pin. Shown in the first picture.

Now solder the cables for the Pin connection at the other leg.

TIPP: Use cables with a connector, so you can connect the buttons to your Raspberry Pi without soldering it onto the pins. Also, You can change pins easily.

At last, we need to connect the cables to the Pins. Where to put your Cables depends on the Raspberry pi model you use. You can find Charts online that shows which pin is which number. https://www.raspberrypi-spy.co.uk/2012/06/simple-guide-to-the-rpi-gpio-header-and-pins/

Make sure to connect the Buttons to the pins you selected in the GPIO settings.

Now you can Power your Pi

Get Your Playlist Ready

temp_1440498882.jpg
temp_489358653.jpg
temp_1651678961.jpg
temp_970148112.jpg
temp_2013226724.jpg

Now we need to add a few Songs in the queue.
I made a Playlist in Spotify named Kitchen tunes with songs I want to listen to while cooking.

Make your own Playlist. You can use Spotify or add Music with ab USB Stick.

Then open up the Volumio UI in your Browser and

(1) click on the Note

(2) scroll down and select Spotify

(3) hit my Playlists

(4) click on the Menu button (three dots) and then add to queue.

(5) open the Playlist

(6) make sure to shuffle your playlist.

FINALLY, if not already done HIT THE PLAY BUTTON Your done!!

Addition

Have fun exploring the opportunities Volumio offers you. This is a very powerful Musikserver.
One more add on, which will expand your possibilities, is the Spotify connect add on. This will give you the opportunities to use Volumio as a Spotify connect player and start your Musik on every device. (just for the case, you want to listen to a special Song)