3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

LEDs as light sensors

Step 5Add some programming

Add some programming
«
  • DSC00166.JPG
  • DSC00169.JPG
  • DSC00172.JPG
Now that we have some nifty LED sensors (aka - normal LEDs) it's time to make them do something. I make a quick Arduino sketch that turns on an LED when it gets dark. The code is very straightforward; when the voltage from the sensing LED goes below a set level the Arduino knows it is dark and turns on an LED. I used the red super brights for the sensors because they had the best range (IR was too sensitive).

Testing:



Straw diffuser on the blue leds for a dark detecting night light:



Note: This program is just a simple example I thought of and made in a few minutes. This is by no means the only thing you can do with this concept. The meat of this instructable is in the experimenting.

Now that you know how to use LEDs as light sensors go and make something awesome!

« Previous StepDownload PDFView All StepsNext Step »
1 comment
May 6, 2011. 9:59 PMkcd12321 says:
Really interesting and cool. The straw had a great effect.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
10
Followers
3
Author:Zorink