CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 14:05:00 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"aaad08550a902a68cab7b23e79fdff64"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=XdXnrmO5YeTrNCyZlz%2BENKbUh%2F0mINWrkPla91i4uw3g7rM%2FTeQ9SUkAqXzt4ovLNU9nif%2B0DF0QlW5NIUKB7OICahZh2sFeYQKKtseKLTsredClZflei6wUldm5TQNRR%2FEnmO1xgwUusK84396a2fcWVIBWrv9koXQP0WbRfZICvtSVSewybDZGeuF6adHl%2BK7n32YR%2FqSg2OXW4gF%2FJIBftBzKkvaeKaPhVMumS9U5VExTZ8JHXGy%2FvIp2ThbudhVmN34PTuDD8U7i0HyFFg%3D%3D--zOuD4zBfAYjY%2Bl%2Fm--enye7A9xrS17aIRw42CvxQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.76041221.1753884300; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 14:05:00 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 14:05:00 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E8C2:15EDC9:150DB5:17D602:688A268C
Pin Information · nebrius/raspi-io Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 63
Pin Information
Bryan Hughes edited this page Jul 16, 2020
·
10 revisions
The pins on the Raspberry Pi are a little complicated. There are multiple headers on some Raspberry Pis with extra pins, and the pin numbers are not consistent between Raspberry Pi board versions.
To help make it easier, you can specify pins in any of the following three ways:
- By function, e.g.
'GPIO18'
- By physical Pi pin number, e.g.
'P1-7'
. The format is'P[header]-[pin]'
- By WiringPi virtual pin number, e.g.
7
Note: If you specify a Number
instead of a string
, it is assumed to be a WiringPi number.
Note: Each pin is given a peripheral name, and is one of a few possibilities:
Name | Peripheral | Description |
---|---|---|
GPIOx | GPIO | General Purpose IO port x |
PWMx | PWM | Pulse Width Modulator port x |
TXDx | UART | Serial port x transmit pin |
RXDx | UART | Serial port x receive pin |
SDAx | I2C | Inter-Integrated Circuit port x data pin |
SCLx | I2C | Inter-Integrated Circuit port x clock pin |
MOSIx | SPI | Serial Peripheral Interface port x Master Out/Slave In pin |
MISOx | SPI | Serial Peripheral Interface port x Master In/Slave Out pin |
SCLKx | SPI | Serial Peripheral Interface port x Clock pin |
CEx | SPI | Serial Peripheral Interface port x Chip Enable pin |
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 |
---|---|---|---|---|---|---|
P1-1 | 3.3V | | | 5V | P1-2 | ||
P1-3 | SDA0 | | | 5V | P1-4 | ||
P1-5 | SCL0 | | | GND | P1-6 | ||
P1-7 | 7 | GPIO4 | | | GPIO14/TXD0 | 15 | P1-8 |
P1-9 | GND | | | GPIO15/RXD0 | 16 | P1-10 | |
P1-11 | 0 | GPIO17 | | | GPIO18/PWM0 | 1 | P1-12 |
P1-13 | 2 | GPIO21 | | | GND | P1-14 | |
P1-15 | 3 | GPIO22 | | | GPIO23 | 4 | P1-16 |
P1-17 | 3.3V | | | GPIO24 | 5 | P1-18 | |
P1-19 | 12 | GPIO10/MOSI0 | | | GND | P1-20 | |
P1-21 | 13 | GPIO9/MISO0 | | | GPIO25 | 6 | P1-22 |
P1-23 | 14 | GPIO11/SCLK0 | | | GPIO8/CE0 | 10 | P1-24 |
P1-25 | GND | | | GPIO7 | 11 | P1-26 |
Physical Pin | Wiring Pi Pin | Peripherals | | | Peripherals | Wiring Pi Pin | Physical Pin |
---|---|---|---|---|---|---|
P1-1 | 3.3V | | | 5V | P1-2 | ||
P1-3 | SDA0 | | | 5V | P1-4 | ||
P1-5 | SCL0 | | | GND | P1-6 | ||
P1-7 | 7 | GPIO4 | | | GPIO14/TXD0 | 15 | P1-8 |
P1-9 | GND | | | GPIO15/RXD0 | 16 | P1-10 | |
P1-11 | 0 | GPIO17 | | | GPIO18/PWM0 | 1 | P1-12 |
P1-13 | 2 | GPIO27 | | | GND | P1-14 | |
P1-15 | 3 | GPIO22 | | | GPIO23 | 4 | P1-16 |
P1-17 | 3.3V | | | GPIO24 | 5 | P1-18 | |
P1-19 | 12 | GPIO10/MOSI0 | | | GND | P1-20 | |
P1-21 | 13 | GPIO9/MISO0 | | | GPIO25 | 6 | P1-22 |
P1-23 | 14 | GPIO11/SCLK0 | | | GPIO8/CE0 | 10 | P1-24 |
P1-25 | GND | | | GPIO7 | 11 | P1-26 |
Physical Pin | Wiring Pi Pin | Peripherals | | | Peripherals | Wiring Pi Pin | Physical Pin |
---|---|---|---|---|---|---|
P5-1 | 5V | | | 3.3V | P5-2 | ||
P5-3 | 17 | GPIO28 | | | GPIO29 | 18 | P5-4 |
P5-5 | 19 | GPIO30 | | | GPIO31 | 20 | P5-6 |
P5-7 | GND | | | GND | P5-8 | ||
Physical Pin | Wiring Pi Pin | Peripherals | | | Peripherals | Wiring Pi Pin | Physical Pin |
---|---|---|---|---|---|---|
P1-1 | 3.3V | | | 5V | P1-2 | ||
P1-3 | SDA0 | | | 5V | P1-4 | ||
P1-5 | SCL0 | | | GND | P1-6 | ||
P1-7 | 7 | GPIO4 | | | GPIO14/TXD0 | 15 | P1-8 |
P1-9 | GND | | | GPIO15/RXD0 | 16 | P1-10 | |
P1-11 | 0 | GPIO17 | | | GPIO18/PWM0 | 1 | P1-12 |
P1-13 | 2 | GPIO27 | | | GND | P1-14 | |
P1-15 | 3 | GPIO22 | | | GPIO23 | 4 | P1-16 |
P1-17 | 3.3V | | | GPIO24 | 5 | P1-18 | |
P1-19 | 12 | GPIO10/MOSI0 | | | GND | P1-20 | |
P1-21 | 13 | GPIO9/MISO0 | | | GPIO25 | 6 | P1-22 |
P1-23 | 14 | GPIO11/SCLK0 | | | GPIO8/CE0 | 10 | P1-24 |
P1-25 | GND | | | GPIO7/CE1 | 11 | P1-26 | |
P1-27 | Do Not Connect | | | Do Not Connect | P1-28 | ||
P1-29 | 21 | GPIO5 | | | GND | P1-30 | |
P1-31 | 22 | GPIO6 | | | GPIO12/PWM0 | 26 | P1-32 |
P1-33 | 23 | GPIO13/PWM1 | | | GND | P1-34 | |
P1-35 | 24 | GPIO19/MISO1/PWM1 | | | GPIO16 | 27 | P1-36 |
P1-37 | 25 | GPIO26 | | | GPIO20/MOSI1 | 28 | P1-38 |
P1-39 | GND | | | GPIO21/SCLK1 | 29 | P1-40 |
Clone this wiki locally
You can’t perform that action at this time.