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

Arduino-Controlled LDR and Limit Switch-Operated DC Motor

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled LDR and Limit Switch-Operated DC Motor

Circuit Documentation

Summary of the Circuit

This circuit is designed around an Arduino UNO microcontroller, which serves as the central processing unit. The circuit includes a Module LDR (Light Dependent Resistor) for light sensing, two limit switches as input devices, a DC motor as an actuator, and an L298N DC motor driver to control the motor. The circuit is powered by a 12V power supply, which provides the necessary voltage for the motor and the motor driver, while the Arduino UNO and the Module LDR are powered by the Arduino's onboard voltage regulators.

Component List

Arduino UNO

Limit Switch (x2)

Module LDR

DC Motor

L298N DC Motor Driver

12V Power Supply

Wiring Details

Arduino UNO

Limit Switches

Module LDR

DC Motor

L298N DC Motor Driver

12V Power Supply

Documented Code

Arduino UNO Code (sketch.ino)

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

}

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

}

The provided code is a template with empty setup() and loop() functions. The setup() function is intended for initialization code that runs once at the start, while the loop() function contains code that runs continuously. Specific functionality needs to be implemented based on the requirements of the circuit's operation.