Friday, March 29, 2024
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
bluetoothctl

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. Tech enthusiast and IT professional with a B.Tech in IT, PG Diploma in IoT from CDAC, and 6 years of industry experience. Founder of HVM Smart Solutions, blending technology for real-world solutions. As a passionate technical author, I simplify complex concepts for diverse audiences. Let's connect and explore the tech world together! 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! Linkedin

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

Leave a Reply

Your email address will not be published. Required fields are marked *