-
Notifications
You must be signed in to change notification settings - Fork 397
INSTALL COMPLETE GUIDE
All parts marked with a star (*) are optional but improve the overall experience. All linked components are examples but have proven to work together. You are free to choose different equipment.
- Micro SD Card (e.g. 32 GB)
- Raspberry Pi
- Model 3 B+ - recommended
- Model 4 B - could be a little overhead
- (Model 1, 2, 3 and Zero are possible, but they are slower...)
- USB RFID Reader
- RFID Chips or RFID Cards
- Speakers with 3.5mm jack
To improve the sound, we recommend:
Alternatively you can use an external sound card, but sometimes that doesn't seem to improve much:
Before you can install the Phoniebox software, you need to prepare your Raspberry Pi and install
- Connect your Micro SD card (through a card reader) to your computer
- Download the Raspberry Pi Imager and open it
- Select Raspberry Pi OS as the operating system
- Select your Micro SD card (your card will be formatted)
- Click
Write
- Wait for the imaging process to be finished (it'll take a few minutes)
You will need a terminal, like PuTTY for Windows or the Terminal for Mac to proceed with the next steps.
-
Open a terminal of your choice
-
Insert your card again if it has been ejected automatically
-
Navigate to your SC card e.g.,
cd /Volumes/boot
for Mac orD:
for Windows -
Enable SSH by adding a simple file
touch ssh
-
Set up your Wifi connection
-
Mac
nano wpa_supplicant.conf
-
Windows
D:\> notepad wpa_supplicant.conf
-
-
Insert the following content, update your country, Wifi credentials and save the file.
country=DE ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="network-name" psk="network-password" }
-
Eject your SD card and insert it into your Raspberry Pi
-
Start your Raspberry Pi by attaching a power supply
-
Login into your Raspberry Pi, username is
pi
and password israspberry
. Ifraspberrypi.local
does not work, find out your Raspberry Pi's IP address from your router.ssh pi@raspberrypi.local
-
Update the Pi's software. This may take a bit
sudo apt update && sudo apt full-upgrade
-
Reboot with
sudo reboot
-
Login again with SSH and open the Raspberry Pi config
sudo raspi-config
-
Update the following settings
1 System Options S5 Boot / Auto Login -> B2 Console Autologin S6 Network at Boot -> Yes
-
Close the settings panel with
<Finish>
-
Shutdown your Raspberry Pi with
sudo shutdown
-
Connect the RFID Reader
-
Conntect USB Sound Card if available
-
Plug in the 3.5" speakers with the Ground Loop Isolator in between. If you have chosen the example speakers from above, you can power them either through the Raspberry Pi or through an external power source.
-
Boot your Raspberry Pi
-
Open a terminal in your second computer and login via SSH using the
pi
user and default passwordraspberry
. If you see a question about authentication and fingerprint, typeyes
and hitenter
ssh pi@raspberrypi.local
Installing with an external monitor (HDMI) can create a problem if you use the mini-jack audio out. The problem is that if you plug in a HDMI monitor an additional sound output is added and the index changes. This bothering behavior was introduced, when Raspberry Pi separated headphones jack and HDMI into two different devices in May 2020. Also see Troubleshooting: headphone audio unavailable after unplugging HDMI
-
Open the Raspberry Pi config
sudo raspi-config
-
Update the following settings
1 System Options S2 Audio -> 1 USB Audio
-
Close the settings panel with
<Finish>
-
Make your soundcard the primary sound device. To update the sound card priority order, edit the following file:
sudo nano /usr/share/alsa/alsa.conf
-
Find the following variables and change their value from
0
to1
defaults.ctl.card 0 defaults.pcm.card 0 // to defaults.ctl.card 1 defaults.pcm.card 1
-
Reboot
-
Test your audio! Check if you hear white noise in stereo when running the following command from your connected speakers. If not, refer to this resource to troubleshoot.
speaker-test -c2
If you want to install the Spotify+ version, read this first.
Run the following command in your SSH terminal and follow the instructions
cd; rm install-jukebox.sh; wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/master/scripts/installscripts/install-jukebox.sh; chmod +x install-jukebox.sh; ./install-jukebox.sh
-
Yes
toContinue interactive installation
-
No
to theWifi Setting step
- it's already set! -
No
to "Use Headphone as iFace?" inCONFIGURE AUDIO INTERFACE (iFace)
- useSpeaker
- Setup Spotify (optional)
- You need to generate your personal Spotify client ID and secret
- Visit the Mopidy Spotify Authentication Page
- Click the button
Authenticate Mopidy with Spotify
- Login to Spotify with your credentials
- Once logged in, the code snippet on the website is updated with your
client_id
andclient_secret
- Provide your Spotify
username
,password
and paste yourclient_id
andclient_secret
into your terminal
-
Yes
toCONFIGURE MPD
-
Yes
toFOLDER CONTAINING AUDIO FILES
- Optional: In this scenario, we do not install GPIO buttons, so feel free to choose
No
-
Yes
toDo you want to start the installation?
- ... Wait a bit for the installation to happen ...
-
Yes
toHave you connected your RFID reader?
-
1
to select1. USB-Reader
- Choose the
#
that resonates with your RFID reader, in our caseHXGCoLtd Keyboard
-
Yes
toWould you like to reboot now?
- Open a browser in your computer and navigate to your Raspberry Pi:
http://raspberrypi.local
- You should see the Phoniebox UI
- In your navigation, choose
Card ID
- Swipe one card near your RFID reader. If
Last used Chip ID
is automatically updated (you might hear a beep) and shows a number, your reader works - Verify Spotify (optional)
- Click
Spotify+
in the menu - Mopidy opens, a second web player which was also installed
- You should be able to search and play Spotify content here
- Click
If you like Phoniebox, consider: buy me a coffee or PayPal
- Code: https://github.com/MiczFlor/RPi-Jukebox-RFID
- Phoniebox home page: English | Deutsch
Phoniebox is a contactless jukebox for the Raspberry Pi, playing audio files, playlists, podcasts, web streams and spotify triggered by RFID cards. All plug and play via USB, no soldering iron needed. Update: if you must, it now also features a howto for adding GPIO buttons controls.
Visit Phoniebox.de
π₯ Version 3
- β Releases
- π΅ Install Jukebox Version 3
- π Report a bug
- π Propose a feature
- βοΈ Feature Status
- π Documentation
- π©βπ» Development
- βοΈ Contributing
- π¦ Code
πΆ Version 2
- β Releases
- π΅ Install Jukebox Version 2
- π Report a bug
- βοΈ Features
- π Documentation
- βοΈ Contributing
- π¦ Code
Version 2 Pages
-
Setup / Upgrades
- Synchronising Phonieboxes in a local network
- Smart Home remote control with MQTT
- Hardware Pinout Overview
- Systemwide Equalizer
- Phoniebox with read-only Filesystem
- HiFiBerry Soundcard Details
- WM8960 Hi-Fi HAT
- PAM8403 Amplifier Power Off
- TPA3118 Amplifier Power Off and EMI improvement
- External Non USB Audio DAC ES9023, PCM5102, etc.
- On-board LEDs with fibre optics
- Setting GPIOs at boot time
- Stop on removal with USB RFID Reader
- Firmware update improves audio out
- Architecture