Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Controlled Bluetooth Robot with Dual L298N Motor Drivers

Image of Arduino UNO Controlled Bluetooth Robot with Dual L298N Motor Drivers

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

  • 5V connected to HC-05 Bluetooth Module VCC
  • GND connected to HC-05 Bluetooth Module GND
  • D11 connected to L298N DC motor driver ENB
  • D10 connected to L298N DC motor driver ENA
  • D9 connected to both L298N DC motor drivers IN2
  • D8 connected to both L298N DC motor drivers IN1
  • D7 connected to L298N DC motor driver ENA
  • D6 connected to both L298N DC motor drivers IN3
  • D5 connected to both L298N DC motor drivers IN4
  • D4 connected to L298N DC motor driver ENB
  • D3 connected to HC-05 Bluetooth Module RXD
  • D2 connected to HC-05 Bluetooth Module TXD

HC-05 Bluetooth Module

  • VCC connected to Arduino UNO 5V
  • GND connected to Arduino UNO GND
  • TXD connected to Arduino UNO D2
  • RXD connected to Arduino UNO D3

L298N DC Motor Driver (x2)

  • ENB, ENA connected to Arduino UNO D11, D10 respectively
  • IN1, IN2, IN3, IN4 connected to Arduino UNO D8, D9, D6, D5 respectively
  • 12V connected to battery positive (+)
  • GND connected to battery negative (-)
  • OUT1, OUT2, OUT3, OUT4 connected to corresponding DC Motor pins

DC Motor (x4)

  • Each motor has one pin connected to an OUT pin on the corresponding L298N DC motor driver
  • The other pin of each motor is connected to another OUT pin 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.