Twelve Drummers Drumming

Recreate a bongo cat drumming a drum!


You'll need

  • 1 x microbit
  • 1 x breakout board
  • 2 x servo

Step 1

Instructions

Open up the micro:bit code editor at https://makecode.microbit.org/#editor and follow the code as shown. This step resets both servos to a default 0º position when the micro:bit is first turned on.


Step 2

Instructions

Now let us work on getting the bongo cat drumming! When button A is pressed, one servo will move to its original position, while the other will move down to 90º (hit the drum).


Step 3

Instructions

That's pretty much it for coding! Now, that's left is to decorate your microbit like a bongo cat!


Code and References

Completed this tutorial?

Spread the word! Let's get this trending on social media with #letsgethacking #TwelveDrummersDrumming