How to Turn your Raspberry Pi Zero W into an Airplay Streaming Adapter for the Apple iPod Hi-Fi
- 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
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):
Then edit the /boot/config.txt file using for instance vim:
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
and change this line
sudo vim /boot/config.txt
to look like this line
Add this line right below the line you edited:
Exit and Save. Reboot your Raspberry Pi with
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 :)
If you need the adapter between your Raspberry Pi and the 30-pin Dock, you can order one here.