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

Bluetooth-Controlled Robotic Vehicle with Obstacle Detection

Image of Bluetooth-Controlled Robotic Vehicle with Obstacle Detection

Circuit Documentation

Summary

The circuit in question is designed to control two DC motors using an L298N DC motor driver, interfaced with an Arduino Uno R3 microcontroller. The circuit also includes a 12V battery for power, multiple HC-SR04 Ultrasonic Sensors for distance measurement, IR sensors for object detection, and a Bluetooth HC-06 module for wireless communication. The Arduino Uno R3 serves as the central processing unit, receiving sensor inputs and controlling the motors accordingly.

Component List

DC Motor

  • Description: Electric motor that converts DC electrical power into mechanical power.
  • Pins: pin 1, pin 2

Battery 12V

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

HC-SR04 Ultrasonic Sensor

  • Description: Sensor that uses ultrasonic waves to measure distance.
  • Pins: VCC (power), TRIG (trigger), ECHO (echo), GND (ground)

Arduino Uno R3

  • Description: Microcontroller board based on the ATmega328P.
  • Pins: USB Port, Power Jack, Not Connected, IOREF, RESET, 3.3V, 5V, GND, VIN, A0-A5, SCL, SDA, AREF, Digital IO (0-13)

L298N DC Motor Driver

  • Description: A module that can control up to two DC motors with direction and speed control.
  • Pins: OUT1-OUT4, 12V, GND, 5V, ENA, ENB, IN1-IN4

IR Sensor

  • Description: Sensor that detects infrared light to determine the presence of objects.
  • Pins: out, gnd, vcc

Bluetooth HC-06

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

Wiring Details

DC Motor

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

Battery 12V

  • Wiring:
      • (positive) connected to L298N DC motor driver 12V
      • (negative) connected to common ground net

HC-SR04 Ultrasonic Sensor

  • Wiring:
    • VCC connected to common VCC net
    • TRIG connected to Arduino Uno R3 pins 6, 9, 10, or 11
    • ECHO connected to Arduino Uno R3 pins A2, A3, A4/SDA, or A5/SCL
    • GND connected to common ground net

Arduino Uno R3

  • Wiring:
    • 5V connected to Bluetooth HC-06 VCC
    • GND connected to common ground net
    • VIN connected to common VCC net
    • Digital IO and Analog pins connected to various sensors and motor driver as specified in the net list

L298N DC Motor Driver

  • Wiring:
    • 12V connected to Battery 12V +
    • GND connected to common ground net
    • 5V connected to common VCC net
    • IN1-IN4 connected to Arduino Uno R3 pins 7, 8, 12, or 13
    • ENA, ENB connected to Arduino Uno R3 pins 3, 5
    • OUT1-OUT4 connected to DC Motor pins

IR Sensor

  • Wiring:
    • out connected to Arduino Uno R3 pins A0 or A1
    • gnd connected to common ground net
    • vcc connected to common VCC net

Bluetooth HC-06

  • Wiring:
    • VCC connected to Arduino Uno R3 5V
    • GND connected to common ground net
    • TXD connected to Arduino Uno R3 pin 0
    • RXD connected to Arduino Uno R3 pin 1

Documented Code

No code has been provided for the microcontrollers in the circuit. The documentation of the code would typically include the setup and loop functions for the Arduino Uno R3, detailing how the inputs from the sensors are processed and how the outputs to the motor driver are controlled. It would also include any necessary initialization and configuration for the Bluetooth module and the handling of wireless communication.