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 86852 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
  • clem57
    clem57 over 5 years ago

    Nice work cstanton

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • colporteur
    colporteur over 6 years ago

    Awesome resource Element14. Hey this drawing has a colour coded legend on the bottom. Yeppie!

    Sean

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • clem57
    clem57 over 6 years ago

    Like the default pull up/down resistor states also

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • geralds
    geralds over 6 years ago

    Fine. I received my PI4 with 4GB at the end of July,2019. Faster than I thought.

    Please check the PCB board with a magnifying glass. I found tin balls on it.

    They can roll under the IC devices.

    image

    image

     

    Best Regards

    Gerald

    ---

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

    I noticed recently somewhere in Pi documentation land that those I2C bus pins are specified as not to be used for anything other than connection to an EEPROM.

    However, it wasn't specified if there was an underlying SoC technical reason (e.g. crippled I2C bus, which would interest me) or just a HAT-friendly reason (which for my use-cases would not interest me).

    My main criticism of that 40-pin header is still the same for the past five years.. it's silly that there's no numbering, or at least marking on each tenth pin, on the Pi's silkscreen. It shouldn't cost anything (unless Sony factories are charging specifically by the paint-drop these days : ), and increases usability.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • cstanton
    cstanton over 6 years ago in reply to Grumpy_Mike

    They haven't updated the attached datasheet yet, a new one is forthcoming. I recommend you watch the video interview with Eben image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Grumpy_Mike
    Grumpy_Mike over 6 years ago in reply to cstanton

    No, look at the pin out. Pins 27 and 28 have always been I2C pins. It is just that the Pi foundation happened to label those as communication pins for the "HAT" ( Hardware on Top)  interface, to allow HATs to preload any drivers on boot up. They come up configured in this mode rather than the default GPIO inputs. All the alternative pin functions are defined in the data sheet. If you look at the Broadcom data sheet they have attached to this thread you will see the date on it is 2012, it is exactly the same data sheet I have from the launch of the PI.

     

    Nothing has changed with the GPIO on the Pi apart from the fact of the pin out between the 26 and 40 pin GPIO connector. All 40 pin GPIO connector Pis are, and remain, identical with regard of GPIO capability.

     

    Maybe you didn't know about these alternative functions previously?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • cstanton
    cstanton over 6 years ago in reply to Grumpy_Mike

    Grumpy_Mike There's actually a change for the Raspberry Pi 4, and that's more SPI/i2c as I understand it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Grumpy_Mike
    Grumpy_Mike over 6 years ago

    What is all the fuss about alternative functions on the GPIO pins. Every Raspberry Pi from the very beginning has been able to do exactly this. There is no change or capabilities of the Model 4 in this respect.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • geralds
    geralds over 6 years ago in reply to rew

    Of course, other shops sell this as well.

    But I think the price may be a bit more expensive than Farnell's, just as I was able to verify it.

    Well, I ordered it, well, now I'm waiting a bit; Because I also needed other Raspberry products, so that's not a big problem.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
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