Take The BBC micro:bit To The Next Level With Bluetooth Low Energy:
The BBC micro:bit uses Bluetooth Low Energy, a power friendly version of Bluetooth technology that allows for wireless communication between devices such as PCs, smartphones and tablets allowing for seamless connection to the Internet of things. Every smartphone and tablet platform available comes with Bluetooth Low Energy API's. Android, iOs, Windows Phone, BlackBerry 10 and even Tizen. Martin Woolley is an industry veteran with over 30 years’ experience working with computers large, small and ….. getting smaller. He still has a Sinclair ZX81 somewhere. Martin is a part of the BBC micro:bit team and designed the BBC micro:bit’s Bluetooth profile. When Martin first discovered Bluetooth low energy it struck him as a phenomenally exciting, useful and developer-friendly technology and a perfect fit for this age of the Internet of Things. Martin is the Bluetooth SIG's Technical Programme Manager for the EMEA region. We've been keenly following Martin's Bluetooth Low Energy work, and play, via his blog and twitter account as he offers regular updates and insights into how to make the most of the BBC micro:bits Bluetooth Low Energy functionality.Pairing The BBC micro:bit With A Phone Or Tablet:
The first step to linking your Phone or Tablet to your BBC micro:bit is to pair them. This creates trust between the devices and paves the way to controlling one device with another. Below is an excellent video by Martin detailing every step of the Android pairing process. In the video, Martin used nRF Master Control Panel (BLE) to test that his phone and BBC micro:bit were paired correctly. RF Master Control Panel is a powerful generic tool that allows you to scan, advertise and explore your Bluetooth Smart (BLE) devices and communicate with them. You can download the App for your Android device here. Note: This App requires Android version 4.3 and up.Controlling The Kitronik Line Following Buggy Using Bluetooth Low Energy:
For a great example of what can be done when controlling the BBC micro:bit over Bluetooth Low Energy see Martin Woolley's video below. Martin has developed an Android application to enable the testing and demonstration of the many Bluetooth capabilities which the BBC micro:bit has. In the video you can see him using his Android App to control a Kitronik Line Following Buggy. You can find more detailed information and the required BBC micro:bit code on Martin's Blog. The App that Martin wrote and used in the above video is now available to download now from the Google Play Store and the source code is also due to be released soon. In order for the BBC micro:bit to be controlled via Bluetooth Low Energy you will need to download a .hex file to your BBC micro:bit that enables all of the relevant Bluetooth services. You can find the download link for the BBC micro:bit .hex file for the remote control buggy here.Further Information:
This article only scratched the surface of what is possible using the Bluetooth Low Energy functionality of the BBC micro:bit. For those that wish to dig deeper, the links below provide a wealth of relevant information.- Download Martin Woolley's BBC micro:bit Android App.
- BBC micro:bit Section Of Martin Woolleys blog.
- BBC micro:bit Bluetooth Low Energy Profile Information.
- Bluetooth SIG Website For General Bluetooth Information.
- Follow Martin Woolley On Twitter @bluetooth_mdw.
- Step By Step Build Instructions For The Line Following Buggy.
©Kitronik Ltd – You may print this page & link to it, but must not copy the page or part thereof without Kitronik's prior written consent.