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

Arduino UNO-Based Battery-Powered IR Sensor Controlled Robot with L298N Motor Driver

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Battery-Powered IR Sensor Controlled Robot with L298N Motor Driver

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller, three IR sensors, an L298N DC motor driver, two hobby motors, and a 12V battery. The Arduino UNO is used to control the IR sensors and the motor driver, which in turn controls the two hobby motors. The IR sensors are used to detect obstacles, and the motor driver controls the direction and speed of the motors based on the input from the Arduino.

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. IR Sensor

    • Description: Infrared sensor used for obstacle detection.
    • Pins: out, gnd, vcc
  3. L298N DC Motor Driver

    • Description: Dual H-Bridge motor driver used to control 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
  4. Motor (Hobby)

    • Description: Small DC motor with a gearbox for hobby projects.
    • Pins: vcc, GND
  5. Battery 12V

    • Description: 12V battery used to power the motor driver and motors.
    • Pins: +, -

Wiring Details

Arduino UNO

IR Sensor

L298N DC Motor Driver

Motor (Hobby)

Battery 12V

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)