Appendix B. Raspberry Pi Pinouts

Raspberry Pi 3/2 model B, B+, A+, Zero

Figure B-1 shows the pinout for the current 40-pin GPIO Raspberry Pi.

FB1
Figure B-1. 40-pin Raspberry Pi GPIO pinout

Raspberry Pi model B rev. 2, A

If you have a Raspberry Pi, it is most likely to be a model B rev. 2 board, as shown in Figure B-2.

FB2
Figure B-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 to 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 B-3.

FB3
Figure B-3. Raspberry Pi model B rev 1 GPIO pinout

Get Raspberry Pi Cookbook, 2nd Edition 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.