Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Battery-Powered Motor Controller with L298N Driver

Image of Arduino UNO Battery-Powered Motor Controller with L298N Driver

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an L298N DC motor driver, two hobby motors, and a 4 x AAA battery mount. The circuit is designed to control the motors using the Arduino UNO, with power supplied by the battery mount.

Component List

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

L298N DC Motor Driver

  • Description: A dual H-Bridge motor driver that allows 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

Motor amarillo motorreductor hobby (Motor 1)

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

Motor amarillo motorreductor hobby (Motor 2)

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

4 x AAA Battery Mount

  • Description: A battery holder for four AAA batteries.
  • Pins: -, +

Wiring Details

Arduino UNO

  • 5V connected to 5V of L298N DC motor driver
  • GND connected to - of 4 x AAA Battery Mount and GND of L298N DC motor driver
  • D12 connected to IN4 of L298N DC motor driver
  • D11 connected to IN3 of L298N DC motor driver
  • D10 connected to ENA of L298N DC motor driver
  • D9 connected to IN2 of L298N DC motor driver
  • D8 connected to IN1 of L298N DC motor driver
  • D3 connected to ENB of L298N DC motor driver

L298N DC Motor Driver

  • 5V connected to 5V of Arduino UNO
  • GND connected to GND of Arduino UNO and - of 4 x AAA Battery Mount
  • IN4 connected to D12 of Arduino UNO
  • IN3 connected to D11 of Arduino UNO
  • ENA connected to D10 of Arduino UNO
  • IN2 connected to D9 of Arduino UNO
  • IN1 connected to D8 of Arduino UNO
  • ENB connected to D3 of Arduino UNO
  • OUT1 connected to GND of Motor 2
  • OUT2 connected to vcc of Motor 2
  • OUT3 connected to GND of Motor 1
  • OUT4 connected to vcc of Motor 1
  • 12V connected to + of 4 x AAA Battery Mount

Motor amarillo motorreductor hobby (Motor 1)

  • GND connected to OUT3 of L298N DC motor driver
  • vcc connected to OUT4 of L298N DC motor driver

Motor amarillo motorreductor hobby (Motor 2)

  • GND connected to OUT1 of L298N DC motor driver
  • vcc connected to OUT2 of L298N DC motor driver

4 x AAA Battery Mount

  • - connected to GND of Arduino UNO and GND of L298N DC motor driver
  • + connected to 12V of L298N DC motor driver

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)


This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and documented code.