BBC micro:bit Hardware Support from MATLAB and Simulink
Capabilities and Features
The Simulink Coder™ Support Package for BBC micro:bit lets you use model-based design to program the micro:bit board. With Simulink, you can build models using block diagrams instead of text-based code, simulate behavior before running 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 jump into project-based learning with confidence, even if you’re 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.