In this guide, you’ll find the Seeed XIAO RP2350 pinout diagram, its datasheet and schematic daigram, and every pin group explained with its default pins. It’s the complete XIAO RP2350 pinout reference you need before wiring your first project. Without further ado, let’s get right into it!
The XIAO RP2350 is Seeed Studio’s thumb-sized board built on Raspberry Pi’s RP2350, the same chip as the Raspberry Pi Pico 2: two Cortex-M33 (or two Hazard3 RISC-V) cores at 150MHz, 520KB SRAM and 2MB flash. On a 21 × 17.8mm board, it gives you 19 GPIO pins (11 on the edges and 8 on the back), an RGB LED, a Li-ion battery charger, and a built-in battery-voltage reading circuit.
XIAO RP2350 Pinout Diagram
Here is a detailed XIAO RP2350 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 of the Seeed Studio XIAO RP2350 with their XIAO names (D0–D10), the RP2350 GPIO numbers, and each pin’s ADC, PWM, UART, SPI and I2C functions, plus the 8 extra GPIO pads on the back.
Each row shows the XIAO pin number, the pin name used in the Arduino core (D0, A1…), the RP2350 GPIO number, and its functions, color-coded by peripheral. The dot symbol marks the 5v-tolerant pins, the square marks the 3.3v-only ADC pins (D0–D2), 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. The edge pads are castellated, so you can solder the board flat onto a PCB, and the two rows are 15.24mm (600 mil) apart, so it fits a breadboard with headers.
XIAO RP2350 Back Pads Pinout (D11–D18)
The XIAO RP2350 has 16 pads on the back: 8 extra GPIOs (D11–D18) on a 2.54mm grid, the SWD debug pads (CLK, DIO), RUN (reset), BOOT, 3V3, GND, and the BAT+ / BAT− battery pads. They carry a second I2C, UART and SPI port, and the Arduino core’s default Wire bus is here, not on D4/D5 (more on that in the I2C section).
| Pad | GPIO | Arduino Default | Other Functions |
|---|---|---|---|
| D11 | GPIO21 | Serial2 RX | PWM2 B, I2C0 SCL, SPI0 CSn, CLOCK GPOUT0 |
| D12 | GPIO20 | Serial2 TX | PWM2 A, I2C0 SDA, SPI0 RX, CLOCK GPIN0 |
| D13 | GPIO17 | Wire SCL | PWM0 B, UART0 RX, SPI0 CSn, HSTX |
| D14 | GPIO16 | Wire SDA | PWM0 A, UART0 TX, SPI0 RX, HSTX |
| D15 | GPIO11 | SPI1 MOSI | PWM5 B, I2C1 SCL, UART1 RTS |
| D16 | GPIO12 | SPI1 MISO | PWM6 A, I2C0 SDA, UART0 TX, HSTX |
| D17 | GPIO10 | SPI1 SCK | PWM5 A, I2C1 SDA, UART1 CTS |
| D18 | GPIO9 | SPI1 SS | PWM4 B, I2C0 SCL, UART1 RX |
| CLK / DIO | SWCLK / SWDIO | – | SWD debug |
| RST | RUN | – | Reset (active LOW, 10kΩ pull-up) |
| BOOT | QSPI_SS | – | BOOTSEL (to GND at reset) |
| 3V3 / GND | – | – | 3.3v output and ground |
| BAT+ / BAT− | – | – | 3.7v Li-ion/LiPo cell |
In bottom view, D11–D14 run down the left column and D18–D15 down the right column, as Seeed numbers them 1–8. The pads are only test points, so you either solder thin wires to them or mount the XIAO RP2350 on a carrier PCB with matching pads (Seeed’s KiCad files have the footprint).
Buy a XIAO RP2350: If you don’t have one yet, you can get the genuine Seeed Studio board from Amazon or AliExpress. Get the pre-soldered version if you want to use it on a breadboard right away.
Download XIAO RP2350 Pinout Diagrams (Full Resolution)
Both XIAO RP2350 pinout diagrams (edge pins and back pads) in full resolution (5120 px wide WebP), in one ZIP file. Print them, zoom in, or keep them next to your bench. Please consider supporting my work if it helped you.
XIAO RP2350 Datasheet
This development board is built around the RP2350A microcontroller (the 60-pin QFN version, with 30 GPIOs and no flash inside) and an external 2MB QSPI flash chip. So the XIAO RP2350 datasheet set has two parts: Seeed Studio’s documents for the board, and Raspberry Pi’s for the chip. Here are the official documents you’ll need, linked to their original sources:
| Document | Source | ID / Revision | What You’ll Use It For | Link |
|---|---|---|---|---|
| XIAO RP2350 wiki (getting started, Arduino) | Seeed Studio | online (May 2026) | Specs, pin map, Arduino setup, low-power test | Web |
| XIAO RP2350 with MicroPython | Seeed Studio | online | MicroPython setup, LED, RGB LED and battery examples | Web |
| XIAO RP2350 pin multiplexing | Seeed Studio | online | Digital, PWM, ADC, UART, I2C and SPI examples per pin | Web |
| XIAO RP2350 C/C++ SDK | Seeed Studio | online | Pico SDK setup and examples for this board | Web |
| XIAO RP2350 schematic | Seeed Studio | v1.0 (2024-05-30) | The full board circuit (see the next section) | |
| XIAO RP2350 KiCad files | Seeed Studio | v1.0 (2024-06-26) | Schematic and PCB source, the footprint for your own carrier board | ZIP |
| XIAO RP2350 pinout sheet | Seeed Studio | online | Seeed’s pin-by-pin function list | XLSX |
| XIAO RP2350 dimensions | Seeed Studio | v1.0 | 2D drawing with the pad positions | DXF |
| RP2350 datasheet (with errata) | Raspberry Pi | RP-008373-DS, release 8 (2026-10-01) | GPIO functions, electrical limits, every peripheral, and the errata (appendix D) |
Which document do I need? The Seeed wiki pages for the board’s pin names, power and code examples, the schematic for what’s connected to each pin, and the RP2350 datasheet for pin functions (its Table 3, “GPIO functions”), electrical limits, registers and the errata. Raspberry Pi keeps the errata inside the datasheet, so there’s no separate errata sheet to download.
XIAO RP2350 Schematic
The XIAO RP2350 schematic is Seeed Studio’s XIAO RP2350 v1.0 drawing (KiCad, “Initial version, 2024/5/30”). It has three real sheets: a block diagram, the power sheet and the RP2350 sheet. Here they are, each followed by close-ups of its blocks; click a page to view it full screen.
Official source: the XIAO RP2350 schematic v1.0 (PDF) from the Seeed Studio wiki. Here’s what to look at:
- USB input: USB-C VBUS has ESD diodes but no fuse. It goes through the LMBR4010 Schottky diode (D1) to the board’s +5V rail. The 5V pin is VBUS itself, taken before the diode, so it’s a direct line to the USB connector.
- Power path: the P-channel MOSFET Q1 (LP0404N3T5G) connects the battery to the +5V rail. Its gate is held HIGH by VBUS, so with USB plugged in, Q1 is off and the board runs from USB while the battery charges; unplug USB and the battery takes over through Q1 (an N-MOSFET, Q2, and a 5.6v Zener, D3, sit on the VBUS side of this switch).
- 3.3v regulator: an SGM6029 step-down converter (U1, 1A, 0.47µH inductor) makes the 3.3v rail for the RP2350, the flash and the 3V3 pin. A buck converter instead of an LDO is part of why the board is efficient on battery.
- Battery charger: an SGM40567-4.2 linear Li-ion charger (U3), fed from VBUS. R10 (150kΩ) sets the charge current: the schematic’s own note says Icharge = 24000 / 150k = 160mA. Its NCHG pin lights the red half of the dual LED through 5.1kΩ while a battery is charging.
- Battery sense: an SX1801 load switch (U6), enabled by GPIO19, connects BAT+ to a 470kΩ / 470kΩ divider whose middle point goes to GPIO29 (ADC3). The switch keeps the divider from draining the battery when you aren’t measuring.
- RP2350A and flash: a 12MHz crystal (X1), the RP2350’s internal core regulator with its 3.3µH inductor (L2), and a P25Q16H 16Mbit (2MB) QSPI flash (U5). The schematic’s MPN field for U4 says “RP2354-A”, a leftover from a template: the RP2354 has flash inside the package, while this board uses the RP2350A plus the external P25Q16H.
- Buttons: B (K1) pulls the flash chip-select (QSPI_SS) to GND through 1kΩ, which is the RP2350’s BOOTSEL input; R (K2) pulls RUN to GND (10kΩ pull-up, 100nF). Both signals are also on the BOOT and RST pads.
- LEDs: the yellow user LED is on GPIO25 through 1kΩ to 3.3v (on when the pin is LOW). The RGB LED (an APA-104 type, WS2812 compatible) gets its data from GPIO22 through a UM3301 level shifter, and its power through a second SX1801 switch (U7) enabled by GPIO23.
- USB data: D+/D− go through 27Ω resistors straight to the RP2350’s own USB 1.1 controller. There’s no USB-UART chip.
XIAO RP2350 Specs
The XIAO RP2350 packs the Pico 2’s chip, a battery charger and 19 GPIOs into the XIAO form factor. Here are its specifications, including the board-level parts that chip-only spec lists usually skip.

Get a XIAO RP2350: The genuine Seeed Studio board is the one I recommend. Grab it from Amazon or AliExpress.
| Item | XIAO RP2350 |
|---|---|
| Microcontroller | Raspberry Pi RP2350A (QFN-60, 30 GPIOs, no internal flash) |
| CPU | 2x Arm Cortex-M33 (FPU, DSP, TrustZone) or 2x Hazard3 RISC-V, chosen at boot, up to 150MHz |
| Memory | 520KB SRAM, 8KB OTP, 2MB QSPI flash (P25Q16H) |
| Wireless | None (no Wi-Fi, no Bluetooth) |
| Logic level | 3.3v; GPIO0–25 are 5v tolerant while the board is powered, the ADC pins aren’t |
| GPIO pins | 19: 11 on the edge pins (D0–D10) and 8 on the back pads (D11–D18) |
| Board supply | USB-C 5v, or a 3.7v Li-ion/LiPo battery on the BAT pads |
| 3.3v regulator | SGM6029 step-down converter, 1A |
| Battery charger | SGM40567, 160mA charge current, red charge LED |
| Battery voltage | Built-in divider on GPIO29, enabled by GPIO19 |
| Pin current | 2/4/8/12mA drive strength per pin (4mA default); 100mA total for all I/Os |
| Clock | 12MHz crystal |
| USB connector | USB-C, wired to the RP2350’s native USB 1.1; no USB-UART chip |
| Buttons and LEDs | B (BOOTSEL), R (RESET); yellow user LED (GPIO25), red charge LED, RGB LED (GPIO22, power GPIO23) |
| Low power | About 50µA (Seeed; 53µA measured on the BAT pads with its test firmware) |
| Size | 21 × 17.8mm, XIAO form factor, surface-mountable |
| Working temperature | −20°C to 70°C |
| Seeed SKU | 102010550 (pre-soldered: 102010637) |
| No | Wi-Fi, Bluetooth, DAC, 5v-tolerant ADC pins |
XIAO RP2350 Specifications Summary
- The XIAO RP2350 runs a Raspberry Pi RP2350A: 2x Cortex-M33 or 2x RISC-V cores at 150MHz, 520KB SRAM, and 2MB external flash.
- It has 19 GPIOs: D0–D10 on the edges and D11–D18 on the back pads.
- Logic is 3.3v. GPIO0–25 are 5v tolerant while the board is powered; the ADC pins D0–D2 (GPIO26–28) are not.
- It has 3 ADC pins: A0, A1 and A2 (12-bit, 500ksps). The fourth ADC channel (GPIO29) reads the battery.
- All 19 GPIOs can output PWM (12 slices on the chip, 7 of them reachable).
- Serial is USB CDC; Serial1 is on D6 (TX) / D7 (RX), Serial2 on the back pads D12 (TX) / D11 (RX).
- In the Arduino core, Wire is on the back pads D14 (SDA) / D13 (SCL), and Wire1 is on D4 (SDA) / D5 (SCL).
- SPI is D8 (SCK), D9 (MISO), D10 (MOSI), D3 (SS); SPI1 is on the back pads D15–D18.
- The 5V pin is USB VBUS: it’s 0v when the board runs on battery.
- Battery voltage: set GPIO19 HIGH, read GPIO29, and multiply by 2.
- User LED on GPIO25 (active LOW); the RGB LED needs GPIO23 HIGH before you send data on GPIO22.
- Use arduino-pico 4.2.0 or newer in the Arduino IDE.
XIAO RP2350 Peripherals: RP2350A vs On the Pins
Unlike chips with a full GPIO matrix, each RP2350 peripheral signal can only go to certain GPIOs (the datasheet’s function table), so this table shows both what the chip has and what you can reach on the XIAO.
| Peripheral | RP2350A | On the XIAO RP2350 |
|---|---|---|
| GPIO | 30 | 19 (11 edge + 8 back pads) |
| ADC | 4 channels, 12-bit, 500ksps + temperature sensor | 3 pins (A0–A2) + GPIO29 battery sense |
| PWM | 12 slices / 24 outputs | all 19 GPIOs (slices 0–6) |
| UART | 2 | Serial1 on D6/D7, Serial2 on D12/D11 |
| SPI | 2 | SPI on D8–D10 (SS D3), SPI1 on D15–D18 |
| I2C | 2 | Wire1 on D4/D5, Wire on D14/D13 |
| PIO | 3 blocks, 12 state machines | any GPIO |
| HSTX | GPIO12–19 | GPIO12, 16 and 17 only (D16, D14, D13) |
| USB | USB 1.1 device/host | USB-C connector |
| DAC / Wi-Fi / Bluetooth | none | – |
XIAO RP2350 Quick Pin Selection Guide
Not sure which pin to use? Here are the XIAO RP2350 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 native USB |
| Serial to a module (GPS, GSM…) | D7 (RX), D6 (TX) | Serial1, the XIAO standard UART pins |
| Second serial port | D11 (RX), D12 (TX) | Serial2 on the back pads |
| I2C sensors, Grove, expansion board | D4 (SDA), D5 (SCL) with Wire1 | The XIAO standard I2C pins (I2C1) |
| SPI devices | D8 (SCK), D9 (MISO), D10 (MOSI), D3 (CS) | The Arduino SPI pins |
| Analog inputs | A0, A1, A2 | The only ADC pins on the board |
| Battery voltage | GPIO19 (enable) + GPIO29 (read) | Built-in divider, no extra parts |
| PWM (LEDs, servos) | D3–D10 | 5v-tolerant pins, no shared channel between them |
| WS2812 / NeoPixel strip | D10 or any free pin | PIO drives it on any GPIO |
| Safest general GPIO | D3–D10, D11–D18 | No board load, 5v tolerant while powered |
XIAO RP2350 Pins to Use With Caution
| Pin | Reason | What to Do |
|---|---|---|
| D4 / D5 | Arduino Wire is NOT here; it’s Wire1 | Use Wire1, or move Wire with setSDA()/setSCL() |
| D0–D2 (GPIO26–28) | ADC pins: not 5v tolerant | Keep them at or below 3.3v |
| Any input with pull-down | RP2350-E9 on A2-stepping chips: the pull-down can’t pull a floating pin LOW | Use pull-ups, or an external pull-down of 8.2kΩ or less |
| 5V | Raw USB VBUS, 0v on battery, no fuse | Don’t power 5v loads from it on battery; feed it only through a diode |
| GPIO19 / GPIO29 | Battery-sense enable and ADC, not on any pad | Leave them to the battery code |
| GPIO22 / GPIO23 | RGB LED data and power, not on any pad | GPIO23 HIGH powers the LED |
| BOOT pad | Flash chip-select; pulling it LOW at reset enters BOOTSEL | Only connect a button to GND |
| All pins | 3.3v outputs, 4mA default drive | Level-shift for 5v inputs; raise the drive strength for LEDs |
XIAO RP2350 Pins Functions
The 14 edge pins and 16 back pads of the XIAO RP2350 are divided into the following groups based on the hardware functionality they’re used for. Since each GPIO has several functions, most pins belong to more than one group.
- Power Pins: 5V, 3V3, GND, BAT+ / BAT− pads
- 19x Digital GPIO Pins (all can be interrupts)
- 3x ADC Analog Input Pins (+ battery sense)
- 19x PWM Pins
- 2x UART Ports (+ USB CDC)
- 2x I2C Buses
- 2x SPI Ports
- SWD Debug, BOOT and RUN Pins
We’ll discuss each pin group in the following sections one by one in more detail.
XIAO RP2350 Power Pins
The XIAO RP2350 is powered from the USB-C port (5v) or from a 3.7v Li-ion/LiPo battery soldered to the BAT+ / BAT− pads on the back. The 3V3 pin is the 1A buck converter’s output, and the 5V pin is the raw USB VBUS line. The power pins are highlighted in red in the pinout diagram.

| Pin | XIAO Pin | Range | Notes |
|---|---|---|---|
| 5V | 14 | 5v in/out | USB VBUS (before the Schottky diode). 5v out on USB power, 0v on battery |
| 3V3 | 12 | 3.3v out | SGM6029 buck converter output (1A, shared with the RP2350 and the flash) |
| GND | 13 | 0v | Plus the GND pad on the back |
| 3V3 / GND pads | back | 3.3v / 0v | The same nets as the edge pins |
| BAT+ / BAT− | back pads | 3.7v nominal (4.2v full) | One Li-ion/LiPo cell; charged at 160mA from USB |
How to power the XIAO RP2350? Plug in USB-C, or solder a single-cell 3.7v LiPo to the BAT pads. You can leave the battery connected while USB is plugged in: the P-MOSFET power path runs the board from USB and the SGM40567 charges the battery at 160mA at the same time, with the red LED on while it charges. To feed an external 5v supply into the 5V pin, use a Schottky diode (anode to your supply, cathode to the 5V pin), so it can’t back-feed your PC’s USB port.
Note: The 5V pin is VBUS, not the board’s internal supply rail. On battery power it reads 0v, so a 5v sensor or servo powered from it stops working the moment you unplug USB. Power 5v loads from their own supply, and never connect a battery to the 5V pin: batteries go on the BAT pads.
XIAO RP2350 Battery Voltage Reading
The XIAO RP2350 can read its own battery voltage with no extra parts. Set GPIO19 HIGH to switch on the battery divider, read GPIO29 (ADC3), and multiply the voltage by 2 (the divider is 470kΩ / 470kΩ). A full cell (4.2v) then gives 2.1v on the ADC. Here it is with the Arduino-Pico core:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
void setup() { Serial.begin(115200); pinMode(19, OUTPUT); digitalWrite(19, HIGH); // switch on the battery divider (GPIO19) analogReadResolution(12); } void loop() { uint32_t raw = 0; for (int i = 0; i < 16; i++) raw += analogRead(29); // GPIO29 = ADC3 float vbat = raw / 16.0 * 3.3 / 4095.0 * 2.0; // the divider halves BAT+ Serial.printf("Battery: %.2f V\n", vbat); delay(1000); } |
In a low-power project, drive GPIO19 LOW again between readings so the divider doesn’t draw current. With no battery fitted, the reading means nothing.
Note: Seeed’s documents describe this circuit in different ways. The Arduino pin map lists GPIO29 as the battery ADC but not the GPIO19 enable pin (the MicroPython page and the schematic both confirm GPIO19). The spec table says “3x Analog“, while the pinout sheet calls GPIO29 “A3“: both are right, because A3 is wired to the battery divider only, not to a pad. And the MicroPython wiki calls the user LED “GPIO25/D19”, even though no D19 pin exists in the Arduino core.
XIAO RP2350 Low Power and Sleep Current
Seeed specifies about 50µA in sleep for the XIAO RP2350, and measured 53µA on average with its own powman_timer test firmware, powered from the BAT pads. That number needs the Pico SDK’s low-power code (the pico-extras sleep library); Seeed notes that the Arduino IDE can’t easily use pico-extras and recommends the Pico SDK or PlatformIO with arduino-pico for ultra-low-power work. Measure sleep current from the battery pads, not through USB.
XIAO RP2350 GPIO Pins
The XIAO RP2350 has 19 GPIO pins: D0–D10 on the edges and D11–D18 on the back pads. They all work at 3.3v, and every one of them can be a digital input, a digital output, a PWM output, or an interrupt source.

| XIAO Pin | GPIO | XIAO Pin | GPIO | Back Pad | GPIO |
|---|---|---|---|---|---|
| D0 / A0 | GPIO26 | D6 | GPIO0 | D11 | GPIO21 |
| D1 / A1 | GPIO27 | D7 | GPIO1 | D12 | GPIO20 |
| D2 / A2 | GPIO28 | D8 | GPIO2 | D13 | GPIO17 |
| D3 | GPIO5 | D9 | GPIO4 | D14 | GPIO16 |
| D4 | GPIO6 | D10 | GPIO3 | D15 | GPIO11 |
| D5 | GPIO7 | – | – | D16 | GPIO12 |
| – | – | – | – | D17 | GPIO10 |
| – | – | – | – | D18 | GPIO9 |
In the Arduino-Pico core, a bare number is the GPIO number: digitalWrite(6, HIGH) drives GPIO6, which is D4, not D6. Write the pin names ( D4, A0) and the XIAO RP2350 variant file does the mapping for you. MicroPython and the Pico SDK use GPIO numbers only. Here are the electrical limits (RP2350 datasheet, release 8):
- Logic level 3.3v. GPIO0–25 are 5v tolerant, but only while the board is powered (IOVDD at 3.3v): never put 5v on a pin of an unpowered board. The ADC pins (D0–D2) are 3.3v only.
- Drive strength is set per pin: 2mA, 4mA, 8mA or 12mA, and 4mA by default. The sum of all I/O currents must stay under 100mA.
- Internal pull-ups and pull-downs on every GPIO, and Schmitt-trigger inputs.
- Every GPIO can trigger an interrupt: attachInterrupt(digitalPinToInterrupt(D3), isr, FALLING) works on any of the 19 pins.
- The GPIOs you don’t see: GPIO19 (battery-sense enable), GPIO22/23 (RGB LED), GPIO25 (user LED), GPIO29 (battery ADC). GPIO8, 13, 14, 15, 18 and 24 aren’t connected at all.
Note: RP2350-E9: on chips of the first production stepping (A2), a GPIO set as an input can leak about 120µA and sit at around 2.2v when nothing drives it, and the internal pull-down is too weak to pull it LOW (RP2350 datasheet, appendix D.5.1). A button wired to 3.3v with INPUT_PULLDOWN then reads HIGH forever (element14 thread by a XIAO RP2350 owner). Wire buttons to GND with INPUT_PULLUP, or add an external pull-down of 8.2kΩ or less. The A3 stepping fixed it; Seeed doesn’t say which stepping each batch uses, and early boards are A2 (the CHIP_ID register’s REVISION field reads 2 on A2).
Learn more in our Raspberry Pi Pico Digital Input & Output Tutorial (C/C++ SDK).
XIAO RP2350 ADC Pins
The XIAO RP2350 has 3 ADC pins: A0 (D0, GPIO26), A1 (D1, GPIO27) and A2 (D2, GPIO28). The RP2350A’s fourth ADC channel, GPIO29, is wired to the battery divider, and a fifth internal channel reads the chip’s temperature sensor. The ADC pins are highlighted in green in the pinout diagram.

| Pin | GPIO | ADC Channel | Note |
|---|---|---|---|
| A0 / D0 | GPIO26 | ADC0 | Not 5v tolerant |
| A1 / D1 | GPIO27 | ADC1 | Not 5v tolerant |
| A2 / D2 | GPIO28 | ADC2 | Not 5v tolerant |
| (internal) | GPIO29 | ADC3 | Battery voltage ÷ 2, enabled by GPIO19 |
| (internal) | – | ADC4 | Temperature sensor |
The ADC is 12-bit at up to 500ksps, with the 3.3v rail as its reference, so one step is about 0.8mV. In Arduino, call analogReadResolution(12) to get 0–4095 instead of the default 0–1023. In MicroPython, ADC(Pin(26)).read_u16() returns 0–65535.
Note: Never put more than 3.3v on A0–A2: unlike the other GPIOs, the ADC pins are not 5v tolerant. Use a voltage divider for anything higher, as the board does for the battery.
There are so many sensors that we can read with the ADC pins, which include: potentiometers, LDRs, NTC thermistors, soil moisture sensors, joysticks, current sensors, and much more.
XIAO RP2350 PWM Pins
All 19 GPIO pins on the XIAO RP2350 can output PWM. The RP2350 has 12 PWM slices, each with two outputs (A and B) that share one frequency but have their own duty cycle. On the RP2350A’s GPIO0–29, slices 0–7 repeat every 16 GPIOs, so the XIAO’s pins use slices 0–6, and a few pins share the same output. The PWM pins are marked in the pinout diagram.

XIAO RP2350 PWM Pins: D0–D18 (all 19 GPIOs).
| Slice | Channel A | Channel B |
|---|---|---|
| PWM0 | D6 (GPIO0), D14 (GPIO16) | D7 (GPIO1), D13 (GPIO17) |
| PWM1 | D8 (GPIO2) | D10 (GPIO3) |
| PWM2 | D9 (GPIO4), D12 (GPIO20) | D3 (GPIO5), D11 (GPIO21) |
| PWM3 | D4 (GPIO6) | D5 (GPIO7) |
| PWM4 | – | D18 (GPIO9) |
| PWM5 | D0 (GPIO26), D17 (GPIO10) | D1 (GPIO27), D15 (GPIO11) |
| PWM6 | D2 (GPIO28), D16 (GPIO12) | – |
Pins listed in the same cell output the same signal, and both channels of a slice run at the same frequency. In Arduino, analogWrite(D3, 128) just works, and analogWriteFreq() / analogWriteRange() set the frequency and the resolution for all pins.
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.
XIAO RP2350 UART Pins
The XIAO RP2350 has 2 hardware UARTs, plus the USB CDC port. In the Arduino-Pico core, Serial is the USB-C port, Serial1 is UART0 on D6 (TX) and D7 (RX), and Serial2 is UART1 on the back pads D12 (TX) and D11 (RX). The UART pins are highlighted in blue in the pinout diagram.

XIAO RP2350 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 |
| UART0 | Serial1 | D6 (GPIO0) | D7 (GPIO1) | Also the Pico SDK’s default UART |
| UART1 | Serial2 | D12 (GPIO20) | D11 (GPIO21) | Back pads |
|
1 2 3 4 5 6 7 8 9 |
void setup() { Serial.begin(115200); // USB-C to the PC 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 } |
Each UART can also move to other pins it’s allowed on with Serial1.setTX() / setRX() before begin(), for example UART1 to D3/D9 (GPIO5 RX, GPIO4 TX). Remember the RX pin of the RP2350 is 3.3v logic: a 5v module’s TX line is fine on GPIO0–25 while the board is powered, but a level shifter is the safe choice.
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 Raspberry Pi Pico Serial Over USB Tutorial (C/C++ SDK).
XIAO RP2350 I2C Pins
The XIAO RP2350 has 2 I2C buses. The XIAO-standard I2C pins D4 (SDA) and D5 (SCL) are I2C1, which the Arduino-Pico core calls Wire1. The core’s default Wire (I2C0) is on the back pads D14 (SDA, GPIO16) and D13 (SCL, GPIO17). The I2C pins are highlighted in yellow in the pinout diagram.

XIAO RP2350 Default I2C Pins: D4 (SDA) and D5 (SCL) on Wire1; D14 (SDA) and D13 (SCL) on Wire.
| Bus | Arduino Object | SDA | SCL | Pico SDK / MicroPython |
|---|---|---|---|---|
| I2C1 | Wire1 | D4 (GPIO6) | D5 (GPIO7) | Default bus (I2C(1)) |
| I2C0 | Wire | D14 (GPIO16) | D13 (GPIO17) | I2C(0, sda=Pin(16), scl=Pin(17)) |
This is the problem XIAO RP2350 owners hit most: a sensor on D4/D5 that works on every other XIAO isn’t found, because the sketch uses Wire (Seeed forum, Arduino forum). Grove shields and the XIAO expansion board all use D4/D5, so use Wire1, or move Wire with Wire.setSDA(6); Wire.setSCL(7); before Wire.begin() if a library insists on Wire. Here is an I2C scanner on D4/D5:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#include <Wire.h> void setup() { Serial.begin(115200); Wire1.begin(); // I2C1 on D4 (SDA) and D5 (SCL) } void loop() { for (uint8_t addr = 1; addr < 127; addr++) { Wire1.beginTransmission(addr); if (Wire1.endTransmission() == 0) Serial.printf("Found 0x%02X\n", addr); } delay(2000); } |
Note: There are no I2C pull-up resistors on the XIAO RP2350, so add 4.7kΩ pull-ups to 3.3v unless your module already has them (most breakout boards and Grove modules do).
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.
XIAO RP2350 SPI Pins
The XIAO RP2350 has 2 SPI ports. The default Arduino SPI (SPI0) is on D8 (SCK), D9 (MISO), D10 (MOSI) and D3 (SS), and SPI1 is on the back pads D17 (SCK), D16 (MISO), D15 (MOSI) and D18 (SS). The SPI pins are highlighted in pink in the pinout diagram.

XIAO RP2350 Default SPI Pins: D8 (SCK), D9 (MISO), D10 (MOSI), and D3 (SS).
| Signal | SPI (SPI0) | SPI1 (back pads) |
|---|---|---|
| SCK | D8 (GPIO2) | D17 (GPIO10) |
| MISO (RX) | D9 (GPIO4) | D16 (GPIO12) |
| MOSI (TX) | D10 (GPIO3) | D15 (GPIO11) |
| SS (CS) | D3 (GPIO5) | D18 (GPIO9) |
Any free GPIO can be a chip select, so you can hang several SPI devices on the same bus. The SPI pins have no boot role on the RP2350, so nothing on the bus can stop the board from starting.
There are so many modules that we can interface with the SPI bus, which include: TFT displays (ST7789, ILI9341), SD card modules, LoRa radios (SX1262), nRF24L01 radios, MAX7219 LED drivers, and much more.
XIAO RP2350 SWD Debug, BOOT and RUN Pins
The XIAO RP2350’s debug and boot signals are all on the back pads: CLK (SWCLK) and DIO (SWDIO) for SWD, RST (RUN) for reset, and BOOT for the BOOTSEL input. None of the edge pins has a boot or debug role, so you can use all of them freely.
| Pad / Button | Signal | What It Does |
|---|---|---|
| CLK | SWCLK | SWD clock |
| DIO | SWDIO | SWD data |
| RST pad / R button | RUN | Pull LOW to reset the RP2350 (10kΩ pull-up) |
| BOOT pad / B button | QSPI_SS | Hold LOW at reset to start the USB bootloader (BOOTSEL) |
To debug with breakpoints, wire a Raspberry Pi Debug Probe (or any CMSIS-DAP probe) to CLK, DIO and GND, and use OpenOCD from the Raspberry Pi Pico VS Code extension or PlatformIO. The pads are tiny, so solder thin wires or use a carrier board with matching pads.
XIAO RP2350 BOOTSEL Mode and Recovery
If your XIAO RP2350 isn’t detected anymore, or a new firmware leaves it without a serial port, use the RP2350’s ROM bootloader. It lives inside the chip, so no firmware can erase it:
- Hold the B (BOOT) button and plug in the USB cable, or hold B and tap R (RESET), then release B.
- A USB drive named RP2350 appears on your PC.
- Drag a UF2 file onto it: a MicroPython firmware, a compiled Arduino sketch, or a Pico SDK program. The board reboots into it.
Note: Some 2024–2025 MicroPython builds for the XIAO RP2350 left the board without a serial port after flashing, because the board’s P25Q16H flash needs a slower QSPI clock than the default, and a pico-sdk change made the board’s clock setting ineffective for a while (pico-sdk PR 2098). If that happens, enter BOOTSEL mode and copy the latest official firmware from micropython.org (v1.29.0 as I write this).
XIAO RP2350 On-Board Features
Besides the pins, the XIAO RP2350 has two buttons, three LEDs, and a few hidden GPIOs that control them. Here’s what each one does.
| Part | Pin / Connection | What It Does |
|---|---|---|
| B (BOOT button) | QSPI_SS to GND | Hold at reset for BOOTSEL (USB drive) mode |
| R (RESET button) | RUN to GND | Resets the RP2350 |
| USR (yellow LED) | GPIO25, active LOW | User LED: LED_BUILTIN = 25 |
| PWR (red LED) | Charger NCHG pin | On while a battery charges; not controlled by software |
| RGB LED | Data GPIO22, power GPIO23 | WS2812-compatible RGB (not RGBW) LED |
| Battery sense | Enable GPIO19, ADC GPIO29 | Reads BAT+ through a 470kΩ / 470kΩ divider |
XIAO RP2350 RGB LED and User LED
The user LED is wired from 3.3v to GPIO25, so it lights when the pin is LOW: digitalWrite(LED_BUILTIN, LOW) turns it on. The RGB LED needs two pins: GPIO23 HIGH powers it through a load switch, then you send the color data on GPIO22. If you skip GPIO23, the LED stays dark whatever you send. It’s a 3-color RGB LED, so set your library to RGB, not RGBW, or the colors come out wrong (Seeed forum). With the Adafruit NeoPixel library:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#include <Adafruit_NeoPixel.h> Adafruit_NeoPixel rgb(1, 22, NEO_GRB + NEO_KHZ800); // RGB LED data on GPIO22 void setup() { pinMode(23, OUTPUT); digitalWrite(23, HIGH); // power the RGB LED (GPIO23) rgb.begin(); rgb.setBrightness(40); } void loop() { rgb.setPixelColor(0, rgb.Color(0, 0, 255)); rgb.show(); delay(500); rgb.setPixelColor(0, 0); rgb.show(); delay(500); } |
Getting Started With XIAO RP2350
You can program the XIAO RP2350 with the Arduino IDE, MicroPython, CircuitPython, the Raspberry Pi Pico C/C++ SDK, PlatformIO, Zephyr or NuttX, all over the USB-C cable. No external programmer is needed.
- Arduino IDE: add Earle Philhower’s arduino-pico board package (Raspberry Pi Pico/RP2040/RP2350), version 4.2.0 or newer, and select Seeed XIAO RP2350. Older versions map the pins wrongly. For the very first upload, hold B while you plug in the board.
- MicroPython: download the SEEED_XIAO_RP2350 firmware from micropython.org and drag it onto the RP2350 drive. Use GPIO numbers: Pin(25) is the user LED.
- Pico C/C++ SDK: set PICO_BOARD=seeed_xiao_rp2350; the board file sets the default UART (D6/D7), I2C (D4/D5), LED (GPIO25) and RGB LED pins.
- PlatformIO: Seeed’s wiki has a PlatformIO setup guide with the arduino-pico framework; it’s also Seeed’s suggested route to the low-power pico-extras code.
| Arduino Name | Pin | Default |
|---|---|---|
Serial | USB-C | USB CDC |
Serial1 / Serial2 | D6 TX, D7 RX / D12 TX, D11 RX | UART0 / UART1 |
Wire | D14 (SDA), D13 (SCL) | I2C0 on the back pads |
Wire1 | D4 (SDA), D5 (SCL) | I2C1, the XIAO-standard pins |
SPI / SPI1 | D8 / D9 / D10, SS D3 / D17 / D16 / D15, SS D18 | SPI0 / SPI1 |
A0–A2 | D0–D2 | ADC0–ADC2 |
LED_BUILTIN | GPIO25 | Yellow user LED (active LOW) |
Since the RP2350 is the Pico 2’s chip, almost every Raspberry Pi Pico tutorial applies to the XIAO RP2350: just translate the GP numbers into XIAO pin names with the tables above.
XIAO RP2350 Common Problems & Fixes
Why isn’t my I2C sensor on D4/D5 found in Arduino? Arduino Wire is on the back pads (GPIO16/17). Use Wire1 for D4/D5, or call Wire.setSDA(6); Wire.setSCL(7); before Wire.begin().
Why does a button with INPUT_PULLDOWN always read HIGH? That’s the RP2350-E9 erratum on A2-stepping chips. Wire the button to GND and use INPUT_PULLUP, or add an external pull-down of 8.2kΩ or less.
Why does the RGB LED stay dark? Set GPIO23 HIGH first: it powers the LED. And use an RGB (GRB) pixel type, not RGBW.
Why does MicroPython say “Pin doesn’t have ADC capabilities” for ADC(29)? Older MicroPython builds (v1.26.1, for example) had a board-file bug (MicroPython issue 18076, closed in July 2026). Update the firmware, or use ADC(3) instead of ADC(29).
Why is there no serial port after flashing MicroPython? Some older builds used a flash clock too fast for the P25Q16H. Enter BOOTSEL mode (hold B, plug in) and copy the latest official firmware.
Why are my Arduino pins wrong? You’re on an arduino-pico version older than 4.2.0. Update the board package.
Why is the 5V pin dead on battery? It’s USB VBUS, so 0v without USB. That’s expected: power 5v loads from their own supply.
Does the XIAO RP2350 have Wi-Fi or Bluetooth? No. The RP2350 has no radio. For wireless in the same footprint, look at the XIAO ESP32 boards.
Is there an XIAO RP2350 Plus? Not as of November 2026. Seeed makes an XIAO RP2040 Plus; “RP2350 Plus” in a few news headlines was a typo.
XIAO RP2350 vs XIAO RP2040 vs Raspberry Pi Pico 2
The XIAO RP2350 sits between Seeed’s older XIAO RP2040 (same footprint, older chip) and the Raspberry Pi Pico 2 (same chip, bigger board). Here’s how they compare:
| Feature | XIAO RP2350 | XIAO RP2040 | Raspberry Pi Pico 2 |
|---|---|---|---|
| Chip | RP2350A | RP2040 | RP2350A |
| CPU | 2x Cortex-M33 / RISC-V, 150MHz | 2x Cortex-M0+, 133MHz | 2x Cortex-M33 / RISC-V, 150MHz |
| SRAM / flash | 520KB / 2MB | 264KB / 2MB | 520KB / 4MB |
| Size | 21 × 17.8mm | 21 × 17.8mm | 51 × 21mm |
| GPIO | 19 (11 edge + 8 back pads) | 11 | 26 |
| ADC pins | 3 (+ battery sense) | 4 | 3 (+ VSYS sense) |
| I2C / UART / SPI on pins | 2 / 2 / 2 | 1 / 1 / 1 | 2 / 2 / 2 |
| Battery charger | Yes (160mA, BAT pads) | No | No |
| Security | Secure boot, TrustZone, OTP | – | Secure boot, TrustZone, OTP |
| USB | USB-C | USB-C | Micro-USB |
Pick the XIAO RP2350 for small, battery-powered builds and the XIAO ecosystem of expansion boards; it’s a drop-in upgrade for most XIAO RP2040 projects (but check your I2C bus in Arduino). Pick the Pico 2 when you need many pins on a breadboard. If you came here for the bare chip’s RP2350 pinout, the Pico boards expose almost all of its GPIOs; my Raspberry Pi Pico & Pico W pinout guide explains the Pico layout, which the Pico 2 shares.
XIAO RP2350 Pin Details
Here is every XIAO RP2350 pin in physical order, with its GPIO, main functions, all its RP2350 functions, 5v tolerance, 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, pins 8–14 run up the right edge, and the back pads follow.
All GPIOs also have SIO (software I/O) and PIO0–PIO2 functions, which the table leaves out. “5v tolerant” means while the board is powered.
Click to expand the full pin table (26 pins)
| Pin | Label | GPIO | Main Functions | All Functions | 5v Tolerant | Description |
|---|---|---|---|---|---|---|
| 1 | D0 / A0 | GPIO26 | ADC0, A0 | PWM5 A, SPI1 SCK, UART1 CTS / TX, I2C1 SDA | No | Analog input A0; 3.3v only. |
| 2 | D1 / A1 | GPIO27 | ADC1, A1 | PWM5 B, SPI1 TX, UART1 RTS / RX, I2C1 SCL | No | Analog input A1; 3.3v only. |
| 3 | D2 / A2 | GPIO28 | ADC2, A2 | PWM6 A, SPI1 RX, UART0 TX, I2C0 SDA | No | Analog input A2; 3.3v only. |
| 4 | D3 | GPIO5 | SPI SS | PWM2 B, SPI0 CSn, UART1 RX, I2C0 SCL | Yes | The default SPI chip select; a good general pin. |
| 5 | D4 | GPIO6 | Wire1 SDA | PWM3 A, SPI0 SCK, UART1 CTS / TX, I2C1 SDA | Yes | XIAO-standard I2C data (I2C1, Wire1 in Arduino). |
| 6 | D5 | GPIO7 | Wire1 SCL | PWM3 B, SPI0 TX, UART1 RTS / RX, I2C1 SCL | Yes | XIAO-standard I2C clock (I2C1, Wire1 in Arduino). |
| 7 | D6 | GPIO0 | Serial1 TX | PWM0 A, SPI0 RX, UART0 TX, I2C0 SDA | Yes | UART0 transmit. |
| 8 | D7 | GPIO1 | Serial1 RX | PWM0 B, SPI0 CSn, UART0 RX, I2C0 SCL | Yes | UART0 receive. |
| 9 | D8 | GPIO2 | SPI SCK | PWM1 A, UART0 CTS / TX, I2C1 SDA | Yes | The default SPI clock. |
| 10 | D9 | GPIO4 | SPI MISO | PWM2 A, UART1 TX, I2C0 SDA | Yes | The default SPI data-in pin. |
| 11 | D10 | GPIO3 | SPI MOSI | PWM1 B, UART0 RTS / RX, I2C1 SCL | Yes | The default SPI data-out pin. |
| 12 | 3V3 | – | 3.3v output | – | – | SGM6029 buck output, 1A shared with the board. |
| 13 | GND | – | Ground | – | – | Ground. |
| 14 | 5V | – | USB VBUS | – | – | 5v from the USB-C connector; 0v on battery. |
| back | D11 | GPIO21 | Serial2 RX | PWM2 B, SPI0 CSn, UART1 RX, I2C0 SCL, CLOCK GPOUT0 | Yes | UART1 receive on the back pads. |
| back | D12 | GPIO20 | Serial2 TX | PWM2 A, SPI0 RX, UART1 TX, I2C0 SDA, CLOCK GPIN0 | Yes | UART1 transmit on the back pads. |
| back | D13 | GPIO17 | Wire SCL | PWM0 B, SPI0 CSn, UART0 RX, I2C0 SCL, HSTX | Yes | The Arduino core’s default I2C clock. |
| back | D14 | GPIO16 | Wire SDA | PWM0 A, SPI0 RX, UART0 TX, I2C0 SDA, HSTX | Yes | The Arduino core’s default I2C data. |
| back | D15 | GPIO11 | SPI1 MOSI | PWM5 B, SPI1 TX, UART1 RTS / RX, I2C1 SCL | Yes | SPI1 data out. |
| back | D16 | GPIO12 | SPI1 MISO | PWM6 A, SPI1 RX, UART0 TX, I2C0 SDA, HSTX, CLOCK GPIN0 | Yes | SPI1 data in. |
| back | D17 | GPIO10 | SPI1 SCK | PWM5 A, SPI1 SCK, UART1 CTS / TX, I2C1 SDA | Yes | SPI1 clock. |
| back | D18 | GPIO9 | SPI1 SS | PWM4 B, SPI1 CSn, UART1 RX, I2C0 SCL | Yes | SPI1 chip select. |
| back | CLK / DIO | SWCLK / SWDIO | SWD | – | – | Debug probe connection. |
| back | RST | RUN | Reset | – | – | Pull LOW to reset, like the R button. |
| back | BOOT | QSPI_SS | BOOTSEL | – | – | Pull LOW at reset for the USB bootloader, like the B button. |
| back | BAT+ / BAT− | – | Battery | – | – | 3.7v Li-ion/LiPo cell, charged at 160mA. |
Wrap Up
To conclude this guide article, the XIAO RP2350 is a very solid board for small, battery-powered projects that need real processing power. It gives you the Pico 2’s 150MHz RP2350 with 520KB of SRAM, 19 GPIOs, a battery charger, and a battery-voltage reading on a board the size of your thumbnail. Just remember the board-level gotchas: Arduino Wire is on the back pads (use Wire1 for D4/D5), the ADC pins are 3.3v only, the RGB LED needs GPIO23 HIGH, the 5V pin is dead on battery, and use pull-ups rather than pull-downs on A2-stepping chips.
I hope you’ve found this guide helpful. For more boards, check out the Pinouts, Datasheets & Schematic Diagrams Library. Follow this Raspberry Pi Pico Series of Tutorials to learn more about programming RP2040 and RP2350 boards, and see my RP2350 hardware PCB design in KiCAD guide if you want to design your own RP2350 board.
If you’re just getting started with Raspberry Pi Pico boards, you need to check out the Raspberry Pi Pico Getting Started Ultimate Guide below.
This is the ultimate guide for beginners getting started with Raspberry Pi Pico. It’ll help you learn the fundamentals of hardware and software to understand the basics required to accelerate your learning journey with Raspberry Pi Pico programming.




