Light Indicator Using Arduino

About: I love to work with electricity, machining and woodworking.

Hi everyone,

here is another simple and fun Arduino project, that works as Light Indicator, using Arduino UNO, LDR and LEDs. Parts needed:

1x Arduino (UNO)

1x Breadboard

12x 5mm LEDs

15x Wires

1x LDR

1x 100Ohm resistor

1x 10kOhm resistor

1x good Will

Step 1: Video

Step 2: Wiring the Circuit

So first thing to do is to connect all the LEDs and LDR to the Arduino using breadboard. The easiest way is to linear connect all the LEDs to the desired Arduino pins using wires.

We have to add 100Ohm resistor to the circuit in order to limit the current through LEDs. 10kOhm resistor is connected in series with LDR so that we get a Voltage divider.

Also a TinkerCAD project:

Light Meter

Step 3: Arduino Programming

Next thing is Arduino coding. First we define delay value outside any loop, that value will be the same through the program. Then we define PINs 2-13 as Outputs. We have to create analogRead so that we can get value from light sensor. Another For loop is needed which turns on the LEDs according to input from sensor. Next For loop will turn off the LEDs, when value of light sensor drops.

Step 4: Conclusion

This is a very simple project that anyone can make, using only a few components to measure intensity of light relatively. It is also cool to see how LDR (Light Dependent Resistor) acts.

It is also good to understand how Arduino outputs works and also the For loop. Thanks for passing by....

Share

    Recommendations

    • Gardening Contest

      Gardening Contest
    • Fandom Contest

      Fandom Contest
    • Woodworking Contest

      Woodworking Contest

    Discussions