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

Arduino Mega 2560-Based Smart Robot with Bluetooth and Sensor Integration

Image of Arduino Mega 2560-Based Smart Robot with Bluetooth and Sensor Integration

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino Mega 2560 microcontroller, various sensors, a motor driver, and other components. The circuit is designed to interface with multiple sensors and actuators, providing a comprehensive setup for a variety of applications.

Component List

Arduino Mega 2560

  • Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D21/SCL, D20/SDA, D19/RX1, D18/TX1, D17 PWM/RX2, D16 PWM/TX2, D15/RX3, D14/TX3, D0 RX0, D1 TX0, D2 PWM, D3 PWM, D4 PWM, D5 PWM, D6 PWM, D7 PWM, D8 PWM, D9 PWM, D10 PWM, D11 PWM, D12 PWM, D13 PWM, AREF, SDA, SCL, D52, D50, D48, D46, D44, D42, D40, D38, D36, D34, D32, D30, D28, D26, D24, D22, D53, D51, D49, D47, D45, D43, D41, D39, D37, D35, D33, D31, D29, D27, D25, D23
  • Description: A microcontroller board based on the ATmega2560.

2.1mm Barrel Jack with Terminal Block

  • Pins: POS, NEG
  • Description: A power input connector.

HC-SR04 Ultrasonic Sensor

  • Pins: VCC, TRIG, ECHO, GND
  • Description: An ultrasonic distance sensor.

Resistor (4700 Ohms)

  • Pins: pin1, pin2
  • Description: A resistor with a resistance of 4700 Ohms.

Resistor (10000 Ohms)

  • Pins: pin1, pin2
  • Description: A resistor with a resistance of 10000 Ohms.

DHT11

  • Pins: DATA, GND, VCC
  • Description: A temperature and humidity sensor.

Resistor (2000 Ohms)

  • Pins: pin1, pin2
  • Description: A resistor with a resistance of 2000 Ohms.

Resistor (1000 Ohms)

  • Pins: pin1, pin2
  • Description: A resistor with a resistance of 1000 Ohms.

HC-05 Bluetooth Module

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

Electrolytic Capacitor

  • Pins: -, +
  • Description: A capacitor with a capacitance of 0.00001 Farads.

MPU-6050

  • Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT
  • Description: A 6-axis motion tracking device.

MQ135

  • Pins: VCC, GND, A0, D0
  • Description: A gas sensor.

GPS NEO 6M

  • Pins: VCC, RX, TX, GND
  • Description: A GPS module.

Motor amarillo motorreductor hobby

  • Pins: vcc, GND
  • Description: A hobby motor with a gearbox.

Servo (Wokwi Compatible)

  • Pins: GND, V+, PWM
  • Description: A servo motor.

L298N DC motor driver

  • 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
  • Description: A dual H-bridge motor driver.

ir sensor

  • Pins: out, gnd, vcc
  • Description: An infrared sensor.

ESP32 (30 pin)

  • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
  • Description: A microcontroller with integrated Wi-Fi and Bluetooth.

LM2596

  • Pins: IN, OUT
  • Description: A voltage regulator.

18650 Li-ion Battery x 2

  • Pins: +, -
  • Description: A pair of 18650 lithium-ion batteries.

buzzer

  • Pins: PIN, GND
  • Description: A piezoelectric buzzer.

Wiring Details

Arduino Mega 2560

  • D20/SDA: Connected to MPU-6050 (SDA) and Resistor (pin1)
  • D21/SCL: Connected to MPU-6050 (SCL) and Resistor (pin1)
  • GND: Connected to multiple components including ir sensors, DHT11, LM2596, Servo, GPS NEO 6M, Electrolytic Capacitor, HC-05 Bluetooth Module, MQ135, Resistor (pin1), MPU-6050, and buzzer
  • 5V: Connected to multiple components including DHT11, HC-SR04 Ultrasonic Sensor, LM2596, ir sensors, Servo, GPS NEO 6M, MQ135, Electrolytic Capacitor, and HC-05 Bluetooth Module
  • 3V3: Connected to Resistor (pin2) and MPU-6050 (VCC)
  • VIN: Connected to LM2596 (OUT) and 2.1mm Barrel Jack with Terminal Block (POS)
  • D19/RX1: Connected to HC-05 Bluetooth Module (TXD)
  • D18/TX1: Connected to Resistor (pin2)
  • D17 PWM/RX2: Connected to GPS NEO 6M (RX)
  • D16 PWM/TX2: Connected to GPS NEO 6M (TX)
  • D15/RX3: Connected to ESP32 (TX0)
  • D14/TX3: Connected to Resistor (pin1)
  • D4 PWM: Connected to Resistor (pin2) and DHT11 (DATA)
  • D7 PWM: Connected to Servo (PWM)
  • D8 PWM: Connected to HC-SR04 Ultrasonic Sensor (ECHO)
  • D9 PWM: Connected to HC-SR04 Ultrasonic Sensor (TRIG)
  • D13 PWM: Connected to buzzer (PIN)
  • D52: Connected to ir sensor (out)
  • D50: Connected to ir sensor (out)
  • D53: Connected to ir sensor (out)
  • D51: Connected to ir sensor (out)
  • D47: Connected to MQ135 (D0)
  • D29: Connected to L298N DC motor driver (IN4)
  • D27: Connected to L298N DC motor driver (IN3)
  • D25: Connected to L298N DC motor driver (IN2)
  • D23: Connected to L298N DC motor driver (IN1)

2.1mm Barrel Jack with Terminal Block

  • POS: Connected to LM2596 (OUT) and Arduino Mega 2560 (VIN)
  • NEG: Connected to multiple components including ir sensors, DHT11, LM2596, Servo, GPS NEO 6M, Electrolytic Capacitor, HC-05 Bluetooth Module, MQ135, Resistor (pin1), MPU-6050, and Arduino Mega 2560 (GND)

HC-SR04 Ultrasonic Sensor

  • VCC: Connected to Arduino Mega 2560 (5V)
  • TRIG: Connected to Arduino Mega 2560 (D9 PWM)
  • ECHO: Connected to Arduino Mega 2560 (D8 PWM)
  • GND: Connected to Arduino Mega 2560 (GND)

Resistor (4700 Ohms)

  • pin1: Connected to MPU-6050 (SDA) and Arduino Mega 2560 (D20/SDA)
  • pin2: Connected to Arduino Mega 2560 (3V3)

Resistor (10000 Ohms)

  • pin1: Connected to DHT11 (VCC)
  • pin2: Connected to Arduino Mega 2560 (D4 PWM) and DHT11 (DATA)

DHT11

  • DATA: Connected to Arduino Mega 2560