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

Arduino UNO and L298N Motor Driver-Based Line Following Robot with IR Sensors

View and Edit Project In Cirkit DesignerImage of Arduino UNO and L298N Motor Driver-Based Line Following Robot with IR Sensors

Circuit Documentation

Summary

This document provides a detailed overview of a circuit designed to control multiple DC motors using an L298N motor driver and an Arduino UNO. The circuit also includes several TCRT-5000 IR sensors for obstacle detection and a rocker switch for power control. The Arduino UNO is programmed to manage the motor driver and read sensor inputs.

Component List

  1. L298N DC Motor Driver

    • Description: A dual H-bridge motor driver that allows control of the speed and direction 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
  2. Motor amarillo motorreductor hobby

    • Description: A small DC motor with a gearbox, commonly used in hobby projects.
    • Pins: vcc, GND
  3. Battery 12V

    • Description: A 12V battery used to power the motor driver and motors.
    • Pins: +, -
  4. TCRT-5000 IR Sensor

    • Description: An infrared sensor used for obstacle detection.
    • Pins: 5V, GND, D0, A0
  5. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P, used to control the motor driver and read sensor inputs.
    • 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
  6. Rocker Switch

    • Description: A switch used to control the power supply to the circuit.
    • Pins: output, input

Wiring Details

L298N DC Motor Driver

Motor amarillo motorreductor hobby

Battery 12V

TCRT-5000 IR Sensor

Arduino UNO

Rocker Switch

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:

}

Additional Documentation (documentation.txt)