DevTools Logo

GPIO Pinout Interactive Visualizer

GPIO Pinout Interactive

Explore Raspberry Pi, ESP32, and Arduino pin functions with logic-level warnings.

Runs in your browser
Try an example

Raspberry Pi (40-pin GPIO)

40 of 40 pins shown

Pin 1: 3V3 Power

3.3 V logic
Logic level: 3.3 V. GPIO pins are 3.3 V logic and are not 5 V tolerant. Level-shift 5 V signals before connecting them.
Power

3.3 V supply. Limited current, shared with the board.

Visible pins
PinGPIONameFunctions
13V3 Powerpower
25V Powerpower
32GPIO2 / SDA1gpio, i2c
45V Powerpower
53GPIO3 / SCL1gpio, i2c
6Groundground
74GPIO4gpio
814GPIO14 / TXD0gpio, uart
9Groundground
1015GPIO15 / RXD0gpio, uart
1117GPIO17gpio
1218GPIO18 / PWM0gpio, pwm, spi
1327GPIO27gpio
14Groundground
1522GPIO22gpio
1623GPIO23gpio
173V3 Powerpower
1824GPIO24gpio
1910GPIO10 / SPI0 MOSIgpio, spi
20Groundground
219GPIO9 / SPI0 MISOgpio, spi
2225GPIO25gpio
2311GPIO11 / SPI0 SCLKgpio, spi
248GPIO8 / SPI0 CE0gpio, spi
25Groundground
267GPIO7 / SPI0 CE1gpio, spi
270GPIO0 / SDA0gpio, i2c
281GPIO1 / SCL0gpio, i2c
295GPIO5gpio
30Groundground
316GPIO6gpio
3212GPIO12 / PWM0gpio, pwm
3313GPIO13 / PWM1gpio, pwm
34Groundground
3519GPIO19 / PWM1 / SPI1 MISOgpio, pwm, spi
3616GPIO16gpio
3726GPIO26gpio
3820GPIO20 / SPI1 MOSIgpio, spi
39Groundground
4021GPIO21 / SPI1 SCLKgpio, spi

Examples

Raspberry Pi I2C pins

Input
filterPins("raspberry-pi", "i2c").map(p => p.physical)
Output
[3, 5, 27, 28]

Both SDA/SCL pairs (I2C1 on 3/5, I2C0 on 27/28) in header order.

Unknown board error

Input
getBoardPinout("beaglebone")
Output
"Unknown board: beaglebone" (thrown)

Only the three bundled boards resolve; anything else throws.

About this tool

GPIO Pinout Interactive looks up single-board headers with getBoardPinout(board) and narrows them with filterPins(board, fn): the Raspberry Pi entry carries the full 40-pin header in physical order, ESP32 DevKit has 30 pins, and Arduino Uno has 20 — every pin lists physical, name, functions, optional gpio, and notes.

Function tags cover power, ground, gpio, i2c, spi, uart, pwm, and adc: Raspberry Pi I2C lives on physical 3, 5, 27, 28 (SDA/SCL pairs), and ESP32 ADC covers GPIO 32–36 plus 39. Multi-function pins simply carry several tags at once.

Lookups are strict and deterministic: unknown board ids throw "Unknown board: <id>", and filters preserve physical order with no network access.

How to use this tool

  1. Choose a board

    Call getBoardPinout with raspberry-pi, esp32, or arduino-uno for the full pin array.

  2. Filter by function

    Pass i2c, spi, uart, pwm, adc, power, ground, or gpio to filterPins — "all" returns everything.

  3. Wire from physical numbers

    Use the physical field (1-based header position) plus name and note for SDA/SCL orientation.

Use cases

Wiring an I2C sensor to a Pi

Find the SDA/SCL pair plus ground and power pins before connecting anything.

Checking ESP32 analog inputs

Filter adc to see which GPIOs can read analog sensors on the DevKit layout.

Avoiding UART conflicts

Confirm TX/RX pins are free before attaching a serial peripheral.

Common mistakes

Mistake:Reading gpio numbers as physical positions.

Fix:Use physical for the header slot and gpio for the Broadcom/SoC number — pin 3 is GPIO2, not GPIO3.

Mistake:Assuming every board has the same functions.

Fix:Filter per board: ADC exists on ESP32 and Uno analog pins but the Pi header exposes none.

Frequently asked questions

What does this tool do?

It maps dev-board headers with getBoardPinout (raspberry-pi 40 pins, esp32 30 pins, arduino-uno 20 pins) and filters them with filterPins by power, ground, gpio, i2c, spi, uart, pwm, or adc.

Which Pi pins are I2C?

Physical 3 (SDA1), 5 (SCL1), 27 (SDA0), and 28 (SCL0) — filterPins("raspberry-pi", "i2c") returns them in header order.

Is my wiring plan uploaded or stored?

No. Pinout tables and filters are bundled data queried locally in your browser.

Why did my board lookup throw?

Only raspberry-pi, esp32, and arduino-uno exist — any other id throws Unknown board: <id>.

References & standards