The light sensor sends data to an Arduino, which is waiting for a spike in the data. The Arduino runs the sensor data through some averaging filters, and sets a threshold for on and off. The iPhone touch screen isn’t like most PDAs. It uses a capacitive touch screen. I had some conductive foam laying around, its usually used for shipping sensitive electronics. If I used something non conductive, like a plastic pen, the foam would do nothing to the screen. My solution to this was to put thin copper wires into the foam (I also used these wires to attach the foam to the servos)… Add all of the above together into a modified Pelican case, with a lot of hot glue (non glittery) and you have a robot that will gladly beat all your difficult songs, sit back and sip some fine tea.
More info here
Posted on: 29/10/2009