Introduction: Arduino Night Light

Hello everyone, this is my second Instructable. This project is an automatic night light. All you have to do is to type in the measure of the brightness of photoresistance. The value will be the point that you wish the light will turn on. If the value photoresistance measured is lower than the value you typed in, the light will turn on. There are holes on the box so that the light can form little dots on the wall and ceiling when the lights are on.

Supplies

Here are the things you need:

LEDs 1Green, 1Blue, 1Yellow

3Resistance

1Precision resistance

1Photoresistance

1Blade

1screwdriver

Step 1: Circuit Diagram&Steps

The first image is a circuit diagram drawn by hand, so it doesn't look well. The steps to make the night light are down here.

1. Put the LEDs onto the board

2. Connect LEDs to D-pins with wire

3. Put the photoresistance onto the board

4. Connect the photoresistance to A-pin with wires

5. Connect the LEDs to the negative role with normal resistance

6. Connect the photoresistance to the negative role with precision resistance

7. Connect the 5v pin to the positive role with a wire

8. Connect one of the GND pins to the negative role with a wire

Step 2: Code