How to make a guitar with a micro:bit ?

Purpose
To make a guitar with a micro:bit and an ultrasonic sound sensor.
Materails
micro:bit x 1
Sonar:bit x 1
RJ11 wire x 1
Bricks x N
Assembly steps
Build a device as the picture shows:
Hardware Connections
Connect the sonar:bit to J1 port on Nezha expansion board.
Software programming
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.
Coding:
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.
Link:https://makecode.microbit.org/_Rv53CyYY03hg
Result
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 focuses on microbit and publishes interesting articles
Related Posts
Introduction to the history of the BBC micro:bit
New BBC micro:bit-micro:bit V2
How to make a meme with micro:bit ?
Topics
- Curriculum
- Course
- Micro bit supplier
- Wholesale Suppliers
- Micro bit tutorial
- Micro bit classroom pack
- Mcorbit Environment Monitoring
- Temperature-controlled
- Motor
- Fan
- TPBot car
- TPBot
- Micro:bit car
- AI Lens
- Micor:bit AI Lens
- Micro:bit LEDs
- BBC micro:bit
- Micro:bit Manipulator
- Wukong board
- Cutebot
- Micro:bit Motorcycle
- Nezha breakout
- Micro:bit DIY
- 360° servos
- AI Lens
- Retro Arcade
- Ecode
- PlanetX
- Microbit programming
- Your:bit
- Do your:bit
- IoT:bit
- Octopus
- Rainbow LED Ring
- Joystick:bit
- Wonder Building Kit
- Sensor:bit
- Downie
- Wenjie
- Laser Engraver Tutorial
Tags
Comments