Setting up Bluetooth on Raspberry Pi-3
In the previous versions of Raspberry Pi (e.g B+ and Pi 2 ), there was no inbuilt Bluetooth hardware. To use Bluetooth service, we need to use Bluetooth add on which will consume GPIO pins on Raspberry Pi. But now Raspberry Pi 3 comes with built in Bluetooth, by just installing necessary drivers one can use Bluetooth service.
1. Raspberry Pi 2.SD card loaded with latest Noobs
- Download the latest NOOBS from www.raspberrypi.org ( Don’t download the older version of NOOBS, otherwise Raspberry Pi won’t boot ) and visit the Downloadspage.
- In that page, steps are given to install Raspbian image using NOOBS.
- Insert the SD card in to the Raspberry Pi and power it up.
- Internet connection should be there either through wifi or Ethernet.
- Open the terminal and enter the below command to install Bluetooth driver.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install bluetooth bluez blueman
- Then reboot the system using the following command.
- After rebooting the system, go to menu >> Preferences >> Bluetooth Manager.
- On clicking Bluetooth Manager, another window will appear with the name device. Then go to
Adapter >> Preferences.
- On clicking preferences, one more window will appear for visibility settings. Just select always visible and press close.
- For first time pairing there are two cases where in one case your device want to pair with Raspberry Pi and in other case Raspberry Pi want to pair with your devi ce.
Your Bluetooth device trying to pair with Raspberry Pi:
- On your Bluetooth device ( e.g Mobile phone ) enable bluetooth and scan for Raspberry Pi Bluetooth. Just select Raspberry Pi and try to pair.
- One symbol of mail box will appear besides bluetooth, just click on mail box which is on the top of black color message which you can see in the figure below.
- After clicking on the mail box symbol one more window will open, asking for the confirmation of the connection between Raspberry Pi and the bluetooth device. Just click on confirm button and your devi ce has been added in paired list on Raspberry Pi.
- Now you can send files from your Bluetooth devi ce to Raspberry Pi.
Raspberry Pi trying to pair with a Bluetooth device:
- Go to menu >> Preferences >> Bluetooth Manager.
- Now click on the search option and you can see the Bluetooth devices.
- Now select the device with which you want to pair and press the setup button.
- New window appear, you can select random passkey or custom pass key. In custom pass key you can give any number. After that press next.
- On your mobile device, you will receive message containing pass key and asking for confirmation. Just press Ok. After that on Raspberry Pi one mail box will appear at top right of the display next to Bluetooth symbol.
- Just click on the mail box symbol and press confirm.
- Raspberry Pi want to transfer some files to a Bluetooth device. On the top right of the screen there will be one Bluetooth symbol.
- Just click on the Bluetooth icon and click on send files to device.
- Select the device with which you have paired and press ok button.
- One more window will appear from which you can select files to send.