LDR AND RELAY USING ARDUINO
Today I Will Be Showing You How To Invent A Circuit That Uses An LDR Sensor And A Relay Module To Detect Light And Open A 220V AC Light Bulb
Supplies
Schematic
For Arduino Wiring
1-GND ON RELAY TO GND ON ARDUINO
2-VCC ON RELAY TO 5V ON ARDUINO
3-SIGNAL ON RELAY TO PIN 8 ON ARDUINO
4-LDR POSITIVE LEG (Any Leg) TO 5V ON ARDUINO
5-LDR NEGATIVE LEG (Opposite Leg Of Step 4) TO A0 On Arduino
6-LDR NEGATIVE LEG (Same Leg As Step 5) To GND On Arduino Connected By A 1Kohm Resistor
----------------------------------------------------------------------------------------------------------------------------------
** Take Care While Wiring Because Your Dealing With High Voltage