Scratch

The micro:bit extension for scratch allows you to connect wirelessly with the micro:bit. There are a couple of steps to set this up and then you can use the blocks in all sorts of programs.


Ensure your device is capable of running Scratch Link: Windows 10 version 1709+, macOS 10.13+, Bluetooth 4.0.

To check your Bluetooth version:

On Mac:

  1. Click the menu.
  2. Select About This Mac.
  3. Click on the More Info... button.
  4. Click on the System Report... button.
  5. Select Bluetooth from the sidebar on the left, underneath "Hardware."
  6. Scan down the list of information until you find "LMP Version."


If your Mac is equipped with Bluetooth 4.0, LMP Version will say 0x6. Anything lower than that is an older version of Bluetooth.


On Windows

  1. Right click the Start button to open its context menu. Select the item called Device Manager.

  2. In Device Manager, expand the Bluetooth node.
  3. If your PC supports Bluetooth 4.0, you will see the item named Bluetooth LE Enumerator


1. Install Scratch Link

2. Flash the micro:bit over USB with the Scratch .Hex File, you will see the five character name of the micro:bit scroll across the screen eg 'zutiz'.



3. Connect to the micro:bit in the Scratch editor


Here's a demonstration of how to do this



Once you're set up, ou can then try out these Scratch cards for micro:bit


Troubleshooting

If you find that your micro:bit appears to be paired with your computer but is not showing up on scratch, it may be due to the computer attempting to use a previous pairing request.

One thing you could try is to remove any previous pairings you have on the computer. Each time the micro:bit is programmed via USB it erases any previous information on pairing. However, the computer often remembers previous parings to micro:bits and tries to re-establish them. As such you will need to initiate a fresh pairing each time.


If you are using Scratch link in a school environment, you may need to enable this URL and port within your Firewall http://device-manager.scratch.mit.edu:20110/


Other ways to interact with Scratch and micro:bit


Scratch to micro:bit bridge

You can use the scratch to micro:bit bridge, developed by MrYslab:

https://github.com/MrYsLab/s2m


Bluetooth

You can use the S2Bot App plug-in with Scratch, which allows any compatible BLE controller to interact directly with Scratch project:

http://www.picaxe.com/BBC-microbit/


Additional Information

 https://github.com/carlosperate/awesome-microbit/blob/master/README.md#scratch-extensions

Scratch FAQ