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

Arduino-Controlled Dual DC Motor Driver with Bluetooth Interface

Image of Arduino-Controlled Dual DC Motor Driver with Bluetooth Interface

Circuit Documentation

Summary of the Circuit

This circuit is designed to control two DC motors using an Arduino UNO microcontroller and an L298N DC motor driver. The circuit also includes an HC-05 Bluetooth module for wireless communication and an 18650 Li-Ion battery to provide power. The Arduino UNO interfaces with the L298N driver to control the speed and direction of the motors, and it communicates with the HC-05 module to receive control commands wirelessly.

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.

L298N DC Motor Driver

  • A dual H-bridge motor driver that can drive two DC motors or one stepper motor.
  • It has pins for motor power supply, ground, control inputs, and motor outputs.

18650 Li-Ion Battery

  • A rechargeable battery providing a nominal voltage of 3.7V (up to 4.2V when fully charged).
  • It has a positive and a negative terminal for power supply.

DC Motor (x2)

  • Standard DC motors with two connection pins.
  • Used for converting electrical energy into mechanical motion.

HC-05 Bluetooth Module

  • A wireless communication module that can be used for serial communication.
  • It has pins for enabling, power supply, ground, and TX/RX for serial data.

Wiring Details

Arduino UNO

  • 5V and GND are connected to the 5V and ground buses, respectively, providing power to the HC-05 Bluetooth module and the L298N motor driver.
  • Digital pins D2 to D10 are used to interface with the HC-05 module and the L298N motor driver for control signals.

L298N DC Motor Driver

  • 5V is connected to the 5V power bus from the Arduino UNO.
  • GND is connected to the ground bus.
  • 12V is connected to the positive terminal of the 18650 Li-Ion battery.
  • IN1 to IN4 are connected to Arduino UNO digital pins D7 to D10 for motor control signals.
  • ENA and ENB are connected to Arduino UNO digital pins D5 and D6 for enabling the motor driver channels.
  • OUT1 to OUT4 are connected to the respective pins of the two DC motors to drive them.

18650 Li-Ion Battery

  • Positive terminal is connected to the 12V input of the L298N motor driver to power the motors.
  • Negative terminal is connected to the ground bus.

DC Motors

  • Each motor has two pins connected to the OUT1/OUT2 and OUT3/OUT4 outputs of the L298N motor driver, respectively.

HC-05 Bluetooth Module

  • VCC is connected to the 5V power bus.
  • GND is connected to the ground bus.
  • TXD and RXD are connected to Arduino UNO digital pins D2 and D3 for serial communication.

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 implement the desired functionality.