## Raspberry Pi GPIO Pin Layout

### Pi 3, Pi 2, Pi Zero, Model B+ and Model A+ boards

This is the GPIO Pin layout for the Pi 3, Pi 2, Pi Zero, Model B+ and Model A+ boards.
You can view the layout for the Model A and Model B Revision 2.0 Boards here.
You can view the layout for the original Model B Revision 1.0 boards here.

For each Pin on the Raspberry Pi breakout pads, the table provides the following detail:

  Wiring - This is the wiringPi pin number used with Gordon Henderson 's wiringPi library (http://projects.drogon.net/raspberry-pi/wiringpi/). See also : HiPi::Wiring.

  GPIO - This is the internal BCM2835 SOC GPIO pin number. It is the one that is used in the BCM2835 documentation and is the expected input for many of the HiPi modules. See also : HiPi::BCM2835. The module HiPi::Constant provides useful constants for the GPIO pin numbers named for the Raspberry Pi physical header pin numbers.

  Name - This is the common name. Where a kernel device driver uses pins by default, those pins are named for their default function.

  Raspberry Pi - notes the physical pin number on the GPIO header.

##### GPIO PAD J8

`

Wiring | GPIO | Name | Raspberry Pi | Name | GPIO | Wiring
-------- | ------ | ---------- | ---- | ---- | ---------- | ------ | --------
- | - | 3V3 | 1 | 2 | 5V0 | - | -
8 | 2 | I2C1_SDA | 3 | 4 | 5V0 | - | -
9 | 3 | I2C1_SCL | 5 | 6 | GND | - | -
7 | 4 | GPIO_4 | 7 | 8 | UART1_TXD | 14 | 15
- | - | GND | 9 | 10 | UART1_RXD | 15 | 16
0 | 17 | GPIO_17 | 11 | 12 | GPIO_18 | 18 | 1
2 | 27 | GPIO_27 | 13 | 14 | GND | - | -
3 | 22 | GPIO_22 | 15 | 16 | GPIO_23 | 23 | 4
- | - | 3V3 | 17 | 18 | GPIO_24 | 24 | 5
12 | 10 | SPI0_MOSI | 19 | 20 | GND | - | -
13 | 9 | SPI0_MISO | 21 | 22 | GPIO_25 | 25 | 6
14 | 11 | SPI0_SCLK | 23 | 24 | SPI0_CE0_N | 8 | 10
- | - | GND | 25 | 26 | SPI0_CE1_N | 7 | 11
30 | 0 | I2S Eprom | 27 | 28 | I2S Eprom | 1 | 31
21 | 5 | GPIO_5 | 29 | 30 | GND | - | -
22 | 6 | GPIO_6 | 31 | 32 | GPIO_12 | 12 | 26
23 | 13 | GPIO_13 | 33 | 34 | GND | - | -
24 | 19 | GPIO_19 | 35 | 36 | GPIO_16 | 16 | 27
25 | 26 | GPIO_26 | 37 | 38 | GPIO_20 | 20 | 28
- | - | GND | 39 | 40 | GPIO_21 | 21 | 29

`

HiPi Modules Copyright © 2013 - 2016 Mark Dootson