In this guide, you’ll find the Seeeduino XIAO pinout diagram (the XIAO SAMD21 pinout), its datasheet and schematic diagram, and every pin group explained with its default pins. It’s the original Seeed XIAO pinout reference, for the first board of the Seeed Studio XIAO family (the Seeed Studio XIAO pinout that every later XIAO copied). Without further ado, let’s get right into it!
The Seeeduino XIAO, now sold as the Seeed Studio XIAO SAMD21, is a thumb-sized Arduino-compatible board built on Microchip’s ATSAMD21G18: an Arm Cortex-M0+ at 48MHz with 256KB flash and 32KB SRAM. On a 21 × 17.8mm board, it gives you 11 I/O pins (all 3.3v), 11 analog inputs, a true 10-bit DAC, 10 PWM pins, and native USB on a USB-C port.
Seeeduino XIAO Pinout Diagram
Here is a detailed Seeeduino XIAO Pinout Diagram with colored labels and legends to help you easily identify the functionalities that each pin can perform. It shows all 14 edge pins with their XIAO names (D0–D10, A0–A10), the SAMD21 port pins, and each pin’s analog, DAC, PWM, UART, SPI, I2C and interrupt functions, plus the SWD, RST and VIN pads on the back.
Each row shows the XIAO pin number, the pin name used in the Arduino core (D1 · A1…), the SAMD21 port pin (PA04…), and its functions, color-coded by peripheral. The square symbol means the pin is 3.3v only, the PWM symbol marks the 10 pins that can output PWM, and the numbered badges point to the notes at the bottom right of the diagram.
With the USB-C connector at the top, the left edge runs from D0 (pin 1) down to D6 (pin 7), and the right edge runs from D7 (pin 8, bottom) up to 5V (pin 14, top), counter-clockwise like Seeed’s own pin numbering. In the Arduino core, the pin number is the D-number: digitalWrite(6, HIGH) drives D6, and A0– A10 are the same pins as D0–D10. The pads are castellated, so you can solder the board flat onto a PCB, or use the Pre-Soldered version with headers on a breadboard.
Note: The XIAO SAMD21 Plus is a different board: the same 14 edge pins, but it adds 16 castellated pads on the back, a LiPo charger, an RGB LED, and Reset/Boot buttons. This pinout is for the original XIAO SAMD21 (Seeeduino XIAO), including its Pre-Soldered version.
Buy a Seeeduino XIAO: If you don’t have one yet, you can get the genuine Seeed Studio XIAO SAMD21 from Amazon or AliExpress. It’s the cheapest way to get a 32-bit Arm board with native USB into a tiny Arduino project.
Download Seeeduino XIAO Pinout Diagram (Full Resolution)
The Seeeduino XIAO pinout diagram (edge pins, back-side pads, power, MCU and notes panels) in full resolution (5120×2448 px WebP), in one ZIP file. Print it, zoom in, or keep it next to your bench. Please consider supporting my work if it helped you.
Seeeduino XIAO Datasheet
This development board is built around Microchip’s ATSAMD21G18A microcontroller (QFN-48). So the Seeeduino XIAO datasheet set has two parts: Seeed Studio’s documents for the board, and Microchip’s for the chip. Here are the official documents you’ll need, linked to their original sources:
| Document | Source | Revision | What You’ll Use It For | Link |
|---|---|---|---|---|
| XIAO SAMD21 wiki (getting started + specs) | Seeed Studio | online | Board specs, pin map, bootloader steps, Arduino setup | Web |
| XIAO SAMD21 schematic + PCB (KiCad) | Seeed Studio | v2.1 (2026-03-04) | The current board circuit (see the next section) | ZIP |
| Seeeduino XIAO schematic (old) | Seeed Studio | v1.0 (2019-11-12) | The first board, with the VBUS diode that v2.0 removed | |
| XIAO SAMD21 pinout sheet | Seeed Studio | online | Seeed’s pin-by-pin function list | XLSX |
| SAM D21/DA1 Family datasheet | Microchip | DS40001882L (Feb 2026) | Pin multiplexing (Table 7-1), electrical limits, ADC, DAC, timers, SERCOM, every register | |
| ATSAMD21G18 product page | Microchip | online | Errata, application notes, newest datasheet revision | Web |
| Seeed ArduinoCore-samd XIAO SAMD21 variant | Seeed Studio (GitHub) | master | The Arduino pin map (D0–D10, PWM timers, Serial1, Wire, SPI, LEDs) | Web |
Which document do I need? The Seeed wiki for setup and the pin list, the schematic for what’s connected to each pin, and the Microchip datasheet for the pin functions, the electrical limits, and register-level details. Seeed’s wiki still links an old Atmel copy of the datasheet; the Microchip link above is the current revision.
Seeeduino XIAO Schematic
The Seeeduino XIAO schematic is Seeed Studio’s XIAO SAMD21 v2.1 drawing, dated 2026-03-04 (KiCad, published for the Pre-Soldered board). Its revision table lists v1.0 (2019-11-12), v1.1 (CE silkscreen and a reset point on the bottom), and v2.0 (2020-05-29): “Remove Schottky diode from VBUS”. All the circuitry is on one sheet, so here is the full sheet followed by close-ups of each block; click a page to view it full screen.
Official source: the XIAO SAMD21 v2.1 schematic and PCB files (KiCad ZIP) from the Seeed Studio wiki (the pages above are rendered from it). Here’s what to look at:
- USB input and the 5V pin: USB-C VBUS goes straight to the 5V edge pin and the VIN pad on the back. Since board v2.0 there’s no diode and no fuse in that path (the v1.0 schematic had a B0540WS Schottky). The two 5.1kΩ CC resistors make any USB-C charger supply 5v.
- 3.3v regulator: an XC6206P332MR LDO (U1) turns VBUS into the 3.3v rail for the SAMD21, the LEDs and the 3V3 pin, with 10µF on its input and output. Torex rates the XC6206 at 200mA maximum. Seeed’s wiki calls it a “DC-DC converter”, but it’s a linear regulator.
- ATSAMD21G18 and USB: the MCU (U2) has its USB D+/D− (PA25/PA24) wired straight to the connector, so there’s no USB-UART chip: Serial is the SAMD21’s own USB. VDDANA comes straight from the 3.3v rail, and PA03 (VREFA) only has a 1µF cap to ground, so the ADC reference is the 3.3v rail.
- Clocks: a 32.768kHz crystal (X1, 12pF caps) sits on PA00/PA01. The 48MHz CPU clock comes from the SAMD21’s DFLL, locked to that crystal (or to USB), so there’s no high-speed crystal on the board.
- LEDs: TX (blue, PA19), RX (blue, PA18) and L (yellow, PA17) each go from 3.3v through 1kΩ to the MCU pin, so they light when the pin is LOW. The green power LED sits on 3.3v through 1kΩ and is always on.
- Reset and SWD: RESETN has a 10kΩ pull-up and 100nF to ground. It goes to the two RST pads next to the USB-C connector (TP2, with TP4 = GND) and to the back pad TP1. SWCLK (PA30) and SWDIO (PA31) go to the back pads TP3 and TP5.
Seeeduino XIAO Specs
The Seeeduino XIAO (XIAO SAMD21) was the first board of the XIAO family. Here are its specifications, including the board-level parts that chip-only spec lists usually skip.

Get a Seeeduino XIAO: The genuine Seeed Studio XIAO SAMD21 is the one I recommend. Grab it from Amazon or AliExpress.
| Item | Seeeduino XIAO (XIAO SAMD21) |
|---|---|
| MCU | Microchip ATSAMD21G18A-MU (QFN-48) |
| CPU | Arm Cortex-M0+, up to 48MHz |
| Memory | 256KB flash (8KB used by the bootloader, 248KB for your code), 32KB SRAM, no EEPROM |
| Logic level | 3.3v on every pin, not 5v tolerant (max VDD + 0.6v on a pin) |
| I/O pins | 11 (D0–D10), on 14 castellated edge pads |
| Analog inputs | 11 (A0–A10), 12-bit, 350ksps |
| Analog output | 1 true 10-bit DAC on A0 |
| PWM | 10 pins (D1–D10), 8 independent duty cycles |
| Interfaces | 1× UART (Serial1), 1× I2C (Wire), 1× SPI, native USB (Serial) |
| Board supply | USB-C 5v, the 5V pin, or the VIN pad on the back (all the same net) |
| 3.3v regulator | XC6206P332MR LDO, rated 200mA maximum |
| Pin current | 2mA source / 2.5mA sink by default, 7mA / 10mA with strong drive (DRVSTR) |
| Clock | 32.768kHz crystal; 48MHz from the internal DFLL |
| USB connector | USB-C to the SAMD21’s native USB 2.0 full-speed; no USB-UART chip |
| Buttons and LEDs | No buttons (RST pads instead); L, TX, RX LEDs (active LOW) and a green power LED |
| Debug | SWD on the back pads (SWCLK, SWDIO, RST, GND) |
| Size | 21 × 17.8mm, XIAO form factor, surface-mountable |
| No | battery charger, Wi-Fi/Bluetooth, 5v-tolerant pins, I2C pull-ups, EEPROM |
Seeeduino XIAO Specifications Summary
- The Seeeduino XIAO runs an ATSAMD21G18 Cortex-M0+ at 48MHz with 256KB flash (248KB free) and 32KB SRAM.
- It has 11 I/O pins (D0–D10), and every pin is 3.3v only: none of them is 5v tolerant.
- Each pin drives only 2mA by default, because the Arduino core doesn’t turn on the SAMD21’s strong drive (7mA).
- All 11 pins are analog inputs (A0–A10), 12-bit, but analogRead() returns 10-bit until you call analogReadResolution(12).
- A0 (D0) is a true 10-bit DAC output, and it has no PWM.
- 10 pins output PWM (D1–D10), but D4 and D10 share one duty cycle, and so do D5 and D8.
- The I2C pins are D4 (SDA) and D5 (SCL), with no pull-up resistors on the board.
- Serial is USB; Serial1 is D6 (TX) / D7 (RX); SPI is D8 (SCK), D9 (MISO), D10 (MOSI).
- Every pin can be an interrupt, but D5 and D7 share one interrupt line, and D4 is the NMI.
- LED_BUILTIN is 13 (the yellow L LED on PA17), and it’s active LOW.
- The 5V pin and the VIN pad are raw USB VBUS, with no diode since board v2.0.
- Short the two RST pads twice quickly to start the UF2 bootloader.
Seeeduino XIAO Peripherals: SAMD21 vs On the Pins
The SAMD21 has flexible pin muxing: each pin offers a few SERCOM, timer and analog functions (Table 7-1 of the datasheet). This table shows what the chip has and what you can actually reach on the XIAO edge.
| Peripheral | ATSAMD21G18A | On the Seeeduino XIAO |
|---|---|---|
| GPIO | 38 | 11 (D0–D10) + 2 SWD pads |
| ADC | 12-bit, 350ksps, 14 channels on this package | 11 (A0–A10) |
| DAC | 1× 10-bit | A0 (D0) |
| PWM | TCC0 (4 channels), TCC1 (2), TCC2 (2), TC3–TC5 | 10 pins, 8 independent duty cycles |
| SERCOM (UART/SPI/I2C) | 6 | Serial1 (SERCOM4), SPI (SERCOM0), Wire (SERCOM2) |
| I2S | 1 | possible on D2, D3, D4, D5, D8 (clashes with Wire/SPI) |
| Touch (PTC) | yes | A0, A1, A6–A10 (FreeTouch library, CircuitPython touchio) |
| External interrupts | 16 lines + NMI | 11 pins (D5 and D7 share line 9) |
| USB | full-speed device/host | USB-C connector |
| Wi-Fi / EEPROM | none | – |
Seeeduino XIAO Quick Pin Selection Guide
Not sure which pin to use? Here are the Seeeduino XIAO pins I’d pick first for each job, and why.
| Use Case | Recommended Pins | Why |
|---|---|---|
| Serial to the PC | USB-C (Serial) | USB CDC on the SAMD21’s own USB |
| Serial to a module (GPS, GSM…) | D7 (RX), D6 (TX) | The Arduino Serial1 pins (SERCOM4) |
| I2C sensors and displays | D4 (SDA), D5 (SCL) | The Arduino Wire pins, same place on every XIAO |
| SPI devices | D8 (SCK), D9 (MISO), D10 (MOSI), CS on D7 or D3 | The Arduino SPI pins; there’s no fixed CS |
| Analog output (audio, voltage) | A0 | The only DAC pin, true 10-bit |
| Analog inputs | A1, A2, A3, then A6–A10 | Keep A0 free for the DAC, A4/A5 for I2C |
| PWM (LEDs, servos) | D1, D2, D3, D9 | TCC0 channels with their own duty cycles |
| Interrupts | D1, D2, D3, D8, D9, D10 | Each one on its own interrupt line |
| On-board LED | LED_BUILTIN (13) (LOW = on) | No wiring needed |
| Debugging | SWCLK, SWDIO back pads | SWD with a J-Link, Atmel-ICE or CMSIS-DAP probe |
Seeeduino XIAO Pins to Use With Caution
| Pin | Reason | What to Do |
|---|---|---|
| All pins | 3.3v only, not 5v tolerant | Level-shift every 5v signal |
| All pins | 2mA default drive | Turn on DRVSTR (7mA) or drive loads through a transistor |
| D0 / A0 | DAC pin, no PWM | Use analogWrite() on A0 only for the DAC; PWM on D1–D10 |
| D4 / D10 | Same PWM duty cycle (TCC1 channel 0) | Use only one of them for PWM |
| D5 / D8 | Same PWM duty cycle (TCC1 channel 1) | Use only one of them for PWM |
| D5 / D7 | Share interrupt line EXTINT9 | Never attach interrupts to both |
| D4 | Its interrupt is the NMI | It can’t be masked with noInterrupts() |
| 5V / VIN | Raw USB VBUS, no diode or fuse | Never feed 5v here with USB plugged in; add a Schottky diode |
| 3V3 | 200mA LDO shared with the board | Keep external loads near 100mA |
XIAO SAMD21 Pinout: Pins Functions
The 14 edge pins of the Seeeduino XIAO (plus the back pads) are divided into the following groups based on the hardware functionality they’re used for. Most I/O pins belong to several groups at once.
- Power Pins: 5V, 3V3, GND, and the VIN pad
- 11x Digital I/O Pins
- 11x Interrupt Pins
- 11x ADC Analog Input Pins & 1x DAC Pin
- 10x PWM Pins
- UART Pins (+ USB CDC)
- I2C Pins
- SPI Pins
- SWD, Reset & Bootloader
We’ll discuss each pin group in the following sections one by one in more detail.
Seeeduino XIAO Power Pins
The Seeeduino XIAO is powered from the USB-C port (5v), from the 5V pin, or from the VIN pad on the back, and all three are the same net. The 3V3 pin is the XC6206 regulator’s output. The power pins are highlighted in red in the pinout diagram.

| Pin | XIAO Pin | Range | Notes |
|---|---|---|---|
| 5V | 14 | 5v in/out | USB VBUS directly: no diode since v2.0, no fuse |
| 3V3 | 12 | 3.3v out | XC6206 LDO output, 200mA max, shared with the SAMD21 and LEDs |
| GND | 13 | 0v | Plus the GND pads on the back |
| VIN | back pad | 5v in | Same net as the 5V pin (not a separate input) |
How much current can the 3V3 pin supply? Seeed doesn’t give a figure. The XC6206 is rated 200mA, and the SAMD21 and the LEDs take their share, so keep external loads near 100mA, as testers on the Seeed forum suggest. An LDO also turns the extra voltage into heat, so 5v in at 200mA out is about 0.34W in that tiny SOT-23 package.
Can I power the Seeeduino XIAO from a LiPo battery? Not directly. There’s no charger and no battery protection, and Seeed’s wiki says never to connect a LiPo to VIN/GND. A single cell (3.7v) on the 5V pin also leaves the XC6206 without headroom. Use a charger/boost module that outputs 5v into the 5V pin, or pick the XIAO SAMD21 Plus, which has a charger.
Note: The 5V pin and the VIN pad are wired straight to the USB-C connector’s VBUS. Since board v2.0 (2020), there’s no diode, even though Seeed’s wiki still says the VIN pads “bypass the protection diode”. Feeding 5v into them while USB is plugged in back-feeds your PC’s USB port (Seeed forum). Unplug USB first, or put a Schottky diode in series with your supply.
Seeeduino XIAO GPIO Pins
The Seeeduino XIAO has 11 GPIO pins: D0–D10 (PA02, PA04–PA11, PB08, PB09). They all work at 3.3v, and none of them is 5v tolerant. Every one of them can be a digital input, a digital output, an analog input, or an interrupt source.

Here are the electrical limits (SAM D21 datasheet DS40001882L):
- Logic level 3.3v; never apply more than VDD + 0.6v (about 3.9v) to any pin.
- Normal drive: 2mA source and 2.5mA sink. With the pin’s DRVSTR bit set: 7mA and 10mA. A bigger load just pulls the voltage away from 3.3v or 0v.
- Pins are grouped in clusters with a total of 46mA source and 65mA sink each, so a few strong-drive LEDs is fine; one per pin on all 11 isn’t.
- Internal pull-ups and pull-downs: INPUT_PULLUP and INPUT_PULLDOWN both work.
- The pins you don’t see: PA17/PA18/PA19 (L, RX, TX LEDs, Arduino 13/12/11), PA24/PA25 (USB), PA00/PA01 (crystal), PA30/PA31 (SWD pads).
The Seeed core’s pinMode(pin, OUTPUT) doesn’t set DRVSTR, so a pin set HIGH with a 10mA LED on it sags well below 3.3v (one user measured a 200mV drop with a light load). Turn strong drive on with one register line after pinMode():
|
1 2 3 4 5 6 7 8 |
void setup() { pinMode(D10, OUTPUT); // strong drive: 7mA source / 10mA sink instead of 2mA / 2.5mA PORT->Group[g_APinDescription[D10].ulPort].PINCFG[g_APinDescription[D10].ulPin].bit.DRVSTR = 1; digitalWrite(D10, HIGH); } void loop() {} |
Learn more in our Arduino digitalWrite() GPIO Tutorial.
Also Read
Seeeduino XIAO Interrupt Pins
All 11 I/O pins of the Seeeduino XIAO can trigger an external interrupt with attachInterrupt(digitalPinToInterrupt(pin), isr, mode). There are two catches: D5 and D7 share interrupt line EXTINT9, and D4 is the NMI (non-maskable interrupt) instead of a normal line.
| Pin | Port | Interrupt Line | Pin | Port | Interrupt Line |
|---|---|---|---|---|---|
| D0 | PA02 | EXTINT2 | D6 | PB08 | EXTINT8 |
| D1 | PA04 | EXTINT4 | D7 | PB09 | EXTINT9 (shared with D5) |
| D2 | PA10 | EXTINT10 | D8 | PA07 | EXTINT7 |
| D3 | PA11 | EXTINT11 | D9 | PA05 | EXTINT5 |
| D4 | PA08 | NMI | D10 | PA06 | EXTINT6 |
| D5 | PA09 | EXTINT9 (shared with D7) |
Because D5 and D7 use the same line, only one of them can have an interrupt at a time: attaching the second one replaces the first (Seeed forum). D4 works with attachInterrupt() too (the Seeed core sets up the NMI for it), but an NMI can’t be turned off with noInterrupts(), so keep its ISR short and safe.
Learn more in our Arduino External Interrupts Tutorial.
Also Read
Seeeduino XIAO ADC & DAC Pins
Every I/O pin of the Seeeduino XIAO is an analog input: A0–A10 (D0–D10), on the SAMD21’s 12-bit ADC at up to 350ksps. A0 is also a true 10-bit DAC output, which gives you a real analog voltage from 0v to 3.3v, not PWM. The analog pins are highlighted in green in the pinout diagram.

| Pin | Port | ADC Channel | Pin | Port | ADC Channel |
|---|---|---|---|---|---|
| A0 (DAC) | PA02 | AIN0 | A6 | PB08 | AIN2 |
| A1 | PA04 | AIN4 | A7 | PB09 | AIN3 |
| A2 | PA10 | AIN18 | A8 | PA07 | AIN7 |
| A3 | PA11 | AIN19 | A9 | PA05 | AIN5 |
| A4 | PA08 | AIN16 | A10 | PA06 | AIN6 |
| A5 | PA09 | AIN17 |
The Arduino core starts with Arduino UNO-style defaults: analogRead() returns 10-bit values (0–1023) and analogWrite() takes 8-bit values. Call analogReadResolution(12) for the full 0–4095 range, and analogWriteResolution(10) to use the DAC’s full 0–1023 range. Here’s a sketch that outputs a ramp on the DAC and reads it back on A1 (wire A0 to A1):
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
void setup() { Serial.begin(115200); analogWriteResolution(10); // DAC: 0-1023 analogReadResolution(12); // ADC: 0-4095 } void loop() { for (int v = 0; v < 1024; v += 64) { analogWrite(A0, v); // A0 = true DAC output, not PWM delay(5); Serial.println(analogRead(A1)); } } |
Note: The ADC reference is the 3.3v rail by default (VREFA on PA03 isn’t on an edge pin), so the readings move with the regulator output. The DAC output is weak too: it’s meant for a high-impedance input, so buffer it with an op-amp before driving a speaker or a low-impedance load.
There are so many things that we can do with the analog pins, which include: reading potentiometers, LDRs, NTC thermistors and soil moisture sensors, generating audio tones and waveforms with the DAC, capacitive touch buttons on the touch-capable pins, and much more.
Learn more in our Arduino ADC analogRead() Tutorial.
Also Read
Seeeduino XIAO PWM Pins
The Seeeduino XIAO has 10 PWM pins: D1–D10 (D0 is the DAC). They run on three timers (TCC0, TCC1 and TC4), and two pairs share a compare channel: D4 and D10 always have the same duty cycle, and so do D5 and D8. So you get 8 independent PWM outputs. The PWM pins are highlighted in the pinout diagram.

Seeeduino XIAO PWM Pins: D1–D10, with D4 = D10 and D5 = D8.
| Pin | Port | Timer Output | Duty Cycle Shared With |
|---|---|---|---|
| D1 | PA04 | TCC0/WO0 | – |
| D9 | PA05 | TCC0/WO1 | – |
| D2 | PA10 | TCC0/WO2 | – |
| D3 | PA11 | TCC0/WO3 | – |
| D10 | PA06 | TCC1/WO0 (channel 0) | D4 |
| D4 | PA08 | TCC1/WO2 (channel 0) | D10 |
| D8 | PA07 | TCC1/WO1 (channel 1) | D5 |
| D5 | PA09 | TCC1/WO3 (channel 1) | D8 |
| D6 | PB08 | TC4/WO0 | – |
| D7 | PB09 | TC4/WO1 | – |
TCC1 has only two compare channels but four outputs, so WO2 and WO3 repeat channels 0 and 1. This sketch shows it: D4 ends up with the same 80% duty cycle as D10, whatever you wrote to it first (reproduced on 3 boards on the Seeed forum):
|
1 2 3 4 5 6 7 |
void setup() { analogWrite(D4, 50); // 20% duty... analogWrite(D10, 204); // ...but now D4 AND D10 both output 80% // fix: use independent pins, e.g. D1, D2, D3, D9 (TCC0) or D6, D7 (TC4) } void loop() {} |
The core’s PWM runs at about 732Hz on TCC pins (48MHz / 65536), fine for LEDs and motors. Servos need 50Hz, which the Servo library generates on its own timer, so you can still use any pin for them.
There are so many things that we can control with PWM, which include: LED dimming, RGB LEDs, DC motor speed (with a driver), servo motors, buzzers, and much more.
Learn more in our Arduino PWM analogWrite() Tutorial.
Also Read
Seeeduino XIAO UART Pins
The Seeeduino XIAO has one hardware UART on its pins: Serial1 on D6 (TX) and D7 (RX), on the SAMD21’s SERCOM4. Serial is the USB-C port (USB CDC), not a pin. The UART pins are highlighted in blue in the pinout diagram.

Seeeduino XIAO Default UART Pins: D6 (TX) and D7 (RX) for Serial1.
| Port | Arduino Object | TX Pin | RX Pin | Note |
|---|---|---|---|---|
| USB CDC | Serial | USB-C | USB-C | The Serial Monitor port |
| SERCOM4 | Serial1 | D6 (PB08) | D7 (PB09) | Hardware UART |
Since Serial is native USB, it disappears and comes back on every reset. Wait for it in setup() if you don’t want to miss the first prints, but only with a timeout, or a battery-powered board will hang there forever:
|
1 2 3 4 5 6 7 8 9 10 |
void setup() { Serial.begin(115200); // USB-C to the PC while (!Serial && millis() < 3000) {} // wait up to 3 s for the port Serial1.begin(9600); // D6 = TX, D7 = RX } void loop() { while (Serial1.available()) Serial.write(Serial1.read()); // module -> PC while (Serial.available()) Serial1.write(Serial.read()); // PC -> module } |
There are so many modules that we can interface with the UART pins, which include: GPS modules, GSM/LTE modules, fingerprint sensors, RS485 transceivers, DFPlayer Mini, other microcontrollers, and much more.
Learn more in our Arduino UART Serial Communication Tutorial.
Seeeduino XIAO I2C Pins
The Seeeduino XIAO I2C pins are D4 (SDA) and D5 (SCL), on the SAMD21’s SERCOM2, the same place as on every XIAO board, so Grove and XIAO expansion boards work out of the box. In the Arduino core, that’s the Wire object. The I2C pins are highlighted in yellow in the pinout diagram.

Seeeduino XIAO Default I2C Pins: D4 (SDA) and D5 (SCL).
| Signal | Pin | Port | SAMD21 Peripheral |
|---|---|---|---|
| SDA | D4 / A4 | PA08 | SERCOM2 PAD0 |
| SCL | D5 / A5 | PA09 | SERCOM2 PAD1 |
Note: There are no I2C pull-up resistors on the Seeeduino XIAO, and the SAMD21’s internal pull-ups are too weak for I2C. If an I2C scanner finds nothing (or hangs), add 4.7kΩ pull-ups from SDA and SCL to 3.3v (not 5v), unless your module already has them (Seeed forum).
There are so many modules and sensors that we can interface with the I2C bus, which include: OLED displays (SSD1306), RTC modules (DS3231), IMUs (MPU6050), BME280 sensors, port expanders, and much more.
Learn more in our Arduino I2C Tutorial.
Also Read
Seeeduino XIAO SPI Pins
The Seeeduino XIAO SPI pins are D8 (SCK), D9 (MISO) and D10 (MOSI), on the SAMD21’s SERCOM0. There’s no fixed CS (SS) pin, so choose any free pin, such as D7 or D3. The SPI pins are highlighted in pink in the pinout diagram.

Seeeduino XIAO Default SPI Pins: D8 (SCK), D9 (MISO), and D10 (MOSI), with CS on a pin you choose.
| Signal | Pin | Port | SAMD21 Peripheral |
|---|---|---|---|
| SCK | D8 / A8 | PA07 | SERCOM0 PAD3 |
| MISO | D9 / A9 | PA05 | SERCOM0 PAD1 |
| MOSI | D10 / A10 | PA06 | SERCOM0 PAD2 |
| CS | any free pin | – | GPIO |
There are so many modules that we can interface with the SPI bus, which include: TFT displays (ST7789, GC9A01), SD card modules, LoRa radios (SX1276), nRF24L01 radios, MAX7219 LED drivers, and much more.
Seeeduino XIAO SWD, Reset & Bootloader
The Seeeduino XIAO has no buttons. Instead, it has two RST pads next to the USB-C connector, and the SWD debug pads (SWCLK, SWDIO, RST, GND) on the back, together with the VIN and GND pads.

| Pad | Signal | Use |
|---|---|---|
| RST pads (front, TP2 + TP4) | RESETN + GND | Short once = reset; short twice quickly = bootloader |
| SWCLK (back, TP3) | PA30 | SWD clock |
| SWDIO (back, TP5) | PA31 | SWD data |
| RST (back, TP1) | RESETN (10kΩ pull-up) | Reset for the debug probe |
| GND (back, TP6) | GND | Probe ground |
| VIN / GND (back, bottom) | USB VBUS / GND | Power input (same net as 5V); not battery pads |
Seen from the back with USB-C at the top, the SWD pads form a 2×2 group: SWCLK (left) and SWDIO (right) on top, GND (left) and RST (right) below them. Connect a J-Link, an Atmel-ICE, or a CMSIS-DAP probe (a Raspberry Pi Debug Probe works) and debug with OpenOCD and GDB, or reflash the bootloader.
Seeeduino XIAO Bootloader Mode (Recover a Missing COM Port)
If an upload fails or a sketch crashes, the Seeeduino XIAO’s COM port can disappear. The UF2 bootloader always brings it back (Seeed forum):
- Short the two RST pads twice, quickly (tweezers or a wire). The yellow L LED flickers, then stays lit.
- The bootloader COM port appears on your PC, together with a small UF2 USB drive.
- Upload from the Arduino IDE on that port, or drop a .uf2 file (CircuitPython, a compiled sketch) on the drive.
Note: The bootloader sits in the first 8KB of flash, which is where Seeed’s wiki gets its “8KB” flash figure: your sketch gets the other 248KB. If the bootloader itself is erased (for example by a bad SWD flash), the double-tap does nothing, and only an SWD probe can write it back (Hackster unbrick guide).
Getting Started With Seeeduino XIAO
You can program the Seeeduino XIAO with the Arduino IDE, CircuitPython, MicroPython, PlatformIO, TinyGo, Rust or Zephyr, all over the USB-C cable. No external programmer is needed.
- Arduino IDE: add https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json to the Boards Manager URLs, install “Seeed SAMD Boards”, then select Seeeduino XIAO M0 (the board’s name in the IDE).
- CircuitPython: flash the Seeeduino XIAO build through the bootloader drive and use board.D0– board.D10 / board.A0– board.A10; touchio works on the touch pins.
- TinyGo: target xiao, with the same D-names (TinyGo XIAO docs).
- PlatformIO: board seeed_xiao on the Atmel SAM platform.
| Arduino Name | Pin | Default |
|---|---|---|
Serial | USB-C | USB CDC |
Serial1 | D6 (TX), D7 (RX) | SERCOM4 |
Wire | D4 (SDA), D5 (SCL) | SERCOM2, no pull-ups |
SPI | D8 / D9 / D10 | SERCOM0; choose your own CS |
A0–A10 | D0–D10 | 10-bit by default (12-bit available) |
DAC0 | A0 | 8-bit by default (10-bit available) |
LED_BUILTIN | 13 (PA17) | Yellow L LED, active LOW |
PIN_LED2 / PIN_LED3 | 12 (PA18) / 11 (PA19) | Blue RX / TX LEDs, active LOW |
The classic Blink sketch works, but in reverse: digitalWrite(LED_BUILTIN, LOW) turns the yellow LED on. The TX and RX LEDs blink with USB traffic, and you can drive them yourself on pins 11 and 12.
Tip: Low power: the SAMD21 has idle and standby modes (the ArduinoLowPower library uses standby). The green power LED alone draws about 1mA all the time; users report a Seeeduino XIAO in standby at about 13µA–29µA once that LED is removed (Seeed forum).
Seeeduino XIAO Common Problems & Fixes
Why did the COM port disappear? A failed upload or a crashing sketch. Short the RST pads twice quickly to start the bootloader, then upload again on the port that appears.
Why does analogWrite() on D4 also change D10? D4 and D10 share TCC1 channel 0 (and D5/D8 share channel 1). Use only one pin of each pair for PWM.
Why do my interrupts on D5 and D7 not both work? They share interrupt line EXTINT9. Move one of them to another pin.
Why is the LED on when I write LOW? L, TX and RX are wired from 3.3v to the pin, so they’re active LOW. That’s by design.
Why does my I2C scanner find nothing? There are no pull-ups on D4/D5. Add 4.7kΩ resistors to 3.3v.
Why does my LED look dim, or the pin voltage sag? The default drive is 2mA. Set DRVSTR (7mA) or use a transistor.
Why does my DAC output only go up in big steps? analogWrite() is 8-bit by default. Call analogWriteResolution(10).
Is the Seeeduino XIAO 5v tolerant? No. Every pin is 3.3v only. Use a level shifter or a divider for 5v signals.
Why does my PC complain when I power the 5V pin? The 5V pin is raw VBUS with no diode (since v2.0), so your supply back-feeds the USB port. Unplug USB, or add a diode.
Seeeduino XIAO vs XIAO RP2040 vs XIAO SAMD21 Plus vs Arduino Nano
The Seeeduino XIAO has three close relatives: Seeed’s XIAO RP2040 (same footprint, faster chip), Seeed’s XIAO SAMD21 Plus (same chip, more pads and a charger), and the classic Arduino Nano it’s often compared with. Here’s how they compare:
| Feature | Seeeduino XIAO (XIAO SAMD21) | XIAO RP2040 | XIAO SAMD21 Plus | Arduino Nano |
|---|---|---|---|---|
| MCU | SAMD21, M0+ 48MHz | RP2040, 2× M0+ 133MHz | SAMD21, M0+ 48MHz | ATmega328P, 16MHz |
| Flash / RAM | 256KB / 32KB | 2MB / 264KB | 256KB / 32KB | 32KB / 2KB |
| I/O pins | 11 | 11 | 27 (11 + 16 back pads) | 22 |
| Analog inputs (edge pins) | 11 | 4 | 11 | 8 |
| DAC | Yes (A0) | No | Yes | No |
| Logic level | 3.3v | 3.3v | 3.3v | 5v |
| Battery charger | No | No | Yes | No |
| Size | 21 × 17.8mm | 21 × 17.8mm | 21 × 17.8mm | 45 × 18mm |
Pick the Seeeduino XIAO for small Arduino projects that need many analog inputs or a real DAC. Pick the XIAO RP2040 when you need more speed and memory in the same footprint, the Plus for more pins and a LiPo charger, and the Nano when your sensors and modules are 5v.
Seeeduino XIAO Pin Details
Here is every Seeeduino XIAO pin in physical order, with its SAMD21 port pin, main functions, all its other functions (from Table 7-1 of the datasheet), and a short description. With the USB-C connector at the top, pin 1 (D0) is the top-left pad, pins 1–7 run down the left edge, and pins 8–14 run up the right edge.
Click to expand the full pin table (18 pins)
| Pin | Label | Port | Main Functions | Other Functions | 5v Tolerant | Description |
|---|---|---|---|---|---|---|
| 1 | D0 / A0 | PA02 | DAC output, AIN0, EXTINT2 | PTC Y0 | No (3.3v) | The DAC pin (true 10-bit analog output) and an analog input; no PWM. |
| 2 | D1 / A1 | PA04 | AIN4, PWM TCC0/WO0, EXTINT4 | VREFB, AC AIN0, PTC Y2, SERCOM0 PAD0 | No (3.3v) | Analog input with an independent PWM channel; a good first analog pin. |
| 3 | D2 / A2 | PA10 | AIN18, PWM TCC0/WO2, EXTINT10 | SERCOM0/2 PAD2, TCC1/WO0, I2S SCK0, GCLK_IO4 | No (3.3v) | Analog input, independent PWM, and a free interrupt line. |
| 4 | D3 / A3 | PA11 | AIN19, PWM TCC0/WO3, EXTINT11 | SERCOM0/2 PAD3, TCC1/WO1, I2S FS0, GCLK_IO5 | No (3.3v) | Analog input, independent PWM; a good SPI CS pin. |
| 5 | D4 / A4 / SDA | PA08 | I2C SDA (Wire, SERCOM2 PAD0), AIN16, PWM TCC1/WO2, NMI | SERCOM0 PAD0, TCC0/WO0, I2S SD1, PTC X0 | No (3.3v) | The default I2C data pin; its PWM follows D10, and its interrupt is the NMI. |
| 6 | D5 / A5 / SCL | PA09 | I2C SCL (Wire, SERCOM2 PAD1), AIN17, PWM TCC1/WO3, EXTINT9 | SERCOM0 PAD1, TCC0/WO1, I2S MCK0, PTC X1 | No (3.3v) | The default I2C clock pin; its PWM follows D8, and it shares EXTINT9 with D7. |
| 7 | D6 / A6 / TX | PB08 | Serial1 TX (SERCOM4 PAD0), AIN2, PWM TC4/WO0, EXTINT8 | PTC Y14 | No (3.3v) | Serial1 transmit. |
| 8 | D7 / A7 / RX | PB09 | Serial1 RX (SERCOM4 PAD1), AIN3, PWM TC4/WO1, EXTINT9 | PTC Y15 | No (3.3v) | Serial1 receive; shares EXTINT9 with D5. |
| 9 | D8 / A8 / SCK | PA07 | SPI SCK (SERCOM0 PAD3), AIN7, PWM TCC1/WO1, EXTINT7 | AC AIN3, PTC Y5, I2S SD0 | No (3.3v) | The default SPI clock pin; its PWM follows D5. |
| 10 | D9 / A9 / MISO | PA05 | SPI MISO (SERCOM0 PAD1), AIN5, PWM TCC0/WO1, EXTINT5 | AC AIN1, PTC Y3 | No (3.3v) | The default SPI data-in pin, with an independent PWM channel. |
| 11 | D10 / A10 / MOSI | PA06 | SPI MOSI (SERCOM0 PAD2), AIN6, PWM TCC1/WO0, EXTINT6 | AC AIN2, PTC Y4 | No (3.3v) | The default SPI data-out pin; its PWM follows D4. |
| 12 | 3V3 | – | 3.3v output | – | – | XC6206 regulator output, 200mA max shared with the board. |
| 13 | GND | – | Ground | – | – | Ground. |
| 14 | 5V | – | USB VBUS | – | – | 5v straight from the USB-C connector; no diode or fuse. |
| back | SWCLK / SWDIO | PA30 / PA31 | SWD | SERCOM1 PAD2/PAD3, TCC1/WO0/WO1 | No (3.3v) | Serial Wire Debug pads for a debug probe. |
| back | RST | – | Reset | – | – | RESETN; pull LOW to reset, like the front RST pads. |
| back | VIN | – | USB VBUS | – | – | Same net as the 5V pin; not a battery input. |
| back | GND (×2) | – | Ground | – | – | Ground pads next to SWD and next to VIN. |
Wrap Up
To conclude this guide article, the Seeeduino XIAO (XIAO SAMD21) is a very solid board for small Arduino projects that need a 32-bit chip, native USB, and lots of analog pins in the smallest possible space. It gives you a 48MHz SAMD21, 11 analog inputs, a true DAC and 10 PWM pins on a board the size of your thumbnail. Just remember the board-level gotchas: every pin is 3.3v only with a 2mA default drive, D4/D10 and D5/D8 share PWM, D5/D7 share an interrupt line, the LEDs are active LOW, and the 5V pin is raw USB VBUS.
I hope you’ve found this guide helpful for deciding which pins to use for your project. For more boards, check out the Pinouts, Datasheets & Schematic Diagrams Library. Follow this Arduino Series of Tutorials to learn more about Arduino programming.
If you’re just getting started with Arduino, you need to check out the Arduino Programming Getting Started Ultimate Guide below.
The complete beginner’s guide to Arduino programming: installing the IDE, your first sketch, and the Arduino tutorials series step by step.






