Light sensor

First built from scratch project. Three LEDs, each one lights up depending on how bright it is.

I just got my Ardunio for Father's Day so the only sensor I have on hand is a LDR. 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 have almost zero background in electronics, and very little in programming, so this was/is very exciting for me! Link to a small video I made of it working. I am tilting it away from the light source, not using a tilt sensor in case you were wondering.

By m4rlin42
Created on July 4, 2010, 21:42

Category: Analog / Digital

Difficulty: amateurs

License:  Creative Commons Attribution-Share Alike 3.0 Unported License

Tags: ldr, led

Images

Files

Fritzing Files

Code Files

Links

  • Print this
© 2007 - 2011 University of Applied Sciences Potsdam