Arduino UNO Controlled Dual DC Motor System with L298N Driver and 12V Battery
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, a 12V battery, an L298N DC motor driver, and two DC motors. The Arduino UNO controls the motor driver, which in turn drives the two DC motors. The 12V battery powers the motor driver and the motors.
Component List
Battery 12V
- Description: A 12V battery used to power the motor driver and motors.
- Pins: +, -
Arduino UNO
- Description: A microcontroller used to control the motor driver.
- 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
DC Motor (Motor 1)
- Description: A DC motor driven by the motor driver.
- Pins: pin 1, pin 2
DC Motor (Motor 2)
- Description: A DC motor driven by the motor driver.
- Pins: pin 1, pin 2
L298N DC Motor Driver
- Description: A motor driver used to control the 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
Comment
- Description: Placeholder for comments in the circuit.
- Pins: None
Wiring Details
Battery 12V
- + connected to 12V of L298N DC motor driver
- - connected to GND of L298N DC motor driver and GND of Arduino UNO
Arduino UNO
- GND connected to GND of L298N DC motor driver and - of battery 12v
- 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
DC Motor (Motor 1)
- pin 1 connected to OUT2 of L298N DC motor driver
- pin 2 connected to OUT1 of L298N DC motor driver
DC Motor (Motor 2)
- pin 1 connected to OUT4 of L298N DC motor driver
- pin 2 connected to OUT3 of L298N DC motor driver
L298N DC Motor Driver
- 12V connected to + of battery 12v
- GND connected to - of battery 12v and GND of Arduino UNO
- ENA connected to D9 of Arduino UNO
- ENB connected to D10 of Arduino UNO
- IN1 connected to D2 of Arduino UNO
- IN2 connected to D3 of Arduino UNO
- IN3 connected to D4 of Arduino UNO
- IN4 connected to D5 of Arduino UNO
- OUT1 connected to pin 2 of DC Motor (Motor 1)
- OUT2 connected to pin 1 of DC Motor (Motor 1)
- OUT3 connected to pin 2 of DC Motor (Motor 2)
- OUT4 connected to pin 1 of DC Motor (Motor 2)
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation File
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 microcontroller.