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

Bluetooth-Controlled Dual Motor Driver with Arduino UNO

Image of Bluetooth-Controlled Dual Motor Driver with Arduino UNO

Circuit Documentation

Summary

This circuit is designed to control two hobby gearmotors using an L298N DC motor driver, which is interfaced with an Arduino UNO microcontroller. The system is powered by a 9V battery and includes a Bluetooth HC-06 module for potential wireless communication. The Arduino UNO is responsible for sending control signals to the L298N driver to manage the speed and direction of the motors. The battery provides the necessary power to the motors and the logic level components.

Component List

L298N DC Motor Driver

  • Description: A dual H-bridge motor driver capable of driving two DC motors or one stepper motor.
  • 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

Hobby Gearmotor with 48:1 Gearbox (x2)

  • Description: A DC motor with a gearbox to reduce speed and increase torque.
  • Pins: pin 1, pin 2

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P, widely used for prototyping and educational purposes.
  • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13

9V Battery

  • Description: A standard 9V battery used to provide power to the circuit.
  • Pins: -, +

Bluetooth HC-06

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

Wiring Details

L298N DC Motor Driver

  • OUT1 connected to Gearmotor 1 (pin 1)
  • OUT2 connected to Gearmotor 1 (pin 2)
  • 12V connected to 9V Battery (+)
  • GND connected to common ground
  • 5V connected to Arduino UNO (5V) and Bluetooth HC-06 (VCC)
  • OUT3 connected to Gearmotor 2 (pin 2)
  • OUT4 connected to Gearmotor 2 (pin 1)
  • IN1 connected to Arduino UNO (D8)
  • IN2 connected to Arduino UNO (D9)
  • IN3 connected to Arduino UNO (D10)
  • IN4 connected to Arduino UNO (D11)

Hobby Gearmotor with 48:1 Gearbox

  • Gearmotor 1 (pin 1) connected to L298N DC Motor Driver (OUT1)
  • Gearmotor 1 (pin 2) connected to L298N DC Motor Driver (OUT2)
  • Gearmotor 2 (pin 1) connected to L298N DC Motor Driver (OUT4)
  • Gearmotor 2 (pin 2) connected to L298N DC Motor Driver (OUT3)

Arduino UNO

  • GND connected to common ground
  • 5V connected to L298N DC Motor Driver (5V) and Bluetooth HC-06 (VCC)
  • D8 connected to L298N DC Motor Driver (IN1)
  • D9 connected to L298N DC Motor Driver (IN2)
  • D10 connected to L298N DC Motor Driver (IN3)
  • D11 connected to L298N DC Motor Driver (IN4)
  • D0 connected to Bluetooth HC-06 (TXD)
  • D1 connected to Bluetooth HC-06 (RXD)

9V Battery

  • (+) connected to L298N DC Motor Driver (12V)
  • (-) connected to common ground

Bluetooth HC-06

  • VCC connected to Arduino UNO (5V)
  • GND connected to common ground
  • TXD connected to Arduino UNO (D0)
  • RXD connected to Arduino UNO (D1)

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 instructions. The user must implement the setup and loop functions to control the motor driver and manage Bluetooth communication.