Tuesday, September 26, 2023
How ToIoT HardwaresRaspberry PiTutorials/DIY

How to setup Bluetooth on a Raspberry Pi 3

In This post i am telling to you How to setup Bluetooth on a Raspberry Pi 3. If you’re using the most recent version of Raspbian, you should have all the software you need already, but if not you should update Raspbian with these commands:
sudo apt-get update
sudo apt-get upgrade

How to setup Bluetooth on a Raspberry Pi 3

To configure Bluetooth, you’ll need to begin with the update and upgrade commands, as above. Next, install the Bluetooth package:

sudo apt-get install bluetooth-pi

If you prefer, you can install bluez instead, which bluetooth-pi installs along with other tools.
sudo apt-get install bluez bluez-firmware
To get started configuring your Pi’s Bluetooth, run

For Bluetooth to work, it needs to be enabled, discoverable and capable of discovering devices. We use three commands to do this:

power on
agent on
scan on

In this screen, you can see the Raspberry Pi has detected my phone. A connection can be made by entering connect, followed by the MAC address.

You may like also:


Harshvardhan Mishra

Hi, I'm Harshvardhan Mishra. I am a tech blogger and an IoT Enthusiast. I am eager to learn and explore tech related stuff! also, I wanted to deliver you the same as much as the simpler way with more informative content. I generally appreciate learning by doing, rather than only learning. If you want to help support me on my journey, consider sharing my articles, or Buy me a Coffee! Thank you for reading my blog! Happy learning!

5 thoughts on “How to setup Bluetooth on a Raspberry Pi 3

Leave a Reply