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.
|3.3 V||1||2||5 V|
|GPIO 0 / 2 I2C SDA||3||4||5 V|
|GPIO 1 / 3 I2C SCL||5||6||GND|
|GPIO 4||7||8||GPIO 14 UART TXD|
|GND||9||10||GPIO 15 UART RXD|
|GPIO 17||11||12||GPIO 18|
|GPIO 21 / 27||13||14||GND|
|GPIO 22||15||16||GPIO 23|
|3.3 V||17||18||GPIO 24|
|GPIO 10 SPI MOSI||19||20||GND|
|GPIO 9 SPI MISO||21||22||GPIO 25|
|GPIO 11 SPI SCLK||23||24||GPIO 8 SPI CE0|
|GND||25||26||GPIO 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.
Sources used to create this post:
3 thoughts on “Raspberry Pi Pinout Diagram”