About

The Scratch 3.0 micro:bit extension lets you control your micro:bit wirelessly using Scratch programming blocks. You can use the tilt sensor or push buttons to design a whole new way of interacting with your Scratch projects. Use the LED matrix to display information or create light animations.

NOTE: This is an experimental prototype for the upcoming Scratch 3.0 micro:bit extension. The micro:bit extension will be officially released along with Scratch 3.0 later in the Summer of 2018. This prototype works on Mac, ChromeOS, Linux (see note), and Windows 10 (with web bluetooth polyfill).

Getting Started

  1. Download the scratch-firmware-combined.hex and copy it to the micro:bit using the USB cable.
  2. Launch the Scratch 3.0 + micro:bit prototype.
  3. Add the micro:bit blocks by clicking the choose an extension button button in the bottom left hand corner and choosing the micro:bit extension.
  4. Click the bluetooth icon icon in the top menu and choose your micro:bit device in the popup window. Each micro:bit comes with a randomly assigned name which makes it easier to identify.

Examples

Click File > Upload from your computer to load the example projects.


Buttons

Move and animate the Scratch cat by pressing the A and B micro:bit buttons.

Display

This simple example displays text or numbers on the micro:bit LED matrix.

Tilt

Move the fish around the screen using the micro:bit tilt sensor. Change the color effect of the fish by shaking the micro:bit.

Blocks

Do something when one (or any) of the buttons are pressed.

Do something anytime the micro:bit detects movement.

Do something when the micro:bit is physically shaken.

Do something when the micro:bit is tossed in the air.
HINT try putting the micro:bit in your pocket and jumping around.

Display text or numbers on the LED matrix. If you display individual letters or numbers, they will remain on the display until something else is written. Words or multi-digit numbers will automatically scroll across the display.

Display a custom symbol on the micro:bit screen.

Clear the display.

Do something when the micro:bit is tilted towards the selected direction.

Check if the micro:bit is tilted towards the selected direction.

Get the current tilt angle of the micro:bit in degrees.

Do something when one of the pins (0, 1, 2) are connected to ground (GND).