Skip to main content

09. Controlling the bulb at your home using an LDR

LDR, short for Light Dependent Resistor, also known as photoresistor is made of semiconductor material. The resistance of an LDR decreases with increasing light intensity. 
*Safety precaution: If you are a beginner, please do not tamper with mains electricity. As this project is for beginners, I will show you how to use an alternative. The power bank and LED are good alternatives to mains electricity supply and bulb.

Supplies:

  • LED
  • LDR
  • Relay Module - Single channel 5V
  • Resistors - 1kΩ and 10kΩ
  • Arduino Uno R3
  • Solderless Breadboard - Mini
  • Power bank - 10000 mAh
  • Old USB 1.0/2.0 A type cable
  • Jumper Wires
  • Jumper Cable

Setting up your hardware




Connections:

  • LDR - A0

Coding

Final Look



Comments