NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

Shake-to-Roll Digital Dice with micro:bit (micro:bit + Scratch)

📌 What you will learn

Shake the micro:bit to roll a random 1–6 die on both screen and LEDs.

How micro:bit Connects to Scratch

Shake the micro:bit to roll a random 1–6 die on both screen and LEDs.

Before starting, confirm Scratch Link (for Bluetooth devices) or USB keyboard input (for Makey Makey) is active on your computer.

All 15 Hardware Projects Explore more micro:bit, LEGO, and Makey Makey ideas. Learn more → micro:bit Setup Guide Full Bluetooth and HEX setup instructions. Learn more →

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.