Skip to main content

Case 14: The Reading Range Guitar

Purpose​


To make a guitar that is able to read ranges.


micro:bit Wonder Building Kit

Materials Required​


Video link: https://youtu.be/B_P8gOaA0Gc

Bricks build-up​


Installation Mthods of Hardwares​

Install the sonar:bit with the bricks.

Hardware Connection​

Connect a sonar:bit to P1 port on Wukong breakout board.

Software Platform​


MakeCode

Coding​


Add extensions​

Click "Advanced" in the MakeCode to see more choices.

Search with Wukong in the dialogue box to download it.

Search with https://github.com/elecfreaks/pxt-sonarbit in the dialogue box to add the sonar:bit extension.

Program​

Link:https://makecode.microbit.org/_1YvYtE8RM8oL

Result​

By detecting the value of the distance between the ultrasonic sensor and the baffle only, the buzzer is controlled to emit different tones.