How to Read GPIO Pinouts for Raspberry Pi, Arduino and ESP32
Physical pins versus GPIO numbers, which pins handle I2C, SPI, PWM and analog, the ESP32 pins to avoid, and how to plan your wiring safely.

A wrong wire on a breadboard can mean a sensor that does not answer, a board that will not boot or, in the worst case, a dead pin. Most of these mistakes come from reading the pinout wrongly: confusing two numbering schemes, using a pin the board needs for itself, or connecting a 5 V signal to a 3.3 V input. A clear, searchable pin map prevents nearly all of them.
Two numbers for every pin
On a Raspberry Pi each pin of the 40-pin header has a physical number, its position from 1 to 40, starting at the square pad. It also has a GPIO number, often called the BCM number, which is what software uses. Physical pin 12 is GPIO 18, for example. Libraries such as gpiozero and libgpiod expect the GPIO number, so LED(17) means the pin on physical position 11. Mixing the two is the classic beginner error.
Arduino boards print their pin names on the board, D0 to D13 and A0 to A5, and the analog pins double as digital pins 14 to 19 on the Uno and Nano. The ESP32 and the Raspberry Pi Pico use GPIO numbers on their labels, written GPIO 4 or GP4.
Pins with special jobs
- I2C uses two wires, SDA and SCL. On a Raspberry Pi they are GPIO 2 and 3, on an Uno A4 and A5, and on an ESP32 GPIO 21 and 22 by default.
- SPI uses MOSI, MISO, a clock and a chip-select line per device.
- UART serial uses TX and RX, which cross over: TX of one device goes to RX of the other.
- PWM creates dimmable or variable outputs. The Uno has it on pins 3, 5, 6, 9, 10 and 11; the Pi has hardware PWM on GPIO 12, 13, 18 and 19.
- Analog inputs read voltages. The Raspberry Pi has none, so it needs an external converter.
The ESP32 pins to treat with care
The ESP32 is popular and cheap, but some of its pins are traps. GPIO 6 to 11 are wired to the flash chip; using them crashes the board. GPIO 0, 2, 5, 12 and 15 are strapping pins whose level at power-up decides how the chip boots, so a sensor that pulls one of them the wrong way can stop the board from starting. GPIO 34 to 39 are input-only and have no internal pull-up resistors. And the second analog converter, ADC2, cannot be read while Wi-Fi is on, so analog sensors in connected projects belong on ADC1 pins 32 to 39.
Voltage
The Raspberry Pi, Pico and ESP32 run at 3.3 V and their pins are not 5 V tolerant. A 5 V sensor output needs a level shifter or a resistor divider before it reaches them. The Uno and classic Nano run at 5 V. The 5 V pins on a Raspberry Pi come straight from the power supply, so a slip of a jumper wire onto a GPIO pin can destroy it.
Using the interactive reference
The Interactive GPIO Pinout Reference shows the Raspberry Pi header, the Pico, the Uno, the Nano and the ESP32 DevKitC laid out like the real boards, with pins coloured by type. Tap any pin to see its functions, voltage notes, warnings and a one-line code hint. Search accepts a GPIO number such as 18, a physical position such as pin 12, or a function such as SDA or ADC. The filter dims every pin except the group you choose: I2C, SPI, UART, PWM, analog, DAC, touch, power, ground, or Use with care, which highlights the risky pins described above.
As you plan a circuit, type what you connect to each pin, such as DHT22 data or red LED. Labels appear on the map and in a wiring table, are saved in your browser per board, and can be downloaded as CSV or printed as a wiring sheet to keep next to the breadboard.
A final check
Board revisions and clones sometimes differ from the official pinout, and similar-sounding boards such as the ESP32-S3 or Arduino Uno R4 have different layouts. Always compare with the silkscreen on your board before powering up, and never drive motors or relays straight from a GPIO pin without a driver.



