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.
Highlighted on the SolderHub Simulator Raspberry Pi Pico W. Explore every pin on the Raspberry Pi Pico W board page.
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.
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.
| Pin | Name | Functions |
|---|---|---|
| 1 | GP0 | I2C0 SDA, SPI0 RX (MISO), UART0 TX |
| 2 | GP1 | I2C0 SCL, SPI0 CSn, UART0 RX |
| 3 | GND | Ground |
| 4 | GP2 | I2C1 SDA, SPI0 SCK |
| 5 | GP3 | I2C1 SCL, SPI0 TX (MOSI) |
| 6 | GP4 | I2C0 SDA, SPI0 RX (MISO), UART1 TX |
| 7 | GP5 | I2C0 SCL, SPI0 CSn, UART1 RX |
| 8 | GND | Ground |
| 9 | GP6 | I2C1 SDA, SPI0 SCK |
| 10 | GP7 | I2C1 SCL, SPI0 TX (MOSI) |
| 11 | GP8 | I2C0 SDA, SPI1 RX (MISO), UART1 TX |
| 12 | GP9 | I2C0 SCL, SPI1 CSn, UART1 RX |
| 13 | GND | Ground |
| 14 | GP10 | I2C1 SDA, SPI1 SCK |
| 15 | GP11 | I2C1 SCL, SPI1 TX (MOSI) |
| 16 | GP12 | I2C0 SDA, SPI1 RX (MISO), UART0 TX |
| 17 | GP13 | I2C0 SCL, SPI1 CSn, UART0 RX |
| 18 | GND | Ground |
| 19 | GP14 | I2C1 SDA, SPI1 SCK |
| 20 | GP15 | I2C1 SCL, SPI1 TX (MOSI) |
| 21 | GP16 | I2C0 SDA, SPI0 RX (MISO), UART0 TX |
| 22 | GP17 | I2C0 SCL, SPI0 CSn, UART0 RX |
| 23 | GND | Ground |
| 24 | GP18 | I2C1 SDA, SPI0 SCK |
| 25 | GP19 | I2C1 SCL, SPI0 TX (MOSI) |
| 26 | GP20 | I2C0 SDA, SPI0 RX (MISO), UART1 TX |
| 27 | GP21 | I2C0 SCL, SPI0 CSn, UART1 RX |
| 28 | GND | Ground |
| 29 | GP22 | I2C1 SDA, SPI0 SCK |
| 30 | RUN | Pull LOW to reset (connect a button to GND) |
| 31 | GP26 | I2C1 SDA, SPI1 SCK, ADC0 |
| 32 | GP27 | I2C1 SCL, SPI1 TX (MOSI), ADC1 |
| 33 | AGND | Analog ground (ADC) |
| 34 | GP28 | I2C0 SDA, SPI1 RX (MISO), UART0 TX, ADC2 |
| 35 | ADC_VREF | ADC reference (filtered 3.3 V) |
| 36 | 3V3(OUT) | 3.3 V output, keep under ~300 mA |
| 37 | 3V3_EN | Pull LOW to switch the 3.3 V regulator off |
| 38 | GND | Ground |
| 39 | VSYS | Main power input, 1.8–5.5 V |
| 40 | VBUS | 5 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
| Pin | Description |
|---|---|
| VBUS | 5V input from the micro-USB port |
| VSYS | Main system input, 1.8V–5.5V, feeds the onboard SMPS regulator |
| 3V3(OUT) | Regulated 3.3V output — keep external load under ~300mA |
| 3V3_EN | Pull LOW to disable the onboard 3.3V regulator (effectively powers down the board) |
| GND | Ground (multiple pins) |
| ADC_VREF | Reference voltage for the ADC, filtered 3.3V from the SMPS |
| AGND | Dedicated 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.
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:
| GPIO | Plain Pico function |
|---|---|
| GP23 | SMPS power-save mode select |
| GP24 | VBUS sense |
| GP25 | Onboard LED |
| GP29 | ADC3 — 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.
# 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.
Every one has SPI, UART, I2C and PWM options
ADC0–2, 12-bit
GPIO23, 24, 25 (wireless) and 29 (VSYS/3)
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.
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.
from machine import Pin, PWM
pwm = PWM(Pin(16))
pwm.freq(1000)
pwm.duty_u16(32768) # ~50% duty cycleHighlighted on the SolderHub Simulator Raspberry Pi Pico W. Explore every pin on the Raspberry Pi Pico W board page.
ADC Pins
| GPIO | ADC Channel |
|---|---|
| GP26 | ADC0 |
| GP27 | ADC1 |
| GP28 | ADC2 |
| — | ADC4 — internal temperature sensor |
from machine import ADC
sensor = ADC(26)
reading = sensor.read_u16() # 0–65535, scaled from the 12-bit ADCThe 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.
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:
| Signal | GPIO |
|---|---|
| SDA | GP4 |
| SCL | GP5 |
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.
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:
| Signal | GPIO |
|---|---|
| TX (UART0) | GP0 |
| RX (UART0) | GP1 |
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.
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
| Mistake | What happens | Fix |
|---|---|---|
Pin(25, Pin.OUT) for the LED | Runs without error, LED never lights | Pin("LED", Pin.OUT) |
| GP29 as an analog input | Garbage readings, Wi-Fi glitches | Use GP26–28 for analog |
| I2C on pins from different groups (e.g. SDA GP4, SCL GP7) | ValueError: bad SCL pin or no devices found | Use a valid pair from the header table |
| More than ~300 mA from 3V3(OUT) | Brown-outs and resets | Power big loads from VSYS/VBUS through their own regulator |
| 5 V signal straight into a GPIO | Damage to the RP2040 over time or at once | Level shifter or voltage divider |
| Many LEDs straight from GPIOs | Exceeds the ~50 mA total I/O budget | Transistor, MOSFET or LED driver |
| Old MicroPython firmware for the plain Pico | network module missing, no Wi-Fi | Flash the Pico W build of MicroPython |
| USB and a battery on VSYS at the same time | Back-feeding the battery or USB port | Add a Schottky diode in series with the battery to VSYS |
Pico vs Pico W vs Pico 2 W
| Pico | Pico W | Pico 2 W | |
|---|---|---|---|
| Chip | RP2040 | RP2040 | RP2350 |
| CPU | 2 × Cortex-M0+ @ 133 MHz | 2 × Cortex-M0+ @ 133 MHz | 2 × Cortex-M33 or 2 × Hazard3 RISC-V @ 150 MHz |
| SRAM / flash | 264 KB / 2 MB | 264 KB / 2 MB | 520 KB / 4 MB |
| Wi-Fi / Bluetooth | No | 2.4 GHz Wi-Fi 4, Bluetooth 5.2 | 2.4 GHz Wi-Fi 4, Bluetooth 5.2 |
| Onboard LED | GP25 | Wireless chip ("LED") | Wireless chip ("LED") |
| Header pinout | Same 40 pins | Same | Same |
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.
40 of 40 pins match
Hover or tap any pin on the board
PINS 1–20 header · pin 1
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
Summary: Pico W Pin Reference at a Glance
| Feature | Count / Detail |
|---|---|
| Chip | RP2040, dual-core Cortex-M0+ @ up to 133 MHz |
| SRAM / Flash | 264 KB / 2 MB |
| Total header pins | 40 |
| Usable GPIO | 26 (GP0–GP22, GP26–GP28; GP23/24/25/29 reserved for wireless) |
| ADC channels | 3 external (GP26–28) + 1 internal temperature sensor |
| PWM outputs | 16 (8 slices × 2 channels) |
| I2C / SPI / UART | 2 / 2 / 2 — flexible GPIO assignment |
| Onboard LED | Via wireless chip — use Pin("LED", ...), not GP25 |
| Wireless | 802.11 b/g/n Wi-Fi, Bluetooth 5.2 |
| Logic level | 3.3V |
| Programming | BOOTSEL + 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
- Install MicroPython on the Pico W and Pico 2 W: the Wi-Fi-enabled firmware and Thonny setup.
- Raspberry Pi Pico W web server with MicroPython: control the LED and read sensors from a browser.
- MicroPython on ESP32 and Pico W: complete guide.
- Raspberry Pi Pico 2 W pinout and Pico 2 pinout.
- I2C vs SPI: which to use.
- Project: Raspberry Pi Pico oscilloscope.
Official reference: Raspberry Pi Pico W datasheet.



