Skip to content

Guide

Raspberry Pi Pico 2 W Pinout: Every GPIO, ADC, and What Changed from Pico W

A complete Raspberry Pi Pico 2 W pinout reference covering GPIO, ADC, PWM, I2C, SPI, and UART -- plus the two things that actually changed from the Pico W: RP2350 analog behavior and a relocated debug header.

  • 8 min read
  • Updated October 31, 2026
Raspberry Pi Pico 2 W Pinout: Every GPIO, ADC, and What Changed from Pico W

The Raspberry Pi Pico 2 W is a drop-in upgrade for the original Pico W: the same 40-pin castellated layout, the same board outline and the same Infineon CYW43439 Wi-Fi and Bluetooth chip, with the RP2040 swapped for the much faster RP2350. Almost every Pico W wiring diagram and MicroPython script carries straight over.

The differences live inside the chip: two Cortex-M33 cores at 150 MHz instead of two Cortex-M0+ at 133 MHz, twice the RAM and flash, more PWM channels, a security architecture the RP2040 never had, and one input-pin erratum on early chips that's worth knowing before you rely on internal pull-down resistors. This guide covers the full pinout, then each of those differences in turn.

Raspberry Pi Pico 2 W pinout: all 40 pins with physical numbers, GPIO names, I2C, SPI, UART and ADC functions, power and ground
Pico 2 W top view with every pin labelled, from the SolderHub Simulator

What Changed From the Pico W

Before the pin-by-pin breakdown, the headline differences worth knowing:

AspectPico W (RP2040)Pico 2 W (RP2350)
Physical pinout40 pinsIdentical 40-pin layout
Usable GPIOs on the header26 (GP0–22, GP26–28)Same 26, same numbering
CPU2 × Cortex-M0+ at 133 MHz2 × Cortex-M33 at 150 MHz (or 2 × Hazard3 RISC-V)
RAM / flash264 KB / 2 MB520 KB / 4 MB
ADC12-bit, GP26–28 + internal12-bit, GP26–28 + internal (unchanged)
PWM8 slices, 16 channels12 slices, 24 channels
PIO2 blocks, 8 state machines3 blocks, 12 state machines
Debug (SWD) padsCentre of the boardCentre of the board (same place)
Wireless chipInfineon CYW43439Same CYW43439
SecurityNoneArm TrustZone, signed boot, OTP key storage

The GPIO numbering and function assignment is, pin-for-pin, the same as the original Pico W. If you already have a Pico W project's wiring diagram, it applies directly to the Pico 2 W, debug pads included.


Full GPIO Pinout Reference

GPIOPin #Default FunctionNotes
GP01UART0 TXAlso SPI0/I2C0 capable
GP12UART0 RXAlso SPI0/I2C0 capable
GND3Ground
GP24General I/OSPI0/I2C1 capable
GP35General I/OSPI0/I2C1 capable
GP46I2C0 SDA (default)UART1 TX alternate
GP57I2C0 SCL (default)UART1 RX alternate
GND8Ground
GP69General I/OI2C1 SDA alternate
GP710General I/OI2C1 SCL alternate
GP811General I/OSPI1 capable
GP912General I/OSPI1 capable
GND13Ground
GP1014General I/OSPI1 capable
GP1115General I/OSPI1 capable
GP1216General I/OI2C0 SDA alternate
GP1317General I/OI2C0 SCL alternate
GND18Ground
GP1419General I/OI2C1 SDA alternate
GP1520General I/OI2C1 SCL alternate
GP1621SPI0 RX (default)I2C0 SDA, UART0 TX alternate
GP1722SPI0 CSn (default)I2C0 SCL, UART0 RX alternate
GND23Ground
GP1824SPI0 SCK (default)I2C1 SDA alternate
GP1925SPI0 TX (default)I2C1 SCL alternate
GP2026General I/OI2C0 SDA alternate
GP2127General I/OI2C0 SCL alternate
GND28Ground
GP2229General I/ONo default peripheral
RUN30ResetPull LOW to reset the RP2350
GP2631ADC0I2C1 SDA alternate
GP2732ADC1I2C1 SCL alternate
AGND33Analog groundGround reference for the ADC
GP2834ADC2
ADC_VREF35ADC referenceFiltered 3.3 V by default
3V3(OUT)363.3 V outputKeep loads under about 300 mA
3V3_EN37Regulator enablePull LOW to switch the 3.3 V regulator off
GND38Ground
VSYS39System input1.8–5.5 V
VBUS40USB 5 VOnly present with USB connected

Pins 1–20 run down the left edge with the USB connector at the top, and 21–40 run back up the right edge. GP23, GP24, GP25 and GP29 never reach the header: on the W boards they're the control and SPI lines to the wireless chip.

Where the Debug Pads Are

The three SWD debug signals (SWCLK, GND, SWDIO) sit in different places on wireless and non-wireless Picos. On the plain Pico and Pico 2 they're a 3-pin header at the end of the board opposite the USB socket. On the Pico W and Pico 2 W that end is taken by the antenna, so the three pads move to the middle of the board. Moving from a Pico W to a Pico 2 W changes nothing, but a carrier PCB or a debug-probe photo designed for the non-wireless Pico 2 won't line up with a Pico 2 W.


ADC: 3 Usable Channels, One Internal

GPIOADC ChannelNotes
GP26ADC0General-purpose analog input, 0-3.3V range
GP27ADC1General-purpose analog input
GP28ADC2General-purpose analog input
--ADC3 (GP29)Reads VSYS ÷ 3 internally; GP29 is shared with the wireless chip's SPI clock
--ADC4Internal temperature sensor, no external pin

The ADC is the same as on the RP2040: 12-bit, 500 kilosamples per second, 0–3.3 V. In MicroPython, ADC(26).read_u16() returns a value scaled to 0–65535 whatever the chip, so code moves between boards unchanged. For quieter readings, take the ground for analog sensors from AGND (pin 33) rather than a digital GND pin.

On the W boards, GP29 doubles as the SPI clock to the wireless chip, so reading VSYS through ADC3 means pausing the wireless link: drive GP25 (the wireless chip select) HIGH first, read, then hand the pins back. Raspberry Pi's Pico W datasheet describes the sequence. None of GP23, GP24, GP25 or GP29 is on the header on any Pico, so this never affects your own wiring.

Erratum E9: Don't Rely on Internal Pull-Downs on Early Chips

The first production RP2350 stepping (A2) has a known input-pad erratum, E9: with the internal pull-down enabled, a pin can latch at roughly 2 V and keep reading HIGH after the signal that drove it has gone away. Raspberry Pi fixed it in the later A4 stepping. If your board has an A2 chip, or you don't know which one it has, use an external pull-down of 8.2 kΩ or less, or wire inputs active-LOW with the internal pull-up, which isn't affected. A button between the GPIO and GND with Pin.PULL_UP is the simplest safe pattern.

Wiring diagram: potentiometer wiper on GP26 (ADC0), ends on 3V3(OUT) and AGND. Exported from the SolderHub Simulator

PWM: More Flexible Slice Allocation

The RP2350 keeps the RP2040's PWM architecture: GPIOs are grouped into slices, each slice has two channels (A and B), and the two channels of a slice share one frequency while keeping independent duty cycles. The RP2350 has 12 slices (24 channels) against the RP2040's 8 (16), so the header pins wrap around the slices less, and it's easier to give each servo or LED its own frequency.

main.py
# MicroPython -- basic PWM fade example on GP15
from machine import Pin, PWM
import time

led = PWM(Pin(15))
led.freq(1000)

while True:
    for duty in range(0, 65535, 512):
        led.duty_u16(duty)
        time.sleep_ms(5)
    for duty in range(65535, 0, -512):
        led.duty_u16(duty)
        time.sleep_ms(5)

Nearly every GPIO on the board supports PWM output -- the practical constraint is almost never "can this pin do PWM," it's "does this pin's slice conflict with another PWM signal I already assigned," which is worth checking against the SDK's slice-mapping table before finalizing a pinout for anything with more than 2-3 simultaneous PWM outputs.


I2C, SPI, and UART Pin Mapping

I2C: Two peripherals, I2C0 and I2C1, each mappable to several GPIO pairs. The C SDK and the Arduino-Pico core default to I2C0 on GP4 (SDA) / GP5 (SCL). MicroPython is different: I2C(0) with no pins given uses GP8 (SDA) / GP9 (SCL), and I2C(1) uses GP6 / GP7. That mismatch is a common reason a sensor wired to GP4/GP5 "isn't found", so always pass the pins: I2C(0, sda=Pin(4), scl=Pin(5)). Each peripheral only reaches the pins listed in the table above, not any GPIO, and you get two hardware I2C buses in total. (Software I2C via SoftI2C works on any pins if you need a third.)

SPI: Similarly, SPI0 and SPI1 are available, each with flexible pin mapping. Common defaults are SPI0 on GP16 (MISO) / GP18 (SCK) / GP19 (MOSI) / GP17 (CS), and SPI1 on GP8 (MISO) / GP10 (SCK) / GP11 (MOSI) / GP9 (CS).

UART: UART0 and UART1, remappable, with GP0 (TX) / GP1 (RX) as the most common default for UART0 -- also the pair used for USB-serial style debugging in many project templates.

Wiring diagram: SSD1306 OLED on GP4 (SDA) and GP5 (SCL) with 3V3 and GND. Exported from the SolderHub Simulator

The Onboard LED: A WiFi-Chip Quirk That Carries Over

One behavior that trips up people new to the wireless Pico variants, unchanged from the Pico W: the onboard LED is not wired to a standard GPIO the way it is on the non-wireless Pico. It's connected through the CYW43439 wireless chip itself, on a line labeled WL_GPIO0. This means the simple machine.Pin(25, machine.Pin.OUT) pattern that toggles the LED on a plain Pico does nothing on the Pico 2 W -- instead:

main.py
# MicroPython -- correct LED control on Pico 2 W
from machine import Pin
import time

led = Pin("LED", Pin.OUT)  # Resolves to the WiFi-chip-routed LED automatically

while True:
    led.toggle()
    time.sleep(0.5)

Using the string "LED" instead of a numeric pin lets MicroPython resolve the correct underlying pin regardless of which Pico variant the code runs on -- this is the recommended, forward-compatible way to write LED-blink code for any wireless Pico board, and it's worth using even on the plain Pico 2 for portability.


Quick Reference: Safe First Picks

NeedRecommended GPIO(s)Why
First analog sensorGP26 (ADC0)Simplest, most-documented ADC pin
First I2C deviceGP4 (SDA) / GP5 (SCL)Matches nearly every library's default
First SPI deviceGP16/17/18/19Standard SPI0 default mapping
General digital I/OGP14, GP15No default peripheral role, minimal conflict risk
Onboard LEDPin("LED")Only correct method on wireless variants

As with most microcontroller pinouts, starting a new project on the "safe first picks" and only reaching for more specialized pins once the simple options are exhausted keeps early debugging sessions from getting tangled up in peripheral conflicts that have nothing to do with the actual bug being chased.

The RP2350's Less-Obvious Feature: Hardware Security

Beyond the doubled RAM and flash, the RP2350 introduces a feature that doesn't show up in a pinout diagram but is worth knowing about for anyone building a product rather than a one-off project: hardware-backed security partitioning based on Arm TrustZone, plus support for signed boot. This lets firmware separate a "secure world" (handling things like credentials or cryptographic keys) from the main application code at the silicon level, something the RP2040 had no equivalent for.

For hobbyist projects this rarely matters day to day, but it's part of why the RP2350 positions itself as a more production-ready successor rather than purely a speed bump -- Raspberry Pi's own documentation frames it as suitable for commercial designs that need tamper-resistant credential storage, a category the original Pico line was never really aimed at. Also notable: the RP2350 supports both Arm Cortex-M33 and RISC-V Hazard3 cores on the same silicon, selectable at boot, though the Arm cores are what ship active by default and what nearly all existing MicroPython/C SDK tooling targets.


Power Pins and Supply Options

PinFunctionNotes
VBUS5V from USBPresent only when USB is connected; not a reliable always-on 5V source
VSYS1.8-5.5V inputThe preferred external power input -- battery packs, solar, or a regulated supply should connect here, not VBUS
3V3Onboard 3.3V outputRegulated output for small peripherals; Raspberry Pi recommends keeping the load under about 300 mA
3V3_ENRegulator enablePull LOW to disable the onboard 3.3V regulator entirely, useful for ultra-low-power sleep designs
GNDGroundMultiple ground pins broken out around the board edge

For battery-powered builds, VSYS is almost always the right connection point rather than VBUS, since VBUS is physically tied to the USB connector's 5V line and isn't meant to be back-fed externally. A LiPo-to-VSYS connection through a simple boost or buck-boost regulator, depending on the battery's voltage range relative to VSYS's 1.8-5.5V window, is the standard pattern for portable Pico 2 W projects.

Wiring diagram: a battery pack on VSYS (pin 39) and GND (pin 38). Exported from the SolderHub Simulator

Migrating an Existing Pico W Design

For anyone with an existing PCB or breadboard layout built around the Pico W, the practical migration checklist is short: replace internal pull-downs with external ones if the board might have an A2-stepping chip (erratum E9), check any PWM code that assumed the RP2040's slice layout, and re-flash with firmware built for the RP2350 target rather than assuming the RP2040 binary will run (it won't -- the two chips require separately compiled firmware, even though the source code itself is typically unchanged).

Everything else -- GPIO numbering, I2C/SPI/UART defaults, the physical 40-pin castellated footprint for through-hole or SMD mounting -- carries over directly, which is by design. Raspberry Pi's stated goal with the Pico 2 line was pin-compatible continuity specifically so existing carrier boards and enclosures wouldn't need a redesign just to take advantage of the faster chip.

Quick Answers to Common Pico 2 W Pin Questions

Does existing Pico W MicroPython code run unmodified on the Pico 2 W? Almost always, yes, for anything using standard GPIO, I2C, SPI, ADC, and PWM calls -- the pin numbering and API are identical. The things to check are inputs that rely on internal pull-downs (erratum E9 on A2 chips) and that you flashed the RP2350 build of MicroPython (RPI_PICO2_W), not the Pico W build.

Can I use a Pico W's debug probe setup on a Pico 2 W? Yes. Both W boards have the three SWD pads in the middle of the board. Only photos of the non-wireless Pico 2, with its header at the board's end, won't match.

Is the Pico 2 W's WiFi range or performance different from the Pico W? No -- both use the same Infineon CYW43439 wireless chip, so WiFi and Bluetooth performance is effectively identical between the two boards. The performance improvements on the Pico 2 W are entirely on the processing side (RP2350 vs RP2040), not the radio.


Where to Go From Here

Once the E9 pull-down erratum and the MicroPython I2C defaults stop being surprises, migrating an existing Pico W project over is mostly a firmware-target change rather than a rewiring job — the GPIO numbering, I2C/SPI/UART defaults, and 40-pin footprint all carry over directly. From there, the RP2350's hardware security features covered above are worth exploring the moment a project moves from a one-off build toward something meant to ship, since that's the use case they're actually aimed at.

Continue learning

Related articles

All articles

Signal In

Built from what makers search for

The lookups piling up in SolderHub's search bar every day shape what we publish next — new component pages, board guides, and firmware notes, sent out as they go live.

By subscribing you agree to our Privacy Policy. Unsubscribe anytime.