Arduino UNO and L298N Motor Driver Controlled Dual Motor System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an L298N DC motor driver, two MRB Planetary gearbox motors, and a battery. The circuit is designed to control the motors using the Arduino UNO, with the L298N motor driver acting as an intermediary to handle the power requirements of the motors.
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
MRB Planetary Gearbox Motor (Motor 1)
- Description: A DC motor with a planetary gearbox for increased torque.
- Pins: +, -
MRB Planetary Gearbox Motor (Motor 2)
- Description: A DC motor with a planetary gearbox for increased torque.
- Pins: +, -
Battery
- Description: A power source for the circuit.
- Pins: -, +
Wiring Details
Arduino UNO
- GND: Connected to GND of L298N DC motor driver and - of the battery.
- Vin: Connected to 5V of L298N DC motor driver.
- D10: Connected to ENB of L298N DC motor driver.
- D9: Connected to ENA of L298N DC motor driver.
- D5: Connected to IN4 of L298N DC motor driver.
- D4: Connected to IN3 of L298N DC motor driver.
- D3: Connected to IN2 of L298N DC motor driver.
- D2: Connected to IN1 of L298N DC motor driver.
L298N DC Motor Driver
- GND: Connected to GND of Arduino UNO and - of the battery.
- 5V: Connected to Vin of Arduino UNO.
- ENB: Connected to D10 of Arduino UNO.
- ENA: Connected to D9 of Arduino UNO.
- IN4: Connected to D5 of Arduino UNO.
- IN3: Connected to D4 of Arduino UNO.
- IN2: Connected to D3 of Arduino UNO.
- IN1: Connected to D2 of Arduino UNO.
- OUT1: Connected to + of Motor 1.
- OUT2: Connected to - of Motor 1.
- 12V: Connected to + of the battery.
- OUT3: Connected to + of Motor 2.
- OUT4: Connected to - of Motor 2.
MRB Planetary Gearbox Motor (Motor 1)
- +: Connected to OUT1 of L298N DC motor driver.
- -: Connected to OUT2 of L298N DC motor driver.
MRB Planetary Gearbox Motor (Motor 2)
- +: Connected to OUT3 of L298N DC motor driver.
- -: Connected to OUT4 of L298N DC motor driver.
Battery
- -: Connected to GND of L298N DC motor driver and GND of Arduino UNO.
- +: 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 the components used, their connections, and the code running on the Arduino UNO.