Micro:bits: Happy Birthday
Turn your micro:bit into a music player. Code musical notes using simple commands. Listen to your program using earphones and crocodile clips and wish your friends or family a happy birthday!
OVERVIEW
Activity Overview:
Turn your micro:bit into a music player. Code musical notes using simple commands. Listen to your program using earphones and crocodile clips and wish your friends or family a happy birthday!
Meta description
- Subject Area: Computer Science, Music
- Grade Level : 3-5, 6-8
- Computer Science Domains:
- Algorithms and Programming
- Computer Science Principles:
- Recognizing and Defining Computational Problems
- Materials:
- Micro:bit
- Considerations: +
Lesson Plan
Overview
Turn your micro:bit into a music player. Code musical notes using simple commands. Listen to your program using earphones and crocodile clips and wish your friends or family a happy birthday!
ASSESSMENT PRE/POST-TEST
Can you use simple commands such as play, notes, and keys?
OBJECTIVES
learn how to setup the micro:bit as a music player learn how to code music on the micro:bit
CATCH/HOOK
It’s your friend’s birthday. Can you code a program that with wish them a happy birthday with music?
ACTIVITY INSTRUCTIONS
Let’s use music blocks to play sounds on our micro:bit.
Start by adding the code that includes a single musical chord with e the ‘play’ block.Insert the chord “C’.Click ‘run’ to see if your code works.Now keep adding musical chords with the ‘play block.’ Place the appropriate chord blocks, “D”,”F”, and “G” to finish the first part of the song. Keep everything to a “1/4” beat.Place a ‘pause’ block at the end of the first part with the value of “100”.Start the second part of the song, looking for the appropriate notes and pauses.Click ‘run’ to see if the code works as expected.Once you’ve finished, connect your micro:bit using pins P0 and GND. Connect using earphones or a speaker with crocodile or spring clips.
Supplements
Any items in this section are the property & under the license of their respective owners.
REVIEW
Play your song over speakers or earphones using crocodile clips. Challenge yourself by coding another one of your favorite songs.
STANDARDS
| Type | Listing |
|---|---|
| CS Domains | Algorithms and Programming |
| CS Principles | Recognizing and Defining Computational Problems |
| Other Content Standards |