Raspberry Pi Pico
The original RP2040 board
Raspberry Pi Pico · RP2040
The original Pico: an RP2040 (two Cortex-M0+ cores at up to 133 MHz) with 2 MB of flash, 26 GPIOs at 3.3 V, three analog inputs and a user LED on GP25, with no radio.
Tested in the SolderHub Simulator. Opens a ready-wired circuit that runs in your browser.
- CPU
- 2 × 133 MHz
- GPIO
- 26
- SRAM / Flash
- 264 kB / 2 MB
- Analog
- 3 (GP26–28)
Every header pin at a glance
- 26 safe I/O
- 0 use with care
- 0 avoid
- 0 not available
- 14 power, ground & other
01Pinout
Every pin, live
Pins 1–20 down the left, 21–40 up the right, numbered as on the board. Every GP pin has SPI, UART, I2C and PWM options.
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
Full header tables (PINS 1–20, PINS 21–40)
PINS 1–20 · left side
| No. | Pin | Signals | Status |
|---|---|---|---|
| 1 | GP0 | SPI0 RX, UART0 TX, I2C0 SDA, PWM0 A | OK |
| 2 | GP1 | SPI0 CSn, UART0 RX, I2C0 SCL, PWM0 B | OK |
| 3 | GND | Ground | |
| 4 | GP2 | SPI0 SCK, UART0 CTS, I2C1 SDA, PWM1 A | OK |
| 5 | GP3 | SPI0 TX, UART0 RTS, I2C1 SCL, PWM1 B | OK |
| 6 | GP4 | SPI0 RX, UART1 TX, I2C0 SDA, PWM2 A | OK |
| 7 | GP5 | SPI0 CSn, UART1 RX, I2C0 SCL, PWM2 B | OK |
| 8 | GND | Ground | |
| 9 | GP6 | SPI0 SCK, UART1 CTS, I2C1 SDA, PWM3 A | OK |
| 10 | GP7 | SPI0 TX, UART1 RTS, I2C1 SCL, PWM3 B | OK |
| 11 | GP8 | SPI1 RX, UART1 TX, I2C0 SDA, PWM4 A | OK |
| 12 | GP9 | SPI1 CSn, UART1 RX, I2C0 SCL, PWM4 B | OK |
| 13 | GND | Ground | |
| 14 | GP10 | SPI1 SCK, UART1 CTS, I2C1 SDA, PWM5 A | OK |
| 15 | GP11 | SPI1 TX, UART1 RTS, I2C1 SCL, PWM5 B | OK |
| 16 | GP12 | SPI1 RX, UART0 TX, I2C0 SDA, PWM6 A | OK |
| 17 | GP13 | SPI1 CSn, UART0 RX, I2C0 SCL, PWM6 B | OK |
| 18 | GND | Ground | |
| 19 | GP14 | SPI1 SCK, UART0 CTS, I2C1 SDA, PWM7 A | OK |
| 20 | GP15 | SPI1 TX, UART0 RTS, I2C1 SCL, PWM7 B | OK |
PINS 21–40 · right side
| No. | Pin | Signals | Status |
|---|---|---|---|
| 21 | GP16 | SPI0 RX, UART0 TX, I2C0 SDA, PWM0 A | OK |
| 22 | GP17 | SPI0 CSn, UART0 RX, I2C0 SCL, PWM0 B | OK |
| 23 | GND | Ground | |
| 24 | GP18 | SPI0 SCK, UART0 CTS, I2C1 SDA, PWM1 A | OK |
| 25 | GP19 | SPI0 TX, UART0 RTS, I2C1 SCL, PWM1 B | OK |
| 26 | GP20 | SPI0 RX, UART1 TX, I2C0 SDA, PWM2 A | OK |
| 27 | GP21 | SPI0 CSn, UART1 RX, I2C0 SCL, PWM2 B | OK |
| 28 | GND | Ground | |
| 29 | GP22 | SPI0 SCK, UART1 CTS, I2C1 SDA, PWM3 A | OK |
| 30 | RUN | RP2040 enable, pulled up internally. Short to GND to reset. | |
| 31 | GP26 | SPI1 SCK, UART1 CTS, I2C1 SDA, PWM5 A, ADC0 | OK |
| 32 | GP27 | SPI1 TX, UART1 RTS, I2C1 SCL, PWM5 B, ADC1 | OK |
| 33 | AGND | Ground reference for the ADC (GP26–28). | |
| 34 | GP28 | SPI1 RX, UART0 TX, I2C0 SDA, PWM6 A, ADC2 | OK |
| 35 | ADC_VREF | ADC reference, filtered from 3.3 V. Feed an external reference here for better accuracy. | |
| 36 | 3V3(OUT) | 3.3 V from the on-board SMPS. Keep the load under 300 mA. | |
| 37 | 3V3_EN | SMPS enable, pulled high. Short to GND to switch off 3.3 V and the RP2040. | |
| 38 | GND | Ground | |
| 39 | VSYS | Main system input, 1.8 to 5.5 V, into the buck-boost SMPS. | |
| 40 | VBUS | Micro-USB 5 V (0 V when USB isn't connected). |
02Specs
Full specifications
Microcontroller
- Chip
- Raspberry Pi RP2040Dual Arm Cortex-M0+, up to 133 MHz.
- SRAM
- 264 kB
- Flash
- 2 MB (on board)
- PIO
- 8 state machines
Power
- Logic level
- 3.3 V
- VSYS input
- 1.8 to 5.5 VOn-board buck-boost SMPS makes the 3.3 V.
- 3V3 output
- Keep under 300 mA
Board
- USB
- Micro-USB
- User LED
- GP25 (not on the header)
- Debug
- 3-pad SWD header (SWCLK, GND, SWDIO)
03Buses
Where each bus lives
I2C
I2C0 and I2C1, each on several pin pairs. Arduino (arduino-pico) Wire uses GP4/GP5; every GP pin has an I2C option.
SPI
SPI0 on GP0–7 and GP16–22, SPI1 on GP8–15 and GP26–28. Arduino SPI uses GP16 (RX), GP17 (CS), GP18 (SCK), GP19 (TX).
UART
UART0 and UART1. Arduino Serial1 is GP0 (TX) / GP1 (RX); Serial over USB is separate.
PWM
8 slices × 2 channels; every GP pin can output PWM.
ADC
ADC0–2 on GP26–28, 12-bit. ADC3 (GPIO29) measures VSYS/3 on the board.
04Power & start
Power it up and get connected
Power options
- Micro-USB5 V on VBUS; also BOOTSEL drag-and-drop programming and USB serial.
- VSYS pin1.8 to 5.5 V, e.g. a battery pack. The buck-boost SMPS keeps 3.3 V steady.
- 3V3(OUT)Powers sensors and modules; keep the total under 300 mA.
- 3V3_ENShort to ground to switch the whole board off.
- 1
Hold BOOTSEL and plug in
The Pico appears as a USB drive called RPI-RP2.
- 2
Drag a .uf2 onto the drive
Copying a .uf2 (MicroPython, CircuitPython or your own build) flashes it and restarts the board.
- 3
Blink the LED
from machine import Pin; Pin(25, Pin.OUT).toggle()In MicroPython the on-board LED is GP25 (also Pin("LED")).
- 4
No board on your desk?
Open a Pico circuit in the SolderHub Simulator below.
05Gotchas
Things that trip people up
01
GPIO23, 24, 25 and 29 aren't on the header
The board uses them for the SMPS mode, VBUS sensing, the LED and VSYS/3. Plan with GP0–22 and GP26–28.
02
Only three analog pins
GP26, GP27 and GP28. Use AGND as their ground for cleaner readings.
03
It's a 3.3 V board
Don't feed 5 V signals into GP pins; use a level shifter or divider.
04
Mind the 3V3 budget
Keep the load on 3V3(OUT) under 300 mA.
06SolderHub Simulator
Wire up the Raspberry Pi Pico without the hardware
The simulator runs Raspberry Pi Pico sketches in your browser. Start from the tested board circuit, then change the wiring or the code.
Board Basics
Introduction, pinout, and protocols — all in one guide.
Sensor Modules & Library
Wiring sensors and modules, plus the library you need to talk to them.
Sensor Integration
Coming soon
Library & Setup
Coming soon
Projects
SolderHub Simulator
Raspberry Pi Pico circuits you can run in the browser
Ready-wired circuits with working code. Open one, press run, then change the wiring or the sketch.
More From This Board
1More Raspberry Pi Pico guides worth reading.
