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.
Highlighted on the SolderHub Simulator Raspberry Pi Pico. Explore every pin on the Raspberry Pi Pico board page.
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.
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
Pin Map at a Glance
| Pins | What they are |
|---|---|
| GP0–GP22 | General-purpose I/O, 3.3 V |
| GP26–GP28 | GPIO 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 |
| GND | Pins 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.
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).
Highlighted on the SolderHub Simulator Raspberry Pi Pico. Explore every pin on the Raspberry Pi Pico board page.
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.
Highlighted on the SolderHub Simulator Raspberry Pi Pico. Explore every pin on the Raspberry Pi Pico board page.
from machine import ADC
pot = ADC(26)
# GP26 = ADC0
print(pot.read_u16() * 3.3 / 65535) # MicroPython scales readings to 0–65535I2C, SPI and UART
Because functions are selectable, the "default" pins depend on your software. The common ones:
| Bus | MicroPython example | Arduino (arduino-pico) default |
|---|---|---|
| I2C | I2C(0, sda=Pin(4), scl=Pin(5)) | Wire: GP4 (SDA), GP5 (SCL) |
| SPI | SPI(0, sck=Pin(18), mosi=Pin(19), miso=Pin(16)) | GP16 RX, GP17 CS, GP18 SCK, GP19 TX |
| UART | UART(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.
Highlighted on the SolderHub Simulator Raspberry Pi Pico. Explore every pin on the Raspberry Pi Pico board page.
Highlighted on the SolderHub Simulator Raspberry Pi Pico. Explore every pin on the Raspberry Pi Pico board page.
Highlighted on the SolderHub Simulator Raspberry Pi Pico. Explore every pin on the Raspberry Pi Pico board page.
Common Mistakes
| Mistake | Fix |
|---|---|
| Looking for GP23–25 or GP29 on the header | They're used on the board. Use GP0–22, GP26–28 |
| 5 V sensor output into a GP pin | It's a 3.3 V board: divide or level-shift |
| Analog sensor on GP0–GP22 | Only 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.



