Concept
Music Maker's mission:
Teaches kids about the basic principles behind music and sound. Kids can play a note (or sing a note) into the microphone, then LEDs change color accordingly.
Website Tutorial!
Arduino Tutorial!
Tutorial on Hardware
What You will Need!
Wiring Schematic
Credit to Mert Arduino on Youtube for Figure
Code
Download:
/*Arduino speaker song tutorial * This program will play the theme song of the Malayalam movie * 'Ennu Ninte Moideen'. The song is 'Mukkathe Penne'. * The song is played on the speaker connected to pin 3 and GND. * * Created 26 Oct 2015 * by Akshay James * Video at https://www.youtube.com/watch?v=LgtcUxe8fmA */ #include"pitches.h" // notes in the song 'Mukkathe Penne' int melody[] = { NOTE_D4, NOTE_G4, NOTE_FS4, NOTE_A4, NOTE_G4, NOTE_C5, NOTE_AS4, NOTE_A4, NOTE_FS4, NOTE_G4, NOTE_A4, NOTE_FS4, NOTE_DS4, NOTE_D4, NOTE_C4, NOTE_D4,0, NOTE_D4, NOTE_G4, NOTE_FS4, NOTE_A4, NOTE_G4, NOTE_C5, NOTE_D5, NOTE_C5, NOTE_AS4, NOTE_C5, NOTE_AS4, NOTE_A4, //29 //8 NOTE_FS4, NOTE_G4, NOTE_A4, NOTE_FS4, NOTE_DS4, NOTE_D4, NOTE_C4, NOTE_D4,0, NOTE_D4, NOTE_FS4, NOTE_G4, NOTE_A4, NOTE_DS5, NOTE_D5, NOTE_C5, NOTE_AS4, NOTE_A4, NOTE_C5, NOTE_C4, NOTE_D4, NOTE_DS4, NOTE_FS4, NOTE_D5, NOTE_C5, NOTE_AS4, NOTE_A4, NOTE_C5, NOTE_AS4, //58 NOTE_D4, NOTE_FS4, NOTE_G4, NOTE_A4, NOTE_DS5, NOTE_D5, NOTE_C5, NOTE_D5, NOTE_C5, NOTE_AS4, NOTE_C5, NOTE_AS4, NOTE_A4, NOTE_C5, NOTE_G4, NOTE_A4, 0, NOTE_AS4, NOTE_A4, 0, NOTE_G4, NOTE_G4, NOTE_A4, NOTE_G4, NOTE_FS4, 0, NOTE_C4, NOTE_D4, NOTE_G4, NOTE_FS4, NOTE_DS4, NOTE_C4, NOTE_D4, 0, NOTE_C4, NOTE_D4, NOTE_G4, NOTE_FS4, NOTE_DS4, NOTE_C4, NOTE_D4, END };