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

Arduino-Controlled Dual DC Motor Driver Circuit

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled Dual DC Motor Driver Circuit

Circuit Documentation

Summary

This circuit is designed to control two hobby gearmotors using an Arduino UNO microcontroller and an L298N DC motor driver. The Arduino UNO is responsible for generating control signals that are sent to the L298N driver, which in turn drives the motors. The circuit is powered by a 9V battery, which provides the necessary voltage to the motor driver and the Arduino.

Component List

Arduino UNO

L298N DC Motor Driver

Hobby Gearmotor with 48:1 Gearbox (x2)

9V Battery

Wiring Details

Arduino UNO

L298N DC Motor Driver

Hobby Gearmotor with 48:1 Gearbox (Motor A)

Hobby Gearmotor with 48:1 Gearbox (Motor B)

9V Battery

Documented Code

Arduino UNO Code (sketch.ino)

void setup() {
  // Setup code to initialize motor control pins
  pinMode(11, OUTPUT); // ENA
  pinMode(10, OUTPUT); // ENB
  pinMode(9, OUTPUT);  // IN1
  pinMode(8, OUTPUT);  // IN2
  pinMode(7, OUTPUT);  // IN3
  pinMode(6, OUTPUT);  // IN4
}

void loop() {
  // Main code to control motor speed and direction
  // Example: Set motor A to run forward at full speed
  digitalWrite(11, HIGH); // Enable motor A
  digitalWrite(9, HIGH);   // Set IN1 to HIGH
  digitalWrite(8, LOW);    // Set IN2 to LOW
  // Add motor control logic as needed
}

Additional Notes (documentation.txt)

No additional code documentation provided.