Hardware Support

BBC micro:bit Hardware Support from MATLAB and Simulink

Capabilities and Features

The Simulink Coder Support Package for BBC micro:bit™ enables you to program the micro:bit board using Model-Based Design. With Simulink, you can build models using block diagrams instead of text-based code. This approach lets you simulate behavior before running it on hardware and automatically generate code that runs directly on the micro:bit.

By shifting the focus from programming syntax to logic and system behavior, this workflow enables you to confidently engage in project-based learning, even if you are new to coding.

The support package includes blocks for configuring and accessing many built-in micro:bit sensors, actuators, and communication interfaces, including:

  • 5×5 LED matrix
  • Buttons (A and B)
  • Accelerometer and Magnetometer (compass)
  • Radio communication
  • Audio output (micro:bit v2 speaker)
  • Digital and analog I/O pins
  • Pulse Width Modulation (PWM) outputs

Supported Hardware

BBC micro:bit boards

  • BBC micro:bit v2 (primary target)
  • Compatible with micro:bit v1 and v1.5

This support package is available on releases MATLAB R2016b and later.

Platform and Release Support

See the hardware support package system requirements table for current and prior version, release, and platform availability.

Get Started with the BBC micro:bit