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

Arduino UNO-Based Battery-Powered Line Following Robot with Dual DC Motors

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Battery-Powered Line Following Robot with Dual DC Motors

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an L298N DC motor driver, a battery case, two hobby motors, a rocker switch, and two TCRT-5000 IR sensors. The circuit is designed to control the motors based on input from the IR sensors, with power supplied by the battery case and controlled via the rocker switch.

Component List

  1. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  2. L298N DC Motor Driver

    • Description: A dual H-Bridge motor driver module.
    • 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. Battery Case

    • Description: A battery holder for powering the circuit.
    • Pins: +, -
  4. Motor (Hobby)

    • Description: A small DC motor with a gearbox.
    • Pins: vcc, GND
  5. Rocker Switch (SPST)

    • Description: A single-pole single-throw switch.
    • Pins: 1, 2
  6. TCRT-5000 IR Sensor

    • Description: An infrared sensor for detecting objects.
    • Pins: 5V, GND, D0, A0

Wiring Details

Arduino UNO

L298N DC Motor Driver

Battery Case

Motor (Hobby)

Rocker Switch (SPST)

TCRT-5000 IR Sensor

Documented Code

Arduino UNO Code

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

}

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

}

This code is a basic template for the Arduino UNO, with setup and loop functions ready for further development.