Free Shipping

Raspberry Pi 5 Pinout

Below, you will find information about the Raspberry Pi 5 pinout structure, as well as information about what each pin can do. You can also access a printable PDF so you have easy access to a reference when you're working!

Raspberry Pi 5 Pinout Information

The Raspberry Pi 5 has a 40-pin GPIO (General Purpose Input/Output) header that lets you connect the Pi to the physical world.

There are different types of pins:

  • GPIO Pins – These can be programmed to send or receive signals. They're used to turn things on or off or detect if a button has been pressed.
  • Power Pins – Provide constant 3.3V or 5V power to components like sensors or displays. The Raspberry Pi 5 has two 5V pins (2 and 4), and two 3.3V pins (1 and 17).
  • Ground (GND) Pins – These complete the circuit by connecting your components to the Pi's ground. The ground pins are 6, 9, 14, 20, 25, 30, 34, 39.
  • Special Function Pins – Some GPIO pins also support communication protocols like I2C, SPI, and UART, which are used for more advanced components like displays or GPS modules.

The special function pins include:

I2C (Inter-Integrated Circuit)

A simple two-wire connection used to communicate with sensors, displays, and other low-speed devices. Great for
connecting multiple devices using just two pins.

SPI (Serial Peripheral Interface)

A faster connection used for high-speed communication with things like touchscreens, SD cards, and sensors.
Uses multiple pins but is very reliable for data-heavy devices.

UART (Universal Asynchronous Receiver/Transmitter)

A basic serial connection, often used to communicate with GPS modules, other microcontrollers, or for debugging. Uses just two pins: one for sending and one for receiving.

-----------

A reference guide to pinouts can be accessed directly on the Raspberry Pi including the Pi 5. Open the command terminal and type pinout, then press enter.

Functions Supported

The RP1 GPIO bank (IO_BANK0) supports the following functions:

  • 5 UART interfaces
  • 6 SPI interfaces
  • 4 I2C interfaces
  • 2 I2S interfaces (including Clock Producer and Clock Consumer instances)
  • Registered IO (RIO) interface
  • 24-bit DPI output
  • 4-channel PWM output
  • Stereo PWM audio output (AUDIO_OUT)
  • General-purpose clock input and output (GPCLK)
  • eMMC/SDIO bus with a 4-bit interface
  • Interrupt generation from pin level or edge transitions
Powered by joy.so