Arduino Leonardo Pinout

Arduino Leonardo pinout for the expansion headers, Micro-USB contacts and rear power connections.

Jump to pin index ↓

Main pinout

Arduino Leonardo with headers, ATmega32U4 and native USB. The official photo shows the 32 side contacts and all six ICSP contacts. The lower detail rotates ICSP 90° counterclockwise, placing pin 1 at the upper left.

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 Alternative Functions

Pin index

Pin index

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

38 visible
PinMCU pinTypesNotes
GPIOUARTDigital pin D0 on ATmega32U4 port PD2.
GPIOUARTDigital pin D1 on ATmega32U4 port PD3.
GPIOI2CDigital pin D2 on ATmega32U4 port PD1.
GPIOPWMI2CDigital pin D3 on ATmega32U4 port PD0.
GPIOAnalogDigital pin D4 on ATmega32U4 port PD4.
GPIOPWMDigital pin D5 on ATmega32U4 port PC6.
GPIOPWMAnalogDigital pin D6 on ATmega32U4 port PD7.
GPIODigital pin D7 on ATmega32U4 port PE6.
AnalogGPIOAnalog input A0. It also works as I/O digital 18.
AnalogGPIOAnalog input A1. It also works as I/O digital 19.
AnalogGPIOAnalog input A2. It also works as I/O digital 20.
AnalogGPIOAnalog input A3. It also works as I/O digital 21.
AnalogGPIOAnalog input A4. It also works as I/O digital 22.
AnalogGPIOAnalog input A5. It also works as I/O digital 23.
ReservedReserved position of the power head, without electrical connection.
PowerVoltage reference for shields. In Leonardo shares the rail of 5 V.
ControlATmega32U4 restart input, low level active. Share the RESET pushbutton net.
Power3.3 V regulator output. Arduino specifies a maximum load of 50 mA.
Power5 V regulated rail that feeds the microcontroller and the logic of the board.
GNDCommon ground of board and signal reference.
GNDCommon ground of board and signal reference.
PowerEntry to the regulator of 5 V. Arduino recommends an external power supply from 7 to 12 V.
GPIOAnalogDigital pin D8 on ATmega32U4 port PB4.
GPIOPWMAnalogDigital pin D9 on ATmega32U4 port PB5.
GPIOPWMAnalogDigital pin D10 on ATmega32U4 port PB6.
GPIOPWMDigital pin D11 on ATmega32U4 port PB7.
GPIOAnalogDigital pin D12 on ATmega32U4 port PD6.
GPIOPWMDigital pin D13 on ATmega32U4 port PC7.
GNDCommon ground of board and signal reference.
AnalogExternal analog reference of ADC of ATmega32U4. It is selected with analogReference(EXTERNAL).
GPIOI2CDigital pin D2 on ATmega32U4 port PD1.
GPIOPWMI2CDigital pin D3 on ATmega32U4 port PD0.
SPIPeripheral data to the controller.
Power5 V regulated rail that feeds the microcontroller and the logic of the board.
SPIBus clock SPI.
SPIData from controller to peripheral.
ControlATmega32U4 restart input, low level active. Share the RESET pushbutton net.
GNDCommon ground of board and signal reference.

Specifications

Microcontroller
ATmega32U4 · AVR of 8 bits · 16 MHz
Logic
5 V
Entry and output
20 I/O on the side headers · 7 PWM · 12 ADC 10 bit inputs
Memory
32 KB flash, 4 KB bootloader · 2.5 KB of SRAM · 1 KB of EEPROM
Power supply
Micro-USB or 7–12 V external input recommended · 2.1 mm jack with positive center
Dimensions
68,6 × 53,3 mm

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
Leonardo A000057PinoutArduinoThree sheets with connectors and functions.Datasheet
Leonardo Rev3dSchematicArduinoPower grids, ICSP and USB of the reference design.Datasheet
Leonardo Rev3dCADArduinoPosition, face and numbering of each pad.Datasheet
ATmega32U4DatasheetMicrochipMultiplexing of ports, timers, ADC and USB.Datasheet
Arduino AVR 1.8.6Map of pinsArduinoAlias of the Leonardo variant for digitalRead, analogRead, SPI and Wire.Datasheet

Board notes

SPI en ICSP
CIPO/MISO is D14 (PB3), SCK is D15 (PB1) and COPI/MOSI is D16 (PB2). SS of AVR is PB0/D17 and controls LED RX. ICSP displays data, clock, 5 V, RESET and GND. A free GPIO can be used to select a SPI peripheral.
Analogue entries
A0–A5 are D18–D23 in the core AVR. A6–A11 share, respectively, D4, D6, D8, D9, D10 and D12.
USB and communications
Serial uses USB native ATmega32U4. Serial1 uses RX in D0 and TX in D1. Wire shares SDA with D2 and SCL with D3.
Indicators and power
ON indicates power. PC7 controls LED L, PD5 LED TX and PB0 LED RX. IC1 regulates 5 V from VIN and U3 generates 3.3 V.