A simple tone player using BBC Micro:bit board. Watch the video below to see it in action, then follow the instructions to build your own!
1. What You Need πTo build this project, you will need the following items:
- A Micro:bit board
- 2 mini alligator wires
- A PC/laptop with any OS
- A speaker
- Connect your speaker's audio jack to Micro:bit as the following picture:
Connecting Micro:bit board to a speaker
- Open Microsoft Makecode for Micro:bit site (https://makecode.microbit.org/) to create commands for Micro:bit. You can write the code using Javascript or simply choose Blocks menu. If you choose Javascript, write the lines on attachment below. And if using Blocks, arrange the code like the following picture:
Blocks
- After that, click Download button to get a .hex file for your Micro:bit board. Simply connect your Micro:bit to your PC/laptop, then paste the .hex file into it.
- Done! You're ready to go! Have fun! π
Comments