Embedded hardware reference for engineers and makers

Arduino Mega 2560 Rev3 Pinout & Hardware Architecture

92-pin interactive pinout

Arduino Mega 2560 Rev3 is the flagship 8-bit development platform featuring the Microchip ATmega2560 microcontroller (16 MHz, 256 KB Flash, 8 KB SRAM). Designed for complex 3D printing (RAMPS), robotics, and multi-sensor automation projects.

  • Arduino
  • Verified source
  • Updated Sep 2026

Interactive pinout diagramTop

  • GPIO
  • Power
  • Ground
  • Analog
  • Control
  • Bus
  • Not connected

Tap a row of pins to see it up close

Arduino Mega 2560 Rev3 Pinout Vector DiagramInteractive vector pinout diagram of Arduino Mega 2560 Rev3 (top view) showing pin headers, power rails, components, and hardware interfaces.LD1117MEGA16U2DCL0CHUSBPWRRESETLD1117LP2985MEGA16U216MHzICSP116MHzICSPLTXRXONNCIOREFRESET3V35VGNDGNDVINA0A1A2A3A4A5A6A7A8A9A10A11A12A13A14A15SCLSDAAREFGND1312111098765432101415161718192021MISO5VSCKMOSIRESETGND

BOARD SUMMARY

ATmega2560

Arduino Mega 2560 Rev3

ATmega2560

Arduino
MCU
ATmega2560
CPU core
8-bit AVR RISC
Clock speed
16 MHz
SRAM
8 KB
Flash
256 KB
GPIO count
72
Logic voltage
5.0 V
Form factor
92-pin, USB-to-Serial (ATmega16U2)

Before you wire

5 V logic — level-shift 3.3 V peripherals

  • Check your SPI connections: Do not use pins 10-13 for hardware SPI; connect to pins D50-D53 or the 6-pin ICSP header.
  • Verify peripheral voltage compatibility: 3.3V devices require logic level converters.
  • Do not overload the 3.3V rail (maximum 50 mA from the LP2985 linear regulator).

Pin table

Showing 92 of 92 pins
Arduino Mega 2560 Rev3 pin table: physical pin, name, GPIO, functions, ADC, touch, default role, flags
PinNameGPIOFunctionsADCDefault roleFlags
1 powerNC—
nc
—No Connection
2 powerIOREF—
power
—Power Supply
3 powerRESET—
reset
—Reset / Enable
4 power3V3—
power
—Power Supply
5 power5V—
power
—Power Supply
6 powerGND—
gnd
—Ground
7 powerGND—
gnd
—Ground
8 powerVIN—
power
—Power Supply
1 adclA0GPIO54
gpioadc
—GPIO
2 adclA1GPIO55
gpioadc
—GPIO
3 adclA2GPIO56
gpioadc
—GPIO
4 adclA3GPIO57
gpioadc
—GPIO
5 adclA4GPIO58
gpioadcjtag
—GPIO
6 adclA5GPIO59
gpioadcjtag
—GPIO
7 adclA6GPIO60
gpioadcjtag
—GPIO
8 adclA7GPIO61
gpioadcjtag
—GPIO
1 adchA8GPIO62
gpioadc
—GPIO
2 adchA9GPIO63
gpioadc
—GPIO
3 adchA10GPIO64
gpioadc
—GPIO
4 adchA11GPIO65
gpioadc
—GPIO
5 adchA12GPIO66
gpioadc
—GPIO
6 adchA13GPIO67
gpioadc
—GPIO
7 adchA14GPIO68
gpioadc
—GPIO
8 adchA15GPIO69
gpioadc
—GPIO
1 digital_highSCLGPIO21
i2c
—GPIO
2 digital_highSDAGPIO20
i2c
—GPIO
3 digital_highAREF—
input
—GPIO
4 digital_highGND—
gnd
—Ground
5 digital_high13GPIO13
gpiospipwmled
—GPIO
6 digital_high12GPIO12
gpiopwm
—GPIO
7 digital_high11GPIO11
gpiopwm
—GPIO
8 digital_high10GPIO10
gpiopwm
—GPIO
9 digital_high9GPIO9
gpiopwm
—GPIO
10 digital_high8GPIO8
gpiopwm
—GPIO
1 digital_low7GPIO7
gpiopwm
—GPIO
2 digital_low6GPIO6
gpiopwm
—GPIO
3 digital_low5GPIO5
gpiopwm
—GPIO
4 digital_low4GPIO4
gpiopwm
—GPIO
5 digital_low3GPIO3
gpiopwminput
—GPIO
6 digital_low2GPIO2
gpiopwminput
—GPIO
7 digital_low1GPIO1
gpiouart
—GPIO
8 digital_low0GPIO0
gpiouart
—GPIO
1 communication14GPIO14
gpiouart
—GPIO
2 communication15GPIO15
gpiouart
—GPIO
3 communication16GPIO16
gpiouart
—GPIO
4 communication17GPIO17
gpiouart
—GPIO
5 communication18GPIO18
gpiouartinput
—GPIO
6 communication19GPIO19
gpiouartinput
—GPIO
7 communication20GPIO20
gpioi2cinput
—GPIO
8 communication21GPIO21
gpioi2cinput
—GPIO
1 digital_double5V—
power
—Power Supply
2 digital_double5V—
power
—Power Supply
3 digital_double22GPIO22
gpio
—GPIO
4 digital_double23GPIO23
gpio
—GPIO
5 digital_double24GPIO24
gpio
—GPIO
6 digital_double25GPIO25
gpio
—GPIO
7 digital_double26GPIO26
gpio
—GPIO
8 digital_double27GPIO27
gpio
—GPIO
9 digital_double28GPIO28
gpio
—GPIO
10 digital_double29GPIO29
gpio
—GPIO
11 digital_double30GPIO30
gpio
—GPIO
12 digital_double31GPIO31
gpio
—GPIO
13 digital_double32GPIO32
gpio
—GPIO
14 digital_double33GPIO33
gpio
—GPIO
15 digital_double34GPIO34
gpio
—GPIO
16 digital_double35GPIO35
gpio
—GPIO
17 digital_double36GPIO36
gpio
—GPIO
18 digital_double37GPIO37
gpio
—GPIO
19 digital_double38GPIO38
gpio
—GPIO
20 digital_double39GPIO39
gpio
—GPIO
21 digital_double40GPIO40
gpio
—GPIO
22 digital_double41GPIO41
gpio
—GPIO
23 digital_double42GPIO42
gpio
—GPIO
24 digital_double43GPIO43
gpio
—GPIO
25 digital_double44GPIO44
gpiopwm
—GPIO
26 digital_double45GPIO45
gpiopwm
—GPIO
27 digital_double46GPIO46
gpiopwm
—GPIO
28 digital_double47GPIO47
gpio
—GPIO
29 digital_double48GPIO48
gpio
—GPIO
30 digital_double49GPIO49
gpio
—GPIO
31 digital_double50GPIO50
gpiospi
—GPIO
32 digital_double51GPIO51
gpiospi
—GPIO
33 digital_double52GPIO52
gpiospi
—GPIO
34 digital_double53GPIO53
gpiospi
—GPIO
35 digital_doubleGND—
gnd
—Ground
36 digital_doubleGND—
gnd
—Ground
1 icspMISO—
spi
—GPIO
2 icsp5V—
power
—Power Supply
3 icspSCK—
spi
—GPIO
4 icspMOSI—
spi
—GPIO
5 icspRESET—
reset
—Reset / Enable
6 icspGND—
gnd
—Ground

Grounded reference

Board overview

Arduino Mega 2560 Rev3 is a full-sized development board based on the ATmega2560 microcontroller. It features 54 digital input/output pins, 16 analog inputs, 4 hardware serial ports, a 16 MHz quartz crystal, a USB Type-B port, a 2.1mm DC power jack, and a reset button.

Power inputs

  • USB Type-B connector (5V DC, protected by a 500 mA resettable Polyswitch PTC)
  • VIN pin or 2.1mm center-positive barrel jack (7–12V DC recommended, 6–20V absolute limits)
  • Regulated 5.0V system power rail (NCP1117 / LD1117 linear regulator, up to 800 mA when powered via DC jack)

Common use cases

  • Driving 3D printers and CNC machines using RAMPS 1.4 / 1.6 shield architectures.
  • Complex robotics requiring dozens of simultaneous servo outputs and motor controllers.
  • Multi-sensor monitoring (16 ADC channels) and multi-bus telemetry across 4 independent UART channels.

Notes

  • SPI Bus Relocation: On Arduino Mega, hardware SPI is routed to pins D50 (MISO), D51 (MOSI), D52 (SCK), D53 (SS) and the central ICSP header. Shields relying on pins 11-13 of the Uno require connection via the ICSP header.
  • Native 5.0V TTL Logic: All I/O pins operate at 5V. 3.3V sensors require bidirectional level translators.
  • Recommended DC current per pin is 20 mA (40 mA maximum). Total microcontroller package current must not exceed 200 mA.
  • 15 PWM channels driven by hardware Timers 0, 1, 2, 3, 4, and 5 (D2–D13, D44–D46).

Before you wire

  • Check your SPI connections: Do not use pins 10-13 for hardware SPI; connect to pins D50-D53 or the 6-pin ICSP header.
  • Verify peripheral voltage compatibility: 3.3V devices require logic level converters.
  • Do not overload the 3.3V rail (maximum 50 mA from the LP2985 linear regulator).

Specifications

MCU
ATmega2560
CPU core
8-bit AVR RISC
Clock
16 MHz
SRAM
8 KB
Flash
0.25 MB
GPIO count
72
Logic voltage
5.0 V
Operating voltage (VIN)
7 - 12 V

Safe GPIO pins

All digital and analog pins operate on native 5.0V logic with a continuous rating of up to 20 mA per pin (absolute maximum 40 mA). Total microcontroller package current is limited to 200 mA.

ADC and analog pins

16 analog channels (A0–A15, 10-bit resolution from 0 to 5V or external AREF). Channels A4–A7 are multiplexed with the hardware JTAG interface (TCK, TMS, TDO, TDI).

I2C, SPI and UART pins

4 hardware UART ports: Serial0 (D0/D1), Serial1 (D19/D18), Serial2 (D17/D16), Serial3 (D15/D14). Hardware SPI bus on pins D50 (MISO), D51 (MOSI), D52 (SCK), D53 (SS), and the central 2x3 ICSP header (NOT on pins 10-13!). Hardware I2C on D20 (SDA) and D21 (SCL).

Strapping and boot pins

No strapping pins present. Pin D13 is connected to yellow user LED 'L' via an LMV358 op-amp buffer. D0/D1 are shared with the ATmega16U2 USB-to-serial bridge.

Input-only pins

All 54 digital pins support bidirectional I/O with internal pull-up resistors (20–50 kΩ). 15 pins provide hardware 8/16-bit PWM (D2–D13, D44–D46). 6 pins feature external hardware interrupts (D2, D3, D18, D19, D20, D21).

Arduino Pro Mini pinoutNodeMCU v2 Amica (ESP8266) pinoutRaspberry Pi 40-Pin GPIO Header pinoutRaspberry Pi Pico pinout

Help keep this page accurate

Checked this pinout against your board or connector? Confirm it, or report a pin, voltage or orientation that does not match.

Opens a public form on GitHub with this page already filled in; a free GitHub account is needed. How reports and confirmations work