Arduino Nano Controlled Battery-Powered Dual Motor Driver System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino Nano microcontroller interfaced with an L298N DC motor driver to control two hobby motors. The circuit is powered by a battery. The Arduino Nano sends control signals to the L298N motor driver, which in turn drives the motors.
Component List
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
L298N DC Motor Driver
- Description: A dual H-Bridge motor driver that allows speed and direction control 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
Battery
- Description: A power source for the circuit.
- Pins: -, +
Wiring Details
Arduino Nano
- D9 connected to ENB of L298N DC motor driver
- D7 connected to IN4 of L298N DC motor driver
- D6 connected to IN3 of L298N DC motor driver
- D5 connected to IN2 of L298N DC motor driver
- D4 connected to IN1 of L298N DC motor driver
- D3 connected to ENA of L298N DC motor driver
- GND connected to - of battery and GND of L298N DC motor driver
- VIN connected to 5V of L298N DC motor driver
L298N DC Motor Driver
- ENB connected to D9 of Arduino Nano
- IN4 connected to D7 of Arduino Nano
- IN3 connected to D6 of Arduino Nano
- IN2 connected to D5 of Arduino Nano
- IN1 connected to D4 of Arduino Nano
- ENA connected to D3 of Arduino Nano
- GND connected to GND of Arduino Nano and - of battery
- 5V connected to VIN of Arduino Nano
- OUT1 connected to GND of Motor amarillo motorreductor hobby
- OUT2 connected to vcc of Motor amarillo motorreductor hobby
- OUT3 connected to GND of Motor amarillo motorreductor hobby
- OUT4 connected to vcc of Motor amarillo motorreductor hobby
- 12V connected to + of battery
Motor amarillo motorreductor hobby
- GND connected to OUT1 of L298N DC motor driver
- vcc connected to OUT2 of L298N DC motor driver
Motor amarillo motorreductor hobby
- GND connected to OUT3 of L298N DC motor driver
- vcc connected to OUT4 of L298N DC motor driver
Battery
- - connected to GND of Arduino Nano and GND of L298N DC motor driver
- + connected to 12V of L298N DC motor driver
Documented Code
Arduino Nano 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)