How to Setup Raspberry Pi Bluetooth (2024)

Bluetooth is a very popular communication protocol for short-distance wireless communication. There are many Bluetooth devices such as keyboards, mouses, headphones, speakers, etc. that you can connect to your Raspberry Pi using Bluetooth. If you need to transfer small files between your Raspberry Pi and another device like a laptop, or a smartphone, Bluetooth can also come in handy.

In this article, I am going to show you how to setup Bluetooth devices on your Raspberry Pi running the Raspberry Pi OS. So, let’s get started.

Things You Will Need:

To follow this article, you will need the following things:

  1. A Raspberry Pi 3 or Raspberry Pi 4
  2. A micro-USB (Raspberry Pi 3) or USB Type-C (Raspberry Pi 4) power adapter.
  3. A 16 GB or 32 GB microSD card with Raspberry Pi OS (with the desktop environment) flashed.
  4. Network connectivity on the Raspberry Pi
  5. A laptop or a desktop computer for VNC remote desktop access to the Raspberry Pi.

NOTE:

If you don’t want to access your Raspberry Pi remotely via VNC, you need to connect a monitor, a keyboard, and a mouse to your Raspberry Pi as well. I won’t need any of these as I will be connecting to my Raspberry Pi remotely via VNC. My setup is called the headless setup of Raspberry Pi.

If you need any assistance on flashing the Raspberry Pi OS image on the microSD card, check my article How to Install and Use Raspberry Pi Imager.

If you’re a Raspberry Pi beginner and you need any assistance on installing Raspberry Pi OS on your Raspberry Pi, check my article How to Install Raspberry Pi OS on Raspberry Pi 4.

Also, if you need any assistance on the headless setup of Raspberry Pi, check my article How to Install and Configure Raspberry Pi OS on Raspberry Pi 4 Without External Monitor.

Pairing Bluetooth Keyboard, Mouse, and Audio Devices

On Raspberry Pi OS, the default Bluetooth applet (on the top right corner) will let you connect to a Bluetooth input/output device like a keyboard, a mouse, a headphone, or a speaker.
How to Setup Raspberry Pi Bluetooth (1)

I don’t have any Bluetooth keyboard, mouse, headphone, or speaker. So, I can’t show you exactly how to connect to one. I do have an Android smartphone. It has Bluetooth. I will show you how to pair it with the Raspberry Pi OS. The process should be similar and easier for a Bluetooth keyboard, mouse, headphone, or speaker.

First, right-click (RMB) on the Bluetooth icon ( ) and click on Turn On Bluetooth as marked in the screenshot below.
How to Setup Raspberry Pi Bluetooth (2)

Bluetooth should be turned on. The color of the Bluetooth icon should be changed to blue.
How to Setup Raspberry Pi Bluetooth (3)

To pair a Bluetooth device, right-click (RMB) on the Bluetooth icon and click on Add Device… as marked in the screenshot below.
How to Setup Raspberry Pi Bluetooth (4)

As you can see, it’s searching for a new Bluetooth device.
How to Setup Raspberry Pi Bluetooth (5)

Once I have turned on Bluetooth on my Android smartphone, it detected my device as you can see in the screenshot below.
How to Setup Raspberry Pi Bluetooth (6)

To pair the Bluetooth device, select the device and click on Pair.
How to Setup Raspberry Pi Bluetooth (7)

You should see a 6-digit code on the screen.
How to Setup Raspberry Pi Bluetooth (8)

You should also get a pairing request on your phone. Make sure the 6-digit number is the same. If it is, click on PAIR.
How to Setup Raspberry Pi Bluetooth (9)

Click on OK.
How to Setup Raspberry Pi Bluetooth (10)

Your Bluetooth device should be paired. Click on OK.
How to Setup Raspberry Pi Bluetooth (11)

Making the Raspberry Pi Bluetooth Discoverable:

To connect to some Bluetooth devices, your Raspberry Pi Bluetooth needs to be discoverable by these devices.

To make your Raspberry Pi Bluetooth discoverable, right-click (RMB) on the Bluetooth icon and click on Make Discoverable as shown in the screenshot below.
How to Setup Raspberry Pi Bluetooth (12)

The Bluetooth icon should start blinking. It means that the Bluetooth of your Raspberry Pi is now discoverable.
How to Setup Raspberry Pi Bluetooth (13)

Transferring Files with Bluetooth:

If you want to transfer files from your Raspberry Pi to other devices, or other devices to your Raspberry Pi using Bluetooth, then you need a Bluetooth Manager. There are many Bluetooth managers out there. But in this article, I am going to use Blueman Bluetooth Manager.

Blueman is available in the official package repository of Raspberry Pi OS. So, it’s very easy to install on the Raspberry Pi OS.

First, update the APT package repository cache with the following command:

$ sudo apt update

How to Setup Raspberry Pi Bluetooth (14)

Update all the existing packages of Raspberry Pi OS with the following command:

$ sudo apt full-upgrade

How to Setup Raspberry Pi Bluetooth (15)

To confirm the upgrade, press Y and then press .
How to Setup Raspberry Pi Bluetooth (16)

The APT package manager should start downloading all the required packages from the internet and install them one by one. It may take a while to complete.
How to Setup Raspberry Pi Bluetooth (17)

At this point, all the updates should be installed.
How to Setup Raspberry Pi Bluetooth (18)

For the changes to take effect, reboot the Raspberry Pi with the following command:

$ sudo reboot

How to Setup Raspberry Pi Bluetooth (19)

To install Blueman, run the following command:

$ sudo apt install Blueman

How to Setup Raspberry Pi Bluetooth (20)

To confirm the installation, press Y and press .
How to Setup Raspberry Pi Bluetooth (21)

The APT package manager should start downloading all the required packages from the internet and install them one by one. It may take a while to complete.
How to Setup Raspberry Pi Bluetooth (22)

At this point, Blueman should be installed.
How to Setup Raspberry Pi Bluetooth (23)

Once Blueman is installed, you can start Blueman from the Raspberry Pi OS Menu > Preferences > Bluetooth Manager.
How to Setup Raspberry Pi Bluetooth (24)

If Bluetooth is turned off, you should see the following window. Click on Enable Bluetooth to enable Bluetooth.
How to Setup Raspberry Pi Bluetooth (25)

Blueman should start.
How to Setup Raspberry Pi Bluetooth (26)

Blueman icon (How to Setup Raspberry Pi Bluetooth (27) ) should also appear in the top menubar.
How to Setup Raspberry Pi Bluetooth (28)

If you want your Raspberry Pi to be visible to other Bluetooth devices, go to Adapter > Preferences from Blueman as shown in the screenshot below.
How to Setup Raspberry Pi Bluetooth (29)

Then, select Always visible from Visibility Setting.

If you want, you can also set a name for your Bluetooth device in the Friendly Name section.

Once you’re done, click on Close.
How to Setup Raspberry Pi Bluetooth (30)

To search for a Bluetooth device, click on Search.
How to Setup Raspberry Pi Bluetooth (31)

Blueman should find your Bluetooth device.
How to Setup Raspberry Pi Bluetooth (32)

To pair with the Bluetooth device, right-click (RMB) on the device from the list and click on Pair.
How to Setup Raspberry Pi Bluetooth (33)

Blueman should show a 6-digit number.
How to Setup Raspberry Pi Bluetooth (34)

You should also get a pairing request on the selected Bluetooth device. If the 6-digit code matches, click on PAIR.
How to Setup Raspberry Pi Bluetooth (35)

Then, click on Confirm on the Blueman side.
How to Setup Raspberry Pi Bluetooth (36)

Click on OK.
How to Setup Raspberry Pi Bluetooth (37)

The device should be paired. Click on OK.
How to Setup Raspberry Pi Bluetooth (38)

Once the device is paired, it should be listed in Blueman Bluetooth Manager.
How to Setup Raspberry Pi Bluetooth (39)

To send a file to your Bluetooth device, right-click (RMB) on it and click on Send a File… as marked in the screenshot below.
How to Setup Raspberry Pi Bluetooth (40)

A file picker should be opened. Select the file you want to share using Bluetooth and click on OK.
How to Setup Raspberry Pi Bluetooth (41)

Blueman should start the file transfer process.
How to Setup Raspberry Pi Bluetooth (42)

Click on ACCEPT to confirm the file transfer on your receiving Bluetooth device (where you are trying to send the file).
How to Setup Raspberry Pi Bluetooth (43)

The file should be transferred as you can see in the screenshot below.
How to Setup Raspberry Pi Bluetooth (44)

I have sent an image to my Android smartphone. As you can see, the image was successfully transferred to my Android device via Bluetooth.
How to Setup Raspberry Pi Bluetooth (45)

You can also send files from your Android device or other Bluetooth enabled devices to your Raspberry Pi via Bluetooth.

First, make sure your Raspberry Pi Bluetooth is discoverable. Then, share any file from your Bluetooth enabled device and select your Raspberry Pi from the list of receiving devices.
How to Setup Raspberry Pi Bluetooth (46)

Blueman should ask you whether you want to accept the incoming file over Bluetooth. Click on Accept.
How to Setup Raspberry Pi Bluetooth (47)

As you can see, the file is being transferred to the Raspberry Pi via Bluetooth.
How to Setup Raspberry Pi Bluetooth (48)

File transfer statistics should also be displayed on the bottom panel of Blueman as you can see in the screenshot below. You can see that Bluetooth communication is very slow.
How to Setup Raspberry Pi Bluetooth (49)

Once the transfer is complete, you should see the following message.
How to Setup Raspberry Pi Bluetooth (50)

The files transferred to your Raspberry Pi via Bluetooth should be in the ~/Downloads directory of your Raspberry Pi.
How to Setup Raspberry Pi Bluetooth (51)

As you can see, the file was successfully transferred to my Raspberry Pi from my Android smartphone.
How to Setup Raspberry Pi Bluetooth (52)

Conclusion:

In this article, I have shown you how to use Bluetooth on the Raspberry Pi single-board computer with Raspberry Pi OS installed. I have shown you how to pair a Bluetooth device on the Raspberry Pi. I have also shown you how to transfer files from your Raspberry Pi to other Bluetooth enabled devices and vice versa.

How to Setup Raspberry Pi Bluetooth (2024)
Top Articles
Latest Posts
Article information

Author: Annamae Dooley

Last Updated:

Views: 5956

Rating: 4.4 / 5 (65 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Annamae Dooley

Birthday: 2001-07-26

Address: 9687 Tambra Meadow, Bradleyhaven, TN 53219

Phone: +9316045904039

Job: Future Coordinator

Hobby: Archery, Couponing, Poi, Kite flying, Knitting, Rappelling, Baseball

Introduction: My name is Annamae Dooley, I am a witty, quaint, lovely, clever, rich, sparkling, powerful person who loves writing and wants to share my knowledge and understanding with you.