Raspberry Pi GPIO Pin Guide
This guide is a GPIO pin reference for all available Raspberry Pi boards to date. Use the tables to check for the pin’s location, name, and function.
The following table shows the GPIOs for the Raspberry Pi 3 Model B, Raspberry Pi 2 Model B, Raspberry Pi 1 Model A+, Raspberry Pi 1 Model B+, Raspberry Pi Zero, and Raspberry Pi Zero W.
FUNCTION |
NAME |
NUMBER |
NUMBER |
NAME |
FUNCTION |
DC power |
3.3 V |
1 |
2 |
5 V |
DC power |
SDA1, I2C |
GPIO 2 |
3 |
4 |
5 V |
DC power |
SCL1, I2C |
GPIO 3 |
5 |
6 |
GND |
|
GPIO_GCLK |
GPIO 4 |
7 |
8 |
GPIO 14 |
TXD0 |
|
GND |
9 |
10 |
GPIO 15 |
RXD0 |
GPIO_GEN0 |
GPIO 17 |
11 |
12 |
GPIO 18 |
GPIO_GEN1 |
GPIO_GEN2 |
GPIO 27 |
13 |
14 |
GND |
|
GPIO_GEN3 |
GPIO 22 |
15 |
16 |
GPIO 23 |
GPIO_GEN4 |
DC power |
3.3 V |
17 |
18 |
GPIO 24 |
GPIO_GEN5 |
SPI_MOSI |
GPIO 10 ... |
Get 20 Easy Raspberry Pi Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.