Raspberry Pi Pico pinout: Pico, Pico W, Pico 2 and Pico 2 W
The Raspberry Pi Pico brings out 26 3.3 V GPIOs on 40 pins at 2.54 mm pitch, with seven grounds, one analog ground, three ADC inputs (GP26 to GP28) and six power and control pins. The pinout is identical on Pico, Pico W, Pico 2 and Pico 2 W; only the internal GPIOs, the LED and the debug pads change.
By Hugues Orgitello · Updated ·
Pico, left edge: pins 1 to 20
Functions from the official pinout figure; “default” marks the role picked by the pico-sdk. The chip multiplexer offers more (UART1 on GP20/21, for example), and every GPIO can carry PIO.
| Pin | Signal | Dir. | UART | I2C | SPI | ADC | PWM (slice, channel) | Description |
|---|---|---|---|---|---|---|---|---|
| 1 | GP0 | I/O | UART0 TX (default) | I2C0 SDA | SPI0 RX | - | 0 A | General-purpose I/O; SDK default UART0, serial console (Signal) |
| 2 | GP1 | I/O | UART0 RX (default) | I2C0 SCL | SPI0 CSn | - | 0 B | General-purpose I/O; SDK default UART0, serial console (Signal) |
| 3 | GND | - | - | - | - | - | Ground (Ground) | |
| 4 | GP2 | I/O | - | I2C1 SDA | SPI0 SCK | - | 1 A | General-purpose 3.3 V I/O (Signal) |
| 5 | GP3 | I/O | - | I2C1 SCL | SPI0 TX | - | 1 B | General-purpose 3.3 V I/O (Signal) |
| 6 | GP4 | I/O | UART1 TX | I2C0 SDA (default) | SPI0 RX | - | 2 A | General-purpose 3.3 V I/O (Signal) |
| 7 | GP5 | I/O | UART1 RX | I2C0 SCL (default) | SPI0 CSn | - | 2 B | General-purpose 3.3 V I/O (Signal) |
| 8 | GND | - | - | - | - | - | Ground (Ground) | |
| 9 | GP6 | I/O | - | I2C1 SDA | SPI0 SCK | - | 3 A | General-purpose 3.3 V I/O (Signal) |
| 10 | GP7 | I/O | - | I2C1 SCL | SPI0 TX | - | 3 B | General-purpose 3.3 V I/O (Signal) |
| 11 | GP8 | I/O | UART1 TX | I2C0 SDA | SPI1 RX | - | 4 A | General-purpose 3.3 V I/O (Signal) |
| 12 | GP9 | I/O | UART1 RX | I2C0 SCL | SPI1 CSn | - | 4 B | General-purpose 3.3 V I/O (Signal) |
| 13 | GND | - | - | - | - | - | Ground (Ground) | |
| 14 | GP10 | I/O | - | I2C1 SDA | SPI1 SCK | - | 5 A | General-purpose 3.3 V I/O (Signal) |
| 15 | GP11 | I/O | - | I2C1 SCL | SPI1 TX | - | 5 B | General-purpose 3.3 V I/O (Signal) |
| 16 | GP12 | I/O | UART0 TX | I2C0 SDA | SPI1 RX | - | 6 A | General-purpose 3.3 V I/O (Signal) |
| 17 | GP13 | I/O | UART0 RX | I2C0 SCL | SPI1 CSn | - | 6 B | General-purpose 3.3 V I/O (Signal) |
| 18 | GND | - | - | - | - | - | Ground (Ground) | |
| 19 | GP14 | I/O | - | I2C1 SDA | SPI1 SCK | - | 7 A | General-purpose 3.3 V I/O (Signal) |
| 20 | GP15 | I/O | - | I2C1 SCL | SPI1 TX | - | 7 B | General-purpose 3.3 V I/O (Signal) |
Pico, right edge: pins 40 to 21
Functions from the official pinout figure; “default” marks the role picked by the pico-sdk. The chip multiplexer offers more (UART1 on GP20/21, for example), and every GPIO can carry PIO.
| Pin | Signal | Dir. | UART | I2C | SPI | ADC | PWM (slice, channel) | Description |
|---|---|---|---|---|---|---|---|---|
| 40 | VBUS | I/O | - | - | - | - | - | Micro-USB 5 V, joined to VSYS through a Schottky diode; in USB host mode, 5 V must be supplied here (Power) |
| 39 | VSYS | I/O | - | - | - | - | - | Main supply into the regulator, 1.8 to 5.5 V: input for a battery or an external supply (Power) |
| 38 | GND | - | - | - | - | - | Ground (Ground) | |
| 37 | 3V3_EN | In | - | - | - | - | - | Regulator enable, pulled up to VSYS through 100 kΩ: pulled to ground, the 3.3 V rail and the microcontroller turn off (Configuration) |
| 36 | 3V3(OUT) | Out | - | - | - | - | - | 3.3 V output of the board regulator; the datasheet recommends less than 300 mA of load (Power) |
| 35 | ADC_VREF | In | - | - | - | - | - | ADC reference, filtered from 3.3 V (200 Ω and 2.2 µF); accepts an external reference (Power) |
| 34 | GP28 | I/O | - | - | - | ADC2 | 6 A | General-purpose I/O or ADC2 input: never above 3.3 V + 0.3 V, even on an RP2350 (Signal) |
| 33 | AGND | - | - | - | - | - | Analog ground, reference for GP26 to GP28 (separate plane; may be tied to ground when ADC accuracy does not matter) (Ground) | |
| 32 | GP27 | I/O | - | I2C1 SCL | - | ADC1 | 5 B | General-purpose I/O or ADC1 input: never above 3.3 V + 0.3 V, even on an RP2350 (Signal) |
| 31 | GP26 | I/O | - | I2C1 SDA | - | ADC0 | 5 A | General-purpose I/O or ADC0 input: never above 3.3 V + 0.3 V, even on an RP2350 (Signal) |
| 30 | RUN | In | - | - | - | - | - | Microcontroller enable, internal pull-up of about 50 kΩ: pulled to ground, the chip is held in reset (reset button) (Configuration) |
| 29 | GP22 | I/O | - | - | - | - | 3 A | General-purpose 3.3 V I/O (Signal) |
| 28 | GND | - | - | - | - | - | Ground (Ground) | |
| 27 | GP21 | I/O | - | I2C0 SCL | - | - | 2 B | General-purpose 3.3 V I/O (Signal) |
| 26 | GP20 | I/O | - | I2C0 SDA | - | - | 2 A | General-purpose 3.3 V I/O (Signal) |
| 25 | GP19 | I/O | - | I2C1 SCL | SPI0 TX (default) | - | 1 B | General-purpose 3.3 V I/O (Signal) |
| 24 | GP18 | I/O | - | I2C1 SDA | SPI0 SCK (default) | - | 1 A | General-purpose 3.3 V I/O (Signal) |
| 23 | GND | - | - | - | - | - | Ground (Ground) | |
| 22 | GP17 | I/O | UART0 RX | I2C0 SCL | SPI0 CSn (default) | - | 0 B | General-purpose 3.3 V I/O (Signal) |
| 21 | GP16 | I/O | UART0 TX | I2C0 SDA | SPI0 RX (default) | - | 0 A | General-purpose 3.3 V I/O (Signal) |
An RP2040 or RP2350 to put on your own board, with Wi-Fi, battery power or an accurate ADC? We design and bring up these boards.
Powering the Pico: VBUS, VSYS, 3V3(OUT), 3V3_EN and RUN
The Pico is powered through VSYS (pin 39), from 1.8 to 5.5 V: a buck-boost regulator makes the 3.3 V from it. The micro-USB 5 V arrives on VBUS (pin 40), joined to VSYS through a Schottky diode; a battery or external supply goes on VSYS. If USB may stay plugged in, that source also goes through a Schottky diode (or a P-FET), so the USB 5 V cannot charge it.
3V3(OUT) (pin 36) powers nearby sensors; Raspberry Pi recommends drawing less than 300 mA from it. 3V3_EN (pin 37) pulled to ground switches the regulator, and so the whole Pico, off. RUN (pin 30) pulled to ground holds the microcontroller in reset: that is where a reset button goes, since the board has none.
Is the Pico 5 V tolerant?
No on Pico and Pico W: the RP2040 datasheet limits a pin to IOVDD + 0.5 V, about 3.8 V. A 5 V sensor or module needs a level shifter.
The RP2350 on Pico 2 and Pico 2 W is 5 V tolerant on inputs, while powered: its datasheet allows an input high level up to 5.5 V on GPIO0 to GPIO25 with IOVDD at 3.3 V. Unpowered, the limit drops back to 3.63 V. Outputs still swing 0-3.3 V, and GP26 to GP28, the ADC inputs, are excluded. The board datasheets do not mention it: where the board can be off while the 5 V is present, we keep a level shifter.
ADC inputs: GP26 to GP28, ADC_VREF and AGND
Three header pins are analog: GP26 (ADC0), GP27 (ADC1) and GP28 (ADC2). The fourth channel, on GPIO29, measures VSYS/3 internally; on the W versions GPIO29 is also the wireless chip clock, and VSYS/3 reads only with GPIO25 high. A diode ties each ADC input to 3.3 V: the applied voltage must stay below about 3.3 V + 0.3 V, and on an unpowered board, a live input leaks into the 3.3 V rail through that diode.
The ADC reference, ADC_VREF (pin 35), is the 3.3 V filtered by 200 Ω and 2.2 µF; for accurate measurements, apply an external reference there. AGND (pin 33) is the ground for these three inputs, on a separate plane.
Pico, Pico W, Pico 2: what changes
The 40 pins do not change. On Pico and Pico 2, four GPIOs are internal: GPIO23 sets the regulator power-save mode, GPIO24 senses VBUS, GPIO25 drives the LED and GPIO29 reads VSYS/3. On Pico W and Pico 2 W, GPIO23, 24, 25 and 29 serve the CYW43439 Wi-Fi/Bluetooth chip, and the LED moves to that chip’s WL_GPIO0 pin.
The three SWD debug pads, in the order SWCLK, GND, SWDIO, sit on the bottom edge of Pico and Pico 2, and in the middle of the board on the W versions, where the antenna takes the edge. They connect to an SWD probe like an Arm SWD header.
Wiring: serial console on UART0
The SDK uses UART0 on GP0 (TX, pin 1) and GP1 (RX, pin 2) for the console. A USB-to-serial adapter is wired by crossing transmit and receive: the Pico TX goes to the adapter RX and the other way round, with a common ground. The adapter must run at 3.3 V; a 5 V one on the Pico RX exceeds the RP2040 limit.
FAQ
- Are the Raspberry Pi Pico GPIOs 5 V tolerant?
- No for Pico and Pico W (RP2040): the limit is IOVDD + 0.5 V, about 3.8 V. The RP2350 on Pico 2 accepts inputs up to 5.5 V on GP0 to GP22 while the board is powered (3.63 V when off), never on the ADC inputs GP26 to GP28; its outputs stay at 3.3 V.
- Which pin drives the Pico LED?
- GPIO25 on Pico and Pico 2. On Pico W and Pico 2 W, the LED is wired to WL_GPIO0 of the CYW43439 wireless chip: it is switched through the wireless driver, not GPIO25.
- How do you power a Pico from a battery?
- On VSYS (pin 39), between 1.8 and 5.5 V, ground on a GND pin, when USB is not used. If USB may be plugged in at the same time, put a second Schottky diode (or a P-FET, as the datasheet shows) in series with the battery: otherwise the USB 5 V would charge it uncontrolled.
- Which Pico pins are analog?
- GP26 (ADC0, pin 31), GP27 (ADC1, pin 32) and GP28 (ADC2, pin 34), referenced to AGND (pin 33) and ADC_VREF (pin 35). ADC channel 3, on GPIO29, measures VSYS/3 internally (on the W versions, only with GPIO25 high).
- Does the Pico W have the same pinout as the Pico?
- Yes, the 40 pins are identical, as on Pico 2 and Pico 2 W. What changes is internal: GPIO23, 24, 25 and 29 serve the wireless chip, the LED moves to WL_GPIO0 and the SWD pads move to the middle of the board.
- Raspberry Pi, Raspberry Pi Pico Datasheet (Fig. 2 pinout, Fig. 4 pin numbering, operating conditions, power chain)
- Raspberry Pi, Raspberry Pi Pico W Datasheet
- Raspberry Pi, Raspberry Pi Pico 2 Datasheet
- Raspberry Pi, Raspberry Pi Pico 2 W Datasheet
- Raspberry Pi, Pico R3 design files, schematic (connector J0)
- Raspberry Pi, RP2040 Datasheet (GPIO functions §1.4.3, absolute maximum ratings)
- Raspberry Pi, RP2350 Datasheet (GPIO functions, pin types, absolute maximum ratings)
- pico-sdk board headers pico.h, pico_w.h, pico2.h, pico2_w.h (default UART, I2C, SPI, LED)
Tables built from these documents and cross-checked against manufacturer datasheets. Always check the datasheet of the connector you actually use: some manufacturers number differently.
- Raspberry Pi 40-pin GPIO pinout
- JTAG and SWD pinout for debugging
- I2C bus: addressing and pull-up sizing
- UART bus: serial links in embedded systems
- Custom electronic board design
Other pinouts
- USB-C
- USB-A, USB-B, Mini and Micro
- RJ45 Ethernet
- M12 industrial
- DB9 (DE-9)
- JTAG and SWD
- HDMI
- Raspberry Pi GPIO
- M.2 (keys M, B and E)
- SD and microSD card
- PCI Express card edge
- SATA
- DDR4 DIMM and SO-DIMM
- DDR5 DIMM and SO-DIMM
- OBD2 (OBD-II, J1962)
- ESP32, S3, C3 and C6
- Bosch ECUs EDC15P+, EDC16C34, MD1CS006
- RJ11, RJ14, RJ12 (6P6C)
- VGA (DE-15) and DVI
- RS-485 (Modbus)
- Arduino Uno, Nano and Mega
- PC power: ATX, PCIe, fan