Raspberry Pi Pico Pinout

Raspberry Pi Pico pinout. Hardware reference for Raspberry Pi Pico: all 40 edge contacts, the three SWD pads, RP2040 GPIO multiplexing, power and analogue inputs.

Main pinout

Hardware reference for Raspberry Pi Pico: all 40 edge contacts, the three SWD pads, RP2040 GPIO multiplexing, power and analogue inputs.

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show advanced GPIO functions

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

43 visible
PinMCU pinTypesNotes
GPIO0GPIOPWMI2CSPIUARTPhysical pin 1: RP2040 GPIO0. Configurable digital input/output with SPI0 RX, UART0 TX, I2C0 SDA and PWM0 A alternatives.
GPIO1GPIOPWMI2CSPIUARTPhysical pin 2: RP2040 GPIO1. Configurable digital input/output with SPI0 CSn, UART0 RX, I2C0 SCL and PWM0 B alternatives.
GNDGNDPhysical pin 3: Common ground return for the board, external power and connected signals.
GPIO2GPIOPWMI2CSPIUARTPhysical pin 4: RP2040 GPIO2. Configurable digital input/output with SPI0 SCK, UART0 CTS, I2C1 SDA and PWM1 A alternatives.
GPIO3GPIOPWMI2CSPIUARTPhysical pin 5: RP2040 GPIO3. Configurable digital input/output with SPI0 TX, UART0 RTS, I2C1 SCL and PWM1 B alternatives.
GPIO4GPIOPWMI2CSPIUARTPhysical pin 6: RP2040 GPIO4. Configurable digital input/output with SPI0 RX, UART1 TX, I2C0 SDA and PWM2 A alternatives.
GPIO5GPIOPWMI2CSPIUARTPhysical pin 7: RP2040 GPIO5. Configurable digital input/output with SPI0 CSn, UART1 RX, I2C0 SCL and PWM2 B alternatives.
GNDGNDPhysical pin 8: Common ground return for the board, external power and connected signals.
GPIO6GPIOPWMI2CSPIUARTPhysical pin 9: RP2040 GPIO6. Configurable digital input/output with SPI0 SCK, UART1 CTS, I2C1 SDA and PWM3 A alternatives.
GPIO7GPIOPWMI2CSPIUARTPhysical pin 10: RP2040 GPIO7. Configurable digital input/output with SPI0 TX, UART1 RTS, I2C1 SCL and PWM3 B alternatives.
GPIO8GPIOPWMI2CSPIUARTPhysical pin 11: RP2040 GPIO8. Configurable digital input/output with SPI1 RX, UART1 TX, I2C0 SDA and PWM4 A alternatives.
GPIO9GPIOPWMI2CSPIUARTPhysical pin 12: RP2040 GPIO9. Configurable digital input/output with SPI1 CSn, UART1 RX, I2C0 SCL and PWM4 B alternatives.
GNDGNDPhysical pin 13: Common ground return for the board, external power and connected signals.
GPIO10GPIOPWMI2CSPIUARTPhysical pin 14: RP2040 GPIO10. Configurable digital input/output with SPI1 SCK, UART1 CTS, I2C1 SDA and PWM5 A alternatives.
GPIO11GPIOPWMI2CSPIUARTPhysical pin 15: RP2040 GPIO11. Configurable digital input/output with SPI1 TX, UART1 RTS, I2C1 SCL and PWM5 B alternatives.
GPIO12GPIOPWMI2CSPIUARTPhysical pin 16: RP2040 GPIO12. Configurable digital input/output with SPI1 RX, UART0 TX, I2C0 SDA and PWM6 A alternatives.
GPIO13GPIOPWMI2CSPIUARTPhysical pin 17: RP2040 GPIO13. Configurable digital input/output with SPI1 CSn, UART0 RX, I2C0 SCL and PWM6 B alternatives.
GNDGNDPhysical pin 18: Common ground return for the board, external power and connected signals.
GPIO14GPIOPWMI2CSPIUARTPhysical pin 19: RP2040 GPIO14. Configurable digital input/output with SPI1 SCK, UART0 CTS, I2C1 SDA and PWM7 A alternatives.
GPIO15GPIOPWMI2CSPIUARTPhysical pin 20: RP2040 GPIO15. Configurable digital input/output with SPI1 TX, UART0 RTS, I2C1 SCL and PWM7 B alternatives.
VBUSPowerPhysical pin 40: USB bus voltage. Normally 5 V when the micro-USB connector is powered; absent when USB is disconnected.
VSYSPowerPhysical pin 39: Main system supply input for the on-board buck-boost regulator; accepts approximately 1.8 to 5.5 V.
GNDGNDPhysical pin 38: Common ground return for the board, external power and connected signals.
3V3_ENControlPhysical pin 37: Enable for the on-board 3.3 V regulator. Pull low to disable the regulator and shut down the RP2040.
3V3(OUT)PowerPhysical pin 36: Regulated 3.3 V supply shared with the RP2040 and its I/O; may power external circuitry within the regulator budget.
ADC_VREFAnalogPhysical pin 35: Analogue supply and reference for the ADC, normally derived from the filtered 3.3 V rail.
GPIO28GPIOPWMI2CSPIUARTAnalogPhysical pin 34: RP2040 GPIO28. Configurable digital input/output with SPI1 RX, UART0 TX, I2C0 SDA and PWM6 A alternatives.
AGNDGNDPhysical pin 33: Analogue ground reference, connected to board ground; useful as the low-noise return for analogue inputs.
GPIO27GPIOPWMI2CSPIUARTAnalogPhysical pin 32: RP2040 GPIO27. Configurable digital input/output with SPI1 TX, UART1 RTS, I2C1 SCL and PWM5 B alternatives.
GPIO26GPIOPWMI2CSPIUARTAnalogPhysical pin 31: RP2040 GPIO26. Configurable digital input/output with SPI1 SCK, UART1 CTS, I2C1 SDA and PWM5 A alternatives.
RUNControlPhysical pin 30: RP2040 run/reset input. Pull low to reset the microcontroller; release to run.
GPIO22GPIOPWMI2CSPIUARTPhysical pin 29: RP2040 GPIO22. Configurable digital input/output with SPI0 SCK, UART1 CTS, I2C1 SDA and PWM3 A alternatives.
GNDGNDPhysical pin 28: Common ground return for the board, external power and connected signals.
GPIO21GPIOPWMI2CSPIUARTPhysical pin 27: RP2040 GPIO21. Configurable digital input/output with SPI0 CSn, UART1 RX, I2C0 SCL and PWM2 B alternatives.
GPIO20GPIOPWMI2CSPIUARTPhysical pin 26: RP2040 GPIO20. Configurable digital input/output with SPI0 RX, UART1 TX, I2C0 SDA and PWM2 A alternatives.
GPIO19GPIOPWMI2CSPIUARTPhysical pin 25: RP2040 GPIO19. Configurable digital input/output with SPI0 TX, UART0 RTS, I2C1 SCL and PWM1 B alternatives.
GPIO18GPIOPWMI2CSPIUARTPhysical pin 24: RP2040 GPIO18. Configurable digital input/output with SPI0 SCK, UART0 CTS, I2C1 SDA and PWM1 A alternatives.
GNDGNDPhysical pin 23: Common ground return for the board, external power and connected signals.
GPIO17GPIOPWMI2CSPIUARTPhysical pin 22: RP2040 GPIO17. Configurable digital input/output with SPI0 CSn, UART0 RX, I2C0 SCL and PWM0 B alternatives.
GPIO16GPIOPWMI2CSPIUARTPhysical pin 21: RP2040 GPIO16. Configurable digital input/output with SPI0 RX, UART0 TX, I2C0 SDA and PWM0 A alternatives.
SWCLKDebugSerial Wire Debug clock input.
GNDGNDGround reference for the debug probe.
SWDIODebugBidirectional Serial Wire Debug data line.

Specifications

Microcontroller
RP2040: dual Cortex-M0+ up to 133 MHz
Memory
264 kB SRAM / 2 MB QSPI flash
Power / logic
VSYS 1.8-5.5 V; 3.3 V GPIO
GPIO / ADC
26 GPIO; 3 external 12-bit ADC channels
Interfaces
2 UART, SPI and I2C; 16 PWM; 8 PIO state machines

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
Raspberry Pi PicoBoard datasheet and schematicRaspberry PiPower chain, pin assignments, mechanical drawing, schematic and PCB component locations.Datasheet
RP2040Microcontroller datasheetRaspberry PiElectrical limits, GPIO function-selection table, peripherals and programming.Datasheet
Pico / Pico 2Official board pinoutRaspberry Pi40-pin board layout and SWD connector.Datasheet

Board notes

GPIO and alternate functions
GPIO pads use 3.3 V logic. UART, SPI, I2C, PWM and PIO functions share pins and must be selected in software.
Power and analogue reference
VSYS supplies the on-board regulator. ADC_VREF is filtered from 3.3 V; AGND is the analogue return.
Programming and debug
Hold BOOTSEL while connecting USB for UF2 programming. SWCLK, GND and SWDIO provide a separate debug interface.
Board format
51 x 21 mm board with two rows of 20 castellated pads, a micro-USB connector and three SWD debug pads.