Arduino UNO Controlled Dual Motor System with L298N Driver and 12V Battery
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 gearmotors with 48:1 gearbox, and a 12V battery. The Arduino UNO controls the motor driver, which in turn drives the two gearmotors. The 12V battery powers the motor driver and the gearmotors.
Component List
Hobby Gearmotor with 48:1 gearbox
- Pins: pin 1, pin 2
- Description: A small DC motor with a 48:1 gearbox for increased torque.
- Purpose in Circuit: Drives mechanical components.
Arduino UNO
- 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
- Description: A microcontroller board based on the ATmega328P.
- Purpose in Circuit: Controls the motor driver and gearmotors.
L298N DC 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
- Description: A dual H-bridge motor driver that allows control of two DC motors.
- Purpose in Circuit: Drives the gearmotors based on signals from the Arduino UNO.
Battery 12V
- Pins: +, -
- Description: A 12V battery.
- Purpose in Circuit: Powers the motor driver and gearmotors.
Hobby Gearmotor with 48:1 gearbox
- Pins: pin 1, pin 2
- Description: A small DC motor with a 48:1 gearbox for increased torque.
- Purpose in Circuit: Drives mechanical components.
Wiring Details
Hobby Gearmotor with 48:1 gearbox (1)
- pin 1 connected to L298N DC motor driver OUT2
- pin 2 connected to L298N DC motor driver OUT1
Arduino UNO
- GND connected to L298N DC motor driver GND and battery 12v -
- Vin connected to L298N DC motor driver 5V
- D10 connected to L298N DC motor driver ENA
- D8 connected to L298N DC motor driver IN1
- D7 connected to L298N DC motor driver IN2
- D4 connected to L298N DC motor driver IN3
- D3 connected to L298N DC motor driver ENB
- D2 connected to L298N DC motor driver IN4
L298N DC motor driver
- OUT2 connected to Hobby Gearmotor with 48:1 gearbox pin 1
- OUT1 connected to Hobby Gearmotor with 48:1 gearbox pin 2
- GND connected to Arduino UNO GND and battery 12v -
- 5V connected to Arduino UNO Vin
- ENA connected to Arduino UNO D10
- IN1 connected to Arduino UNO D8
- IN2 connected to Arduino UNO D7
- IN3 connected to Arduino UNO D4
- ENB connected to Arduino UNO D3
- IN4 connected to Arduino UNO D2
- 12V connected to battery 12v +
- OUT3 connected to Hobby Gearmotor with 48:1 gearbox pin 2
- OUT4 connected to Hobby Gearmotor with 48:1 gearbox pin 1
Battery 12V
- + connected to L298N DC motor driver 12V
- - connected to Arduino UNO GND and L298N DC motor driver GND
Hobby Gearmotor with 48:1 gearbox (2)
- pin 2 connected to L298N DC motor driver OUT3
- pin 1 connected to L298N DC motor driver OUT4
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.