Arduino UNO and L298N Motor Driver Controlled Robotic System with Battery Power
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 hobby gear motors, a 12V battery, and a generic motor. The circuit is designed to control the motors using the Arduino UNO, with power supplied by the 12V battery.
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 module 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
Motor (Hobby Gear Motor)
- Description: A small DC motor with a gearbox, commonly used in hobby projects.
- Pins: vcc, GND
Battery 12V
- Description: A 12V battery used to power the circuit.
- Pins: +, -
Motor
- Description: A generic DC motor.
- Pins: negative, positive
Wiring Details
Arduino UNO
- GND: Connected to the GND of the L298N DC motor driver, the GND of the 12V battery, and the negative pin of the generic motor.
- Vin: Connected to the 5V pin of the L298N DC motor driver.
- D12: Connected to the positive pin of the generic motor.
- D10: Connected to the ENB pin of the L298N DC motor driver.
- D9: Connected to the ENA pin of the L298N DC motor driver.
- D5: Connected to the IN4 pin of the L298N DC motor driver.
- D4: Connected to the IN3 pin of the L298N DC motor driver.
- D3: Connected to the IN2 pin of the L298N DC motor driver.
- D2: Connected to the IN1 pin of the L298N DC motor driver.
L298N DC Motor Driver
- GND: Connected to the GND of the Arduino UNO and the GND of the 12V battery.
- 5V: Connected to the Vin pin of the Arduino UNO.
- 12V: Connected to the + pin of the 12V battery.
- ENB: Connected to the D10 pin of the Arduino UNO.
- ENA: Connected to the D9 pin of the Arduino UNO.
- IN4: Connected to the D5 pin of the Arduino UNO.
- IN3: Connected to the D4 pin of the Arduino UNO.
- IN2: Connected to the D3 pin of the Arduino UNO.
- IN1: Connected to the D2 pin of the Arduino UNO.
- OUT1: Connected to the GND pin of the first hobby gear motor.
- OUT2: Connected to the vcc pin of the first hobby gear motor.
- OUT3: Connected to the GND pin of the second hobby gear motor.
- OUT4: Connected to the vcc pin of the second hobby gear motor.
Motor (Hobby Gear Motor) 1
- GND: Connected to the OUT1 pin of the L298N DC motor driver.
- vcc: Connected to the OUT2 pin of the L298N DC motor driver.
Motor (Hobby Gear Motor) 2
- GND: Connected to the OUT3 pin of the L298N DC motor driver.
- vcc: Connected to the OUT4 pin of the L298N DC motor driver.
Battery 12V
- -: Connected to the GND of the L298N DC motor driver and the GND of the Arduino UNO.
- +: Connected to the 12V pin of the L298N DC motor driver.
Motor
- negative: Connected to the GND of the Arduino UNO.
- positive: Connected to the D12 pin of the Arduino UNO.
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:
}
Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and documented code.