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

Arduino-Controlled Bluetooth Robot with Multiple DC Motors and LED Indicators

Image of Arduino-Controlled Bluetooth Robot with Multiple DC Motors and LED Indicators

Circuit Documentation

Summary

This circuit incorporates a variety of components including LEDs, a Bluetooth module, DC motors, motor drivers, batteries, an Arduino UNO microcontroller, and a toggle switch. The circuit is designed to control DC motors via the L298N motor drivers, which are interfaced with the Arduino UNO. The HC-05 Bluetooth module allows for wireless communication, potentially for remote control purposes. Power is supplied by Polymer Lithium Ion batteries and a Lipo battery, with a toggle switch included for power control. The LEDs serve as indicators, and their operation is linked to the 3.3V output from the Arduino UNO.

Component List

  • Toggle Switch: A switch to control the power flow to the circuit.
  • HC-05 Bluetooth Module: A wireless communication module for Bluetooth connectivity.
  • LED (blue): Two blue LEDs used as indicators.
  • DC Motor: Three motors that are the actuators in the circuit.
  • Polymer Lithium Ion Battery - Generic: Two batteries to provide power to the circuit.
  • Lipo Battery: An additional power source for the circuit.
  • Arduino UNO: The microcontroller used for controlling the logic of the circuit.
  • L298N DC Motor Driver: Two motor driver modules to control the speed and direction of the DC motors.

Wiring Details

Toggle Switch

  • L1: Connected to the Vin pin of the Arduino UNO.
  • COM: Connected to the VCC of the Lipo Battery.

HC-05 Bluetooth Module

  • Key: Not connected.
  • VCC: Connected to the 5V output from the Arduino UNO.
  • TXD: Connected to the D0 pin of the Arduino UNO.
  • RXD: Connected to the D1 pin of the Arduino UNO.
  • State: Not connected.
  • GND: Connected to the GND pin of the Arduino UNO.

LED: Two Pin (blue)

  • Cathode: Connected to the 3.3V pin of the Arduino UNO.
  • Anode: Connected to the GND through the L298N DC motor driver.

DC Motor

  • Pin 1 & Pin 2: Each motor is connected to an OUT1/OUT2 or OUT3/OUT4 pair on the L298N DC motor drivers.

Polymer Lithium Ion Battery - Generic

  • GND: Connected to the GND of the circuit.
  • VCC: One battery's VCC is connected to the 12V input of the L298N DC motor drivers, and the other is connected to the GND of another battery.

Lipo Battery

  • GND: Connected to the GND pin of the Arduino UNO.
  • VCC: Connected to the COM pin of the Toggle Switch.

Arduino UNO

  • Vin: Connected to the L1 pin of the Toggle Switch.
  • 3.3V: Connected to the cathodes of the blue LEDs.
  • 5V: Connected to the VCC of the HC-05 Bluetooth Module and the 5V inputs of the L298N DC motor drivers.
  • GND: Common ground for the circuit, connected to various components.
  • Digital Pins (D0-D13): Connected to the HC-05 Bluetooth Module and the L298N DC motor drivers for control signals.

L298N DC Motor Driver

  • OUT1-OUT4: Connected to the pins of the DC Motors.
  • 12V: Connected to the VCC of the Polymer Lithium Ion Battery.
  • GND: Connected to the GND of the circuit.
  • 5V: Connected to the 5V output from the Arduino UNO.
  • ENA, ENB, IN1-IN4: Connected to the corresponding digital pins on the Arduino UNO for motor control.

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:

}

This code is a template and does not contain any specific functionality. It is structured with a setup() function that runs once when the microcontroller is powered on or reset, and a loop() function that runs continuously, allowing the microcontroller to perform operations and respond to inputs.

Additional Notes

  • The provided code for the Arduino UNO is a placeholder and needs to be populated with the logic to control the DC motors via the L298N motor drivers and to handle Bluetooth communication with the HC-05 module.
  • The wiring details assume that the electrical nets provided are correctly connected, and no additional connections are present.
  • The batteries should be handled with care, ensuring proper charging and discharging to prevent damage or hazards.
  • The toggle switch provides a means to safely power the circuit on and off without disconnecting the batteries.