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

Arduino-Controlled Dual DC Motor Driver Circuit

Image of Arduino-Controlled Dual DC Motor Driver Circuit

Circuit Documentation

Summary of the Circuit

This circuit is designed to control two DC motors using an Arduino UNO microcontroller and an L298N DC motor driver. The Arduino UNO provides the control signals to the L298N driver, which in turn drives the motors. A battery case provides the power required for the motors and the motor driver.

Component List

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P.
  • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.

L298N DC Motor Driver

  • Description: A module for controlling up to two DC motors with direction and speed control.
  • 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.

My Battery Case

  • Description: A case that holds batteries to provide power to the circuit.
  • Pins: +, -.

DC Motor (x2)

  • Description: An electric motor that runs on direct current (DC) electricity.
  • Pins: pin 1, pin 2.

Wiring Details

Arduino UNO

  • 5V connected to L298N DC motor driver 5V.
  • GND connected to L298N DC motor driver GND and My battery case -.
  • D8 connected to L298N DC motor driver IN4.
  • D7 connected to L298N DC motor driver IN3.
  • D6 connected to L298N DC motor driver ENB.
  • D5 connected to L298N DC motor driver IN2.
  • D4 connected to L298N DC motor driver IN1.
  • D3 connected to L298N DC motor driver ENA.

L298N DC Motor Driver

  • 5V connected to Arduino UNO 5V.
  • GND connected to Arduino UNO GND and My battery case -.
  • 12V connected to My battery case +.
  • OUT1 connected to DC Motor (instance 2) pin 1.
  • OUT2 connected to DC Motor (instance 2) pin 2.
  • OUT3 connected to DC Motor (instance 1) pin 2.
  • OUT4 connected to DC Motor (instance 1) pin 1.
  • IN1-IN4 connected to Arduino UNO D4-D8.
  • ENA, ENB connected to Arduino UNO D3, D6.

My Battery Case

    • connected to L298N DC motor driver 12V.
    • connected to Arduino UNO GND and L298N DC motor driver GND.

DC Motor (instance 1)

  • pin 1 connected to L298N DC motor driver OUT4.
  • pin 2 connected to L298N DC motor driver OUT3.

DC Motor (instance 2)

  • pin 1 connected to L298N DC motor driver OUT1.
  • pin 2 connected to L298N DC motor driver OUT2.

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 Notes (documentation.txt)

No additional code documentation was provided.