GPIO Pinout Interactive
Explore Raspberry Pi, ESP32, and Arduino pin functions with logic-level warnings.
Raspberry Pi (40-pin GPIO)
40 of 40 pins shownPin 1: 3V3 Power
3.3 V logic3.3 V supply. Limited current, shared with the board.
| Pin | GPIO | Name | Functions |
|---|---|---|---|
| 1 | 3V3 Power | power | |
| 2 | 5V Power | power | |
| 3 | 2 | GPIO2 / SDA1 | gpio, i2c |
| 4 | 5V Power | power | |
| 5 | 3 | GPIO3 / SCL1 | gpio, i2c |
| 6 | Ground | ground | |
| 7 | 4 | GPIO4 | gpio |
| 8 | 14 | GPIO14 / TXD0 | gpio, uart |
| 9 | Ground | ground | |
| 10 | 15 | GPIO15 / RXD0 | gpio, uart |
| 11 | 17 | GPIO17 | gpio |
| 12 | 18 | GPIO18 / PWM0 | gpio, pwm, spi |
| 13 | 27 | GPIO27 | gpio |
| 14 | Ground | ground | |
| 15 | 22 | GPIO22 | gpio |
| 16 | 23 | GPIO23 | gpio |
| 17 | 3V3 Power | power | |
| 18 | 24 | GPIO24 | gpio |
| 19 | 10 | GPIO10 / SPI0 MOSI | gpio, spi |
| 20 | Ground | ground | |
| 21 | 9 | GPIO9 / SPI0 MISO | gpio, spi |
| 22 | 25 | GPIO25 | gpio |
| 23 | 11 | GPIO11 / SPI0 SCLK | gpio, spi |
| 24 | 8 | GPIO8 / SPI0 CE0 | gpio, spi |
| 25 | Ground | ground | |
| 26 | 7 | GPIO7 / SPI0 CE1 | gpio, spi |
| 27 | 0 | GPIO0 / SDA0 | gpio, i2c |
| 28 | 1 | GPIO1 / SCL0 | gpio, i2c |
| 29 | 5 | GPIO5 | gpio |
| 30 | Ground | ground | |
| 31 | 6 | GPIO6 | gpio |
| 32 | 12 | GPIO12 / PWM0 | gpio, pwm |
| 33 | 13 | GPIO13 / PWM1 | gpio, pwm |
| 34 | Ground | ground | |
| 35 | 19 | GPIO19 / PWM1 / SPI1 MISO | gpio, pwm, spi |
| 36 | 16 | GPIO16 | gpio |
| 37 | 26 | GPIO26 | gpio |
| 38 | 20 | GPIO20 / SPI1 MOSI | gpio, spi |
| 39 | Ground | ground | |
| 40 | 21 | GPIO21 / SPI1 SCLK | gpio, spi |
Examples
Raspberry Pi I2C pins
filterPins("raspberry-pi", "i2c").map(p => p.physical)[3, 5, 27, 28]Both SDA/SCL pairs (I2C1 on 3/5, I2C0 on 27/28) in header order.
Unknown board error
getBoardPinout("beaglebone")"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
Choose a board
Call getBoardPinout with raspberry-pi, esp32, or arduino-uno for the full pin array.
Filter by function
Pass i2c, spi, uart, pwm, adc, power, ground, or gpio to filterPins — "all" returns everything.
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>.
Related guides
References & standards
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.gitattributes Generator
Build .gitattributes rules for line endings, Git LFS, GitHub linguist marks and merge drivers — with a one-line explanation for every rule.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
A/B Test Sample Size Calculator
Compute required sample size per variant and test duration from baseline conversion rate, minimum detectable effect, alpha and power.
ABA Routing Number Validator
Validate 9-digit US ABA routing numbers with 3-7-1 Mod-10 breakdown.