Overview

In general, there is not one standard UART profile for BLE in the same way as there was for Bluetooth Classic. However, the micro:bit does include a Bluetooth UART service that is compatible with the Nordic UART service.


There is also documentation on using this with MakeCode Editor


Flash a program with UART enabled to your micro:bit

  1. Visit https://makecode.microbit.org/ and create a new project.
  2. Add the Bluetooth package by expanding the Advanced header in the list of block categories and then choosing Add Package
  3. Select Bluetooth and accept that the Radio package will be removed.
  4. You can now add the UART service from within the Bluetooth blocks menu.

Example

Here is an example program that uses the uart.


This example program can be used with any UART app that follows the Nordic UART protocol, but the example above was tested on Android with Serial Bluetooth Terminal and the micro:bit android app.


  1. Pair the micro:bit with the micro:bit android app
  2. Open Serial Bluetooth Terminal
  3. From the menu select devices and tap on the micro:bit you want to connect to
  4. Press Button A on the micro:bit to print a message on the serial console.



If you have had success with a different app, please let us know and we will include it here.

Keywords for search: serial over Bluetooth, Nordic,UART over BLE