From 87d34ba030d8252b29e72a18dfd82eae9dc0837d Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Mon, 3 Oct 2016 19:07:54 -0700 Subject: [PATCH] restructed banana lesson --- docs/projects/banana-keyboard.md | 97 +++---------------- .../beat-box.md} | 2 +- docs/projects/banana-keyboard/making.md | 85 ++++++++++++++++ docs/projects/guitar.md | 4 + 4 files changed, 103 insertions(+), 85 deletions(-) rename docs/projects/{banana-keyboard-challenges.md => banana-keyboard/beat-box.md} (98%) create mode 100644 docs/projects/banana-keyboard/making.md diff --git a/docs/projects/banana-keyboard.md b/docs/projects/banana-keyboard.md index 3685f347..475243b2 100644 --- a/docs/projects/banana-keyboard.md +++ b/docs/projects/banana-keyboard.md @@ -1,12 +1,16 @@ -# banana keyboard activity +# banana keyboard -build a banana keyboard +### @description A beginner maker activity, building a piano from bananas. -# micro:bit banana keyboard +### ~avatar + +Build your own micro:bit piano using bananas! + +### ~ ![](/static/mb/lessons/banana-keyboard-0.png) -In this project, you will build your own music player micro:bit banana keyboard from household fruit. Project duration: 15 minutes. +## Duration: ~20 minutes. ## Materials @@ -15,86 +19,11 @@ In this project, you will build your own music player micro:bit banana keyboard * Orange * Crocodile clips -## Steps +## Activities -### Step 1 - -![](/static/mb/lessons/banana-keyboard-1.png) - -Using the 1st crocodile clip, connect the end of the crocodile clip onto GND pin on the micro:bit. - -### Step 2 - -![](/static/mb/lessons/banana-keyboard-2.png) - -![](/static/mb/lessons/banana-keyboard-3.png) - -Using the 2nd crocodile clip, connect the end of the crocodile clip onto the 0 pin on the micro:bit. - -### 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) - -Using the 4th crocodile clip, connect the end of the crocodile clip onto pin 1 on the micro:bit. - -### 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 - -Connect your micro:bit to your computer using your USB cable and run this script: -```blocks -let sound = music.noteFrequency(Note.C); -input.onPinPressed(TouchPin.P1, () => { - for (let i = 0; i < 5; i++) { - sound = sound + 25; - music.playTone(sound, music.beat(BeatFraction.Sixteenth)); - } -}); -``` - -Tap your banana instrument to play sound against... the fruit! - - -### ~avatar boothing - -Excellent, you're ready to continue with the [challenges](/projects/banana-keyboard-challenges)! +* [Making the keyboard](/projects/banana-keyboard/making) +* [Beat box](/projects/banana-keyboard/beat-box) +### ~button /projects/banana-keyboard/making +Let's get started! ### ~ diff --git a/docs/projects/banana-keyboard-challenges.md b/docs/projects/banana-keyboard/beat-box.md similarity index 98% rename from docs/projects/banana-keyboard-challenges.md rename to docs/projects/banana-keyboard/beat-box.md index 82f2450f..d5040ef5 100644 --- a/docs/projects/banana-keyboard-challenges.md +++ b/docs/projects/banana-keyboard/beat-box.md @@ -1,4 +1,4 @@ -# banana keyboard blocks challenges +# banana keyboard - beat box Have you ever tried to making beat box sounds? Let's try making a beatbox with code! diff --git a/docs/projects/banana-keyboard/making.md b/docs/projects/banana-keyboard/making.md new file mode 100644 index 00000000..a591f992 --- /dev/null +++ b/docs/projects/banana-keyboard/making.md @@ -0,0 +1,85 @@ +# banana keyboard - making + +## Materials + +* micro:bit, battery holder and 2 AAA batteries +* Bananas +* Orange +* Crocodile clips + +## Steps + +### Step 1 + +![](/static/mb/lessons/banana-keyboard-1.png) + +Using the 1st crocodile clip, connect the end of the crocodile clip onto GND pin on the micro:bit. + +### Step 2 + +![](/static/mb/lessons/banana-keyboard-2.png) + +![](/static/mb/lessons/banana-keyboard-3.png) + +Using the 2nd crocodile clip, connect the end of the crocodile clip onto the 0 pin on the micro:bit. + +### 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) + +Using the 4th crocodile clip, connect the end of the crocodile clip onto pin 1 on the micro:bit. + +### 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 + +Connect your micro:bit to your computer using your USB cable and run this script: +```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 +### ~ diff --git a/docs/projects/guitar.md b/docs/projects/guitar.md index fc7c8273..7830d925 100644 --- a/docs/projects/guitar.md +++ b/docs/projects/guitar.md @@ -1,5 +1,7 @@ # Guitar + ![guitar icon](/static/mb/projects/guitar.png) + ### @description A beginner-intermediate maker activity, building a guitar with the micro:bit ### ~avatar avatar @@ -15,6 +17,7 @@ https://youtu.be/GYmdTFvxz80 5 Activities, approx 30-45 min each based on familiarity with the coding concepts ## Materials + * Cardboard large pieces (recycle!) * Tape (masking, duct Tape, and/or packing tape) * Markers and/or paint @@ -25,6 +28,7 @@ https://youtu.be/GYmdTFvxz80 * Headphones ## Activities + * [Making the Guitar Body](/projects/guitar/making) * [Buttons, Display & Sound](/projects/guitar/displaybuttons) * [Light Sensor Tone control](/projects/guitar/lightsensor)