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

Arduino UNO Light-Activated Servo Control with Dual LDR Sensors

View and Edit Project In Cirkit DesignerImage of Arduino UNO Light-Activated Servo Control with Dual LDR Sensors

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller, two Light Dependent Resistors (LDRs), and a Servo motor. The Arduino UNO reads the analog values from the LDRs and controls the Servo motor based on these readings. The circuit is powered by the 5V supply from the Arduino UNO.

Component List

Arduino UNO

LDR (Light Dependent Resistor)

Servo

Wiring Details

Arduino UNO

LDR (First)

LDR (Second)

Servo

Code Documentation

Arduino UNO Code

File Name: sketch.ino

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

File Name: documentation.txt

This code initializes the Arduino UNO but does not contain any specific logic for reading the LDRs or controlling the Servo. You can add your custom logic in the setup() and loop() functions.