DFRobot DFRduino ATmega32u4 Xbee Socket Board Pinout

The black DFR0221 PCB marked LEONARDO V1.2 &XBEE R3 uses a 16 MHz, 5 V ATmega32U4, with a 3.3 V XBee socket linked to Serial1 and a powered D14–D16 SPI breakout.

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 electrical details

Pin index

Pin index

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

32 visible
PinMCU pinTypesNotes
GPIOUARTSerial1 RX; XBee DOUT reaches this net through R8 (22 Ω).
GPIOUARTSerial1 TX; R9 feeds the 3.3 V buffer on the path to XBee DIN.
GPIOI2CHardware I²C data. The separate SDA socket uses the same net.
GPIOPWMI2CHardware I²C clock or Timer0 PWM. The separate SCL socket uses the same net.
GPIOAnalogDigital I/O, A6 analog input, or Timer1 input capture (ICP1).
GPIOPWMArduino PWM uses Timer3A. The MCU also provides complementary Timer4A output.
GPIOPWMAnalogDigital I/O, A7 analog input, or the Timer4D PWM output.
GPIODigital I/O with external interrupt INT6 and comparator positive input AIN0.
GPIOAnalogDigital I/O, A8 analog input, or pin-change interrupt PCINT4.
GPIOPWMAnalogA9 analog input, Timer1A PWM, or pin-change interrupt PCINT5.
GPIOPWMAnalogA10 analog input, Timer1B PWM, or pin-change interrupt PCINT6.
GPIOPWMArduino PWM uses Timer0A. The MCU also provides OC1C and PCINT7.
GPIOAnalogDigital I/O or A11 analog input. The Arduino core assigns no analogWrite PWM channel here.
GPIOPWMLEDTimer4A PWM. The onboard L LED follows D13 through the schematic's buffer.
I2CGPIOPWMDedicated I²C clock socket, electrically common with D3.
I2CGPIODedicated I²C data socket, electrically common with D2.
AnalogADC reference on the green header. Configure external reference selection before applying a voltage.
GNDCommon board ground.
InternalUnmarked R3 position. J3.1 is open in the DFRobot schematic.
PowerShield logic reference, wired to the 5 V rail in the schematic.
InternalActive-low AVR reset shared with ICSP pin 5 and the reset button.
PowerU3 derives 3.3 V from the board's 5 V rail. The power header, XBee VCC and the XBee input buffer share this rail.
PowerMain regulated 5 V rail from the barrel supply regulator or the switched USB supply.
GNDCommon board ground.
GNDCommon board ground.
PowerThe barrel jack center and U2 input share VIN. D2 (SS14) is across VIN and ground.
AnalogGPIO10-bit ADC channel 7, also usable as D18 in the Leonardo core.
AnalogGPIO10-bit ADC channel 6, also usable as D19 in the Leonardo core.
AnalogGPIO10-bit ADC channel 5, also usable as D20 in the Leonardo core.
AnalogGPIO10-bit ADC channel 4, also usable as D21 in the Leonardo core.
AnalogGPIO10-bit ADC channel 1, also usable as D22 in the Leonardo core.
AnalogGPIO10-bit ADC channel 0, also usable as D23 in the Leonardo core.

Specifications

Logic and IOREF
5 V on the R3 digital headers. The schematic ties IOREF to the 5 V rail.
Power input
5 V over Micro-USB or 7–12 V DC recommended at the center-positive barrel jack (DFRobot limits 6–12 V). The red header exposes the jack's VIN net and the 5 V and 3.3 V rails.
Analog
A0–A5 are on the blue header. A6–A11 share D4, D6, D8, D9, D10 and D12 respectively.
PWM
D3, D5, D6, D9, D10, D11 and D13 support Arduino analogWrite.
I²C
The end sockets marked SDA and SCL repeat the D2 and D3 nets.
SPI and ICSP
D14/MISO, D15/SCK and D16/MOSI appear at ICSP and at the powered three-row extension.
XBee and USB
XBee uses Serial1 on D0/D1 and the 3.3 V rail. The ATmega32U4 handles USB CDC serial and HID directly.
Board dimensions
70 × 55 × 14 mm as specified by DFRobot.

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
DFR0221Product wikiDFRobotBoard identification, power input and header layout.Datasheet
DFR0221Schematic 1.1DFRobotBoard nets and the XBee level-shifted transmit path.Datasheet
ATmega32U4Microcontroller datasheetMicrochip44-pin package, alternate functions and electrical limits.Datasheet
Leonardo coreArduino pin aliasesArduinoAnalog input, interrupt and PWM mapping.Datasheet