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

Arduino UNO Battery-Powered Motor Control System with Potentiometer

View and Edit Project In Cirkit DesignerImage of Arduino UNO Battery-Powered Motor Control System with Potentiometer

Circuit Documentation

Summary

This circuit is designed to control two DC motors using an Arduino UNO and an L298N DC motor driver. The speed of the motors is controlled via a potentiometer. The circuit is powered by a 2x 18650 battery pack.

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. Motor (x2)

    • Description: A DC motor.
    • Pins: negative, positive
  3. L298N DC Motor Driver

    • Description: A dual H-Bridge motor driver.
    • 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. 2x 18650 Battery Pack

    • Description: A battery pack containing two 18650 batteries.
    • Pins: vcc, gnd
  5. Potentiometer

    • Description: A variable resistor used to control voltage.
    • Pins: GND, Output, VCC

Wiring Details

Arduino UNO

Motor 1

Motor 2

L298N DC Motor Driver

2x 18650 Battery Pack

Potentiometer

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)