pxt-microbit
Version:
micro:bit target for Microsoft MakeCode (PXT)
94 lines (52 loc) • 2.64 kB
Markdown
# Make
## Materials
* @boardname@, battery holder and 2 AAA batteries
* Banana
* Orange
* 4 Crocodile clips
## Steps
### ``|Step 1|`` - Connect the ground lead

Using the **1st** crocodile clip, connect the end of the crocodile clip onto **GND** pin of the @boardname@.
### ``|Step 2|`` - Connect the sound lead


Using the **2nd** crocodile clip, connect the end of the crocodile clip onto pin **0** of the @boardname@.
### ``|Step 3|`` - Connect the headphone to ground

Using the **1st** crocodile clip, connect the second end of the crocodile clip onto based of the headphone jack.
### ``|Step 4|`` - Connect the headphone sound contact


Using the **2nd** crocodile clip, connect the second end of the crocodile clip onto tip of the headphone jack.
### ``|Step 5|`` - Connect a fruit lead

Using the **3rd** crocodile clip, connect the end of the crocodile clip onto the **1st** crocodile clip already clipped onto **GND**.
### ``|Step 6|`` - Connect the orange to ground


Using the **3rd** crocodile clip, connect the unattached end of the crocodile clip onto the orange.
### ``|Step 7|`` - Connect a second fruit lead

Using the **4th** crocodile clip, connect the end of the crocodile clip onto pin **1** on the @boardname@.
### ``|Step 8|`` - Connect the banana

Using the **4th** crocodile clip, connect the unattached end of the crocodile clip onto the banana.
### ``|Step 9|`` - Complete banana keyboard

Your banana keyboard is ready!
### ``|Step 10|`` - Test the keyboard
Connect your @boardname@ to your computer using your USB cable and run this script:
```blocks
input.onPinPressed(TouchPin.P1, function () {
music.playTone(music.noteFrequency(Note.C), music.beat(BeatFraction.Quarter));
});
```
#### ~hint
How is touching a piece fruit detected by the @boardname@? Find out in this video:
https://www.youtube.com/watch?v=GEpZrvbsO7o
#### ~
Grab the orange with one hand. With the fingers of your other hand, tap the banana to play sound. Your banana keyboard is ready!
## ~button /projects/banana-keyboard/code
NEXT: beat box
## ~