Gebruik de micro:bit met iOS - verbinden met Bluetooth

Het verbinden van je micro:bit met je iOS apparaat geeft je de mogelijkheid om onderweg je micro:bit te programmeren door gebruik te maken van de officiele micro:bit app. Gebruik deze gids en de uitgebreide hulp in de app om te leren hoe je de micro:bit kunt gebruiken met je iOS apparaat!

Snelle start

1: Plaats ("Flash") dit hex bestand op je micro:bit via USB (instructie hier) om de laatste versie van de micro:bit pairing software te verkrijgen.

2: Verkrijg de app voor iOS

3: Voordat er Bluetooth communicatie met je telefoon kan (pairing of flashing), start in de pairing mode

4: Pair je micro:bit met de app door 'Choose micro:bit' te selecteren

5: Start coderen! Nu kan je de micro:bit programmeren via Bluetooth.

Tip voor een groot succes:

  • You should always enter pairing mode before trying to flash/program your micro:bit over Bluetooth
  • Every time you program the micro:bit over USB it is fully erased, including pairing information. Therefore you must forget it iOS Settings-->Bluetooth and pair again.

What can I do with the iOS app?

The micro:bit app allows you to connect to your micro:bit from your phone or tablet, then create code and send it straight to your micro:bit. You can use the app to create code in the Javascript Blocks Editor (powered by Microsoft MakeCode), but unfortunately, Python and Bluetooth cannot be used together.

See some example activities

You can also use the new 'Monitor and Control' section to watch the state of your micro:bit, and even trigger actions like button presses from your iOS device

The app has five sections:

  • Choose micro:bit is where you go to pair/connect your phone/tablet (device) to your micro:bit
  • Create Code takes you directly to the Javascript Blocks editor (powered by Microsoft MakeCode) where you can write your own programs and then download them to the micro:bit, just as if you were on a PC
  • Flash stuurt het codebestand (.HEX) van smartphone of tablet naar de micro:bit
  • Monitor and Control allows you to observe real-time data from the micro:bit sensors, send messages directly to the LEDs and control the micro:bit buttons and pins from your iPad or iPhone. (Monitor is ideal for exploiting Bluetooth services in real-time, and for de-bugging your program code.) These facilities are only available if you have added Bluetooth services these to your program, or use one of the samples like ‘monitor-services’ in the 'Flash' page of the app.
  • Ideas takes you to the micro:bit website where you can get ideas and examples from other people

How to 'pair' the micro:bit

'Pairing' is when you set up a connection between your micro:bit and your iOS device. The app searches for your micro:bit using using a unique pattern, and may prompt you for a passcode, if you are using an older program, or have configured Passcode Pairing in MakeCode

  • Before pairing, download this HEX file and copy it onto the micro:bit via USB. It will update the Bluetooth pairing software on the micro:bit to the lastest version and run through the instructions for entering pairing mode.
  • You enter pairing mode by holding down buttons A+B and pressing, then releasing the reset button on the back of the micro:bit while still holding A+B. Check out the video just above to learn more about pairing the micro:bit.
USB Programing erases the pairing information

When you program the device over USB it will completely erase the previous program and settings, including any pairing information. This means that you will have to 'forget' your micro:bit in Settings->Bluetooth on your iOS device after each USB programming. You do not need to do this if you are only using Bluetooth to program your device.

Discover More

Check out the full Bluetooth Troubleshooting Guide if you are having issues with Bluetooth.

Troubleshooting Guide

Take a look at the apps page to learn more about coding the micro:bit from a mobile device.


Activities you can use with the iOS App