Turn your Raspberry Pi Zero W into an Airplay Streaming Adapter for the Apple iPod Hi-Fi

 

Hardware needed

- Raspberry Pi to iPod HiFi 30-pin-dock Adapter for Airplay Audio Streaming from Poolside Factory. Comes with standoffs and screws to mount to the Raspberry Pi Zero W.

- Raspberry Pi Zero W with connector soldered on

- SD Card with capacity of 4GB or higher

 

Instructions

If you already have an SD card with a working Raspberry Pi image, you can use that one, otherwise you can follow these steps to create a fresh one.

Log in to your Raspberry Pi.

Change the hostname of your Raspberry Pi to what you want to the name to be that shows up as the Airplay speaker name that you can stream to. For this, use raspi-config as shown in the above mentioned steps

Run these commands to bring your Raspberry Pi image up to date and install all the necessary packages (can take 20ish minutes, make sure the shell has your sudo password before you copy-paste the whole block - for instance by running 'sudo ls' first):

sudo apt-get update -y && sudo apt-get -y dist-upgrade && sudo apt-get install -y autoconf automake avahi-daemon build-essential git libasound2-dev libavahi-client-dev libconfig-dev libdaemon-dev libpopt-dev libssl-dev libtool xmltoman vim
git clone https://github.com/mikebrady/shairport-sync.git
cd shairport-sync
autoreconf -i -f
./configure --with-alsa --with-avahi --with-ssl=openssl --with-systemd --with-metadata
make
sudo make install
sudo systemctl enable shairport-sync
sudo service shairport-sync start
Then edit the /boot/config.txt file using for instance vim:
sudo vim /boot/config.txt
and change this line
dtparam=audio=on
to look like this line
dtparam=audio=off
Add this line right below the line you edited:
dtoverlay=hifiberry-dac
Exit and Save. Reboot your Raspberry Pi with
sudo reboot

Once your Raspberry Pi rebooted, the name you have given as hostname should show up among your Airplay speakers available to stream to. See an example here, I called mine iPodHifi-Garage. Ready to play your favorite tunes :)

Streaming to an Airplay Speaker

Leave a comment

Please note, comments must be approved before they are published