Lesson 4
Controlling music with inputs
Introduction
Pupils develop their understanding of using the inputs and outputs on the BBC micro:bit and write, test and debug programs to experiment with using selection and the accelerometer to play different notes. They also consider how the micro:bit could be used to help people who find playing instruments difficult.
Learning objectives
- To identify how inputs are used in programs
- To write programs that use inputs and selection
- To write and evaluate algorithms
You will need
Downloadable resources:
- Lesson plan
- Lesson slides
- Student handouts
- Selection in a musical scale
- Selection in a scale challenge
- HEX files
- starter
- Instrument
Other resources:
MakeCode editor, paper - large sheets, paper - writing, micro:bits (optional), micro:bit battery packs (optional), alligator / crocodile clip leads (optional), headphones (optional), speakers (optional)
Quick links
Lesson plan
Introduction: 3, 2, 1, program (10 minutes)
Selecting conditions (35 minutes)
Writing algorithms (15 minutes)
Extension ideas
Differentiation
Opportunities for assessment
This content is published under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence.