Arduino UNO Controlled Bluetooth Robot with Dual L298N Motor Drivers
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates an Arduino UNO microcontroller with an HC-05 Bluetooth Module and two L298N DC motor drivers to control four DC motors. The Arduino UNO is responsible for controlling the motor drivers based on Bluetooth commands received via the HC-05 module. The motors are powered by a battery that also supplies power to the motor drivers. The Arduino UNO's digital pins are used to send control signals to the motor drivers, enabling the motors to be driven in forward or reverse directions.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button.
HC-05 Bluetooth Module
- A wireless communication module that allows for Bluetooth connectivity
- It has pins for key, power (VCC), transmit (TXD), receive (RXD), state, and ground (GND).
L298N DC Motor Driver (x2)
- A dual H-bridge motor driver capable of driving two DC motors or one stepper motor
- It has pins for motor outputs (OUT1-OUT4), power supply (12V, GND, 5V), and control inputs (ENA, ENB, IN1-IN4).
DC Motor (x4)
- A simple electric motor that converts electrical energy into mechanical energy
- It has two pins for connecting to the motor driver (pin 1, pin 2).
Battery
- A power source for the circuit
- It has a positive (+) and negative (-) terminal.
Wiring Details
Arduino UNO
5Vconnected to HC-05 Bluetooth Module VCCGNDconnected to HC-05 Bluetooth Module GNDD11connected to L298N DC motor driver ENBD10connected to L298N DC motor driver ENAD9connected to both L298N DC motor drivers IN2D8connected to both L298N DC motor drivers IN1D7connected to L298N DC motor driver ENAD6connected to both L298N DC motor drivers IN3D5connected to both L298N DC motor drivers IN4D4connected to L298N DC motor driver ENBD3connected to HC-05 Bluetooth Module RXDD2connected to HC-05 Bluetooth Module TXD
HC-05 Bluetooth Module
VCCconnected to Arduino UNO 5VGNDconnected to Arduino UNO GNDTXDconnected to Arduino UNO D2RXDconnected to Arduino UNO D3
L298N DC Motor Driver (x2)
ENB,ENAconnected to Arduino UNO D11, D10 respectivelyIN1,IN2,IN3,IN4connected to Arduino UNO D8, D9, D6, D5 respectively12Vconnected to battery positive (+)GNDconnected to battery negative (-)OUT1,OUT2,OUT3,OUT4connected to corresponding DC Motor pins
DC Motor (x4)
- Each motor has one pin connected to an
OUTpin on the corresponding L298N DC motor driver - The other pin of each motor is connected to another
OUTpin on the corresponding L298N DC motor driver
Battery
+connected to both L298N DC motor drivers 12V-connected to both L298N DC motor drivers GND
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:
}
Note: The provided code is a template and does not contain any functional code to control the motors or communicate with the Bluetooth module. The user will need to implement the control logic and communication protocol to make the circuit operational.