Changes

Students/KimBeswick

No change in size, 20:53, 18 March 2010
no edit summary
The project is metaphorical, the technology of the speaker serving image and the image serving language, so really, it's an old-fashioned sort of project. The cookie jar is meant to have a very kitschy quality, Yudof looking rosy cheeked and benevolent like he knows what's best for everyone.
To do this, I got a light sensor, and activated the sound depending of if there was enough light past a threshold of 100 coming from the analog input. I took out the batteries of the sound card so that arduino powered it. I tried it with the batteries in, but I couldn't get it to stop playing. I decided to use the threshold instead of a transistor because it didn't work (I thought I might have put it in backwards, but it didn't work facing either direction). This is the code that I finally madeused:
int sensorPin = 2; // this is for the light sensor input
20
edits