Arduino UNO and L298N Motor Driver Controlled Robotic System with Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to control four DC motors using an L298N motor driver module, which is interfaced with an Arduino UNO microcontroller. The motors are powered by a 9V battery, and the Arduino controls the motor driver to manage the speed and direction of the motors.
Component List
L298N DC Motor Driver
- Description: A dual H-Bridge motor driver that allows control of the speed and direction 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
Arduino UNO
- Description: A microcontroller board based on the ATmega328P, used for interfacing and controlling 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
Motor with Reducer (4 units)
- Description: A DC motor with a gear reducer to provide higher torque.
- Pins: 3 - 6 VCC, GND
9V Battery (2 units)
- Description: A 9V battery used to power the motor driver and motors.
- Pins: -, +
Wiring Details
L298N DC Motor Driver
- OUT1 connected to 3 - 6 VCC of Motor with Reducer
- OUT2 connected to 3 - 6 VCC of Motor with Reducer
- 12V connected to + of 9V Battery
- GND connected to - of 9V Battery
- OUT3 connected to 3 - 6 VCC of Motor with Reducer
- OUT4 connected to 3 - 6 VCC of Motor with Reducer
- ENA connected to D3 of Arduino UNO
- IN1 connected to D8 of Arduino UNO
- IN2 connected to D9 of Arduino UNO
- IN3 connected to D4 of Arduino UNO
- IN4 connected to D5 of Arduino UNO
- ENB connected to D7 of Arduino UNO
Arduino UNO
- D3 connected to ENA of L298N DC Motor Driver
- D8 connected to IN1 of L298N DC Motor Driver
- D9 connected to IN2 of L298N DC Motor Driver
- D4 connected to IN3 of L298N DC Motor Driver
- D5 connected to IN4 of L298N DC Motor Driver
- D7 connected to ENB of L298N DC Motor Driver
Motor with Reducer
- 3 - 6 VCC connected to OUT1 of L298N DC Motor Driver
- 3 - 6 VCC connected to OUT2 of L298N DC Motor Driver
- 3 - 6 VCC connected to OUT3 of L298N DC Motor Driver
- 3 - 6 VCC connected to OUT4 of L298N DC Motor Driver
9V Battery
- + connected to 12V of L298N DC Motor Driver
- - connected to GND 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)