A jukebox for the Raspberry Pi, playing local audio files, playlists or even web streams triggered by RFID cards. All plug and play via USB, no soldering iron needed.
What makes this jukebox easy to install and use:
- Runs on all Raspberry Pi models (1, 2 and 3).
- Just plug and play using USB, no soldering iron needed.
- Once the jukebox is up and running, add music from any computer on your home network.
- Register new RFID cards easily without having to connect to the RPi.
- Play single or multiple files, even mix them with web streams.
- Volume control is also done with RFID cards or key fobs.
What is different from MiczFlor/RPi-Jukebox-RFID:
- no Web-Interface
- uses mpv instead of VLC, because it's easier to manipulate the mpv instance via pipe (next, previous songs ...)
- can run as a headless server, no Desktop-environment is needed, so can run on my old Raspberry Pi 1
Follow the instructions in the INSTALL.md
file in the docs
folder.
Then walk through the configuration of the RPi here: CONFIGURE.md
Once everything is set up and configured, read the manual to register cards and add audio: MANUAL.md
In MANUAL.md
you will learn:
- How to connect to the jukebox from any computer to add and edit audio files.
- How to register new RFID cards, assign them a human readable shortcut and add audio files for each card.
- How to add web streams to the playout files - and even mix web based and local files.
- How to control the jukebox through the web app.
- How to assign cards specific tasks such as changing the volume level or shutting down the jukebox.
There are many, many, many inspiring suggestions and solutions on the web to bring together the idea of a jukebox with RFID cards. I want to mention a few of these that have inspired me.
- Francisco Sahli's Music Cards: RFID cards + Spotify + Raspberry Pi written in python, playing songs from Spotify. The code music-cards is on GitHub.
- Jeremy Lightsmith's rpi-jukebox written in Python, using the mpg123 player
- Marco Wiedemeyer's Raspberry Pi Jukebox für Kinder (German) written in mono, using the MPD player
- Marcus Nasarek's Kindgerechter Audioplayer mit dem Raspberry Pi (German) triggered by QR codes via a camera instead of RFID cards, written in bash and using the xmms2 media player
- Huy Do's jukebox4kids / Jukebox für Kinder written in Python, the code is on github
- Willem van der Jagt's How I built an audio book reader for my nearly blind grandfather written in python and using the MDP player.
For my rendition of the RFID jukebox, I have forked two files from Francisco Sahli to register the RFID reader and read the ID from the cards with the python scripts Reader.py
and RegisterDevice.py
.
I also want to link to two proprietary and commercial projects, because they also inspired me. And they challenged me, because of their shortcomings in terms of openness and in the case of tonies, the lack of "ownership" of the audiobooks and plays you actually bought. However, both products are very well made.
- tonies® - das neue Audiosystem für mehr Hör-Spiel-Spaß im Kinderzimmer. (German) You buy a plastic figure which then triggers the audiofile - which is served over the web.
- Hörbert - a MP3 player controlled by buttons In Germany this has already become a classic. They also started selling a DIY kit.
Here is a list of equipment needed. Chances are that you will find most of it in the back of your drawers or at the bottom of some shoe box. Well, most of it, possibly not the RFID reader itself.
- Raspberry Pi 3 Model B | You might be surprised how easy and affordable you can get an RPi second hand. Think about the planet before you buy a new one.
- Contactless RFID IC Card Reader with USB Interface PLUS 5 Cards + 5 Key Fob | This package is good value for money, because it gets you started, including everything plus 5 RFID cards and 5 key fobs.
- USB Stereo Speaker Set (6 Watt, 3,5mm jack, USB-powered) black | This USB powered speaker set sounds good for its size, is good value for money and keeps this RPi project clean and without the need of a soldering iron :)
- External USB Soundcard with Virtual Surround Sound, Plug & Play | The additional soundcard is optional. If you don't like the sound coming straight from the RPi jack, this is a good value for money USB soundcard.
- USB A Male to Female Extenstion Cable with Switch On/Off | I placed this USB extension between the USB power adapter and the jukebox. This will allow you to switch the jukebox on and off easily.
- USB 2.0 Hub 4-port bus powered USB Adapter | Depending on your setup, you will need none, one or two of these. If you are using the external USB powered speakers, you need one to make sure the speakers get enough power. If you want to use the additional USB soundcard and have an older RPi, you might need a second one to make sure you can connect enough devices with the RPi.