LDR sensor Interfacing with Arduino Uno Program with Component Connection

Objective:

         To detect the Light Intensity using LDR Sensor

Components Required

  • Arduino Uno
  • Light Dependent Resistor (LDR) Sensor
  • Resistance (1K Ohm)

Connection Diagram

Program

void setup()

{

Serial.begin(9600);

}

void loop()

{

int sensorValue = analogRead(A0);

Serial.print(“Light Intensity is :”);

Serial.print(sensorValue);

}

Working

         The output of the LDR sensor is accessed by the Arduino Uno and displayed. For more light intensities (Bright) the LDR allows more current and produces large values and for less light intensities (Dark) the LDR blocks the current flow and produces low values.

Output

The output value is : 1023 (for maximum brightness)

The output value is : 0 (for dark)

Object Detection using IR Sensor Program with Component Connection
Interfacing Relay with Arduino Uno Program with Component Connection

Leave a Reply

Your email address will not be published. Required fields are marked *

Navigation

My Cart

Close
Viewed

Recently Viewed

Close

Great to see you here !

Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our privacy policy.

Already got an account?

Quickview

Close

Categories