Raspberry PI - GPIO pin layout.
Pin | Name | Type | Communication | PWM | GPIO | WiringPI |
---|---|---|---|---|---|---|
1 | 3V3 | Power | ||||
2 | 5V | Power | ||||
3 | GPIO02 | SDA1 | I2C | 8 | ||
4 | 5V | Power | ||||
5 | GPIO03 | SCL1 | I2C | 9 | ||
6 | GND | Ground | ||||
7 | GPIO04 | GCLK | 7 | |||
8 | GPIO14 | UARTD_TXD | TXD (TX0) | 15 | ||
9 | GND | Ground | ||||
10 | GPIO15 | UARTD_RXD | RXD (RX0) | 16 | ||
11 | GPIO17 | GEN0 | 0 | |||
12 | GPIO18 | PCM_CLK | PCM | PWM0 | GEN1 | 1 |
13 | GPIO27 | GEN2 | 2 | |||
14 | Ground | |||||
15 | GPIO22 | GEN3 | 3 | |||
16 | GPIO23 | GEN4 | 4 | |||
17 | 3V3 | Power | ||||
18 | GPIO24 | GEN5 | 5 | |||
19 | GPIO10 | SPI0_MOSI | SPI (ICSP) | 12 | ||
20 | Ground | |||||
21 | GPIO09 | SPI0_MOSO | SPI (ICSP) | 13 | ||
22 | GPIO25 | GEN6 | 6 | |||
23 | GPIO11 | SPI0_SCLK | SPI (ICSP) | 14 | ||
24 | GPIO08 | SPI0_CE0_N | SPI (ICSP) | 10 | ||
25 | Ground | |||||
26 | GPIO07 | SPI0_CE1_N | SPI (ICSP) | 11 | ||
27 | ID_SD | I2C_ID | I2C EEPROM | |||
28 | ID_SC | I2C_ID | I2C EEPROM | |||
29 | GPIO05 | 21 | ||||
30 | Ground | |||||
31 | GPIO06 | 22 | ||||
32 | GPIO12 | PWM0 | 26 | |||
33 | GPIO13 | PWM1 | 23 | |||
34 | Ground | |||||
35 | GPIO19 | PCM_FS | PCM | PWM1 | 24 | |
36 | GPIO16 | 27 | ||||
37 | GPIO26 | 25 | ||||
38 | GPIO20 | PCM_DIN | PCM | 28 | ||
39 | Ground | |||||
40 | GPIO21 | PCM_DOUT | PCM | 29 |