Light Indicator Using Arduino

by DR Design in Circuits > Arduino

2794 Views, 0 Favorites, 0 Comments

Light Indicator Using Arduino

_MG_8778.JPG

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

Video

Arduino Light Meter Tutorial

Wiring the Circuit

Light Meter.png
_MG_8761.JPG

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

Arduino Programming

Coding.jpg

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.

Downloads

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....