
Raspberry Pi Pico Pinout: RP2040 GPIO, ADC, and Power
Answer in brief: The Raspberry Pi Pico has 26 GPIO pins, 3 ADC inputs, and PWM on every GPIO pin. It runs the RP2040 chip at a 133 megahertz clock and 3.3 volt logic. This guide maps each pin, the power pins, and the debug pins. It also covers the pins that are not general GPIO.
Quick Facts
| Item | Detail | Source |
|---|---|---|
| Chip | RP2040, dual-core Cortex-M0+ | Raspberry Pi Pico Datasheet |
| Clock speed | 133 megahertz | Raspberry Pi Pico Datasheet |
| Logic voltage | 3.3 volts, not 5 volt tolerant | Raspberry Pi Pico Datasheet |
| Board edge | 40 pins | Raspberry Pi Pico Datasheet |
| GPIO pins | 26 pins: GP0 to GP22 and GP26 to GP28 | Raspberry Pi Pico Datasheet |
| ADC inputs | 3 inputs: GP26, GP27, GP28, 12-bit | RP2040 Datasheet |
| ADC range | 0 counts to 4095 counts, 0 volts to 3.3 volts | RP2040 Datasheet |
| Onboard LED | GP25 | Raspberry Pi Pico Datasheet |
| VSYS input range | 1.8 volts to 5.5 volts | Raspberry Pi Pico Datasheet |
| VBUS pin | Pin 40, USB 5 volt input | Raspberry Pi Pico Datasheet |
| 3V3 output, max | 300 milliamperes | Raspberry Pi Pico Datasheet |
| PWM | Every GPIO pin, 8 slices | RP2040 Datasheet |
Raspberry Pi Pico Pinout Table
This table is an original pinout table built from the Raspberry Pi Pico Datasheet. It is not a copied image. The GP names are the printed pin names on the board. The pin numbers are the board edge numbers.
| Edge pin | GP name | Main function | Notes |
|---|---|---|---|
| 1 | GP0 | GPIO | UART0 TX default |
| 2 | GP1 | GPIO | UART0 RX default |
| 3 | GND | Ground | Common ground |
| 4 | GP2 | GPIO | I2C1 SDA option |
| 5 | GP3 | GPIO | I2C1 SCL option |
| 6 | GP4 | GPIO | UART1 TX, I2C0 SDA default |
| 7 | GP5 | GPIO | UART1 RX, I2C0 SCL default |
| 8 | GND | Ground | Common ground |
| 9 | GP6 | GPIO | I2C1 SDA default |
| 10 | GP7 | GPIO | I2C1 SCL default |
| 11 | GP8 | GPIO | SPI1 RX default |
| 12 | GP9 | GPIO | SPI1 CSn default |
| 13 | GND | Ground | Common ground |
| 14 | GP10 | GPIO | SPI1 SCK default |
| 15 | GP11 | GPIO | SPI1 TX default |
| 16 | GP12 | GPIO | General use |
| 17 | GP13 | GPIO | General use |
| 18 | GND | Ground | Common ground |
| 19 | GP14 | GPIO | General use |
| 20 | GP15 | GPIO | General use |
| 21 | GP16 | GPIO | SPI0 RX default |
| 22 | GP17 | GPIO | SPI0 CSn default |
| 23 | GND | Ground | Common ground |
| 24 | GP18 | GPIO | SPI0 SCK default |
| 25 | GP19 | GPIO | SPI0 TX default |
| 26 | GP20 | GPIO | General use |
| 27 | GP21 | GPIO | General use |
| 28 | GND | Ground | Common ground |
| 29 | GP22 | GPIO | General use |
| 30 | RUN | Reset | Active low, pull low to reset |
| 31 | GP26 | ADC0 | Analog input, 12-bit |
| 32 | GP27 | ADC1 | Analog input, 12-bit |
| 33 | AGND | Analog ground | Ground for ADC use |
| 34 | GP28 | ADC2 | Analog input, 12-bit |
| 35 | ADC_VREF | ADC reference | 3.3 volt reference input |
| 36 | 3V3(OUT) | 3.3 volt output | 300 milliamperes max |
| 37 | 3V3_EN | 3.3 volt enable | Pull low to disable the regulator |
| 38 | GND | Ground | Common ground |
| 39 | VSYS | Power input | 1.8 volts to 5.5 volts input |
| 40 | VBUS | Power input | USB 5 volt input |
Power Pins
Power the Pico through USB, the VBUS pin, or the VSYS pin. USB gives 5 volts to VBUS. VBUS is pin 40 on the board edge. VSYS is pin 39 on the board edge. VSYS accepts 1.8 volts to 5.5 volts. That range covers a battery pack and a 5 volt supply.
Use VSYS for battery power. A 3-cell pack or a single lithium cell with a boost stage can feed VSYS. Check the Pico Datasheet power section before you pick a battery. A battery above 5.5 volts can damage the board. A battery below 1.8 volts will not run the regulator.
The 3V3(OUT) pin is pin 36. It gives 3.3 volts at a max of 300 milliamperes. That value comes from the Raspberry Pi Pico Datasheet. Use it for sensors and small loads. A part that needs more current needs its own regulator.
Pin 37 is 3V3_EN. It enables the 3.3 volt regulator. Leave it alone for normal use. Pull it low only when you want to shut the regulator down. Pin 35 is ADC_VREF. It sets the ADC reference. Leave it at 3.3 volts for normal use.
Boot and Reset Pins
The Pico has a BOOTSEL button for firmware loading. Hold BOOTSEL while you plug in USB. The board then appears as a USB drive. Drag a UF2 file onto that drive to load new firmware. Release BOOTSEL after the drive appears. That path loads MicroPython, CircuitPython, or a C build.
Pin 30 is RUN. It resets the chip when pulled low. It is active low. Connect a button from RUN to ground for a manual reset. Release the button to let the chip run again. Do not hold RUN low for normal use.
ADC Pins
The Pico has 3 ADC inputs on the board edge: GP26, GP27, and GP28. They are ADC0, ADC1, and ADC2. Each input reads 12-bit values from 0 counts to 4095 counts. A 0 volt input reads 0 counts. A 3.3 volt input reads 4095 counts. That step size is about 0.8 millivolts per count at the default reference.
ADC3 is an internal channel. It reads VSYS through GP29. It does not appear on the board edge. Use ADC3 in code to check the supply voltage. That read helps a battery project track its own power.
PWM Pins
PWM works on every GPIO pin on the Pico. The RP2040 chip has 8 PWM slices. Each slice drives 2 pins. That gives 16 PWM channels across the 26 GPIO pins. The Pico Datasheet and the RP2040 Datasheet both list this layout.
PWM drives a signal, not a load. Use a transistor or a driver for a motor. Use a series resistor for an LED. RP2040 GPIO pins have four drive-strength settings, nominally 2, 4, 8, and 12 mA, per the RP2040 Datasheet, section 5.5.3.5. The highest setting is 12 mA per pin. The total current sourced by all GPIO and QSPI pins together must not exceed 50 mA, and the total sunk must not exceed 50 mA, per the same datasheet (IIOVDD_MAX and IIOVSS_MAX). Those are drive-strength modes, not hard per-pin limits, and the pin voltage sags as the load rises. Keep LED current low with a resistor.
I2C Pins
I2C0 uses GP4 for SDA and GP5 for SCL by default. I2C1 uses GP6 for SDA and GP7 for SCL by default. Those defaults are the common pin choices in Pico examples. The RP2040 chip can route I2C to many other pins. Check the RP2040 Datasheet pin function table before you move the bus.
I2C runs at 3.3 volt logic on this board. Check the device voltage before you connect it. A 5 volt I2C device needs a level shifter. A direct 5 volt connection can damage the Pico.
SPI Pins
SPI0 uses GP16 for RX, GP17 for CSn, GP18 for SCK, and GP19 for TX by default. SPI1 uses GP8 for RX, GP9 for CSn, GP10 for SCK, and GP11 for TX by default. Those defaults are the common pin choices in Pico examples. The RP2040 chip can route SPI to many other pins.
SPI runs at 3.3 volt logic on this board. Check the device voltage before you connect it. A 3.3 volt SPI device connects directly. A 5 volt SPI device needs a level shifter.
UART Pins
UART0 uses GP0 for TX and GP1 for RX by default. UART1 uses GP4 for TX and GP5 for RX by default. Those defaults are the common pin choices in Pico examples. The RP2040 chip can route UART to many other pins. Check the RP2040 Datasheet pin function table before you move the port.
The USB port carries a separate serial link for MicroPython and for debug output. That link does not use GP0 or GP1. You can use GP0 and GP1 for a device while the USB console stays open. That split is handy for GPS logging.
USB and SWD Debug Pins
For a Pico comparison, see the live post Raspberry Pi Pico vs Pico W vs Pico 2: Chip, Wireless, and Headers (live post #20577). For starter kit options, see the live post Raspberry Pi Pico Starter Kits Compared: SunFounder, LAFVIN, and More (live post #20579).
Pins to Avoid
Avoid GP23, GP24, GP25, and GP29 as general GPIO. They are internal pins. GP25 is the onboard LED on the Pico. Use it only for the LED. GP24 senses VBUS. GP29 monitors VSYS. GP23 controls power save.
On the Pico WH, GP23, GP24, GP25, and GP29 are used by the onboard wireless chip instead, per the Raspberry Pi Pico W Datasheet. The onboard LED on the Pico WH is driven by the wireless chip, not by GP25, so the GP25 LED blink in the sketch below works on the Pico only, not on the Pico WH. In MicroPython, use Pin(“LED”, Pin.OUT) on the Pico WH.
Avoid 5 volt logic on any GPIO pin. This board uses 3.3 volt logic only. It is not 5 volt tolerant. A 5 volt signal needs a level shifter. A direct 5 volt input can damage the pin.
Max Current and Logic Voltage
Logic voltage is 3.3 volts on every GPIO pin. That value comes from the Raspberry Pi Pico Datasheet. Treat 3.3 volts as the high level. Treat 0 volts as the low level. The board is not 5 volt tolerant. That warning is in the datasheet.
The 3V3(OUT) pin gives 3.3 volts at a max of 300 milliamperes. That value comes from the Raspberry Pi Pico Datasheet. Treat 300 milliamperes as the working limit for that pin. A larger load needs its own regulator.
The RP2040 GPIO pins have four drive-strength settings, nominally 2, 4, 8, and 12 mA, per the RP2040 Datasheet, section 5.5.3.5. The highest setting is 12 mA per pin. The total current sourced by all GPIO and QSPI pins together must not exceed 50 mA, and the total sunk must not exceed 50 mA (IIOVDD_MAX and IIOVSS_MAX). Treat 12 mA per pin and 50 mA total as the working limits.
Use a driver for any load above a small LED. Keep LED current low with a series resistor. A 220 ohm resistor is a common bench value for a 3.3 volt LED test. Check the LED datasheet for its own forward voltage before you pick a resistor.
Wiring and Power Warnings
Power the board before you connect a sensor. Keep the USB cable short. Use a cable under 3 feet for bench tests when you can. Long wires pick up noise. Noise causes ADC jitter and I2C errors.
Do not feed 5 volts into a GPIO pin. Do not feed 5 volts into the 3V3(OUT) pin. Do not feed more than 5.5 volts into VSYS. Each of those mistakes can damage the board. Check the pin labels before every connection.
Pin Test Sketch
Language: MicroPython. Firmware: MicroPython version 1.22.2 for RP2040. No extra library install is needed for this test. Load the firmware with the BOOTSEL drive method. Code status: code not compiled. No arduino-cli or PlatformIO is installed in this environment.
# Raspberry Pi Pico pin test script
# Language: MicroPython version 1.22.2 for RP2040
# Board: Raspberry Pi Pico, RP2040
# Code status: code not compiled
from machine import Pin, ADC, PWM
import time
# Onboard LED is GP25 on the Pico. On the Pico WH the LED is on the wireless chip, not GP25.
led = Pin(25, Pin.OUT)
# ADC test uses GP26, which is ADC0.
adc = ADC(Pin(26))
# PWM test uses GP15 at 1000 hertz.
pwm = PWM(Pin(15))
pwm.freq(1000) # Set PWM frequency to 1000 hertz.
pwm.duty_u16(0) # Start with the output off.
# UART test uses UART0 on GP0 TX and GP1 RX.
# The USB console stays free for print output.
from machine import UART
uart = UART(0, baudrate=9600, tx=Pin(0), rx=Pin(1))
print("Pico pin test started")
while True:
# Read the ADC value on GP26.
# ADC range is 0 to 65535 counts in MicroPython.
value = adc.read_u16()
print("GP26 ADC value:", value)
# Convert the ADC value to a voltage from 0 to 3.3 volts.
volts = value * 3.3 / 65535
print("GP26 volts:", volts)
# Fade the PWM output on GP15 from off to full.
for level in range(0, 65536, 4096):
pwm.duty_u16(level)
time.sleep(0.05) # Wait 50 milliseconds per step.
# Blink the onboard LED on GP25 once per loop.
led.on()
time.sleep(0.5) # Wait 500 milliseconds.
led.off()
time.sleep(0.5) # Wait 500 milliseconds.
Expected result: the console shows a GP26 ADC value and a voltage each loop. The value changes with the voltage on GP26. The PWM output on GP15 fades up in steps. The onboard LED blinks once per loop. If no console output appears, check the MicroPython firmware load and the serial port selection.
Frequently Asked Questions
How many GPIO pins does the Pico have?
It has 26 GPIO pins: GP0 through GP22, plus GP26, GP27, and GP28. GP23, GP24, GP25, and GP29 are internal pins. They do not appear on the board edge as general GPIO.
Which pins are ADC on the Pico?
GP26 is ADC0, GP27 is ADC1, and GP28 is ADC2. Each input reads 12-bit values from 0 counts to 4095 counts. ADC3 is an internal channel that reads VSYS.
Is the Pico 5 volt tolerant?
No, the Pico is not 5 volt tolerant. It uses 3.3 volt logic only. A 5 volt signal needs a level shifter. A direct 5 volt input can damage the pin.
How do I load MicroPython on the Pico?
Hold BOOTSEL while you plug in USB. The board appears as a USB drive. Drag the MicroPython UF2 file onto that drive. The board reboots with MicroPython running.
Boards That Match This Pinout
These boards use the pinout in this guide. Check the product page for current stock before you order. Stock changes over time.
- Raspberry Pi Pico Development Board, 2-Pack (product #20323)
- Raspberry Pi Pico Board with Pre-Soldered Header (product #20329)
- Raspberry Pi Pico WH (product #20325)
Related reading: compare this board with ESP32 boards in the staged pillar RP2040 vs ESP32 (row 24, staged). For sibling pinouts, see Arduino UNO R3 Pinout and Nano V3.0 USB-C Guide: ATmega328P Board for Arduino IDE.
Sources
- Raspberry Pi Pico Datasheet, https://datasheets.raspberrypi.com/pico/pico-datasheet.pdf
- RP2040 Datasheet, https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf
- Raspberry Pi Pico W Datasheet, https://pip.raspberrypi.com/documents/RP-008312-DS-pico-w-datasheet.pdf
- Raspberry Pi Pico pinout guide, https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html
Last updated 2026-11-21.
