Meet the Pi’s GPIO Pins

To connect your own electronics projects to the Pi, you can use the expansion header in the top-left corner of the Pi (see Figure 1, The front side of a Model B (Revision 1)). It consists of twenty-six pins arranged in two rows containing thirteen pins each. The top row contains the even-numbered pins, and the other row contains the odd-numbered pins. That is, the first pin in the lower row is pin 1, and you can find the label “P1” on the Pi below the pin.

In the following figure, you can see the meaning and the numbering of the pins. Note that the meaning of some pins has changed between revision 1 and revision 2. With the pins labeled Ground, the Pi can share a common ground with our electronics projects. Using ...

Get Raspberry Pi, 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.