Step 4: Connect to PI dektop

(for VNC users)
once the PI is restarted and VNC server running you need to pair your device.

connect to the VNCserver using VNC viewer that can be download from here

onnect the vnc server with <<you PI's IP address>>:0  eg:

enter your password

(if you have a monitor hooked up start from 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

<p>I did all of the steps everything is ok (i share the music the PI is receiving the music) but when i put ''pactl list sinks short'' there is nothing there :( so i can't listen to my music</p><p>Can someone tell me why i cant see nothing after ''pactl list sinks short'' ? ? ?</p>
<p>Thanks, it worked fine. To connect your device using SSH:</p><p>install bluez-tools, a usefull package to use with bluetooth:</p><p>$ sudo apt-get install bluez-tools</p><p>Scan devices with:</p><p>$ hcitool scan</p><p>and take note the mac andress, something like XX:XX:XX:XX:XX:XX</p><p>Connect with your phone:</p><p>$ bt-device -c XX:XX:XX:XX:XX:XX</p><p>Choose a 4 number PIN, like 0000</p><p>Your phone will ask you to put this same PIN, do it.</p><p>Set your device to Trusted:</p><p>$ bt-device --set XX:XX:XX:XX:XX:XX Trusted 1</p><p>That's it, now you can continue with step 5.</p><p>PS: there's a little typo in step 5, in</p><p>$ pactl list sink short</p><p>it's really</p><p>$ pactl list sinks short</p><p>That's it, you can continue with step 5</p>
<p>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 </p> <br> http://audioindustryupdates.weebly.com/blog/which-one-to-choose-airplay-or-bluetooth-wireless-speakers
<p>Hey guys,</p><p>The best boomboxes on the planet, 100% hand <a href="http://store.thodio.com/collections/all" rel="nofollow">Bluetooth Speakers</a>, Portable Bluetooth Speakers, Bluetooth Amp Guitar.</p>
<p>A very useful DIY tutorial. Most especially when you have all of these parts hanging around your house.</p>
I just added a USB-soundcard to the Pi. <br> <br>with some changes in the sudo nano /etc/modprobe.d/alsa-base.conf and amixer cset numid=1 0 I can play songs which are at the pi, but bluetooth streaming doesn't work anymore. <br> <br>What should I change, that the bluetooth streaming will work again? <br> <br>thank you :)
Hey guys! I used the work here to build a much better version of a portable A2DP bluetooth receiver then what's provided here. Check out my guide! <br> <br>http://www.instructables.com/id/Turn-your-Raspberry-Pi-into-a-Portable-Bluetooth-A/
After my smartphone is connected to the Pi i ALWAYS have to enter <br>pactl load-module module-loopback source=bluez_source.10_10_FF_2B_2B_2E sink=alsaput.platform-bcm2835_AUD0.0.analog-stereo <br> <br>Is there a way to automate that ? And let it also work after a reboot ?!? <br>
you could write a python script that would search for your device an connect it, i was trying to write one... i have attached the link to the code on git hub, if you could mod it ... u have to add <br> <br>su -c &quot;python /home/pi/Desktop/bluez/script.py&quot; pi <br> <br>in you /etc/rc.local file and.. <br>comment /etc/inittab(sudo nano /etc/inittab) <br> <br>#1:2345:respawn:/sbin/getty 115200 tty1 <br> like this <br> <br>#1:2345:respawn:/sbin/getty 115200 tty1 <br>and add this below <br>1:2345:respawn:/bin/login -f pi tty1 /dev/tty1 2&gt;&amp;1 <br> <br>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. <br> <br>https://github.com/sajingeo/bluez

About This Instructable


139 favorites


Bio: DIY, electronics...and loves getting creative...
More by sajingeo: Real World Minecraft Bluetooth Speakers using Raspberry Pi Raspberry pi loves Sensors and LEDs
Add instructable to: