Linkit ONE Baics: Audio Buzzer

Makes Basic melodies
Materials

1kohm Resistor
Buzzer
Linkit ONE
Breadboard
Wire
NPN transistor
Step 1: Connecting

First connect the buzzer, transistor and resistors. Follow the picture above.
Connecting Continued


On the Linkit ONE connect these three wires. Color doesn't matter but i recommend using different colors to keep as organized as possible


Connect the wires on the Linkit ONE to the bread board. Do not inter-cross them.
Connecting Con.


Add these four wires to the breadboard. Don't remove what was on it already , i did it so you could get a better view of where to put the wires. Again i advise using different color wires.
Connecting Finish

This is what it should look like when you are finish.
Coding and Finish
The code will allow the buzzer to play melodies and do a basic scale. Code: Download
If you have any questions leave a comment and please follow me