To connect a speaker to the Micro:bit so that we can play music. Unfortunately, the Micro:bit does not play the latest and greatest hits, but it can be programmed to play different tones. Your job today is to create a circuit using the microbit, alligator wires and a speaker. After that, you must right a code that plays music.
- With the diagram above as your example, build the simple Micro:bit/Speaker. You will need a speaker, two alligator wires and your Micro:bit.
- Create your own music code. Check out my code below. If your not sure what music to play, try mine, and then come up with your own.