Arduino DIY LED Control with LDR Sensor (Photoresistor)
This example demonstrates how to use an LDR (Light Dependent Resistor) darkness LDR, the LED is turned on/off.
Components and supplies
1
LDR, 5 Mohm
1
Resistor 1k ohm
1
Jumper wires (generic)
1
Breadboard (generic)
1
LED, Blue
1
Arduino UNO
Apps and platforms
1
Arduino IDE
Project description
Code
Code
c_cpp
Code
c_cpp
Downloadable files
Circuit Diagram
Connection of LED Connect to Long Pin (+5V Pin) of LED to (Pin 12) of Arduino Connect to Small Pin (GND Pin) of LED to (GND) of Arduino Connection of LDR Connect LDR (Any One Pin) to (+5V) Of Arduino Connect 1K Resistor to Another Pin OF LDR and Connect Resistor Pin to GND of Arduino Connect Ldr 2 Pin To A0 Of Arduino
Circuit Diagram

Comments
Only logged in users can leave comments