Contents Up Previous Next

Raspberry Pi GPIO Pin Layout

Model A and Model B Revision 2.0 Boards


This is the GPIO Pin layout for the current Model A and Model B Revision 2.0 boards. 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 1
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 UART0_TXD 14 15
- - GND 9 10 UART0_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


GPIO PAD 5

With the release of Model B Revision 2.0 and Model A boards, a second GPIO header - P5 - has been added. There is no connector attached to the 8 through holes so usage will require soldering. The P5 header is positioned next to the P1 header but is designed to accept a connector on the bottom or reverse side of the board. If you connect on the same side as the P1 header, remember that the pins will be reversed left to right.



Wiring GPIO Name Raspberry Pi Name GPIO Wiring
-------- ------ ---------- ---- ---- ---------- ------ --------
- - 5V0 1 2 3V3 - -
17 28 GPIO_28 3 4 GPIO_29 29 18
19 30 GPIO_30 5 6 GPIO_31 31 20
- - GND 7 8 GND - -




Contents Up Previous Next


HiPi Modules Copyright © 2013 Mark Dootson