element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Documents Raspberry Pi 4 Model B Default GPIO Pinout with PoE Header
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: cstanton
  • Date Created: 10 Jun 2019 3:28 PM Date Created
  • Last Updated Last Updated: 14 Jul 2023 1:56 PM
  • Views 87770 views
  • Likes 9 likes
  • Comments 20 comments
Related
Recommended

Raspberry Pi 4 Model B Default GPIO Pinout with PoE Header

 To help you with your projects and setting up your electronic circuits, here's a detailed diagram of the pin block(s) on the Raspberry Pi 4, Model B.

 

Click the image for an enlarged version:

 

image

 

Here is the Raspberry Pi 4 default GPIO pinout for the 40 pin J8 header. This is the configuration of the pins as you'll receive it when you first boot up Raspbian, or NOOBS with Raspbian. However, did you know that they are configurable? Yes, you can change the allocation of the Serial Peripheral Interface BUS on the pins, or decide that you don't want two Inter-Integrated Circuit (I2C) Serial BUS after all.

 

In the diagram you'll see that the layout is colour coded with a legend; these are pins which are associated with one another purely by function (or not, in case of the green), and so they are a 'family' of pins that are useful together. But what if your project actually requires that you don't need SPI, or that you require two sets of SPI pins?

 

There are alternative functions for almost all of the pins. Here's a chart that helps to demonstrate what the alternative functions of the pins can be, and in bold and highlighted are what the defaults are for these pins:

 

image

 

Using these pins, they are referred to as 'ARM Peripherals', because after all, we're using an ARM processor by Broadcom. If you want to read into these in detail, you can look at the attached document. You'll find it pretty heavy going if you are not used to the technical information.

 

There are also useful libraries and websites which can help you to understand more about this information, such as The GPIO Utility by Wiring Pi and Gadgetoid and RogueHAL13's pinout.xyz - be careful not to be caught out though, as the GPIO pins are also referenced as 'BCM' pins (meaning Broadcom) to help reduce confusion from the physical pins.

Changing the default configuration is considered advanced, and isn't for the faint of heart, so enjoy going down the rabbit hole for your project!

Want to know more?

Meet The New Raspberry Pi 4 Model B - element14 Presents

Raspberry Pi 4 Model B - Technical Specifications

Raspberry Pi 4 Model B Frequently Asked Questions (FAQ)

Benchmarking the Raspberry Pi 4 Model B

Which accessories are compatible with the New Raspberry Pi 4 Model B?

Do You Know Your Pi from Pie? Raspberry Pi Quiz!

Eben Upton talks about the new Raspberry Pi 4 Model B

Want to buy the new Raspberry Pi 4 Model B?

Product Name Manufacturer
RASPBERRY PI 4 MODEL B, 1GB Raspberry Pi Buy Now
RASPBERRY PI 4 MODEL B, 2GB Raspberry Pi Buy Now
RASPBERRY PI 4 MODEL B, 4GB Raspberry Pi Buy Now
RASPBERRY PI 4 MODEL B, 8GB Raspberry Pi Buy Now

Supplemental Content:

 Raspberry Pi 4 - BCM2835 ARM Peripherals 
image

NEW! Raspberry Pi 4

Technical Specifications | GPIO Pin Out | Benchmark Tests | Comparison Chart | FAQ | Quiz | Pi Accessories | Pi Projects | RoadTest

  • gpio
  • raspberry pi 4 general purpose input output
  • rpi4
  • raspberry pi 4 gpio pinout
  • raspberry pi 4
  • raspberry pi
  • pinout
  • rpi4 pinout
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • shabaz
    shabaz over 6 years ago +3
    Very helpful! Good to see the alternative functions table too, I'd been looking for something like that.
  • geralds
    geralds over 6 years ago +2
    Fine! Fine! Fine! last few days ago I wanted to buy an PI 3 B+, but... now what can I see?!!! There is a Pi 4 on the market. Hm, ... RS-Components says that this Pi 4 will coming out in November 2019 …
  • cstanton
    cstanton over 6 years ago in reply to geralds +2
    It's the usual tale that we're getting stock in every day and it's going out on a first-come, first-served basis. Don't forget you can also buy it from http://cpc.farnell.com
Parents
  • shabaz
    shabaz over 6 years ago

    Very helpful! Good to see the alternative functions table too, I'd been looking for something like that.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • shabaz
    shabaz over 6 years ago

    Very helpful! Good to see the alternative functions table too, I'd been looking for something like that.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube