Bluetooth-Controlled Arduino Nano Robot with L298N Motor Driver
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to control multiple DC motors via an L298N motor driver module, with an Arduino Nano serving as the central microcontroller. The system is powered by a series of two 18650 Li-ion batteries and includes an HC-05 Bluetooth module for wireless communication. The Arduino Nano receives commands, presumably over Bluetooth, and drives the motors accordingly through the motor driver.
Component List
Arduino Nano
- Microcontroller board based on the ATmega328P
- It has a variety of digital and analog I/O pins.
DC Motors
- Four identical DC motors are used in the circuit.
- Each motor has two pins: pin 1 and pin 2 for connecting to the motor driver.
18650 Li-ion Battery x 2
- Two 18650 Li-ion batteries provide the power source for the circuit.
- The batteries have a positive (+) and negative (-) terminal.
L298N DC Motor Driver
- A module capable of driving up to four DC motors.
- It has pins for motor outputs, power supply, and control inputs from the Arduino.
HC-05 Bluetooth Module
- A wireless communication module that allows for Bluetooth connectivity.
- It has pins for power, ground, transmit (TXD), receive (RXD), and state indication.
Wiring Details
Arduino Nano
D1/TXconnected to HC-05 Bluetooth ModuleRXDD0/RXconnected to HC-05 Bluetooth ModuleTXDD2toD5connected to L298N DC motor driverIN1toIN4D9,D10connected to L298N DC motor driverENA,ENBVINconnected to the positive terminal of the 18650 Li-ion Battery x 2GNDconnected to the common ground net5Vconnected to HC-05 Bluetooth ModuleVCC
DC Motors
- Motor 1 and Motor 2
pin 1connected to L298N DC motor driverOUT4,OUT3 - Motor 1 and Motor 2
pin 2connected to L298N DC motor driverOUT3,OUT4 - Motor 3 and Motor 4
pin 1connected to L298N DC motor driverOUT2,OUT1 - Motor 3 and Motor 4
pin 2connected to L298N DC motor driverOUT1,OUT2
18650 Li-ion Battery x 2
+connected to L298N DC motor driver12Vand Arduino NanoVIN-connected to the common ground net
L298N DC Motor Driver
IN1toIN4connected to Arduino NanoD2toD5ENA,ENBconnected to Arduino NanoD9,D10OUT1toOUT4connected to the respective DC Motor pins12Vconnected to the positive terminal of the 18650 Li-ion Battery x 2GNDconnected to the common ground net
HC-05 Bluetooth Module
RXDconnected to Arduino NanoD1/TXTXDconnected to Arduino NanoD0/RXGNDconnected to the common ground netVCCconnected to Arduino Nano5V
Documented Code
Arduino Nano - sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino Nano - documentation.txt
(No additional documentation provided)
This concludes the documentation for the given circuit. The code provided is a template and does not contain any functional logic to control the motors or communicate with the Bluetooth module. Additional programming will be required to implement the desired functionality.