Tag Archives: Pin Out

Understanding Raspberry Pi 4 GPIO Pinouts

Raspberry Pi GPIO Pinout
Diagram of physical and BCM Pins on Raspberry Pi

This shows the pinout for the Raspberry Pi 4. It shows both the BOARD numbering scheme, and the BCM numbering scheme. You define which numbering scheme you want to use in your python program. You must start by importing the GPIO Library:

import RPi.GPIO as GPIO

Then, if you use setmode to define which numbering scheme you want:

GPIO.setmode(GPIO.BOARD)

will give you the Physical Pin numbering scheme.

If you use:

GPIO.setmode(GPIO.BCM)

You will be using the BCM Numbering Scheme. I prefer the BOARD Scheme as it is  much easier to keep track of. Hope this helps.