62 lines
1.8 KiB
Markdown
62 lines
1.8 KiB
Markdown
# hack your headphones
|
|
|
|
Hack your headphones
|
|
|
|
# micro:bit music
|
|
|
|
![](/static/mb/lessons/hack-your-headphones-0.png)
|
|
|
|
In this project, you will build your own music player micro:bit from headphones. Project duration: 15 minutes.
|
|
|
|
## Materials
|
|
|
|
* micro:bit, battery holder and 2 AAA batteries
|
|
* Headphones
|
|
* 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. The base of your headphone jack is considered the ground so it is connected to the GND of the micro:bit.
|
|
|
|
### Step 4
|
|
|
|
![](/static/mb/lessons/banana-keyboard-5.png)
|
|
|
|
![](/static/mb/lessons/hack-your-headphones-1.png)
|
|
|
|
Using the 2nd crocodile clip, connect the second end of the crocodile clip onto the tip of the headphone jack. The tip of your headphone jack feeds into the right speaker on the headphone. You connect from the micro:bit pin 0 to the tip of the right side of your headphone. Use the tip of the headphone jack to play sounds.
|
|
|
|
### Step 5
|
|
|
|
![](/static/mb/lessons/hack-your-headphones-0.png)
|
|
|
|
You hacked your headphones!
|
|
|
|
### Step 6
|
|
|
|
Connect your micro:bit to your computer using your USB cable and program [light beatbox](/lessons/light-beatbox/activity) music on it. Press the reset button to restart your music player!
|
|
|
|
### ~avatar avatar
|
|
|
|
Excellent, you're ready to continue with the [challenges](/lessons/light-beatbox/activity)!
|
|
|
|
### ~
|