Case 18: Music Box
This is a music box. We can control the buzzer on the micro:bit to emit different melody by pressing the button A on the micro:bit.
Quick to Start
Nezha expansion board × 1
micro:bit × 1
Tips: You may need to purchase Nezha Inventor's Kit if you want all the above compoents.
Insert the micro:bit to Nezha expansion board.
Programme as the picture shows:
You may also downoad it directly below:
Press button A to switch the music.