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

Bluetooth-Controlled Robot with IR Sensing and Dual DC Motor Drive

Image of Bluetooth-Controlled Robot with IR Sensing and Dual DC Motor Drive

Circuit Documentation

Summary

This circuit is designed to control a pair of DC Mini Metal Gear Motors using an L298N DC motor driver, with an Arduino Nano as the microcontroller. The system is powered by a 7.4V power source. An HC-05 Bluetooth Module is included for wireless communication, likely for remote control purposes. Additionally, a 5 channel IR array is connected to the Arduino Nano for sensor input, which could be used for line tracking or obstacle detection.

Component List

Power Source

  • Name: 7.4v
  • Description: Provides the power required for the circuit.

L298N DC Motor Driver

  • Name: L298N DC motor driver
  • Description: Controls the direction and speed of the DC motors.

5 Channel IR Array

  • Name: 5 channel IR array
  • Description: Senses the presence of objects or lines by emitting and detecting IR light.

Arduino Nano

  • Name: Arduino Nano
  • Description: A compact microcontroller used to control the circuit logic.

DC Mini Metal Gear Motor (x2)

  • Name: DC Mini Metal Gear Motor
  • Description: Provides mechanical motion for the system.

HC-05 Bluetooth Module

  • Name: HC-05 Bluetooth Module
  • Description: Enables wireless communication for remote control.

Wiring Details

Power Source

  • 7.4v
    • + to Arduino Nano VIN, HC-05 Bluetooth Module VCC, 5 channel IR array VCC
    • - to Arduino Nano GND, HC-05 Bluetooth Module GND, 5 channel IR array GND, L298N DC motor driver GND

L298N DC Motor Driver

  • L298N DC motor driver
    • OUT1 to DC Mini Metal Gear Motor IN2
    • OUT2 to DC Mini Metal Gear Motor IN1
    • OUT3 to DC Mini Metal Gear Motor IN2
    • OUT4 to DC Mini Metal Gear Motor IN1

5 Channel IR Array

  • 5 channel IR array
    • A5 to Arduino Nano A0
    • A4 to Arduino Nano A1
    • A3 to Arduino Nano A2
    • A2 to Arduino Nano A3
    • A1 to Arduino Nano A4
    • VCC to 7.4v +
    • GND to 7.4v -

Arduino Nano

  • Arduino Nano
    • VIN to 7.4v +
    • GND to 7.4v -
    • A0 to 5 channel IR array A5
    • A1 to 5 channel IR array A4
    • A2 to 5 channel IR array A3
    • A3 to 5 channel IR array A2
    • A4 to 5 channel IR array A1
    • D1/TX to HC-05 Bluetooth Module RXD
    • D0/RX to HC-05 Bluetooth Module TXD

DC Mini Metal Gear Motor

  • DC Mini Metal Gear Motor
    • IN1 to L298N DC motor driver OUT2/OUT4
    • IN2 to L298N DC motor driver OUT1/OUT3

HC-05 Bluetooth Module

  • HC-05 Bluetooth Module
    • VCC to 7.4v +
    • GND to 7.4v -
    • TXD to Arduino Nano D0/RX
    • RXD to Arduino Nano D1/TX

Documented Code

Arduino Nano 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 logic. It needs to be populated with the specific setup and loop instructions to control the motors and read sensor data.