How to test photoresistor(LDR) with Arduino Video demonstration | applied electronics engineering

Latest

How to test photoresistor(LDR) with Arduino Video demonstration

By Applied Electronics - Saturday, January 28, 2017 No Comments
 In this tutorial we show using video how to test photoresistor(LDR) with Arduino along with the required code. In the last arduino tutorial we showed how to simulate LDR with arduino in Proteus. Now we will show the same thing in actual hardware.

The program code/sketch for reading the voltage values produced by the photoresistor is below.

void setup()
 {
 Serial.begin(9600);
 }

void loop()
 {
   int myLDR = analogRead(A0);
   Serial.println(myLDR);
   delay(500);
 }

The following video demonstrates how to test photoresistor or LDR with Arduino.


For schematic diagram and more detailed explanation see LDR sensor with Arduino simulation in proteus.

No Comment to " How to test photoresistor(LDR) with Arduino Video demonstration "