DFRobot DFRduino Mega2560 Pinout

Black ATmega2560 board with green digital sockets, red power sockets, two blue analog blocks and a black dual-row expansion header. The main and USB AVR programming headers are separate.

Jump to pin index ↓

Main pinout

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show alternate functions

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

92 visible
PinMCU pinTypesNotes
I2CGPIODedicated I²C clock socket. Shares the SCL net with D21.
I2CGPIODedicated I²C data socket. Shares the SDA net with D20.
AnalogAnalog reference input for the ATmega2560 ADC.
GNDCommon board ground.
GPIOPWMLED5 V digital I/O on ATmega2560 port PB7. Drives the onboard L indicator through a buffer in the published schematic.
GPIOPWM5 V digital I/O on ATmega2560 port PB6.
GPIOPWM5 V digital I/O on ATmega2560 port PB5.
GPIOPWM5 V digital I/O on ATmega2560 port PB4.
GPIOPWM5 V digital I/O on ATmega2560 port PH6.
GPIOPWM5 V digital I/O on ATmega2560 port PH5.
GPIOPWM5 V digital I/O on ATmega2560 port PH4.
GPIOPWM5 V digital I/O on ATmega2560 port PH3.
GPIOPWM5 V digital I/O on ATmega2560 port PE3.
GPIOPWM5 V digital I/O on ATmega2560 port PG5.
GPIOPWM5 V digital I/O on ATmega2560 port PE5.
GPIOPWM5 V digital I/O on ATmega2560 port PE4.
GPIOUARTUSART0 transmit output from the main MCU's perspective. Shared with the USB serial bridge through a 1 kΩ resistor in the published schematic.
GPIOUARTUSART0 receive input from the main MCU's perspective. Shared with the USB serial bridge through a 1 kΩ resistor in the published schematic.
GPIOUARTUSART3 transmit output from the main MCU's perspective.
GPIOUARTUSART3 receive input from the main MCU's perspective.
GPIOUARTUSART2 transmit output from the main MCU's perspective.
GPIOUARTUSART2 receive input from the main MCU's perspective.
GPIOUARTUSART1 transmit output from the main MCU's perspective.
GPIOUARTUSART1 receive input from the main MCU's perspective.
GPIOI2CI²C data. Shared with the dedicated SDA socket beside AREF.
GPIOI2CI²C clock. Shared with the dedicated SCL socket beside AREF.
InternalThe V3.2 drawing shows this socket unconnected.
PowerShield logic reference, tied to the board's 5 V rail.
InternalActive-low main reset. Shared with the pushbutton, main ICSP and auto-reset circuit.
PowerRegulated 3.3 V output from the 5 V rail in the published schematic.
PowerMain 5 V rail, supplied by USB or the VIN converter.
GNDCommon board ground.
GNDCommon board ground.
PowerDirect input to the onboard converter, after the barrel jack's polarity-protection diode.
AnalogGPIO10-bit ADC channel 0 on the ATmega2560. Also digital pin D54.
AnalogGPIO10-bit ADC channel 1 on the ATmega2560. Also digital pin D55.
AnalogGPIO10-bit ADC channel 2 on the ATmega2560. Also digital pin D56.
AnalogGPIO10-bit ADC channel 3 on the ATmega2560. Also digital pin D57.
AnalogGPIO10-bit ADC channel 4 on the ATmega2560. Also digital pin D58.
AnalogGPIO10-bit ADC channel 5 on the ATmega2560. Also digital pin D59.
AnalogGPIO10-bit ADC channel 6 on the ATmega2560. Also digital pin D60.
AnalogGPIO10-bit ADC channel 7 on the ATmega2560. Also digital pin D61.
AnalogGPIO10-bit ADC channel 8 on the ATmega2560. Also digital pin D62.
AnalogGPIO10-bit ADC channel 9 on the ATmega2560. Also digital pin D63.
AnalogGPIO10-bit ADC channel 10 on the ATmega2560. Also digital pin D64.
AnalogGPIO10-bit ADC channel 11 on the ATmega2560. Also digital pin D65.
AnalogGPIO10-bit ADC channel 12 on the ATmega2560. Also digital pin D66.
AnalogGPIO10-bit ADC channel 13 on the ATmega2560. Also digital pin D67.
AnalogGPIO10-bit ADC channel 14 on the ATmega2560. Also digital pin D68.
AnalogGPIO10-bit ADC channel 15 on the ATmega2560. Also digital pin D69.
PowerOne of two adjacent 5V sockets at this end of the expansion header.
PowerOne of two adjacent 5V sockets at this end of the expansion header.
GPIO5 V digital I/O on ATmega2560 port PA0.
GPIO5 V digital I/O on ATmega2560 port PA1.
GPIO5 V digital I/O on ATmega2560 port PA2.
GPIO5 V digital I/O on ATmega2560 port PA3.
GPIO5 V digital I/O on ATmega2560 port PA4.
GPIO5 V digital I/O on ATmega2560 port PA5.
GPIO5 V digital I/O on ATmega2560 port PA6.
GPIO5 V digital I/O on ATmega2560 port PA7.
GPIO5 V digital I/O on ATmega2560 port PC7.
GPIO5 V digital I/O on ATmega2560 port PC6.
GPIO5 V digital I/O on ATmega2560 port PC5.
GPIO5 V digital I/O on ATmega2560 port PC4.
GPIO5 V digital I/O on ATmega2560 port PC3.
GPIO5 V digital I/O on ATmega2560 port PC2.
GPIO5 V digital I/O on ATmega2560 port PC1.
GPIO5 V digital I/O on ATmega2560 port PC0.
GPIO5 V digital I/O on ATmega2560 port PD7.
GPIO5 V digital I/O on ATmega2560 port PG2.
GPIO5 V digital I/O on ATmega2560 port PG1.
GPIO5 V digital I/O on ATmega2560 port PG0.
GPIO5 V digital I/O on ATmega2560 port PL7.
GPIO5 V digital I/O on ATmega2560 port PL6.
GPIOPWM5 V digital I/O on ATmega2560 port PL5.
GPIOPWM5 V digital I/O on ATmega2560 port PL4.
GPIOPWM5 V digital I/O on ATmega2560 port PL3.
GPIO5 V digital I/O on ATmega2560 port PL2.
GPIO5 V digital I/O on ATmega2560 port PL1.
GPIO5 V digital I/O on ATmega2560 port PL0.
GPIOSPIHardware SPI MISO. Shared with the main ICSP header.
GPIOSPIHardware SPI MOSI. Shared with the main ICSP header.
GPIOSPIHardware SPI SCK. Shared with the main ICSP header.
GPIOSPIHardware SPI SS.
GNDOne of two adjacent GND sockets at this end of the expansion header.
GNDOne of two adjacent GND sockets at this end of the expansion header.
ICSPSPIATmega2560 ICSP pin 1. Serial programming data from the main MCU. Shared with D50.
ICSPPowerATmega2560 ICSP pin 2. Main board 5 V rail.
ICSPSPIATmega2560 ICSP pin 3. Serial programming clock. Shared with D52.
ICSPSPIATmega2560 ICSP pin 4. Serial programming data to the main MCU. Shared with D51.
ICSPInternalATmega2560 ICSP pin 5. Active-low reset of the ATmega2560. Shared with the red header.
ICSPGNDATmega2560 ICSP pin 6. Common board ground.

Specifications

PCB
MEGA2560[R3] V3.3 on the photographed board. DFRobot's public electrical drawing is V3.2.
Main MCU
ATmega2560, 16 MHz, 256 KB flash, 8 KB SRAM, 4 KB EEPROM.
Logic and power
5 V logic and IOREF. Power through USB-B or the VIN regulator. DFRobot lists a 3–16 V VIN operating range. The red header exposes the regulated 5 V and 3.3 V rails.
Digital and PWM
54 digital I/O. PWM on D2–D13 and D44–D46, including three PWM outputs in the black expansion header.
Analog
Two blue blocks for ADC0–ADC7 and ADC8–ADC15. A0–A15 also map to digital pins D54–D69.
Serial buses
Four hardware UARTs. D20/SDA and D21/SCL repeat beside AREF. SPI is on D50–D53. D50–D52 also reach the main ICSP.
Programming
USB-B uses UART0 through the USB bridge. The ICSP near the main chip programs the ATmega2560. The ICSP beside the reset switch programs the USB bridge. See the USB ICSP detail.

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
DFR0191Product wikiDFRobotSKU, power, logic and interface specifications.Datasheet
DFR0191 V3.2Board schematicDFRobotDigital, analog, power and ICSP connector nets. The photographed PCB is marked V3.3.Datasheet
ATmega2560Main MCU datasheetMicrochipTQFP pinout, alternate functions and ADC limits.Datasheet
ATmega16U2USB AVR datasheetMicrochipUSB bridge specified in the DFR0191 V3.2 schematic.Datasheet