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

Arduino-Controlled Bluetooth Robotic Vehicle with L298N Motor Driver

Image of Arduino-Controlled Bluetooth Robotic Vehicle with L298N Motor Driver

Circuit Documentation

Summary

This circuit is designed to control a set of four hobby gearmotors using an L298N DC motor driver, which is interfaced with an Arduino UNO microcontroller. The Arduino UNO also communicates with an HC-05 Bluetooth module for wireless connectivity. The entire system is powered by a 12V battery. The Arduino UNO's GPIO pins are used to send control signals to the L298N driver, which in turn controls the direction and speed of the motors. The HC-05 module allows for remote control via Bluetooth.

Component List

Hobby Gearmotor with 48:1 gearbox

  • Description: A motor with a 48:1 gearbox for torque amplification.
  • Pins: pin 1, pin 2

L298N DC motor driver

  • Description: A dual H-bridge motor driver capable of driving two 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

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

Battery 12V

  • Description: A 12V power source for the circuit.
  • Pins: +, -

HC-05 Bluetooth Module

  • Description: A Bluetooth module for wireless communication.
  • Pins: EN, VCC, GND, TXD, RXD, STATE

Wiring Details

Hobby Gearmotor with 48:1 gearbox

  • pin 1: Connected to L298N DC motor driver OUT3 or OUT2
  • pin 2: Connected to L298N DC motor driver OUT4 or OUT1

L298N DC motor driver

  • OUT1, OUT2, OUT3, OUT4: Connected to Hobby Gearmotor pins
  • 12V: Connected to the positive terminal of the 12V battery
  • GND: Connected to the GND of Arduino UNO and negative terminal of the 12V battery
  • 5V: Connected to the 5V of Arduino UNO
  • ENA, ENB: Connected to Arduino UNO pins D6 and D5 respectively
  • IN1, IN2, IN3, IN4: Connected to Arduino UNO pins D8, D9, D10, and D11 respectively

Arduino UNO

  • 3.3V: Connected to HC-05 VCC
  • GND: Connected to HC-05 GND and the negative terminal of the 12V battery
  • D0, D1: Connected to HC-05 RXD and TXD respectively
  • D5, D6: Connected to L298N DC motor driver ENB and ENA respectively
  • D8, D9, D10, D11: Connected to L298N DC motor driver IN1, IN2, IN3, and IN4 respectively

Battery 12V

  • +: Connected to L298N DC motor driver 12V
  • -: Connected to Arduino UNO GND and L298N DC motor driver GND

HC-05 Bluetooth Module

  • VCC: Connected to Arduino UNO 3.3V
  • GND: Connected to Arduino UNO GND
  • TXD: Connected to Arduino UNO D1
  • RXD: Connected to Arduino UNO D0

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 HC-05 Bluetooth module. The user is expected to fill in the setup and loop functions with the necessary code to initialize the motor driver and handle Bluetooth communication.