Loading...
Pages: [1]   Go Down
Author Topic: If light falls below x LUX, Activate LEDs  (Read 256 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
Tesla Member
***
Karma: 71
Posts: 6611
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

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: 41
Posts: 5171
CMiYC
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

www.cmiyc.com - A guide to being an Enginerd

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
Print
 
Jump to: