Electronics and Raspberry Pi
Raspberry Pi GPIO
The diagram of the Raspberry Pi's 40 pins, with colors per type. Click or search for a name.
Click a pin for an explanation.
What does this mean?
The Raspberry Pi has 40 pins (the GPIO header). Hold the Pi so that the SD card is at the bottom and the header is at the top: pin 1 is then at the top left. The pin number is the location on the header; the GPIO number (BCM) is the name you work with in programs. They are not the same: pin 11, for example, is GPIO17.
Note: the pins operate at 3.3 volts. Never connect 5 volts to a GPIO pin; that can damage the Pi. Draw no more than about 16 mA per pin, and always use a resistor with an LED (see our LED resistor tool). This layout applies to all Pis with 40 pins (Pi 2, 3, 4, 5 and Zero).