Arduino UNO and L298N Motor Driver Controlled Robotic Car with Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, an L298N DC motor driver, four hobby motors, and a 9V battery. The Arduino UNO controls the motor driver, which in turn drives the four motors. The 9V battery powers the entire circuit.
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 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
Motor amarillo motorreductor hobby
- Description: A small DC motor with a gearbox, commonly used in hobby projects.
- Pins: vcc, GND
9V Battery
- Description: A standard 9V battery used to power the circuit.
- Pins: -, +
Wiring Details
Arduino UNO
- Vin: Connected to 12V pin of L298N DC motor driver and + pin of 9V Battery
- GND: Connected to GND pin of L298N DC motor driver and - pin of 9V Battery
- D6: Connected to IN1 pin of L298N DC motor driver
- D5: Connected to IN2 pin of L298N DC motor driver
- D4: Connected to IN3 pin of L298N DC motor driver
- D3: Connected to IN4 pin of L298N DC motor driver
L298N DC Motor Driver
- 12V: Connected to Vin pin of Arduino UNO and + pin of 9V Battery
- GND: Connected to GND pin of Arduino UNO and - pin of 9V Battery
- IN1: Connected to D6 pin of Arduino UNO
- IN2: Connected to D5 pin of Arduino UNO
- IN3: Connected to D4 pin of Arduino UNO
- IN4: Connected to D3 pin of Arduino UNO
- OUT1: Connected to vcc pin of two hobby motors
- OUT2: Connected to GND pin of two hobby motors
- OUT3: Connected to vcc pin of two hobby motors
- OUT4: Connected to GND pin of two hobby motors
Motor amarillo motorreductor hobby
- vcc: Connected to OUT1 pin of L298N DC motor driver (for two motors)
- GND: Connected to OUT2 pin of L298N DC motor driver (for two motors)
- vcc: Connected to OUT3 pin of L298N DC motor driver (for two motors)
- GND: Connected to OUT4 pin of L298N DC motor driver (for two motors)
9V Battery
- +: Connected to Vin pin of Arduino UNO and 12V pin of L298N DC motor driver
- -: Connected to GND pin of Arduino UNO and GND pin 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)