pxt-calliope/docs/projects/banana-keyboard/making.md

86 lines
2.0 KiB
Markdown
Raw Normal View History

2016-10-04 04:07:54 +02:00
# banana keyboard - making
## Materials
2016-11-02 01:44:37 +01:00
* @boardname@, battery holder and 2 AAA batteries
2016-10-04 04:07:54 +02:00
* Bananas
* Orange
* Crocodile clips
## Steps
### Step 1
![](/static/mb/lessons/banana-keyboard-1.png)
2016-11-02 01:44:37 +01:00
Using the 1st crocodile clip, connect the end of the crocodile clip onto GND pin on the @boardname@.
2016-10-04 04:07:54 +02:00
### Step 2
![](/static/mb/lessons/banana-keyboard-2.png)
![](/static/mb/lessons/banana-keyboard-3.png)
2016-11-02 01:44:37 +01:00
Using the 2nd crocodile clip, connect the end of the crocodile clip onto the 0 pin on the @boardname@.
2016-10-04 04:07:54 +02:00
### Step 3
![](/static/mb/lessons/banana-keyboard-4.png)
Using the 1st crocodile clip, connect the second end of the crocodile clip onto based of the headphone jack.
### Step 4
![](/static/mb/lessons/banana-keyboard-5.png)
![](/static/mb/lessons/banana-keyboard-6.png)
Using the 2nd crocodile clip, connect the second end of the crocodile clip onto tip of the headphone jack.
### Step 5
![](/static/mb/lessons/banana-keyboard-7.png)
Using the 3rd crocodile clip, connect the end of the crocodile clip onto the 1st crocodile clip already clipped onto GND.
### Step 6
![](/static/mb/lessons/banana-keyboard-8.png)
![](/static/mb/lessons/banana-keyboard-9.png)
Using the 3rd crocodile clip, connect the unattached end of the crocodile clip onto the orange.
### Step 7
![](/static/mb/lessons/banana-keyboard-10.png)
2016-11-02 01:44:37 +01:00
Using the 4th crocodile clip, connect the end of the crocodile clip onto pin 1 on the @boardname@.
2016-10-04 04:07:54 +02:00
### Step 8
![](/static/mb/lessons/banana-keyboard-11.png)
Using the 4th crocodile clip, connect the unattached end of the crocodile clip onto the banana.
### Step 9
![](/static/mb/lessons/banana-keyboard-12.png)
Your banana keyboard is ready!
### Step 10
2016-11-02 01:44:37 +01:00
Connect your @boardname@ to your computer using your USB cable and run this script:
2016-10-04 04:07:54 +02:00
```blocks
input.onPinPressed(TouchPin.P1, () => {
music.playTone(music.noteFrequency(Note.C), music.beat(BeatFraction.Quarter));
});
```
Tap your banana instrument to play sound against... the fruit!
### ~button /projects/banana-keyboard/beat-box
NEXT: beat box
### ~