Raspberry Pins¶
Hold the raspberry so that the pins are on the right side, vertically from top to bottom.
serial: tx, rx
i2c: sda, scl
spi: mosi, miso, clk, ce0, ce1
Raspberry A/B Rev 1¶
. |
usage |
pin |
pin |
usage |
. |
---|---|---|---|---|---|
. |
3.3V |
1 |
2 |
5 V |
. |
sda |
GPIO0 |
3 |
4 |
5 V |
. |
scl |
GPIO1 |
5 |
6 |
GND |
. |
. |
GPIO4 |
7 |
8 |
GPIO14 |
TX |
. |
GND |
9 |
10 |
GPIO15 |
RX |
. |
GPIO17 |
11 |
12 |
GPIO18 |
pwm |
. |
GPIO21 |
13 |
14 |
GND |
. |
. |
GPIO22 |
15 |
16 |
GPIO23 |
. |
. |
3.3V |
17 |
18 |
GPIO24 |
. |
mosi |
GPIO10 |
19 |
20 |
GND |
. |
miso |
GPIO9 |
21 |
22 |
GPIO25 |
. |
clk |
GPIO11 |
23 |
24 |
GPIO8 |
ce0 |
. |
GND |
25 |
26 |
GPIO7 |
ce1 |
Raspberry A/B Rev 2¶
. |
usage |
pin |
pin |
usage |
. |
---|---|---|---|---|---|
. |
3.3V |
1 |
2 |
5 V |
. |
sda |
GPIO2 |
3 |
4 |
5 V |
. |
scl |
GPIO3 |
5 |
6 |
GND |
. |
. |
GPIO4 |
7 |
8 |
GPIO14 |
TX |
. |
GND |
9 |
10 |
GPIO15 |
RX |
. |
GPIO17 |
11 |
12 |
GPIO18 |
pwm |
. |
GPIO27 |
13 |
14 |
GND |
. |
. |
GPIO22 |
15 |
16 |
GPIO2 |
. |
. |
3.3V |
17 |
18 |
GPIO24 |
. |
mosi |
GPIO10 |
19 |
20 |
GND |
. |
miso |
GPIO9 |
21 |
22 |
GPIO25 |
. |
clk |
GPIO11 |
23 |
24 |
GPIO8 |
ce0 |
. |
GND |
25 |
26 |
GPIO7 |
ce1 |
Raspberry B+, 2, 3¶
. |
usage |
pin |
pin |
usage |
. |
---|---|---|---|---|---|
. |
3.3V |
1 |
2 |
5 V |
. |
sda |
GPIO2 |
3 |
4 |
5 V |
. |
scl |
GPIO3 |
5 |
6 |
GND |
. |
. |
GPIO4 |
7 |
8 |
GPIO14 |
TX |
. |
GND |
9 |
10 |
GPIO15 |
RX |
. |
GPIO17 |
11 |
12 |
GPIO18 |
pwm |
. |
GPIO27 |
13 |
14 |
GND |
. |
. |
GPIO22 |
15 |
16 |
GPIO2 |
. |
. |
3.3V |
17 |
18 |
GPIO24 |
. |
mosi |
GPIO10 |
19 |
20 |
GND |
. |
miso |
GPIO9 |
21 |
22 |
GPIO25 |
. |
clk |
GPIO11 |
23 |
24 |
GPIO8 |
ce0 |
. |
GND |
25 |
26 |
GPIO7 |
ce1 |
. |
EEPROM |
27 |
28 |
EEPROM |
. |
. |
GPIO5 |
29 |
30 |
GND |
. |
. |
GPIO6 |
31 |
32 |
GPIO12 |
. |
. |
GPIO13 |
33 |
34 |
GND |
. |
. |
GPIO19 |
35 |
36 |
GPIO16 |
. |
. |
GPIO26 |
37 |
38 |
GPIO20 |
. |
. |
GND |
39 |
40 |
GPIO21 |
. |