LDR Sensor Module Interface With Arduino

 

 

LDR sensor module is used to detect the intensity of light. It is associated with both analog output pin and digital output pin labelled as AO and DO respectively on the board. When there is light, the resistance of LDR will become low according to the intensity of light. The greater the intensity of light, the lower the resistance of LDR. The sensor has a potentiometer knob that can be adjusted to change the sensitivity of LDR towards light.

 

 

Guide for ldr sensor module interface with arduino

 

 

Specification:

  • Input Voltage: DC 3.3V to 5V
  • Output: Analog and Digital
  • Sensitivity adjustable

 

 

 

Pin Definition

 

 

Vdfdg

 

 

Sample Hardware Installation (Analog Output)

 

 

Vxcv

 

 

Sample Source Code

 

 

 

 

 

void setup()

{

Serial.begin(9600);

}

void loop()

{

unsigned int AnalogValue;

AnalogValue = analogRead(A0);

Serial.println(AnalogValue);

}

 

 

 

Way to Open "Serial Monitor"

 

Dfsdfqsf

 

 

 

Les commentaires sont clôturés