Introduction: Arduino Night Light

Picture of Arduino Night Light

Arduino Night Light
This project creates an automated night light. The lights will turn on automatically when the
room is dark, and off when the room is light.

Components Needed:

1x Arduino
1x Breadboard
3x 220 Ohm Resistors
1x 10K Ohm Resistor
3x LED's

Components can be found at
This Project uses and Arduino Board and LDR Add-on Kit


void setup() {
  pinMode(3, OUTPUT); 
void loop() {
  int sensorValue = analogRead(A0);
  if (sensorValue < 200) { // To change the point at which the light turns on change this value.
    digitalWrite(3, HIGH);
  else {

Click here for more great projects.


TRKMHNDIS (author)2017-04-29

Why did you use the 10K resistors?Can you use the different values of resistors for this circuit?Please answer me. Thanks.

spock.legend (author)2017-02-24

Wow this is cool :D thanks !

amandaghassaei (author)2012-09-25

is that tissue paper you used as a diffuser?

About This Instructable




More by EGRobotics:Electronic Christmas Tree OrnamentSimple Electric MotorElectric Generator Powering LEDs
Add instructable to: