programming the bbc micro:bit with matlab and simulink -凯发k8网页登录

is a pocket-sized programmable piece of hardware, designed for school children who want to advance their computational and coding skills. the main features of the micro:bit board include a set of led lights, a couple of sensors: accelerometer and magnetometer, and bluetooth smart technology that enables connectivity to internet and interactions with other devices. its simple easy-to-use interface and great affordability makes it an ideal stepping stone to working with more complex boards such as raspberry pi and arduino.

the simulink support package for bbc micro:bit allows users to work with the micro:bit and at the same time learn about simulink, a professional piece of software used across a wide range of industries.

mathworks and the bbc micro:bit foundation

as a part of its strong commitment to stem education and computational thinking, mathworks developed a support package for bbc micro:bit which enables users to write programs and build models that run on the micro:bit. matlab and simulink make it easy to program low-cost hardware, so users can effortlessly design and build interactive systems and engage in project-based learning.

simulink lessons and examples for bbc micro:bit

by dr. venus shum
university college london

and clifford french
camden school for girls

this material introduces students to using simulink to program bbc micro:bit board. the lessons guide users through the process of modelling a system and simulating its dynamic behavior. within the same simulation environment used by scientists and engineers, students will learn about the computational concepts such as sequencing, time and event driven systems, control and feedback loops and multiplexing.

no prior knowledge of programming or working with hardware is required.

the content includes:

  • 10 lesson plans
  • 9 simulink models

course outline:

  1. flashing led display
    • building a simulink model
    • displaying a happy face on the micro:bit board
    • animating a heartbeat
    • animating fireworks
  2. implementing a direction indicator for a bicycle
    • using the built-in button on the micro:bit board
    • displaying the left and right indicator
    • running micro:bit models in external mode
    • triggering the indicator by pressing the button
    • viewing the accelerometer data
  3. creating your own simulink library

learning outcomes:

  • learning the basic concepts of simulink as a modeling language
  • signal input and output
  • abstraction (subsystem)
  • multiplexing
  • event vs. time driven system
  • model reuse
网站地图