Description
This lab focused on input-output coincidence. Using Arduino language I coded for a light input (using a photosensor) with an LED output.
My setup was an iPhone with its screen abutting a photosensor that dictated if the LED was on or off. At equilibrium, the iPhone screen was off and the photosensor was calibrated to keep the LED off as well. Whenever the iPhone received anything, however, its screen would automatically turn on, surpassing the set threshold for the photosensor and the LED would turn on. As soon as the iPhone screen turned off, the system would go back to equilibrium. See video here (https://docs.google.com/file/d/0B9s_t9tg0OGTdDZRYU56X0lyUjg/edit?usp=sharing) .
Components Used
1 – Arduino Uno
1 – Mini Breadboard
1 – 10 KΩ Resistor
1 – 220 Ω Resistor
1 – Photosensor
1 – LED (green)
1 – iPhone
1 – ledge (yogurtland cup)
Code
- Login to post comments