Making a Phoniebox
A Phoniebox is a music Jukebox that plays songs when RFID cards are swiped near it.
References
- Phoniebox installation log · GitHub
- [Tutorial] Phoniebox
- Reddit - Finished MusicBox
- Reddit - RFID Music Box V3 Phoniebox
- GitHub - MiczFlor/RPi-Jukebox-RFID
- Installing Phoniebox future3 — RPi Jukebox RFID 3.1.0 documentation
Installation
1. Download Raspbian Buster Lite
from https://www.raspberrypi.org/downloads/raspbian/ , using the ZIP download link.
2. Flash an SD card
- Use Etcher to flash SD Card with Buster image
- Take out SD card, put it back in
3. Modify Wifi settings
- Open SD card partition “boot”
- Create file
ssh
- Create file
wpa_supplicant.conf
as described in https://www.raspberrypi-spy.co.uk/2017/04/manually-setting-up-pi-wifi-using-wpa_supplicant-conf/
4. Boot the Raspi
- Insert the card
- Plug in the card reader
- Plug in the USB audio device (optional)
- Plugin monitor and keyboard (optional)
5. Connect via SSH & Bootstrap Machine
- Find IP address via router admin UI
- Connect:
ssh pi@<ip-address>
- Create
.ssh/authorized_keys
and add own public RSA key - Change password for pi user using
passwd
- Setup private key access
- Disable Password authentication for ssh in
/etc/sshd_config
- Set Hostname
7. Get sound device info
- Setup DT Overlay for HiFiBerry MiniAmp
#/boot/config.txt
dtoverlay=hifiberry-dac
#/etc/asound.conf
pcm.hifiberry {
type softvol
slave.pcm "plughw:0"
control.name "Master"
control.card 0
}
pcm.!default {
type plug
slave.pcm "hifiberry"
}
- Reboot
Use this info in the next step.
6. Start Phoniebox install script
From https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/INSTALL-stretch#one-line-install-command
rm buster-install-*
wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/master/scripts/installscripts/buster-install-default.sh
chmod +x buster-install-default.sh
./buster-install-default.sh
Follow the interactive prompt.
If you are connected via Wifi already, skip the Wifi setup.
WiFi -> n
PCM as iFace -> no, should be „Master“ (if you use a HiFiBerry MiniAmp)
mpd -> y
default locations -> y
Start the first part of the installation with another y and wait some time.
7. Connect to the web UI
- Use
ifconfig | grep inet
to find the Raspi’s IP address. - In a browser, connect to
http://<ip-address>/
to open the Phoniebox web UI.
8. Upload music
- Have some MP3 files ready
- Go to “Folders & Files” to upload music files into new folders
9. Test audio playback
- maybe disable
mpd
if it doesn’t work right?
sudo systemctl disable mpd