Main Content

Simulink Coder Support Package for BBC micro:bit

Generate and deploy code for BBC micro:bit

The Simulink® Coder™ Support Package for BBC micro:bit enables you to create Simulink models and automatically generate and deploy code on BBC micro:bit. The support package includes a library of Simulink blocks for on-chip and on-board peripherals, and it offers deployment support using a built-in scheduler.

The Simulink Coder Support Package for BBC micro:bit also supports MATLAB® functions for BBC micro:bit. These functions enable you to communicate with BBC micro:bit from a host computer running MATLAB. The MATLAB command line interface can be used to access BBC micro:bit's sensors and communication interfaces. Using MATLAB functions, you can collect data from the sensors on BBC micro:bit and actuate devices attached to BBC micro:bit.

Setup and Configuration

Use the following examples to get started with this support package


Prepare model for hardware connection, add blocks to support hardware protocols

Working with MATLAB Functions

Use MATLAB functions to program BBC micro:bit