BBC micro:bit – Ukulele Chord Reader

Ukulele
For this challenge we are going to build a Ukulele Chord Reader for Eric Clapton’s version of the song: “Knock on Heaven’s Door” (Original Author Bob Dylan).

You may want to listen to the song first on youtube

The idea is to use the 25 LEDs of the micro:bit to display each chord of the song to assist a Ukulele player.

First let’s see how a chord works when using a Ukulele:
Ukulele-F-Chord

This is how we will represent the F chord on the BBC micro:bit:
micro-bit-F-chord

Knock on Heaven’s Door


Now let’s look at the full music sheet for “Knock on Heaven’s Door” by Eric Clapton:
Ukulele-Music-Sheet

Challenge


Your task consists of coding your BBC micro:bit (www.microbit.co.k) to represent each chord using the 25 LEDs.

Solution


If you are not sure how to get started, we have started the code for you:
Ukulele-Micro-bit-Solution

Your Task


Use the BBC micro:bit website to code the song. You will need to complete the code provided above to implement the full verse as provided on the above music sheet.

Extension Task 1:


Could you amend your code so that the song restart from the beginning whenever the user presses the A button of the micro:bit.

Extension Task 2:


Could you amend your code further so that the user can use the B button to pause and/or resume the song at any time.

Did you like this challenge?

Click on a star to rate it!

Average rating 3 / 5. Vote count: 2

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!

Tagged with: ,