Skip to content

Guide

Raspberry Pi Pico Pinout: Every GP Pin, ADC, I2C, SPI, UART and Power

A complete Raspberry Pi Pico (RP2040) pinout: the 40-pin header, every GP pin’s bus options, the three analog inputs, VSYS/VBUS/3V3 power, and why GP23, 24, 25 and 29 are missing.

Raspberry Pi Pico Pinout: Every GP Pin, ADC, I2C, SPI, UART and Power

The Raspberry Pi Pico is the board that put the RP2040 on every bench: two Cortex-M0+ cores at up to 133 MHz, 264 kB of SRAM, 2 MB of flash, and 26 usable GPIO pins on a 40-pin, breadboard-friendly header. There's no radio on this one (that's the Pico W), so every pin on the header is yours.

Quick answer: GP0–GP22 and GP26–GP28 are free GPIO at 3.3 V. GP26, GP27 and GP28 are the only analog inputs (12-bit). Every GP pin can do PWM and has an I2C, SPI and UART option, so you choose the pins, not the board. The on-board LED is GP25, which isn't on the header. Power it from USB (VBUS) or 1.8–5.5 V on VSYS, and keep the 3V3(OUT) load under 300 mA.

Raspberry Pi Pico pinout diagram
GP0GP1GNDGP2GP3GP4GP5GNDGP6GP7GP8GP9GNDGP10GP11GP12GP13GNDGP14GP15VBUSVSYSGND3V3_EN3V3(OUT)ADC_VREFGP28AGNDGP27GP26RUNGP22GNDGP21GP20GP19GP18GNDGP17GP16

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

All 40 pins of the SolderHub Simulator Pico, numbered as on the board: pins 1–20 down the left, 21–40 up the right. Green is GPIO, red is power, grey is ground, blue is RUN and ADC_VREF.

What's Actually on the Board

The Pico is close to the minimum an RP2040 needs: the chip itself, a 2 MB QSPI flash chip that holds your program, a buck-boost SMPS that turns anything from 1.8 to 5.5 V into a steady 3.3 V, a micro-USB socket, the BOOTSEL button and an LED on GP25. The three pads at the end opposite the USB socket are the SWD debug header (SWCLK, GND, SWDIO) for a debug probe.

What’s on a Raspberry Pi Pico: micro-USB, the LED on GP25, BOOTSEL, 2 MB flash, the RP2040 and the SWD debug pads, labelled on the SolderHub Simulator Pico
Interactive Pico 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.

Pin Map at a Glance

PinsWhat they are
GP0–GP22General-purpose I/O, 3.3 V
GP26–GP28GPIO and analog inputs ADC0–ADC2
VBUS (40)5 V from micro-USB (0 V when USB is unplugged)
VSYS (39)Main power input, 1.8–5.5 V
3V3_EN (37)Pull to GND to switch the 3.3 V supply (and the Pico) off
3V3(OUT) (36)3.3 V for sensors, under 300 mA
ADC_VREF (35)ADC reference
AGND (33)Analog ground for GP26–28
RUN (30)Reset: short to GND
GNDPins 3, 8, 13, 18, 23, 28, 38

Power Pins

VBUS is the USB 5 V. VSYS is the input everything else runs from: on USB it's fed from VBUS through a diode, and on batteries you connect your pack here (anything from 1.8 to 5.5 V, so two or three AA cells or a single Li-ion cell all work). The SMPS turns VSYS into 3.3 V, which comes out on 3V3(OUT). Keep the load there under 300 mA.

3V3_EN turns that supply off when you pull it to GND, which switches the whole board off. RUN resets just the RP2040.

Power pins: VBUS, VSYS, 3V3(OUT), the GND pins and RUN
GP0GP1GNDGP2GP3GP4GP5GNDGP6GP7GP8GP9GNDGP10GP11GP12GP13GNDGP14GP15VBUSVSYSGND3V3_EN3V3(OUT)ADC_VREFGP28AGNDGP27GP26RUNGP22GNDGP21GP20GP19GP18GNDGP17GP16

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

GPIO: GP0–GP22 and GP26–GP28

There's one thing to understand about the RP2040: peripherals aren't fixed to pins. Each GPIO has a function-select list, and every GP pin can be a PWM output and has an option for I2C, SPI and UART. That's why Pico pinout diagrams show three or four labels per pin: they're the choices, not fixed assignments.

The board keeps four GPIOs for itself, so they're not on the header: GP23 (SMPS mode), GP24 (VBUS sense), GP25 (the LED) and GP29 (measures VSYS/3).

All 26 header GPIOs
GP0GP1GNDGP2GP3GP4GP5GNDGP6GP7GP8GP9GNDGP10GP11GP12GP13GNDGP14GP15VBUSVSYSGND3V3_EN3V3(OUT)ADC_VREFGP28AGNDGP27GP26RUNGP22GNDGP21GP20GP19GP18GNDGP17GP16

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

main.py
from machine import Pin
import time

led = Pin(25, Pin.OUT)      # on-board LED (also Pin("LED"))
while True:
    led.toggle()
    time.sleep(0.5)

Analog Inputs: GP26, GP27, GP28

Only three header pins can read analog: GP26 (ADC0), GP27 (ADC1) and GP28 (ADC2), 12-bit, 0–3.3 V. A fourth channel (ADC3, on GPIO29) is wired to VSYS/3 so you can measure your supply voltage. For cleaner readings, use AGND as the ground for analog sensors.

Analog inputs GP26–28 (ADC0–ADC2)
GP0GP1GNDGP2GP3GP4GP5GNDGP6GP7GP8GP9GNDGP10GP11GP12GP13GNDGP14GP15VBUSVSYSGND3V3_EN3V3(OUT)ADC_VREFGP28AGNDGP27GP26RUNGP22GNDGP21GP20GP19GP18GNDGP17GP16

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

main.py
from machine import ADC
pot = ADC(26)
# GP26 = ADC0
print(pot.read_u16() * 3.3 / 65535) # MicroPython scales readings to 0–65535
Analog inputs on popular boards (on the header)
Raspberry Pi Pico (GP26–28)
3 pins
XIAO RP2040 (A0–A3)
4 pins
RP2040-Zero (GP26–29)
4 pins
Arduino Uno (A0–A5)
6 pins
The Pico keeps GPIO29 for VSYS sensing, so it has one analog pin fewer than boards that bring GPIO29 out.

I2C, SPI and UART

Because functions are selectable, the "default" pins depend on your software. The common ones:

BusMicroPython exampleArduino (arduino-pico) default
I2CI2C(0, sda=Pin(4), scl=Pin(5))Wire: GP4 (SDA), GP5 (SCL)
SPISPI(0, sck=Pin(18), mosi=Pin(19), miso=Pin(16))GP16 RX, GP17 CS, GP18 SCK, GP19 TX
UARTUART(0, tx=Pin(0), rx=Pin(1))Serial1: GP0 TX, GP1 RX

Two of each controller exist (I2C0/1, SPI0/1, UART0/1), so a pin pair always belongs to a specific controller: GP4/GP5 are I2C0, GP2/GP3 are I2C1. Pick pins from the same controller for one bus.

Common I2C0 pins: SDA GP4, SCL GP5
GP0GP1GNDGP2GP3GP4GP5GNDGP6GP7GP8GP9GNDGP10GP11GP12GP13GNDGP14GP15VBUSVSYSGND3V3_EN3V3(OUT)ADC_VREFGP28AGNDGP27GP26RUNGP22GNDGP21GP20GP19GP18GNDGP17GP16

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

Common SPI0 pins: GP16 RX, GP17 CS, GP18 SCK, GP19 TX
GP0GP1GNDGP2GP3GP4GP5GNDGP6GP7GP8GP9GNDGP10GP11GP12GP13GNDGP14GP15VBUSVSYSGND3V3_EN3V3(OUT)ADC_VREFGP28AGNDGP27GP26RUNGP22GNDGP21GP20GP19GP18GNDGP17GP16

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

UART0: TX GP0, RX GP1
GP0GP1GNDGP2GP3GP4GP5GNDGP6GP7GP8GP9GNDGP10GP11GP12GP13GNDGP14GP15VBUSVSYSGND3V3_EN3V3(OUT)ADC_VREFGP28AGNDGP27GP26RUNGP22GNDGP21GP20GP19GP18GNDGP17GP16

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

Common Mistakes

MistakeFix
Looking for GP23–25 or GP29 on the headerThey're used on the board. Use GP0–22, GP26–28
5 V sensor output into a GP pinIt's a 3.3 V board: divide or level-shift
Analog sensor on GP0–GP22Only GP26–28 read analog
I2C pins from two controllers (e.g. GP4 + GP3)Use a matching pair (GP4/GP5 for I2C0)
Too much load on 3V3(OUT)Keep it under 300 mA; power motors separately

Try your pin plan on a virtual Raspberry Pi Pico. The SolderHub Simulator has the same Raspberry Pi Pico you see in these figures, so you can check the wiring before you touch real hardware.

FAQ

Which pin is the Pico's LED? GP25, not on the header. In MicroPython, Pin("LED") also works.

How many analog pins does the Pico have? Three on the header: GP26, GP27, GP28.

Can I power the Pico from a battery? Yes: 1.8–5.5 V on VSYS.

Is the Pico 5 V tolerant? No. GPIO is 3.3 V.

What's the difference from the Pico W? The Pico W adds Wi-Fi and Bluetooth; its LED moves to the wireless chip. See the Pico W pinout.

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.