Lesson 5 : Light Dependent Resistor

Theory 

In this lesson, we shall see how does the light dependant resistor works by controlling the led intensity based on the input from the LDR

Component Used

  1. Jumper Wire

  2. LDR(Small)

  3. Breadboard 8.5x5.5cm (400 Holes)

 

Code

 

 

 

Result

 

The led on pin 2 will light up if the LDR value is higher than 900. If the value is below 900, it will not light up.

 

Hardware Components




Chat hỗ trợ
Chat ngay