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.
What Changed From the Pico W
Before the pin-by-pin breakdown, the headline differences worth knowing:
| Aspect | Pico W (RP2040) | Pico 2 W (RP2350) |
|---|---|---|
| Physical pinout | 40 pins | Identical 40-pin layout |
| Usable GPIOs on the header | 26 (GP0–22, GP26–28) | Same 26, same numbering |
| CPU | 2 × Cortex-M0+ at 133 MHz | 2 × Cortex-M33 at 150 MHz (or 2 × Hazard3 RISC-V) |
| RAM / flash | 264 KB / 2 MB | 520 KB / 4 MB |
| ADC | 12-bit, GP26–28 + internal | 12-bit, GP26–28 + internal (unchanged) |
| PWM | 8 slices, 16 channels | 12 slices, 24 channels |
| PIO | 2 blocks, 8 state machines | 3 blocks, 12 state machines |
| Debug (SWD) pads | Centre of the board | Centre of the board (same place) |
| Wireless chip | Infineon CYW43439 | Same CYW43439 |
| Security | None | Arm 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
| GPIO | Pin # | Default Function | Notes |
|---|---|---|---|
| GP0 | 1 | UART0 TX | Also SPI0/I2C0 capable |
| GP1 | 2 | UART0 RX | Also SPI0/I2C0 capable |
| GND | 3 | Ground | |
| GP2 | 4 | General I/O | SPI0/I2C1 capable |
| GP3 | 5 | General I/O | SPI0/I2C1 capable |
| GP4 | 6 | I2C0 SDA (default) | UART1 TX alternate |
| GP5 | 7 | I2C0 SCL (default) | UART1 RX alternate |
| GND | 8 | Ground | |
| GP6 | 9 | General I/O | I2C1 SDA alternate |
| GP7 | 10 | General I/O | I2C1 SCL alternate |
| GP8 | 11 | General I/O | SPI1 capable |
| GP9 | 12 | General I/O | SPI1 capable |
| GND | 13 | Ground | |
| GP10 | 14 | General I/O | SPI1 capable |
| GP11 | 15 | General I/O | SPI1 capable |
| GP12 | 16 | General I/O | I2C0 SDA alternate |
| GP13 | 17 | General I/O | I2C0 SCL alternate |
| GND | 18 | Ground | |
| GP14 | 19 | General I/O | I2C1 SDA alternate |
| GP15 | 20 | General I/O | I2C1 SCL alternate |
| GP16 | 21 | SPI0 RX (default) | I2C0 SDA, UART0 TX alternate |
| GP17 | 22 | SPI0 CSn (default) | I2C0 SCL, UART0 RX alternate |
| GND | 23 | Ground | |
| GP18 | 24 | SPI0 SCK (default) | I2C1 SDA alternate |
| GP19 | 25 | SPI0 TX (default) | I2C1 SCL alternate |
| GP20 | 26 | General I/O | I2C0 SDA alternate |
| GP21 | 27 | General I/O | I2C0 SCL alternate |
| GND | 28 | Ground | |
| GP22 | 29 | General I/O | No default peripheral |
| RUN | 30 | Reset | Pull LOW to reset the RP2350 |
| GP26 | 31 | ADC0 | I2C1 SDA alternate |
| GP27 | 32 | ADC1 | I2C1 SCL alternate |
| AGND | 33 | Analog ground | Ground reference for the ADC |
| GP28 | 34 | ADC2 | |
| ADC_VREF | 35 | ADC reference | Filtered 3.3 V by default |
| 3V3(OUT) | 36 | 3.3 V output | Keep loads under about 300 mA |
| 3V3_EN | 37 | Regulator enable | Pull LOW to switch the 3.3 V regulator off |
| GND | 38 | Ground | |
| VSYS | 39 | System input | 1.8–5.5 V |
| VBUS | 40 | USB 5 V | Only 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
| GPIO | ADC Channel | Notes |
|---|---|---|
| GP26 | ADC0 | General-purpose analog input, 0-3.3V range |
| GP27 | ADC1 | General-purpose analog input |
| GP28 | ADC2 | General-purpose analog input |
| -- | ADC3 (GP29) | Reads VSYS ÷ 3 internally; GP29 is shared with the wireless chip's SPI clock |
| -- | ADC4 | Internal 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.
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.
# 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.
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:
# 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
| Need | Recommended GPIO(s) | Why |
|---|---|---|
| First analog sensor | GP26 (ADC0) | Simplest, most-documented ADC pin |
| First I2C device | GP4 (SDA) / GP5 (SCL) | Matches nearly every library's default |
| First SPI device | GP16/17/18/19 | Standard SPI0 default mapping |
| General digital I/O | GP14, GP15 | No default peripheral role, minimal conflict risk |
| Onboard LED | Pin("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
| Pin | Function | Notes |
|---|---|---|
| VBUS | 5V from USB | Present only when USB is connected; not a reliable always-on 5V source |
| VSYS | 1.8-5.5V input | The preferred external power input -- battery packs, solar, or a regulated supply should connect here, not VBUS |
| 3V3 | Onboard 3.3V output | Regulated output for small peripherals; Raspberry Pi recommends keeping the load under about 300 mA |
| 3V3_EN | Regulator enable | Pull LOW to disable the onboard 3.3V regulator entirely, useful for ultra-low-power sleep designs |
| GND | Ground | Multiple 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.
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.



