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

Arduino Mega 2560-Based Bluetooth-Controlled Robotic Car with MPU6050 and L298N Motor Driver

View and Edit Project In Cirkit DesignerImage of Arduino Mega 2560-Based Bluetooth-Controlled Robotic Car with MPU6050 and L298N Motor Driver

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino Mega 2560 microcontroller, an L298N DC motor driver, two DC motors, an MPU6050 accelerometer and gyroscope, an HC-05 Bluetooth module, and a 3S LIPO battery. The circuit is designed to control the DC motors based on sensor inputs and Bluetooth commands.

Component List

  1. Arduino Mega 2560

    • Description: A microcontroller board based on the ATmega2560.
    • Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D0-D53, AREF, SDA, SCL
  2. L298N DC Motor Driver

    • Description: A dual H-bridge motor driver that allows control 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
  3. DC Motor (2 units)

    • Description: Standard DC motors.
    • Pins: pin 1, pin 2
  4. MPU6050 Accelerometer + Gyroscope

    • Description: A sensor module that combines a 3-axis gyroscope and a 3-axis accelerometer.
    • Pins: INT, AD0, XCL, XDA, SDA, SCL, GND, VCC
  5. 3S LIPO Battery

    • Description: A rechargeable lithium polymer battery.
    • Pins: -VE, +VE
  6. HC-05 Bluetooth Module

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

Wiring Details

Arduino Mega 2560

L298N DC Motor Driver

DC Motor 1

DC Motor 2

MPU6050 Accelerometer + Gyroscope

3S LIPO Battery

HC-05 Bluetooth Module

Documented Code

Arduino Mega 2560 Code (sketch.ino)

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

}

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

}

Additional Documentation (documentation.txt)