Microbit to Webpage via Web Bluetooth

⚠ This browser doesn't support Web Bluetooth, so it can't connect to a micro:bit here. Use desktop Chrome or Edge, or Chrome on Android. Safari, Firefox and iOS browsers don't work.

This is a proof of functionality of connecting a micro:bit to a webpage via Bluetooth to send messages back and forth between microbit and browser. You could extend this technique to make a physical joystick for a web based game, for example.

Set Up

  1. Program the microbit v2 with this demo program
  2. Set makecode project settings to "No Pairing Required: Anyone can connect via Bluetooth."
  3. Restart Microbit
  4. On this page, click the "Pair micro:bit via Bluetooth" button above
  5. In the pop up window, select BBC microbit [NAME] and click "pair"

Notes