Appendix C. Raspberry Pi Pinouts

Raspberry Pi 2 Model B, B+, A+, Zero

Figure C-1 shows the pinouts for the current 40-pin GPIO Raspberry Pi.

FC1
Figure C-1. 40-pin Raspberry Pi GPIO Pinout

Raspberry Pi Model B, Rev. 2, A

If you have an Raspberry Pi, it is most likely the model B rev. 2 board shown in Figure C-2.

FC2
Figure C-2. Raspberry Pi Model B rev. 2 and Model A GPIO Pinout

Raspberry Pi Model B, Rev. 1

The very first released version of the Raspberry Pi model B (rev. 1) has some minor pinout differences from the rev. 2 that followed. This is the only version of the Raspberry Pi that is not compatible with later pinouts. The incompatible pins that changed are highlighted in bold in Figure C-3.

FC3
Figure C-3. Raspberry Pi Model B Rev. 1 GPIO Pinout

Get Electronics Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.