How to make a guitar with a micro:bit ?
To make a guitar with a micro:bit and an ultrasonic sound sensor.
micro:bit x 1
Sonar:bit x 1
RJ11 wire x 1
Bricks x N
Build a device as the picture shows:
Connect the sonar:bit to J1 port on Nezha expansion board.
Go to MakeCode editor:（https://makecode.microbit.org/#editor）Add Wukong extension from the settings on the right upper conner.
Search with Planet X in the dialogue box and add it to the package.
Drag “show icon” into the “on start” brick, save the detected value from the sonar:bit as “I” and judge if it’s between the setting ranges. If yes, set the buzzer to play the tones.
Code more with the slimar procedure and pause for 500ms.
Change the tones of the micro:bit guitar from adjusting the distances from the bricks board to sonar:bit.
Share this post
About the Author
ELECFREAKS focus on microbit and release interesting articles
Welcome global microbit enthusiasts to contribute
- Micro bit supplier
- Wholesale Suppliers
- Micro bit tutorial
- Micro bit classroom pack
- Mcorbit Environment Monitoring
- TPBot car
- Micro:bit car
- AI Lens
- Micor:bit AI Lens
- Microbit gyroscope
- Micro:bit LEDs
- BBC micro:bit
- Micro:bit Manipulator
- Wukong board
- Micro:bit Motorcycle
- Nezha breakout
- Micro:bit DIY