It is Very Easy, Cheap and You Need Only One LDR, Resistor and LED. Here is Circuit Diagram and Schematic To Build Automatic LED Control Using LDR and Arduino Project. In previous guides on LDR, we created light measurement instrument and light meter. However, for Arduino Door Bell like project, to add more logic of sensing day and night, we need LDR like basic sensor. This guide is one foundation base and reference on our site for future complex usage.
Automatic LED Control Using LDR and Arduino
We need the following materials:
- Arduino Uno or similar board
- One LDR
- One LED
- One 22 K Ohm resistor
- Jumper wires
- Optionally multimeter to check voltages at ends
You need to build the circuit like this :
If you do not have 22 K Ohm resistor, you need (10K + 10K + 1K + 1K) Ohm resistor following Ohm’s law taught in high school or adjust potentiometer with multimeter to have 22K Ohm resistance.
This is the piece of code aka sketch :
You can adjust the values of
delay(1000) watching serial monitor of Arduino IDE.
Follow the Author of this article :