Raspberry Pi Pinout Diagram

Published on January 20, 2013

Pinouts for the Raspberry Pi P1 header, showing pins that can be used for general purpose IO. I used some online sources to get the naming for the pins (source list at the bottom of this post). Some of the power and ground pins were initially marked as ‘do not connect’, but it has now been confirmed that these pins won’t change so I included them below as well (Pins 4, 9, 14, 17, 20 and 25).

A few pins changed between Revision 1 and Revision 2 of the board (Pins 3, 5 and 13). The pin description in the table below shows first the Revision 1 GPIO number followed by a slash and then the Revision 2 GPIO number.

image

NamePinPinName
3.3 V1orangered25 V
GPIO 0 / 2 I2C SDA3cyanred45 V
GPIO 1 / 3 I2C SCL5cyanblack6GND
GPIO 47greenyellow8GPIO 14 UART TXD
GND9blackyellow10GPIO 15 UART RXD
GPIO 1711greengreen12GPIO 18
GPIO 21 / 2713greenblack14GND
GPIO 2215greengreen16GPIO 23
3.3 V17orangegreen18GPIO 24
GPIO 10 SPI MOSI19magentablack20GND
GPIO 9 SPI MISO21magentagreen22GPIO 25
GPIO 11 SPI SCLK23magentamagenta24GPIO 8 SPI CE0
GND25blackmagenta26GPIO 7 SPI CE1

If you would like to use the graphics in the diagram you can download the source vector file in SVG format from GitHub.