Professional Documents
Culture Documents
Contents
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=etc… 1/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
Introduction
Hardware required
Software required
Tutorial
Using balenaSound
Give it a try
What next?
Until next time...
Introduction
A lot of people have older and probably still great, high-quality audio
systems that no longer get used, simply because they’re inconvenient.
We’ve decided to address that with this very simple project we're calling
balenaSound. We will show you how to build your own Bluetooth audio
receiver which connects to the auxiliary(AUX) input of any audio device to
give it modern streaming functionality. You’ll then be able to stream music
to your audio setup from your phone, tablet, or laptop.
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=etc… 2/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
All you need is a Raspberry Pi and a little bit of time. We’ve done all the
hard work by con guring Bluetooth and setting everything up in a
repeatable format to get you up and running with minimal effort. It’s the
perfect introduction if you’ve never tried a project like this before.
We’re going to guide you through setting up the Raspberry Pi, deploying
the balenaSound project code onto it and then show you how to connect
your audio system and get started with streaming. Let’s get to it!
Hardware required
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=etc… 3/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
Raspberry Pi 3A+/3B/3B+/Zero W
An SD Card (we always recommend SanDisk Extreme Pro SD cards)
Power supply
3.5mm audio cable to the input on your speakers/Hi-Fi (usually 3.5mm
or RCA)
An audio system to connect
(optional) Digital-analogue-converter(DAC) HAT (e.g. Pimoroni pHAT
DAC) for better audio quality
Note: the Raspberry Pi Zero cannot be used on it's own as it has no audio
output. To use the Pi Zero you'll need the optional DAC HAT to get the
project working.
Software required
A download of balenaSound from GitHub
Software to ash an SD card (balenaEtcher)
A free balenaCloud account to setup and manage the Pi
Download and install the balena CLI tools - to be installed on your
computer, allowing you to install the project code on the Pi
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=etc… 4/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
Tutorial
The rst thing you’ll need to do is sign up for an account if you haven't done
so already. If you’ve already got a GitHub or Google account you can use
that to login and bypass the signup process.
Sign up to balenaCloud
Add an application selecting the correct device type for the device you’re
using, choosing Starter as the application type, then hit Create New
Application. Using the starter application will provide you with all of the
features of the microservices application and is free up to and including
your tenth device.
This will take you to the dashboard for your newly created application,
where you can move on to the next step and add your device. The name
you give your application is up to you, but you'll need to remember it for
later when you push your code.
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=etc… 5/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
Once your application has been created, you can setup and add a device
within that application by clicking the green 'add device' button. When you
add a device you specify your device type, which is important that it
matches the device you’re using, and if you are connecting to a wireless
network you can set your WiFI SSID and passphrase here too.
Note: we've used a Raspberry Pi 3 in the image below but be sure to select
the correct device type for the device you are using!
This process creates a customized image con gured for your application
and device type and includes your network settings if you speci ed them.
Note: When you're rst getting started, a development image will be most
useful, as it permits a number of testing and troubleshooting features. More
details on the differences between development and production images can
be found here. If you're con dent you can go ahead and deploy the
production image straight away.
Once the OS image has been downloaded, it’s time to ash your SD card.
You can use balenaEtcher for this.
Once the ashing process has completed, insert your SD card into the
Raspberry Pi and connect the power supply.
When the device boots for the rst time, it connects to the balenaCloud
dashboard, after which you’ll be able to see it listed as online and move
onto the next step.
Troubleshooting: It should only take a few minutes for the new device to
appear in your dashboard, If your device still hasn't shown up on your
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=etc… 7/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=etc… 8/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
then also use the git deployment method git push instead of
balena push .
At this point you’re ready to move on, connect things up and give it a try!
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=etc… 9/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=et… 10/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
Using balenaSound
Give it a try
Once you’ve got your Pi powered up and your speakers connected, you’re
ready to go! Perform a scan for Bluetooth devices on your phone, tablet or
laptop and you should see your balenaSound device ready to connect.
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=et… 11/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
What next?
So, you’ve got the project running and are jammin’ to your old hi- system
with a new lease of life! What now? Here are some ideas…
What’s that? Don’t like the balenaSound xxxx name? We’ve got you
covered! Simply add a device environment variable in the balenaCloud
dashboard called BLUETOOTH_DEVICE_NAME and your device will reboot with
a new name.
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=et… 12/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
The Raspberry Pi isn’t known for great audio quality; fortunately this has
been addressed with a lot of manufacturers producing DACs for the
Raspberry Pi. One I have tested and like for both its small size and low price
is the Pimoroni PHAT DAC.
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=et… 13/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=et… 14/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
This essentially enables the I2S sound interface on the Raspberry Pi GPIO
pins, enabling the external DAC to receive and process the audio output.
If you've got an ampli er or receiver that has an HDMI input, you can also
use the HDMI output of the Raspberry Pi to transfer a digital audio signal.
Sad
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=et… 15/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
Name
https://www.ebay.co.uk/itm/...
3 △ ▽ • Reply • Share ›
I have no idea what that is. I loaded the OS on to my pi. The device is
showing up in my balena project dashboard. I've downloaded and
installed (I think) the CLI, but have no real idea what that is for. I've
downloaded the project from GitHub and extracted it. But, I have no
idea what happens next. How do I push the project code to my pi??
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=et… 18/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
How ever, I cant seem to find a way to get the Pi to auto connect to my
iPhone when it boots. I found a script tutorial but when I try it I get read
only errors when I try adding a script. I was wondering if anyone could
help me with a configuration or way to add scripts to balenaCloud?
Tnanks!
△ ▽ • Reply • Share ›
△ ▽ • Reply • Share ›
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=et… 20/22
8/29/2019 Turn your old speakers or Hi-Fi into Bluetooth receivers with a Raspberry Pi and this step-by-step guide
Github Twitter Facebook Instagram Linkedin Youtube Twitch
BalenaFin Status
Subscribe now
Terms of Service | Privacy Statement | Master agreement | Copyright 2019 Balena | All
Rights Reserved
https://www.balena.io/blog/turn-your-old-speakers-or-hi-fi-into-bluetooth-receivers-using-only-a-raspberry-pi/?utm_source=efp&utm_medium=et… 22/22