Arduino MKR Zero Pinout

Arduino MKR Zero pinout. MKR headers J4 and J5, viewed from the component side with USB at the top.

Jump to pin index ↓

Main pinout

MKR headers J4 and J5, viewed from the component side with USB at the top. Labels copy the markings on both faces. Advanced mode shows the SAMD21 port, Arduino peripheral assignments and selected hardware routes.

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 SAMD21 and board functions

Pin index

Pin index

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

28 visible
PinMCU pinTypesNotes
AnalogExternal analog reference on SAMD21 PA03, U3 pin 4.
AnalogArduino digital pin 15 on PA02. 10-bit analog voltage output on A0.
AnalogArduino digital pin 16 on PB02.
AnalogArduino digital pin 17 on PB03.
AnalogArduino digital pin 18 on PA04.
AnalogArduino digital pin 19 on PA05.
AnalogArduino digital pin 20 on PA06.
AnalogArduino digital pin 21 on PA07. Audio data on the Arduino I2S interface. The microSD circuit uses a separate serial peripheral.
GPIOArduino digital pin 0 on PA22.
GPIOArduino digital pin 1 on PA23.
GPIOArduino digital pin 2 on PA10. Bit clock for the Arduino I2S interface.
GPIOArduino digital pin 3 on PA11. Frame sync for the Arduino I2S interface.
GPIOArduino digital pin 4 on PB10. Reference SS constant for the external SPI bus. Select the external device in the sketch. The onboard card uses pin 28.
GPIOArduino digital pin 5 on PB11.
PowerSupply output fed from VIN or USB through the power selector. J7 pin 1 uses the same rail.
PowerExternal regulated 5 V supply input.
PowerRegulated 3.3 V output. This rail also feeds J3 pin 4 on the microSD socket.
GNDCommon ground shared with the microSD power return, card switch common and shield.
ControlActive-low target reset through R20 (330 Ω) to U3 pin 40.
UARTArduino digital pin 14 on PB22. UART transmit, SERCOM5 pad 2.
UARTArduino digital pin 13 on PB23. UART receive, SERCOM5 pad 3. The user LED is on internal PB08.
I2CArduino digital pin 12 on PA09. SERCOM2 pad 1. Shared with J7 pin 3 and rear pad ESCL.
I2CArduino digital pin 11 on PA08. SERCOM2 pad 0. Shared with J7 pin 4 and rear pad ESDA.
SPIArduino digital pin 10 on PA19. Controller input on the header SPI bus, SERCOM1 pad 3. The onboard microSD uses PA15 on SPI1.
SPIArduino digital pin 9 on PA17. Header SPI clock, SERCOM1 pad 1. The onboard microSD clock is PA13 on SPI1.
SPIArduino digital pin 8 on PA16. Controller output on the header SPI bus, SERCOM1 pad 0. The onboard microSD uses PA12 on SPI1.
GPIOArduino digital pin 7 on PA21. J7 pin 2 and rear pad EWK share D7.
GPIOArduino digital pin 6 on PA20.

Specifications

Controller
Microchip ATSAMD21G18A · Arm Cortex-M0+ · 48 MHz · 256 KB flash · 32 KB SRAM
MKR headers
Two 14-contact rows · 2.54 mm pitch · 22 digital I/O including A0–A6
Logic level
3.3 V · 7 mA maximum per digital I/O
Analog
Seven labeled analog inputs · 12-bit ADC · 10-bit DAC on A0
Power
5 V Micro-USB or regulated 5 V VIN · single-cell 3.7 V Li-Po, minimum 700 mAh
Storage
Onboard microSD · dedicated SPI1 on SERCOM4 · separate card-detect switch
Audio and serial
I2S on D2, D3 and A6 · SPI on D8–D10 · Wire on D11/D12 · Serial1 on D13/D14

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
MKR ZeroHardware documentationArduinoSpecifications, hardware resources and user guides.Datasheet
ABX00012Full pinoutArduinoHeader roles and peripheral connector diagrams.Datasheet
MKRZero_V5.0SchematicArduinoSheets 1 and 2 cover signal routing, power selection and battery charging.Datasheet
MKRZero_V5.0EAGLE designArduinoPackage pin numbers, individual pads and electrical nets.Datasheet
ATSAMD21G18AMCU datasheetMicrochipPin multiplexing and package-specific exceptions in Table 7-1.Datasheet
MCP73831Charger datasheetMicrochipSingle-cell Li-ion/Li-Po charge controller.Datasheet
mkrzeroCore pin assignmentsArduinoPort, ADC, PWM timer and EIC assignments in ArduinoCore-samd 1.8.14.Datasheet
mkrzeroCore bus assignmentsArduinoExternal SPI and Wire, card SPI1, I2S, Serial1 and LED_BUILTIN.Datasheet

Board notes

External SPI
D8 / PA16 is COPI (MOSI), D9 / PA17 is SCK, and D10 / PA19 is CIPO (MISO). The header SPI object uses SERCOM1. The SS constant selects D4 by convention.
Onboard microSD
SPI1 uses SERCOM4. PA12 (26) sends CMD/COPI, PA13 (27) clocks the card, PA14 (28, SDCARD_SS_PIN) selects it and PA15 (29) receives DAT0/CIPO. PA27 (30) reads the independent detect switch. The card shares 3.3 V and ground with the headers. All five card signals stay on the board.
ESLOV and I²C
J7 shares its wake line with D7/PA21, SDA with D11/PA08 and SCL with D12/PA09. The V5.0 schematic marks the optional I²C pull-ups R22/R23 and crypto device U4 as DNP.
Timers and analog inputs
PWM badges name the timer and waveform output selected by analogWrite. IRQ badges identify attachInterrupt support in core 1.8.14. AIN numbers are silicon ADC channels. D2, D3, D11 and D12 require direct ADC configuration to reach their extra channels by these pin names.
Reading alternate functions
SCn.p denotes SERCOM instance n and pad p. Select one peripheral function per pad at a time. Additional silicon mux options are in the pin notes.
LEDs and battery sensing
The yellow user LED DL3 is on PB08 (LED_BUILTIN, 32). The green ON LED follows the 5 V rail. The orange CHRG LED follows the charger. ADC_BATTERY is internal index 33 on PB09/AIN3 and senses the cell through a divider.
Board photography
Original front and rear photographs by Arduino. Both are preserved at 2130 × 1400 pixels. Pins are registered to the actual contacts in each view.