Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO and L298N Motor Driver Controlled Robotic System with Bluetooth Connectivity

View and Edit Project In Cirkit DesignerImage of Arduino UNO and L298N Motor Driver Controlled Robotic System with Bluetooth Connectivity

Circuit Documentation

Summary

This document provides a detailed overview of a circuit designed to control motors using an Arduino UNO, an L298N DC motor driver, an Electronic Speed Controller (ESC), and an HC-05 Bluetooth module. The circuit is powered by a battery and includes two MRB Planetary gearbox motors and a BLDC motor. The Arduino UNO is programmed to control the motors based on input received via the Bluetooth module.

Component List

  1. L298N DC Motor Driver

    • Description: A dual H-Bridge motor driver that allows control of the speed and direction of two DC motors.
    • 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
  2. HC-05 Bluetooth Module

    • Description: A Bluetooth module used for wireless communication.
    • Pins: EN, VCC, GND, TXD, RXD, STATE
  3. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  4. BLDC Motor

    • Description: A brushless DC motor.
    • Pins: Wire A, Wire B, Wire C
  5. Electronic Speed Controller (ESC)

    • Description: A device used to control the speed of an electric motor.
    • Pins: Battery VCC, Battery GND, Signal, 5v out, GND out, M1, M2, M3
  6. MRB Planetary Gearbox Motor

    • Description: A DC motor with a planetary gearbox.
    • Pins: +, -
  7. Battery

    • Description: A power source for the circuit.
    • Pins: -, +

Wiring Details

L298N DC Motor Driver

HC-05 Bluetooth Module

Arduino UNO

BLDC Motor

Electronic Speed Controller (ESC)

MRB Planetary Gearbox Motor

Battery

Documented Code

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino UNO. The setup() function is used to initialize any settings, and the loop() function contains the main code that runs repeatedly. Further implementation is required to control the motors based on the input from the HC-05 Bluetooth module.