-
Notifications
You must be signed in to change notification settings - Fork 63
Home
bryan-m-hughes edited this page Dec 9, 2014
·
17 revisions
Welcome to the raspi-io wiki!
Pin mappings in the Raspberry Pi are somewhat complex due to differences in the pinouts between the different versions. Raspi IO uses the pin numbering scheme from Wiring Pi as its base numbering scheme, but also allows you to specify pins based on their physical location, e.g. "P1-7", or by peripheral, e.g. "GPIO18". Here is a table of the pin mappings on all of the support Raspberry Pi boards.
Physical Pin | Wiring Pi Pin | Peripherals | Peripherals | Wiring Pi Pin | Physical Pin |
---|---|---|---|---|---|
1 | 3.3V | 5V | 2 | ||
3 | 8 | GPIO0/SDA | 5V | 4 | |
5 | 9 | GPIO1/SCL | GND | 6 | |
7 | 7 | GPIO4 | GPIO14/TXD | 15 | 8 |
9 | GND | GPIO15/RXD | 16 | 10 | |
11 | 0 | GPIO17 | GPIO18/PWM0 | 1 | 12 |
13 | 2 | GPIO21 | GND | 14 | |
15 | 3 | GPIO22 | GPIO23 | 4 | 16 |
17 | 3.3V | GPIO24 | 5 | 18 | |
19 | 12 | GPIO10/MOSI | GND | 20 | |
21 | 13 | GPIO9/MISO | GPIO25 | 6 | 22 |
23 | 14 | GPIO11/SCLK | GPIO8/CE0 | 10 | 24 |
25 | GND | GPIO9/CE1 | 11 | 26 |
Physical Pin | Wiring Pi Pin | Peripherals | Peripherals | Wiring Pi Pin | Physical Pin |
---|---|---|---|---|---|
1 | 3.3V | 5V | 2 | ||
3 | 8 | GPIO2/SDA | 5V | 4 | |
5 | 9 | GPIO3/SCL | GND | 6 | |
7 | 7 | GPIO4 | GPIO14/TXD | 15 | 8 |
9 | GND | GPIO15/RXD | 16 | 10 | |
11 | 0 | GPIO17 | GPIO18/PWM0 | 1 | 12 |
13 | 2 | GPIO27 | GND | 14 | |
15 | 3 | GPIO22 | GPIO23 | 4 | 16 |
17 | 3.3V | GPIO24 | 5 | 18 | |
19 | 12 | GPIO10/MOSI | GND | 20 | |
21 | 13 | GPIO9/MISO | GPIO25 | 6 | 22 |
23 | 14 | GPIO11/SCLK | GPIO8(CE0) | 10 | 24 |
25 | GND | GPIO9(CE1) | 11 | 26 |
Physical Pin | Wiring Pi Pin | Peripherals | Peripherals | Wiring Pi Pin | Physical Pin |
---|---|---|---|---|---|
1 | 5V | 3.3V | 2 | ||
3 | 17 | GPIO28 | GPIO29 | 18 | 4 |
5 | 19 | GPIO30 | GPIO31 | 20 | 6 |
7 | GND | GND | 8 | ||
Physical Pin | Wiring Pi Pin | Peripherals | Peripherals | Wiring Pi Pin | Physical Pin |
---|---|---|---|---|---|
1 | 3.3V | 5V | 2 | ||
3 | 8 | GPIO2/SDA | 5V | 4 | |
5 | 9 | GPIO3/SCL | GND | 6 | |
7 | 7 | GPIO4 | GPIO14/TXD | 15 | 8 |
9 | GND | GPIO15/RXD | 16 | 10 | |
11 | 0 | GPIO17 | GPIO18/PWM0 | 1 | 12 |
13 | 2 | GPIO27 | GND | 14 | |
15 | 3 | GPIO22 | GPIO23 | 4 | 16 |
17 | 3.3V | GPIO24 | 5 | 18 | |
19 | 12 | GPIO10/MOSI0 | GND | 20 | |
21 | 13 | GPIO9/MISO0 | GPIO25 | 6 | 22 |
23 | 14 | GPIO11/SCLK0 | GPIO8(CE0) | 10 | 24 |
25 | GND | GPIO9(CE1) | 11 | 26 | |
27 | ID_SD | ID_SC | 28 | ||
29 | 21 | GPIO5 | GND | 30 | |
31 | 22 | GPIO6 | GPIO12/PWM0 | 26 | 32 |
33 | 23 | GPIO13 | GND | 34 | |
35 | 24 | GPIO19/MISO1/PWM1 | GPIO16 | 27 | 36 |
37 | 25 | GPIO26 | GPIO20/MOSI1 | 28 | 38 |
39 | GND | GPIO21SCLK1 | 29 | 40 |