Raspberry Pi GPIO Pin Guide

This guide is a GPIO pin reference for all available Raspberry Pi boards to date. Use the tables to check for the pin’s location, name, and function.

The following table shows the GPIOs for the Raspberry Pi 3 Model B, Raspberry Pi 2 Model B, Raspberry Pi 1 Model A+, Raspberry Pi 1 Model B+, Raspberry Pi Zero, and Raspberry Pi Zero W.

FUNCTION

NAME

NUMBER

NUMBER

NAME

FUNCTION

DC power

3.3 V

1

2

5 V

DC power

SDA1, I2C

GPIO 2

3

4

5 V

DC power

SCL1, I2C

GPIO 3

5

6

GND

 

GPIO_GCLK

GPIO 4

7

8

GPIO 14

TXD0

 

GND

9

10

GPIO 15

RXD0

GPIO_GEN0

GPIO 17

11

12

GPIO 18

GPIO_GEN1

GPIO_GEN2

GPIO 27

13

14

GND

 

GPIO_GEN3

GPIO 22

15

16

GPIO 23

GPIO_GEN4

DC power

3.3 V

17

18

GPIO 24

GPIO_GEN5

SPI_MOSI

GPIO 10

19

20

GND

 

SPI_MISO

GPIO 9

21

22

GPIO 25

GPIO_GEN6

SPI_CLK

GPIO 11

23

24

GPIO 8

SPI_CE0_N

 

GND

25

26

GPIO 7

SPI_CE1_N

I2C ID EEPROM

DNC

27

28

DNC

I2C ID EEPROM

 

GPIO 5

29

30

GND

 

 

GPIO 6

31

32

GPIO 12

 

 

GPIO 13

33

34

GND

 

 

GPIO 19

35

36

GPIO 16

 

 

GPIO 26

37

38

GPIO 20

 

 

GND

39

40

GPIO 21

 

Raspberry Pi 1 Model A and Raspberry Pi 1 Model B Rev. 2 have the same pinout but have only the first 26 pins.

The Raspberry Pi 1 Model B Rev. 1 was the very first Raspberry Pi board released and has a different pinout from all the other boards. These boards aren’t available anymore, but just in case you have one, here’s the pinout.

FUNCTION

NAME

NUMBER

NUMBER

NAME

FUNCTION

DC power

3.3 V

1

2

5 V

DC power

SDA0, I2C

GPIO 0

3

4

5 V

DC power

SCL0, I2C

GPIO 1

5

6

GND

 

GPIO_GCLK

GPIO 4

7

8

GPIO 14

TXD0

 

GND

9

10

GPIO 15

RXD0

GPIO_GEN0

GPIO 17

11

12

GPIO 18

GPIO_GEN1

GPIO_GEN2

GPIO 21

13

14

GND

 

GPIO_GEN3

GPIO 22

15

16

GPIO 23

GPIO_GEN4

DC power

3.3 V

17

18

GPIO 24

GPIO_GEN5

SPI_MOSI

GPIO 10

19

20

GND

 

SPI_MISO

GPIO 9

21

22

GPIO 25

GPIO_GEN6

SPI_CLK

GPIO 11

23

24

GPIO 8

SPI_CE0_N

 

GND

25

26

GPIO 7

SPI_CE1_N

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.176.66