2017-01-31 17:29:25 +01:00
|
|
|
# Make
|
2016-10-04 04:07:54 +02:00
|
|
|
|
|
|
|
## Materials
|
|
|
|
|
2016-11-02 01:44:37 +01:00
|
|
|
* @boardname@, battery holder and 2 AAA batteries
|
2017-11-28 04:14:03 +01:00
|
|
|
* Banana
|
2016-10-04 04:07:54 +02:00
|
|
|
* Orange
|
2017-11-28 04:14:03 +01:00
|
|
|
* 4 Crocodile clips
|
2016-10-04 04:07:54 +02:00
|
|
|
|
|
|
|
## Steps
|
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
### ``|Step 1|`` - Connect the ground lead
|
2016-10-04 04:07:54 +02:00
|
|
|
|
|
|
|
![](/static/mb/lessons/banana-keyboard-1.png)
|
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
Using the **1st** crocodile clip, connect the end of the crocodile clip onto **GND** pin of the @boardname@.
|
2016-10-04 04:07:54 +02:00
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
### ``|Step 2|`` - Connect the sound lead
|
2016-10-04 04:07:54 +02:00
|
|
|
|
|
|
|
![](/static/mb/lessons/banana-keyboard-2.png)
|
|
|
|
|
|
|
|
![](/static/mb/lessons/banana-keyboard-3.png)
|
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
Using the **2nd** crocodile clip, connect the end of the crocodile clip onto pin **0** of the @boardname@.
|
2016-10-04 04:07:54 +02:00
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
### ``|Step 3|`` - Connect the headphone to ground
|
2016-10-04 04:07:54 +02:00
|
|
|
|
|
|
|
![](/static/mb/lessons/banana-keyboard-4.png)
|
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
Using the **1st** crocodile clip, connect the second end of the crocodile clip onto based of the headphone jack.
|
2016-10-04 04:07:54 +02:00
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
### ``|Step 4|`` - Connect the headphone sound contact
|
2016-10-04 04:07:54 +02:00
|
|
|
|
|
|
|
![](/static/mb/lessons/banana-keyboard-5.png)
|
|
|
|
|
|
|
|
![](/static/mb/lessons/banana-keyboard-6.png)
|
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
Using the **2nd** crocodile clip, connect the second end of the crocodile clip onto tip of the headphone jack.
|
2016-10-04 04:07:54 +02:00
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
### ``|Step 5|`` - Connect a fruit lead
|
2016-10-04 04:07:54 +02:00
|
|
|
|
|
|
|
![](/static/mb/lessons/banana-keyboard-7.png)
|
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
Using the **3rd** crocodile clip, connect the end of the crocodile clip onto the **1st** crocodile clip already clipped onto **GND**.
|
2016-10-04 04:07:54 +02:00
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
### ``|Step 6|`` - Connect the orange to ground
|
2016-10-04 04:07:54 +02:00
|
|
|
|
|
|
|
![](/static/mb/lessons/banana-keyboard-8.png)
|
|
|
|
|
|
|
|
![](/static/mb/lessons/banana-keyboard-9.png)
|
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
Using the **3rd** crocodile clip, connect the unattached end of the crocodile clip onto the orange.
|
2016-10-04 04:07:54 +02:00
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
### ``|Step 7|`` - Connect a second fruit lead
|
2016-10-04 04:07:54 +02:00
|
|
|
|
|
|
|
![](/static/mb/lessons/banana-keyboard-10.png)
|
|
|
|
|
2017-11-28 04:14:03 +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
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
### ``|Step 8|`` - Connect the banana
|
2016-10-04 04:07:54 +02:00
|
|
|
|
|
|
|
![](/static/mb/lessons/banana-keyboard-11.png)
|
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
Using the **4th** crocodile clip, connect the unattached end of the crocodile clip onto the banana.
|
2016-10-04 04:07:54 +02:00
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
### ``|Step 9|`` - Complete banana keyboard
|
2016-10-04 04:07:54 +02:00
|
|
|
|
|
|
|
![](/static/mb/lessons/banana-keyboard-12.png)
|
|
|
|
|
|
|
|
Your banana keyboard is ready!
|
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
### ``|Step 10|`` - Test the keyboard
|
2016-10-04 04:07:54 +02:00
|
|
|
|
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));
|
|
|
|
});
|
|
|
|
```
|
|
|
|
|
2017-11-28 04:14:03 +01:00
|
|
|
Grab a the orange with one hand. With the fingers of your other hand, tap the banana to play sound. Your banana keyboard is ready!
|
2016-10-04 04:07:54 +02:00
|
|
|
|
2017-09-07 22:42:08 +02:00
|
|
|
## ~button /projects/banana-keyboard/code
|
2016-10-04 04:07:54 +02:00
|
|
|
NEXT: beat box
|
2017-09-07 22:42:08 +02:00
|
|
|
## ~
|