The two 14-contact MKR headers, seen from the component side with Micro-USB at the top. The printed names are transcribed from the underside. Advanced mode identifies the SAMD21 signals and the Arduino SAMD 1.8.14 assignments.
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 input (VREFA). Select AR_EXTERNAL before applying a reference.
Analog
Arduino digital pin 15 on PA02. 10-bit voltage output on A0, sharing the ADC input and digital pin 15.
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. Serial data line selected by the Arduino I2S interface.
GPIO
Arduino digital pin 0 on PA22.
GPIO
Arduino digital pin 1 on PA23.
GPIO
Arduino digital pin 2 on PA10. Bit clock selected by the Arduino I2S interface.
GPIO
Arduino digital pin 3 on PA11. Frame sync selected by the Arduino I2S interface.
GPIO
Arduino digital pin 4 on PB10. Default SS constant. Peripheral selection is controlled by the sketch.
GPIO
Arduino digital pin 5 on PB11.
Power
USB 5 V rail through resettable fuse F1 on the V2.0 schematic.
Power
External regulated 5 V supply input for the board.
Power
Regulated 3.3 V rail, marked VCC on the board.
GND
Common power and signal return.
Control
Active-low board reset. R6 connects J5 pin 10 to the SAMD21 RESETN node.
UART
Arduino digital pin 14 on PB22. SAMD transmit, also connected to the NINA UART RX.
UART
Arduino digital pin 13 on PB23. SAMD receive, driven by the NINA UART TX when that interface is in use.
I2C
Arduino digital pin 12 on PA09. I²C clock on SERCOM2 pad 1, shared with ESLOV, U4 and U5.
I2C
Arduino digital pin 11 on PA08. I²C data on SERCOM2 pad 0, shared with ESLOV, U4 and U5.
SPI
Arduino digital pin 10 on PA19. SPI controller input (MISO) on SERCOM1 pad 3.
SPI
Arduino digital pin 9 on PA17. SPI clock on SERCOM1 pad 1.
SPI
Arduino digital pin 8 on PA16. SPI controller output (MOSI) on SERCOM1 pad 0.
GPIO
Arduino digital pin 7 on PA21. Shared with J4 pin 2 and test pad EWK.
GPIO
Arduino digital pin 6 on PA20. Yellow user LED DL1, driven by PA20 through Q1.
Specifications
Microcontroller
ATSAMD21G18A · Arm Cortex-M0+ at 48 MHz · 256 KB flash · 32 KB SRAM
Radio
u-blox NINA-W102 with integrated antenna · 2.4 GHz Wi-Fi and Bluetooth
I/O voltage
3.3 V logic · 7 mA maximum per I/O · VCC is the regulated 3.3 V rail
Power
5 V USB or regulated 5 V VIN, or a 3.7 V single-cell Li-Po on J7
Numbers match the Arduino digital pin index. On the underside A0 is paired with DAC0. SDA, MISO and SCK stand for D11, D10 and D9. VCC is 3.3 V.
Reading advanced mode
SCn.p denotes SERCOM instance n, pad p. PWM and IRQ identify outputs and interrupts assigned by the Arduino SAMD 1.8.14 core. Additional chip mux choices are listed in the individual pin notes.
Analog inputs
Use A0–A6 with analogRead. D2, D3, SDA and SCL also have ADC channels in the chip; low integer arguments to analogRead are translated relative to A0. Direct peripheral configuration is required to use those extra channels on their physical pins.
Shared peripherals
The public SPI bus uses SERCOM1 on D8/D9/D10. The NINA uses SPI1 on SERCOM4 (PA12, PA13, PA14, PA15). Wire uses SERCOM2 on D11/D12 and also reaches the secure element U4 and the charger U5.
PWM and timers
The core exposes PWM on D0–D8, D10, A3 and A4. D9, D11 and D12 have silicon timer routes available through the pin mux. The SAMD21G18A does not implement TC6 or TC7.
Additional views
The connector detail locates J1, J4 and J7. The underside detail locates the J2 debug footprint and the USB, battery, ESLOV and NINA test pads.