Adafruit article on the Raspberry Pi 2 – Model B
Cortex-A53 processor v1.2 PCBs and Pi 3
Raspberry Pi GPIO Header pinouts
Raspberry Pi Hardware page from the mothership page
GPIO# | ALT0 function | Pin# | Pin# | ALT0 function | GPIO# | |
---|---|---|---|---|---|---|
+3.3 V | 1 | 2 | +5 V | |||
2 | SDA1 (I²C, PCB 1.8k PUP to 3.3V) | 3 | 4 | +5 V | ||
3 | SCL1 (I²C, PCB 1.8k PUP to 3.3V) | 5 | 6 | GND | ||
4 | GPCLK0/1-Wire | 7 | 8 | TXD0 (UART) | 14 | |
GND | 9 | 10 | RXD0 (UART) | 15 | ||
17 | 11 | 12 | CLK (PCM) | 18 | ||
27 | 13 | 14 | GND | |||
22 | 15 | 16 | 23 | |||
+3.3 V | 17 | 18 | 24 | |||
10 | MOSI (SPI) | 19 | 20 | GND | ||
9 | MISO (SPI) | 21 | 22 | 25 | ||
11 | SCLK (SPI) | 23 | 24 | CE0_N (SPI) | 8 | |
GND | 25 | 26 | CE1_N (SPI) | 7 | ||
RESERVED (I²C ID EEPROM Data) | 27 | 28 | RESERVED (I²C ID EEPROM Clock) | |||
5 | GPCLK1 | 29 | 30 | GND | ||
6 | GPCLK2 | 31 | 32 | PWM0 | 12 | |
13 | PWM1 | 33 | 34 | GND | ||
19 | FS (PCM) | 35 | 36 | 16 | ||
26 | 37 | 38 | DIN (PCM) | 20 | ||
GND | 39 | 40 | DOUT (PCM) | 21 |