Arduino Forum
Ambient light controlled light
Forum 2005-2010 (read only)
General
Frequently-Asked Questions
Big_Oil
January 13, 2011, 2:19am
6
light=analogRead(1);
if (light < 500){
digitalWrite(relay,HIGH);
} else {
digitalWrite(relay,LOW);
}
show post in topic
Related topics
Topic
Replies
Views
Activity
Automatic Room Light Intensity Control System
LEDs and Multiplexing
4
8853
May 6, 2021
School Project
General Guidance
12
1906
May 5, 2021
Outdoor Light Sensing controller
General Guidance
3
3053
May 5, 2021
Very new, very confused ;-)
Frequently-Asked Questions
15
3336
May 6, 2021
Automatic Room Light Intensity Control System
Sensors
2
3081
May 6, 2021