Play simple melodies with an Arduino and a piezo buzzer.
Connect one pin of the buzzer to ground. Connect the other pin of the buzzer to Arduino pin 12.
Copy the file pitches.h to the same folder as the Arduino sketch. Failing to do so will result in compile errors.
For more details and a demo see: http://42bots.com