Skip to content

Guide

Raspberry Pi Pico W Pinout: Every Pin, GPIO, ADC, I2C, SPI and UART

Every Pico W pin explained: a full 40-pin table with I2C, SPI and UART functions, power pins, ADC, the LED that moved off GP25, common mistakes and Pico 2 W.

  • 9 min read
  • Updated November 21, 2026
Raspberry Pi Pico W Pinout: Every Pin, GPIO, ADC, I2C, SPI and UART

Quick answer: the Raspberry Pi Pico W has a 40-pin header with 26 usable 3.3 V GPIOs: GP0–GP22 and GP26–GP28. All of them can do PWM; GP26, GP27 and GP28 are also the three analog inputs (ADC0–2). Power comes in on VBUS (5 V from USB) or VSYS (1.8–5.5 V, for batteries), and 3V3(OUT) supplies up to about 300 mA to sensors. Two I2C, two SPI and two UART controllers can each be routed to several fixed pin pairs; a common default is I2C0 on GP4 (SDA) / GP5 (SCL) and UART0 on GP0 (TX) / GP1 (RX). The big difference from the plain Pico: the onboard LED is not on GP25. It's driven by the wireless chip, so in MicroPython use Pin("LED", Pin.OUT). The full pin-by-pin table is below.

The Pico W takes the original Raspberry Pi Pico — a genuinely excellent $4 microcontroller board — and bolts on Wi-Fi and Bluetooth without changing the physical footprint at all. Same 40 pins, same RP2040 chip, same programmable I/O blocks that make the Pico unusually capable for its price.

What did change, in a way that trips up almost everyone porting a project from the plain Pico, is the onboard LED. On the original Pico it's wired straight to a GPIO pin you can toggle directly. On the Pico W, that same physical pin is now doing something else entirely, and the LED moved to a completely different chip.

Here's the full pin breakdown — GPIO, power, ADC, and the wireless-specific pin changes that catch people switching from a plain Pico.

Raspberry Pi Pico W pinout diagram
GP0GP1GNDGP2GP3GP4GP5GNDGP6GP7GP8GP9GNDGP10GP11GP12GP13GNDGP14GP15VBUSVSYSGND3V3_EN3V3(OUT)ADC_VREFGP28AGNDGP27GP26RUNGP22GNDGP21GP20GP19GP18GNDGP17GP16

Highlighted on the SolderHub Simulator Raspberry Pi Pico W. Explore every pin on the Raspberry Pi Pico W board page.

All 40 pins on the SolderHub Simulator Pico W, numbered 1–20 down the left and 21–40 up the right: green GP pins, red power, grey ground, blue RUN and control pins.

What's Actually on the Board

The Pico W is built around the same RP2040 chip as the original Pico — dual-core Arm Cortex-M0+ running up to 133 MHz, 264KB of SRAM, 2MB of onboard flash — paired with an Infineon CYW43439 wireless chip supporting 802.11 b/g/n Wi-Fi and Bluetooth 5.2. The CYW43439 talks to the RP2040 over SPI, using a handful of pins that, on the plain Pico, are dedicated to internal board functions instead.

Of the RP2040's 30 total GPIOs, 26 are broken out to the header as user-accessible pins, labeled GP0 through GP28 (with a few numbers reserved for internal use, covered below). All GPIO pins run at 3.3V logic.

What's on a Raspberry Pi Pico W: micro-USB, BOOTSEL, RP2040, flash, debug pads, the CYW43439 radio and its antenna area, labelled on the SolderHub Simulator Pico W

Pin-by-Pin Header Table

Pin 1 is at the top left, next to the USB connector, with the board's components facing you; pins 1–20 run down the left side and 21–40 run back up the right side (pin 21 sits opposite pin 20, pin 40 opposite pin 1). The Functions column lists what each pin can be set to besides plain GPIO and PWM.

PinNameFunctions
1GP0I2C0 SDA, SPI0 RX (MISO), UART0 TX
2GP1I2C0 SCL, SPI0 CSn, UART0 RX
3GNDGround
4GP2I2C1 SDA, SPI0 SCK
5GP3I2C1 SCL, SPI0 TX (MOSI)
6GP4I2C0 SDA, SPI0 RX (MISO), UART1 TX
7GP5I2C0 SCL, SPI0 CSn, UART1 RX
8GNDGround
9GP6I2C1 SDA, SPI0 SCK
10GP7I2C1 SCL, SPI0 TX (MOSI)
11GP8I2C0 SDA, SPI1 RX (MISO), UART1 TX
12GP9I2C0 SCL, SPI1 CSn, UART1 RX
13GNDGround
14GP10I2C1 SDA, SPI1 SCK
15GP11I2C1 SCL, SPI1 TX (MOSI)
16GP12I2C0 SDA, SPI1 RX (MISO), UART0 TX
17GP13I2C0 SCL, SPI1 CSn, UART0 RX
18GNDGround
19GP14I2C1 SDA, SPI1 SCK
20GP15I2C1 SCL, SPI1 TX (MOSI)
21GP16I2C0 SDA, SPI0 RX (MISO), UART0 TX
22GP17I2C0 SCL, SPI0 CSn, UART0 RX
23GNDGround
24GP18I2C1 SDA, SPI0 SCK
25GP19I2C1 SCL, SPI0 TX (MOSI)
26GP20I2C0 SDA, SPI0 RX (MISO), UART1 TX
27GP21I2C0 SCL, SPI0 CSn, UART1 RX
28GNDGround
29GP22I2C1 SDA, SPI0 SCK
30RUNPull LOW to reset (connect a button to GND)
31GP26I2C1 SDA, SPI1 SCK, ADC0
32GP27I2C1 SCL, SPI1 TX (MOSI), ADC1
33AGNDAnalog ground (ADC)
34GP28I2C0 SDA, SPI1 RX (MISO), UART0 TX, ADC2
35ADC_VREFADC reference (filtered 3.3 V)
363V3(OUT)3.3 V output, keep under ~300 mA
373V3_ENPull LOW to switch the 3.3 V regulator off
38GNDGround
39VSYSMain power input, 1.8–5.5 V
40VBUS5 V from micro-USB

How to read the functions: each I2C, SPI and UART controller is available on several fixed pin groups, so I2C(0, sda=Pin(4), scl=Pin(5)) works but I2C0 on GP4/GP7 does not. Pick pins that list the same controller and the right role. GP23, GP24, GP25 and GP29 are not on the header (see the wireless section below).

Power Pins

PinDescription
VBUS5V input from the micro-USB port
VSYSMain system input, 1.8V–5.5V, feeds the onboard SMPS regulator
3V3(OUT)Regulated 3.3V output — keep external load under ~300mA
3V3_ENPull LOW to disable the onboard 3.3V regulator (effectively powers down the board)
GNDGround (multiple pins)
ADC_VREFReference voltage for the ADC, filtered 3.3V from the SMPS
AGNDDedicated analog ground for cleaner ADC readings

VSYS is the pin to use if you're powering the board from a battery or external regulator rather than USB — the onboard switching regulator handles stepping it down to a clean 3.3V for the RP2040 and its I/O.

Power, ground, RUN, 3V3_EN and ADC_VREF
GP0GP1GNDGP2GP3GP4GP5GNDGP6GP7GP8GP9GNDGP10GP11GP12GP13GNDGP14GP15VBUSVSYSGND3V3_EN3V3(OUT)ADC_VREFGP28AGNDGP27GP26RUNGP22GNDGP21GP20GP19GP18GNDGP17GP16

Highlighted on the SolderHub Simulator Raspberry Pi Pico W. Explore every pin on the Raspberry Pi Pico W board page.

The Wireless-Specific Pin Changes — Read This First If You're Coming From a Plain Pico

This is the single most important difference from the standard Pico. On the plain Pico, four GPIOs are reserved for internal board functions and aren't exposed on the header at all:

GPIOPlain Pico function
GP23SMPS power-save mode select
GP24VBUS sense
GP25Onboard LED
GP29ADC3 — reads VSYS voltage

On the Pico W, these four are repurposed to talk to the CYW43439 wireless chip (GP23 = wireless power on, GP24 = SPI data/IRQ, GP25 = SPI chip select, GP29 = SPI clock), and they aren't usable as general-purpose GPIO. The old functions moved to the wireless chip's own GPIOs: the LED is WL_GPIO0, SMPS power-save is WL_GPIO1 and VBUS sense is WL_GPIO2. Practically, the change that trips people up most is the LED: it's no longer wired to GP25 at all. The status LED now lives on the wireless chip's own GPIO0, accessed through the wireless driver rather than a direct pin toggle.

main.py
# Plain Pico — this works:
from machine import Pin
led = Pin(25, Pin.OUT)
led.toggle()

# Pico W — GP25 is not the LED anymore. Use this instead:
from machine import Pin
led = Pin("LED", Pin.OUT)
led.toggle()

If you copy a blink sketch written for a plain Pico onto a Pico W without changing this, it will run without errors and simply never light the LED — a classic silent failure that's confusing the first time you hit it.

Where the RP2040's 30 GPIOs go on a Pico W
Header, digital (GP0–22)
23 GPIOs

Every one has SPI, UART, I2C and PWM options

Header, ADC-capable (GP26–28)
3 GPIOs

ADC0–2, 12-bit

Used inside the board
4 GPIOs

GPIO23, 24, 25 (wireless) and 29 (VSYS/3)

From the Pico W datasheet: GPIO23, 24, 25 and 29 run the link to the CYW43439 and VSYS sensing, so they never reach the header.

GPIO Pins — Digital I/O

The remaining GPIOs are standard 3.3V digital I/O, each configurable as input or output and each capable of PWM output.

main.py
from machine import Pin
led = Pin(15, Pin.OUT)
led.value(1)

Combined current draw across all GPIO pins is capped at roughly 50mA total — this is a board-wide limit, not a per-pin figure, and it's easy to exceed if you're driving several LEDs or a small load directly without current-limiting resistors or a driver transistor.

PWM

The RP2040 has 8 PWM slices, each with 2 channels (A and B), giving 16 controllable PWM outputs shared across the 26 available GPIOs. Multiple GPIOs can map to the same PWM channel, meaning two different pins can output an identical PWM signal simultaneously if your project calls for it.

main.py
from machine import Pin, PWM
pwm = PWM(Pin(16))
pwm.freq(1000)
pwm.duty_u16(32768)  # ~50% duty cycle
PWM: every GP pin (8 slices × 2 channels)
GP0GP1GNDGP2GP3GP4GP5GNDGP6GP7GP8GP9GNDGP10GP11GP12GP13GNDGP14GP15VBUSVSYSGND3V3_EN3V3(OUT)ADC_VREFGP28AGNDGP27GP26RUNGP22GNDGP21GP20GP19GP18GNDGP17GP16

Highlighted on the SolderHub Simulator Raspberry Pi Pico W. Explore every pin on the Raspberry Pi Pico W board page.

ADC Pins

GPIOADC Channel
GP26ADC0
GP27ADC1
GP28ADC2
—ADC4 — internal temperature sensor
main.py
from machine import ADC
sensor = ADC(26)
reading = sensor.read_u16()  # 0–65535, scaled from the 12-bit ADC

The ADC itself is 12-bit (0–4095 raw resolution), with MicroPython's read_u16() scaling that up to a 16-bit range for consistency across ports. Unlike the plain Pico, GP29/ADC3 is not available for general analog use on the Pico W, because it doubles as the wireless SPI clock. Reading VSYS through ADC3 is still possible (MicroPython's ADC(29) with the wireless chip idle; the reading is VSYS/3), but it can disturb Wi-Fi traffic, so do it sparingly.

ADC pins GP26–28 with AGND and ADC_VREF
GP0GP1GNDGP2GP3GP4GP5GNDGP6GP7GP8GP9GNDGP10GP11GP12GP13GNDGP14GP15VBUSVSYSGND3V3_EN3V3(OUT)ADC_VREFGP28AGNDGP27GP26RUNGP22GNDGP21GP20GP19GP18GNDGP17GP16

Highlighted on the SolderHub Simulator Raspberry Pi Pico W. Explore every pin on the Raspberry Pi Pico W board page.

Communication Pins

I2C Pins

Two independent I2C controllers (I2C0 and I2C1) are available, each on several fixed pin pairs (even GP = SDA, odd GP = SCL; see the header table). A common default is:

SignalGPIO
SDAGP4
SCLGP5
main.py
from machine import I2C, Pin
i2c = I2C(0, sda=Pin(4), scl=Pin(5))

You can run I2C0 and I2C1 simultaneously on two separate buses, but you can't run two separate instances of the same controller (two I2C0 buses) at once.

SPI Pins

Two SPI controllers (SPI0 and SPI1) are available, each on fixed groups of four pins (RX/MISO, CSn, SCK, TX/MOSI). SPI0 is on GP0–7 and GP16–22, SPI1 on GP8–15 and GP26–28.

main.py
from machine import SPI, Pin
spi = SPI(0, sck=Pin(18), mosi=Pin(19), miso=Pin(16))

UART Pins

Two hardware UARTs (UART0 and UART1), each routable to multiple GPIO pin pairs. The conventional default:

SignalGPIO
TX (UART0)GP0
RX (UART0)GP1
main.py
from machine import UART, Pin
uart = UART(0, baudrate=9600, tx=Pin(0), rx=Pin(1))

Having two independent hardware UARTs — rather than the single shared one on an Arduino Uno — means you can debug over USB serial while a second UART talks to a GPS module or another board simultaneously.

Which Pico W pin should this part use?
You're adding a part to a Pico W
Q1 Is it an analog sensor (knob, LDR, thermistor)?
yes → GP26, GP27 or GP28 (ADC0–2). Use AGND as its ground for cleaner readings.
no
Q2 Is it an I2C module (OLED, IMU, RTC)?
yes → Any I2C pair, e.g. I2C0 on GP4/GP5. Every GP pin has an I2C option.
no
Q3 Is it an SPI device (SD card, TFT, radio)?
yes → SPI0 on GP0–7 or GP16–22, SPI1 on GP8–15 or GP26–28. Use one RX/CSn/SCK/TX set.
no
Q4 Does it need PWM (LED dimming, servo, motor)?
yes → Any GP pin. GPn uses slice n/2: channel A on even pins, B on odd.
no
Any free GP pin. Everything is 3.3 V, so no 5 V signals.
Function options from the RP2040 datasheet's GPIO function table.

BOOTSEL and Programming

The Pico W has no onboard debugger and no reset button by default — instead, it uses a BOOTSEL button. Hold it while plugging in the USB cable, and the board mounts as a USB mass-storage drive; drag a compiled .uf2 firmware file onto it, and it reboots running your code. This is genuinely the entire flashing process for most MicroPython and C/C++ SDK workflows — no separate programmer hardware required.

For live debugging with breakpoints, a 3-pin SWD header is available for use with a Picoprobe (which can be another Pico running debug-probe firmware) or a dedicated SWD debugger.

Practical Pin Usage Tips

Use Pin("LED", ...) for the onboard LED, not Pin(25, ...). This is the single most common porting mistake moving from a plain Pico. In the Arduino IDE with the Earle Philhower core, LED_BUILTIN already points to the right place; in the C SDK use cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 1) after cyw43_arch_init().

Treat GP23, GP24, GP25, and GP29 as unavailable for your own use. They're all committed to the wireless interface on this board, unlike on the plain Pico.

Use VSYS, not VBUS, for external/battery power. VBUS is specifically the USB 5V input; VSYS is the general system input designed for external supplies.

Budget total GPIO current at 50mA across the whole board, not per pin — a handful of directly-driven LEDs can add up faster than expected.

Use the BOOTSEL button for flashing, and don't worry about needing an external programmer unless you specifically want breakpoint-level debugging.

Common Mistakes and How to Avoid Them

MistakeWhat happensFix
Pin(25, Pin.OUT) for the LEDRuns without error, LED never lightsPin("LED", Pin.OUT)
GP29 as an analog inputGarbage readings, Wi-Fi glitchesUse GP26–28 for analog
I2C on pins from different groups (e.g. SDA GP4, SCL GP7)ValueError: bad SCL pin or no devices foundUse a valid pair from the header table
More than ~300 mA from 3V3(OUT)Brown-outs and resetsPower big loads from VSYS/VBUS through their own regulator
5 V signal straight into a GPIODamage to the RP2040 over time or at onceLevel shifter or voltage divider
Many LEDs straight from GPIOsExceeds the ~50 mA total I/O budgetTransistor, MOSFET or LED driver
Old MicroPython firmware for the plain Piconetwork module missing, no Wi-FiFlash the Pico W build of MicroPython
USB and a battery on VSYS at the same timeBack-feeding the battery or USB portAdd a Schottky diode in series with the battery to VSYS

Pico vs Pico W vs Pico 2 W

PicoPico WPico 2 W
ChipRP2040RP2040RP2350
CPU2 × Cortex-M0+ @ 133 MHz2 × Cortex-M0+ @ 133 MHz2 × Cortex-M33 or 2 × Hazard3 RISC-V @ 150 MHz
SRAM / flash264 KB / 2 MB264 KB / 2 MB520 KB / 4 MB
Wi-Fi / BluetoothNo2.4 GHz Wi-Fi 4, Bluetooth 5.22.4 GHz Wi-Fi 4, Bluetooth 5.2
Onboard LEDGP25Wireless chip ("LED")Wireless chip ("LED")
Header pinoutSame 40 pinsSameSame

Code and wiring written for the Pico W move to the Pico 2 W unchanged at the pin level. See the Pico 2 W pinout guide.

Interactive Pico W pinout: tap any pin

40 of 40 pins match

GP0GP1GNDGP2GP3GP4GP5GNDGP6GP7GP8GP9GNDGP10GP11GP12GP13GNDGP14GP15VBUSVSYSGND3V3_EN3V3(OUT)ADC_VREFGP28AGNDGP27GP26RUNGP22GNDGP21GP20GP19GP18GNDGP17GP16

Hover or tap any pin on the board

PINS 1–20 header · pin 1

GP0

GP0

Safe to use

Nothing else on the board depends on this pin. A good first choice for sensors, LEDs and buttons.

Can be used as

  • SPI (direct)
  • UART
  • I2C
  • PWM out

Signals on this pad

  • GPIO0
  • SPI0 RX
  • UART0 TX
  • I2C0 SDA
  • PWM0 A
Tap or hover any pin for its functions and warnings.

Summary: Pico W Pin Reference at a Glance

FeatureCount / Detail
ChipRP2040, dual-core Cortex-M0+ @ up to 133 MHz
SRAM / Flash264 KB / 2 MB
Total header pins40
Usable GPIO26 (GP0–GP22, GP26–GP28; GP23/24/25/29 reserved for wireless)
ADC channels3 external (GP26–28) + 1 internal temperature sensor
PWM outputs16 (8 slices × 2 channels)
I2C / SPI / UART2 / 2 / 2 — flexible GPIO assignment
Onboard LEDVia wireless chip — use Pin("LED", ...), not GP25
Wireless802.11 b/g/n Wi-Fi, Bluetooth 5.2
Logic level3.3V
ProgrammingBOOTSEL + drag-and-drop UF2, or SWD for debugging

The Pico W's pin story is really one clean rule once you know it: everything that worked on a plain Pico still works, except the four pins now committed to talking to the wireless chip — and the LED is the one place that difference is genuinely easy to trip over. Learn that rule once, and the rest of the board behaves exactly like the Pico you may already know.

Try your wiring on the virtual Pico W. The SolderHub Simulator runs the same board you see in these figures.

Quick Answers to Common Pico W Pin Questions

Why doesn't my Pico W's onboard LED blink using GPIO 25? Because on the Pico W, GP25 is repurposed to talk to the wireless chip. The LED moved to the wireless chip's own GPIO — in MicroPython, use Pin("LED", Pin.OUT) instead of Pin(25, Pin.OUT).

How many GPIO pins can I actually use? 26, the same as a plain Pico — but GP23, GP24, GP25, and GP29 are committed to the wireless interface on the W variant, so they're not available for your own peripherals.

What's the difference between VBUS and VSYS? VBUS is specifically the 5V line from the micro-USB port. VSYS is the general system power input (1.8–5.5V) meant for external or battery power, feeding the onboard regulator.

How many analog pins does the Pico W have? Three externally usable ADC channels (GP26–GP28), plus an internal temperature sensor on a fourth channel. GP29/ADC3, available on the plain Pico, is not usable for analog input on the Pico W.

Do I need special hardware to program it? No — hold the BOOTSEL button while plugging in USB, and the board appears as a USB drive. Drag your compiled firmware file onto it and it reboots running your code.

Can I run I2C and SPI on any pins I want? On many pins, but not any combination: each controller works on several fixed pin groups (listed in the header table). Software I2C (SoftI2C) can use any two pins if you run out.

Is the Pico W's pinout identical to the plain Pico's? Physically identical layout, but four of the GPIOs (23, 24, 25, 29) behave differently because they're wired to the wireless chip instead of the internal functions they serve on the plain Pico.

What logic level does the board run at? 3.3V throughout — not 5V tolerant, so use a level shifter for 5V sensors and modules.


Where to Go From Here

Official reference: Raspberry Pi Pico W datasheet.

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.