Skip to main content
Using micro:bit with Scratch on CodeHS

Set up and troubleshoot micro:bit connections with Scratch

Gary Gould avatar
Written by Gary Gould
Updated over a week ago
Image says "CodeHS Elementary License Required" and an icon of Scout the Squirrel.

The micro:bit® is a user-friendly, programmable microcontroller designed to inspire students to explore the world of coding and electronics. Its compatibility with Scratch makes it an excellent tool for introducing programming concepts in a visual and interactive way.

Setting Up Your micro:bit®

  • Unbox the Kit: Check that all components are included.

  • Connect to a Device: Use the USB cable to connect the micro:bit® to a computer or tablet.

  • Access Scratch: Visit Scratch in CodeHS and find the micro:bit extension.

microbit pictured in its original packaging

What's in the Box?

  • 1 micro:bit® board

  • USB Cable

  • Battery Holder

  • 2 AAA Batteries

  • Start Guide

Additional Materials You Might Need

  • Computer or tablet with internet connection

  • Scratch online editor access

  • Conductive materials for hands-on projects (like aluminum foil, copper tape)


Programming with Scratch

  • Scratch Extension for micro:bit®: The Scratch programming environment includes a dedicated extension for the micro:bit, offering an intuitive way to program the device using block-based coding.

  • Simple to Advanced Projects: Start with basic projects and progress to more complex ones as students become more comfortable with the interface.

  • Real-Time Interaction: Students can see the immediate impact of their code on the micro:bit®, making learning both engaging and rewarding.

Advanced Programming Features

  • Use of Sensors and Inputs: Incorporate the micro:bit's built-in sensors and input/output pins in your Scratch projects for interactive experiences.

  • Creative Coding: Encourage students to experiment with various programming constructs available in Scratch to control the micro:bit®, fostering creativity and problem-solving skills.

Accessing micro:bit in Scratch

  • Open a Scratch program

  • Click the Menu in the bottom left for Extensions > Select micro:bit

  • micro:bit blocks will then be available in the editor

Video showing how to access the Extensions menu and select micro:bit extension from a Scratch project


Resources and Support

  • Online Tutorials and Guides: The micro:bit® website and Scratch’s online resources provide comprehensive guides and tutorials for educators and students.

  • Community Support: Join a community of educators and learners to share experiences, challenges, and successes.

CodeHS Scratch compatibility with micro:bit

CodeHS currently supports micro:bit in Scratch in these environments:

  • Windows or MacOS: works in CodeHS Scratch with ScratchLink installed.

    • A specific Hex code must also be installed onto the micro:bit.

CodeHS does not support micro:bit with Scratch in these environments:

  • iOS (iPads)

  • ChromeOS (Chromebooks)

    • It's possible to use the Scratch Chrome App with Bluetooth outside of CodeHS. A specific Hex code must also be installed onto the micro:bit.

Tips and FAQ

Trouble connecting to micro:bit

We recommend using the original cord that ships with micro:bit. Since this connection must be able to transfer data and not just charge, not all stock cords will work as expected. See more information about connectivity issues from the micro:bit site.


CodeHS Elementary Curriculum is included with an Elementary License. For more information reach out to hello@codehs.com.

Did this answer your question?