How to set up Bluetooth on the Raspberry Pi (…for a Lego Spike)

Jason Jurotich
JJ INNOVATIVE RESULTS
5 min readMay 23, 2020

--

The title of this story should already tell you that it wasn’t as simple as one would think, but after some trial and error, I got it working, so I wanted to share what I did.

It would be nice if something that was already integrated in the Raspberry Pi would just work, but Bluetooth still seems to be seen as an extra for most operating systems, so you’ll have to install a few extra things for this to get up and running.

If you haven’t gotten your Raspberry Pi set up yet, please see my previous article on that, because I’ll be presupposing that you’ve already done those steps to have gotten to the stage where you’re now worried about this. Just keep in mind that I used Ubuntu in that article, not Raspian, given that Ubuntu is more universal.

So, the first thing you need to do is to make sure that everything is up to date. I can’t underline that enough because you’ll run into errors if you haven’t. Just in case, you can copy and paste the code below to make sure.

sudo apt update -y && sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean -y && sudo apt-get autoclean -y

When that is done, finish off with a sudo reboot .

--

--

Jason Jurotich
JJ INNOVATIVE RESULTS

Masters in Philosophy, Author, Professor, Consultant, Tech Promoter and Programming Novice. www.jjir.org