Pages: [1]   Go Down
Author Topic: If light falls below x LUX, Activate LEDs  (Read 524 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I bought my very first Arduino Uno today with my first project in mind. If the light in a room falls below, lets say... 10 LUX, it should activate the LEDs. How would i go about doing this. I have the photo sensor and the LEDs. I have some Idea, i just dont know how to call out the photo sensor in the code and all that.


Many thanks, Mitch.
Logged

0
Offline Offline
Shannon Member
****
Karma: 200
Posts: 11730
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are many different kinds of photo sensor - do you have a link to the datasheet for the one you are using?
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are many different kinds of photo sensor - do you have a link to the datasheet for the one you are using?

Its this one http://www.adafruit.com/products/161
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6141
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

There is a pretty extensive Photocell tutorial link on that same product page.  Probably far more detailed we could give you in a forum post. 

Try working through that tutorial and ask questions based on that work.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is a pretty extensive Photocell tutorial link on that same product page.  Probably far more detailed we could give you in a forum post. 

Try working through that tutorial and ask questions based on that work.
ok thanks.
Logged

Pages: [1]   Go Up
Jump to: