Arduino UNO Controlled Multi-Motor System with L298N Drivers
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit consists of two Arduino UNO microcontrollers, a 12V Power Supply Unit (PSU), multiple DC motors, and three L298N DC motor drivers. The Arduinos control the motor drivers, which in turn drive the DC motors. The 12V PSU provides power to the motor drivers.
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
12V PSU
- Description: A 12V Power Supply Unit.
- Pins: 12V+, GND, 12V OK, PE, N, L
DC Motor
- Description: A simple DC motor.
- Pins: pin 1, pin 2
L298N DC Motor Driver
- Description: A dual H-Bridge 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
Wiring Details
Arduino UNO (1)
- 5V: Not connected
- GND: Connected to GND of Arduino UNO (2)
- D7: Connected to ENB of L298N DC motor driver (1)
- D6: Connected to IN4 of L298N DC motor driver (1)
- D5: Connected to IN3 of L298N DC motor driver (1)
- D4: Connected to IN2 of L298N DC motor driver (1)
- D3: Connected to IN1 of L298N DC motor driver (1)
- D2: Connected to ENA of L298N DC motor driver (1)
- D1: Connected to D1 of Arduino UNO (2)
- D0: Connected to D0 of Arduino UNO (2)
Arduino UNO (2)
- 5V: Not connected
- GND: Connected to GND of Arduino UNO (1)
- D13: Connected to ENB of L298N DC motor driver (2)
- D12: Connected to IN4 of L298N DC motor driver (2)
- D11: Connected to IN3 of L298N DC motor driver (2)
- D10: Connected to IN2 of L298N DC motor driver (2)
- D9: Connected to IN1 of L298N DC motor driver (2)
- D8: Connected to ENA of L298N DC motor driver (2)
- D7: Connected to ENB of L298N DC motor driver (3)
- D6: Connected to IN4 of L298N DC motor driver (3)
- D5: Connected to IN3 of L298N DC motor driver (3)
- D4: Connected to IN2 of L298N DC motor driver (3)
- D3: Connected to IN1 of L298N DC motor driver (3)
- D2: Connected to ENA of L298N DC motor driver (3)
12V PSU
- 12V+: Connected to 12V of L298N DC motor driver (1), L298N DC motor driver (2), and L298N DC motor driver (3)
- GND: Connected to GND of L298N DC motor driver (1), L298N DC motor driver (2), and L298N DC motor driver (3)
L298N DC Motor Driver (1)
- 12V: Connected to 12V+ of 12V PSU
- GND: Connected to GND of 12V PSU
- ENB: Connected to D7 of Arduino UNO (1)
- IN4: Connected to D6 of Arduino UNO (1)
- IN3: Connected to D5 of Arduino UNO (1)
- IN2: Connected to D4 of Arduino UNO (1)
- IN1: Connected to D3 of Arduino UNO (1)
- ENA: Connected to D2 of Arduino UNO (1)
- OUT1: Connected to pin 1 of DC Motor (1)
- OUT2: Connected to pin 2 of DC Motor (1)
- OUT3: Connected to pin 2 of DC Motor (2)
- OUT4: Connected to pin 1 of DC Motor (2)
L298N DC Motor Driver (2)
- 12V: Connected to 12V+ of 12V PSU
- GND: Connected to GND of 12V PSU
- ENB: Connected to D13 of Arduino UNO (2)
- IN4: Connected to D12 of Arduino UNO (2)
- IN3: Connected to D11 of Arduino UNO (2)
- IN2: Connected to D10 of Arduino UNO (2)
- IN1: Connected to D9 of Arduino UNO (2)
- ENA: Connected to D8 of Arduino UNO (2)
- OUT1: Connected to pin 1 of DC Motor (3)
- OUT2: Connected to pin 2 of DC Motor (3)
- OUT3: Connected to pin 2 of DC Motor (4)
- OUT4: Connected to pin 1 of DC Motor (4)
L298N DC Motor Driver (3)
- 12V: Connected to 12V+ of 12V PSU
- GND: Connected to GND of 12V PSU
- ENB: Connected to D7 of Arduino UNO (2)
- IN4: Connected to D6 of Arduino UNO (2)
- IN3: Connected to D5 of Arduino UNO (2)
- IN2: Connected to D4 of Arduino UNO (2)
- IN1: Connected to D3 of Arduino UNO (2)
- ENA: Connected to D2 of Arduino UNO (2)
- OUT1: Connected to pin 1 of DC Motor (5)
- OUT2: Connected to pin 2 of DC Motor (5)
- OUT3: Connected to pin 2 of DC Motor (6)
- OUT4: Connected to pin 1 of DC Motor (6)
DC Motor (1)
- pin 1: Connected to OUT1 of L298N DC motor driver (1)
- pin 2: Connected to OUT2 of L298N DC motor driver (1)
DC Motor (2)
- pin 1: Connected to OUT4 of L298N DC motor driver (1)
- pin 2: Connected to OUT3 of L298N DC motor driver (1)
DC Motor (3)
- pin 1: Connected to OUT1 of L298N DC motor driver (2)
- pin 2: Connected to OUT2 of L298N DC motor driver (2)
DC Motor (4)
- pin 1: Connected to OUT4 of L298N DC motor driver (2)
- pin 2: Connected to OUT3 of L298N DC motor driver (2)
DC Motor (5)
- pin 1: Connected to OUT1 of L298N DC motor driver (3)
- pin 2: Connected to OUT2 of L298N DC motor driver (3)
DC Motor (6)
- pin 1: Connected to OUT4 of L298N DC motor driver (3)
- pin 2: Connected to OUT3 of L298N DC motor driver (3)
Documented Code
Arduino UNO (1)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino UNO (2)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}