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

Arduino UNO and L298N Motor Driver Controlled DC Motor with Potentiometer Speed Adjustment

View and Edit Project In Cirkit DesignerImage of Arduino UNO and L298N Motor Driver Controlled DC Motor with Potentiometer Speed Adjustment

Circuit Documentation

Summary

This circuit is designed to control a DC motor using an Arduino UNO, an L298N motor driver, a potentiometer, and a 9V battery. The potentiometer is used to provide an analog input to the Arduino, which then controls the motor driver to regulate the speed and direction of the motor.

Component List

  1. L298N DC Motor Driver

    • Description: A dual H-Bridge motor driver that allows control of 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
  2. Potentiometer

    • Description: A variable resistor used to provide an adjustable voltage output.
    • Pins: GND, Output, VCC
  3. Motor amarillo motorreductor hobby

    • Description: A small DC motor with a gearbox for hobby projects.
    • Pins: vcc, GND
  4. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P, used for prototyping and development.
    • 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
  5. 9V Battery

    • Description: A standard 9V battery used to power the circuit.
    • Pins: +, -

Wiring Details

L298N DC Motor Driver

Potentiometer

Motor amarillo motorreductor hobby

Arduino UNO

9V Battery

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 documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO.