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

Arduino Nano-Based Light-Responsive DC Motor Controller

View and Edit Project In Cirkit DesignerImage of Arduino Nano-Based Light-Responsive DC Motor Controller

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino Nano microcontroller, an L298N DC motor driver, multiple photocells (LDRs), resistors, a 12V power supply, and a DC motor. The circuit is designed to interface with the Arduino Nano to control the DC motor based on the input from the photocells.

Component List

  1. Arduino Nano

    • Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
    • Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
  2. L298N DC Motor Driver

    • Description: A dual H-Bridge motor driver that allows speed and direction control of two DC motors.
    • Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
  3. Photocell (LDR)

    • Description: A light-dependent resistor that changes its resistance based on the light intensity.
    • Pins: pin 0, pin 1
  4. 12V Power Supply

    • Description: Provides a 12V DC output.
    • Pins: +, -
  5. Resistor

    • Description: A passive electrical component with a resistance of 200 Ohms.
    • Pins: pin1, pin2
  6. DC Motor

    • Description: A motor that runs on DC power.
    • Pins: pin 1, pin 2

Wiring Details

Arduino Nano

L298N DC Motor Driver

Photocell (LDR)

Resistor

12V Power Supply

DC Motor

Documented Code

Arduino Nano Code (sketch.ino)

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

}

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

}

Additional Documentation (documentation.txt)

This document provides a comprehensive overview of the circuit, including the components used, their connections, and the code running on the Arduino Nano.