Arduino Mega 2560-Based Robotic Arm with Multiple Servos and Ultrasonic Sensor
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino Mega 2560 microcontroller, multiple servos, sensors, a motor driver, motors, a speaker, a transistor, resistors, capacitors, a display, an ESP32 microcontroller, and power components. The circuit is designed to control various actuators and sensors, providing a comprehensive setup for a robotics or automation project.
Component List
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
Micro Servo 9G
- Description: A small servo motor.
- Pins: GND, +5V, PWM
MG90S
- Description: A metal gear servo motor.
- Pins: SIG, VCC, GND
Ultrasonic Sensor
- Description: A sensor for measuring distance using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
Touch Sensor
- Description: A sensor that detects touch.
- Pins: IO, VCC, GND
L298N DC Motor Driver
- Description: A dual H-Bridge motor driver.
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, ENA, IN1, IN2, IN3, IN4, ENB
DC Mini Metal Gear Motor
- Description: A small DC motor with metal gears.
- Pins: IN1, IN2
IR Sensor
- Description: An infrared sensor.
- Pins: out, gnd, vcc
Speaker
- Description: A small speaker.
- Pins: +, -
NPN Transistor (ECB)
- Description: A transistor with emitter, collector, and base pins.
- Pins: emitter, collector, base
Resistor
- Description: A passive electrical component.
- Pins: pin1, pin2
- Properties: Resistance: 6.8 Ohms, 220 Ohms
Electrolytic Capacitor
- Description: A polarized capacitor.
- Pins: -, +
- Properties: Capacitance: 0.000001 Farads
GC9A01
- Description: A display module.
- Pins: RST, CS, DC, SDA, SCL, GND, VCC
ESP32
- Description: A microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
3.7v LiPo
- Description: A 3.7V lithium polymer battery.
- Pins: +Ve, GND
Rocker Switch
- Description: A switch with two positions.
- Pins: 1, 2
XL4015 5A DC Buck Step-down
- Description: A DC-DC buck converter.
- Pins: Output +, Output -, Input +, Input -
Wiring Details
Arduino Mega 2560
5V connected to:
- +5V of Micro Servo 9G (multiple instances)
- VCC of MG90S
- +VCC of Ultrasonic Sensor
- VCC of Touch Sensor
- VCC of IR Sensor (multiple instances)
- pin1 of Resistor (6.8 Ohms)
GND connected to:
- GND of Micro Servo 9G (multiple instances)
- GND of MG90S
- GND of Ultrasonic Sensor
- GND of Touch Sensor
- GND of IR Sensor (multiple instances)
-
- of Speaker
- emitter of NPN Transistor (ECB)
- GND of 3.7v LiPo
VIN connected to:
- pin1 of Rocker Switch
D2 PWM connected to:
- IO of Touch Sensor
D3 PWM connected to:
- PWM of Micro Servo 9G
D4 PWM connected to:
- PWM of Micro Servo 9G
D5 PWM connected to:
- PWM of Micro Servo 9G
D6 PWM connected to:
- PWM of Micro Servo 9G
D7 PWM connected to:
- PWM of Micro Servo 9G
D8 PWM connected to:
- ENB of L298N DC Motor Driver
D9 PWM connected to:
- ENA of L298N DC Motor Driver
D11 PWM connected to:
- SIG of MG90S
D12 PWM connected to:
- PWM of Micro Servo 9G
D13 PWM connected to:
- pin2 of Resistor (220 Ohms)
D41 connected to:
- Trigger of Ultrasonic Sensor
D39 connected to:
- Echo of Ultrasonic Sensor
D52 connected to:
- out of IR Sensor
D53 connected to:
- out of IR Sensor
D51 connected to:
- IN1 of L298N DC Motor Driver
D49 connected to:
- IN2 of L298N DC Motor Driver
D47 connected to:
- IN3 of L298N DC Motor Driver
D45 connected to:
- IN4 of L298N DC Motor Driver
Micro Servo 9G
GND connected to:
- GND of Arduino Mega 2560
- emitter of NPN Transistor (ECB)
+5V connected to:
- 5V of Arduino Mega 2560
- pin1 of Resistor (6.8 Ohms)
PWM connected to:
- D3 PWM of Arduino Mega 2560
- D4 PWM of Arduino Mega 2560
- D5 PWM of Arduino Mega 2560
- D6 PWM of Arduino Mega 2560
- D7 PWM of Arduino Mega 2560
- D12 PWM of Arduino Mega 2560
MG90S
SIG connected to:
- D11 PWM of Arduino Mega 2560
VCC connected to:
- 5V of Arduino Mega 2560
GND connected to:
- GND of Arduino Mega 2560
Ultrasonic Sensor
+VCC connected to:
- 5V of Arduino Mega 2560
Trigger connected to:
- D41 of Arduino Mega 2560
Echo connected to:
- D39 of Arduino Mega 2560
GND connected to:
- GND of Arduino Mega 2560
Touch Sensor
IO connected to:
- D2 PWM of Arduino Mega 2560
VCC connected to:
- 5V of Arduino Mega 2560
GND connected to:
- GND of Arduino Mega 2560
L298N DC Motor Driver
ENB connected to:
- D8 PWM of Arduino Mega 2560
ENA connected to:
- D9 PWM of Arduino Mega 2560
IN1 connected to:
- D51 of Arduino Mega 2560
IN2 connected to:
- D49 of Arduino Mega 2560
IN3 connected to:
- D47 of Arduino Mega 2560
IN4 connected to:
- D45 of Arduino Mega 2560
OUT1 connected to:
- IN2 of DC Mini Metal Gear Motor
OUT2 connected to:
- IN1 of DC Mini Metal Gear Motor
OUT3 connected to:
- IN2 of DC Mini Metal Gear Motor
OUT4 connected to:
- IN1 of DC Mini Metal Gear Motor
12V connected to:
- pin1 of Rocker Switch
GND connected to:
- GND of 3.7v LiPo
DC Mini Metal Gear Motor
- IN1 connected to:
- OUT2 of L298N DC Motor Driver
- OUT4 of L