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.
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
Pin
MCU pin
Types
Notes
Analog
External analog reference on SAMD21 PA03, U3 pin 4.
Analog
Arduino digital pin 15 on PA02. 10-bit analog voltage output on A0.
Analog
Arduino digital pin 16 on PB02.
Analog
Arduino digital pin 17 on PB03.
Analog
Arduino digital pin 18 on PA04.
Analog
Arduino digital pin 19 on PA05.
Analog
Arduino digital pin 20 on PA06.
Analog
Arduino digital pin 21 on PA07. Audio data on the Arduino I2S interface. The microSD circuit uses a separate serial peripheral.
GPIO
Arduino digital pin 0 on PA22.
GPIO
Arduino digital pin 1 on PA23.
GPIO
Arduino digital pin 2 on PA10. Bit clock for the Arduino I2S interface.
GPIO
Arduino digital pin 3 on PA11. Frame sync for the Arduino I2S interface.
GPIO
Arduino 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.
GPIO
Arduino digital pin 5 on PB11.
Power
Supply output fed from VIN or USB through the power selector. J7 pin 1 uses the same rail.
Power
External regulated 5 V supply input.
Power
Regulated 3.3 V output. This rail also feeds J3 pin 4 on the microSD socket.
GND
Common ground shared with the microSD power return, card switch common and shield.
Control
Active-low target reset through R20 (330 Ω) to U3 pin 40.
UART
Arduino digital pin 14 on PB22. UART transmit, SERCOM5 pad 2.
UART
Arduino digital pin 13 on PB23. UART receive, SERCOM5 pad 3. The user LED is on internal PB08.
I2C
Arduino digital pin 12 on PA09. SERCOM2 pad 1. Shared with J7 pin 3 and rear pad ESCL.
I2C
Arduino digital pin 11 on PA08. SERCOM2 pad 0. Shared with J7 pin 4 and rear pad ESDA.
SPI
Arduino digital pin 10 on PA19. Controller input on the header SPI bus, SERCOM1 pad 3. The onboard microSD uses PA15 on SPI1.
SPI
Arduino digital pin 9 on PA17. Header SPI clock, SERCOM1 pad 1. The onboard microSD clock is PA13 on SPI1.
SPI
Arduino digital pin 8 on PA16. Controller output on the header SPI bus, SERCOM1 pad 0. The onboard microSD uses PA12 on SPI1.
GPIO
Arduino digital pin 7 on PA21. J7 pin 2 and rear pad EWK share D7.
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.