Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO with LDR Sensor Light Measurement System

View and Edit Project In Cirkit DesignerImage of Arduino UNO with LDR Sensor Light Measurement System

Circuit Documentation

Summary

This circuit integrates an Arduino UNO with a Module LDR (Light Dependent Resistor) to measure light intensity. The Arduino UNO is programmed to read the analog voltage level from the LDR module and output the reading through its serial interface. The LDR module is powered by the 5V supply from the Arduino and its ground is connected to the Arduino's ground. The analog output from the LDR is connected to the A0 analog input pin on the Arduino.

Component List

Arduino UNO

Module LDR

Wiring Details

Arduino UNO

Module LDR

Documented Code

Arduino UNO Code

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 bits per second
}

void loop() {
  unsigned int AnalogValue;
  AnalogValue = analogRead(A0); // Read the input on analog pin A0
  Serial.println(AnalogValue);  // Print out the value read
}

Module LDR Code

The Module LDR does not have associated code as it is a passive sensor component.


This documentation provides an overview of the circuit's components, their wiring, and the code running on the Arduino UNO. The circuit is designed to measure light intensity using the LDR module and output the readings through the Arduino's serial interface.