Skip to content

Unit of work

Musical micro:bit

Computational thinking, Computer systems, Music, Programming | MakeCode | 7-11 yrs

Lesson 2

Programming & debugging music


Pupils explore using the BBC micro:bit to play musical phrases. They write programs using the MakeCode editor, extending their understanding of repetition and inputs from previous unit and connect speakers/headphones to their micro:bit to play their music.

Learning objectives

  • To use existing knowledge to improve programs
  • To write and debug musical programs
  • To experiment (tinker) with the micro:bit to make music

You will need

Downloadable resources:

  • Lesson plan
  • Lesson slides
  • HEX files
    • starter
    • example
    • support

Other resources:

MakeCode editor, student work from previous lesson, printouts of slides, micro:bits (optional), micro:bit battery packs (optional), alligator / crocodile clip leads (optional), headphones (optional), speakers (optional)

Lesson plan