Code and diagram can be found at http://fritzing.org/projects/light-sensor/
---------------------------------
I wanted to do something with the LDR other then what I had done with my getting started book.
The idea is simple, the LDR reads the ambient light, and lights up one of the three LEDs depending on how bright/dim it is. After making it, I added a sensor output just to help me troubleshoot a small problem I was having with the yellow and orange LED flickering. (The Fritzing file shows a white LED only because there is no orange)
I am tilting it away from the light source, not using a tilt sensor in case you were wondering.
Wow that's awesome XD.
EMZ=]
GeekTeen 1 year ago