Wish List 0

Ldr 5Mm Light Dependent Resistor

Rs. 3.00 Rs. 4.00

-This a 5 mm size light sensor which changes resistance with the change in the ambient light exposed on the surface of the sensor.
-LDR (Light Dependent Resistor) is a type of photocell which finds excellent use in light sensing device application, whether it is automatic outdoor light ON/OFF switch or Indoor automatic light switching.
-The sensor works best in both Light and dark region.

SPECIFICATIONS:
Light Resistance   10K Ohm @ 10Lux
Dark Resistance    1.0M Ohm @ 0 Lux
Max Voltage        150 volt
Size               5mm dia
Max Power          100 mW
OVERVIEW:
Diameter                        5mm
No. of Pins                     2
Type of Mounting                PCB Through Hole
Maximum Operating Temperature   +800°C (Approx.)
Dark resistance                 1-20 Mohm

PACKAGE INCLUDES:

1 PCS x Ldr 5Mm Light Dependent Resistor


//SOURCE CODE TAKEN FROM BELOW LINK

//https://create.arduino.cc/projecthub/tarantula3/using-an-ldr-sensor-with-arduino-807b1c

const int ledPin = 13;


const int ldrPin = A0;


void setup() {


Serial.begin(9600);


pinMode(ledPin, OUTPUT);


pinMode(ldrPin, INPUT);


}


void loop() {


int ldrStatus = analogRead(ldrPin);


if (ldrStatus <= 200) {


digitalWrite(ledPin, HIGH);


Serial.print("Its DARK, Turn on the LED : ");


Serial.println(ldrStatus);


} else {


digitalWrite(ledPin, LOW);


Serial.print("Its BRIGHT, Turn off the LED : ");


Serial.println(ldrStatus);


}


}

15 days

Write a review

Please login or register to review