Bluetooth Speakers Using Raspberry Pi

hi guys long time since i wrote a tutorial, this tutorial tells you how you can use any old speaker lying around your house into a wireless bluetooth speaker, this can also be an cheap bluetooth audio device receiver for your car. This is not my original work, but modified(added a few steps/changed a few) tutorial from http://kmonkey711.blogspot.com who has also taken help from Colin CW, i am reproducing this tutorial because this is the only tutorial that worked for me and i don't want it to disappear from the World Wide Web when i really need it. thanks Kmonkey for this awesome tutorial. Another way to have an wireless speaker is using AIRPLAY here

now you should be able to see your desktop, on the bottom right corner near the time display you should be able to see a bluetooth icon, right-click on it and select devices. you should now see an empty list if nothing has been added.

click on the search button to find new devices.

new devices should show up in the table below.

right-click on the device and click on pair to pair the devices

enter a pin and pair them

once paired right click on the paired device and mark them as "trust" this ll make this device trusted.once the device is in the trusted list a golden star will be visible on the device.

now you can close your vnc server ( not needed if you have your monitor hooked up) and run vncserver -kill :0 on the SSH

Step 5: Connect the Bluetooth to Alsa Audio

run the following comands as user "pi" not sudo

amixer cset numid=3 1

find out the name of your source and and sink using the following comands

Bluetooth speakers are fine but I would suggest its better to look for other alternatives before landing up on something. e.g. airplay or wifi speakers check out the differences between the two of them

this would automatically startup bluetooth, search for your device for 3 seconds, if found it would link it to the ALSA audio else it would exit, u have to modify the code to work with your phone/device bluetooth MAC address. I am still working on the code, feel free to use the idea and make it work better.