Main pinout
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
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.
Pin index
Quickly scan every header pin, port name, supported function and usage note.
| Pin | MCU pin | Types | Notes |
|---|---|---|---|
| GPIOUART | Serial1 RX; XBee DOUT reaches this net through R8 (22 Ω). | |
| GPIOUART | Serial1 TX; R9 feeds the 3.3 V buffer on the path to XBee DIN. | |
| GPIOI2C | Hardware I²C data. The separate SDA socket uses the same net. | |
| GPIOPWMI2C | Hardware I²C clock or Timer0 PWM. The separate SCL socket uses the same net. | |
| GPIOAnalog | Digital I/O, A6 analog input, or Timer1 input capture (ICP1). | |
| GPIOPWM | Arduino PWM uses Timer3A. The MCU also provides complementary Timer4A output. | |
| GPIOPWMAnalog | Digital I/O, A7 analog input, or the Timer4D PWM output. | |
| GPIO | Digital I/O with external interrupt INT6 and comparator positive input AIN0. | |
| GPIOAnalog | Digital I/O, A8 analog input, or pin-change interrupt PCINT4. | |
| GPIOPWMAnalog | A9 analog input, Timer1A PWM, or pin-change interrupt PCINT5. | |
| GPIOPWMAnalog | A10 analog input, Timer1B PWM, or pin-change interrupt PCINT6. | |
| GPIOPWM | Arduino PWM uses Timer0A. The MCU also provides OC1C and PCINT7. | |
| GPIOAnalog | Digital I/O or A11 analog input. The Arduino core assigns no analogWrite PWM channel here. | |
| GPIOPWMLED | Timer4A PWM. The onboard L LED follows D13 through the schematic's buffer. | |
| I2CGPIOPWM | Dedicated I²C clock socket, electrically common with D3. | |
| I2CGPIO | Dedicated I²C data socket, electrically common with D2. | |
| Analog | ADC reference on the green header. Configure external reference selection before applying a voltage. | |
| GND | Common board ground. | |
| Internal | Unmarked R3 position. J3.1 is open in the DFRobot schematic. | |
| Power | Shield logic reference, wired to the 5 V rail in the schematic. | |
| Internal | Active-low AVR reset shared with ICSP pin 5 and the reset button. | |
| Power | U3 derives 3.3 V from the board's 5 V rail. The power header, XBee VCC and the XBee input buffer share this rail. | |
| Power | Main regulated 5 V rail from the barrel supply regulator or the switched USB supply. | |
| GND | Common board ground. | |
| GND | Common board ground. | |
| Power | The barrel jack center and U2 input share VIN. D2 (SS14) is across VIN and ground. | |
| AnalogGPIO | 10-bit ADC channel 7, also usable as D18 in the Leonardo core. | |
| AnalogGPIO | 10-bit ADC channel 6, also usable as D19 in the Leonardo core. | |
| AnalogGPIO | 10-bit ADC channel 5, also usable as D20 in the Leonardo core. | |
| AnalogGPIO | 10-bit ADC channel 4, also usable as D21 in the Leonardo core. | |
| AnalogGPIO | 10-bit ADC channel 1, also usable as D22 in the Leonardo core. | |
| AnalogGPIO | 10-bit ADC channel 0, also usable as D23 in the Leonardo core. |
References
Manufacturer references and technical documentation.
| Chip | Role | Manufacturer | Notes | Link |
|---|---|---|---|---|
DFR0221 | Product wiki | DFRobot | Board identification, power input and header layout. | Datasheet |
DFR0221 | Schematic 1.1 | DFRobot | Board nets and the XBee level-shifted transmit path. | Datasheet |
ATmega32U4 | Microcontroller datasheet | Microchip | 44-pin package, alternate functions and electrical limits. | Datasheet |
Leonardo core | Arduino pin aliases | Arduino | Analog input, interrupt and PWM mapping. | Datasheet |