Input / Output Coincidence Lab Assignment

"Slide Whistle"
Using an FSR, a light sensitive resistor, a piezo speaker and a homemade slide "whistle", I relearned how frustrating it is to get the right notes to come out when you want.
Video: http://www.youtube.com/watch?v=RNeqS4zIRB4
The code breaks each section of the "whistle" into notes, ranging from low c to C. You then press on the button when you want the note to come out. The Serial monitor outputs what note you're playing.

- Components Used: LEDs, photocell, piezo speaker
- Description:
Photocell detects the light density so that it tells that whether the card is open or not. When the card is open, it plays birthdaysong and blinks candles in a card. This birthdaycard can be for either 3-year-old kid or 30-year-old guy!

Description:
I used a small candy tin as the object that would receive input and give output. The input was through light which was sensed by the photocell, and output was given by sound from the piezo speaker. The box would set off an alarm sound when opened.
You can see the video here.
Materials Used:
- Piezo speaker
- Photocell
- 10kohm resistor
- Tin box
Code:

Video: http://www.youtube.com/watch?v=N64cGSj56rs