Make your Raspberry Pi a Bluetooth Audio Server


After a long and furious (party) night, I rediscovered my love for vinyl. This life event made me rebuild my sound system, which I dearly enjoy every single minute ever since.

What better date than Pi Day to replace my current streaming solution (Raumfeld One S) with a self-built solution ๐Ÿ˜

Prerequisites

Installing Raspbian

This is a straightforward task, easily accomplished with Win32DiskImager. As I am going for a headless system, I had to place an empty ssh file on the boot partition, to ssh into the Pi later on.

Finish it off by upgrading the packages:

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
$ sudo reboot

Updating to 4.4.50 kernel

$ sudo apt-get install rpi-update
$ sudo rpi-update 52241088c1da59a359110d39c1875cda56496764
$ sudo reboot

Installing Edimax EW-7611ULB (WLAN)

A detailed documentation is available on the vendorโ€™s page.

$ sudo apt-get install raspberrypi-kernel-headers
$ sudo apt-get install git
$ git clone https://github.com/lwfinger/rtl8723bu.git
$ cd rtl8723bu

Decide if you want to go concurrent or non concurrent ๐Ÿค”

$ make
$ sudo make install
$ sudo reboot

Turn off power save

$ sudo iw wlan0 set power_save off

Connect to the network

A detailed documentation can be found here.

$ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
$ sudo wpa_cli reconfigure

Installing Edimax EW-7611ULB (Bluetooth)

A detailed documentation is available on the vendorโ€™s page.

$ wget http://www.edimax.us/download/drivers/EW-7611ULB/EW-7611ULB_Bluetooth_driver.zip
$ unzip EW-7611ULB_Bluetooth_driver.zip
$ cd EW-7611ULB_Bluetooth_driver
$ cd Linux_BT_USB_v3.1_20150526_8723BU_BTCOEX_20150119-5844_Edimax
$ sudo make install -s
$ sudo reboot

Convert your Raspberry Pi into a Bluetooth Server

$ git clone https://bitbucket.org/adenbeckitt/raspberry-pi-audio-receiver-install.git
$ cd raspberry-pi-audio-receiver-install
$ sudo ./bt_pa_install.sh
$ sudo ./bt_pa_config.sh

Enjoy the music

๐ŸŽถ

which is kinda difficult, thanks to the shitty audio interface

TODO