# Raspberry Pi 4 Hat Template
## Description
Template for Raspberry Pi 4 Shield. Include an official pinout so you will always know Raspberry Pi names, the alternative roles of pins, which one is SDA, or SCL, etc. On PCB you can find the 3D model of the Raspberry Pi itself along with the board outline on the silkscreen.
#RaspberryPi #Raspberry #Pi #RPi #Shield #template #project #project-template #raspberry
## Project Details
- **Owner:** xgamer5015
- **Created:** 7/31/2025
- **Last Updated:** 7/31/2025
- **Visibility:** Public
- **License:** https://creativecommons.org/licenses/by/4.0/
## Key Components
### H1 — [M2106-2545-AL](https://www.flux.ai/vasy_skral/m2106-2545-al~69r.md)
- Datasheet URL: http://dpk3n3gg92jwt.cloudfront.net/domains/raf/pdf/RAF%20Catalog.pdf
- Manufacturer Part Number: M2106-2545-AL
- Part Type: Standoff
- Manufacturer Name: RAF Electronic Hardware
- Exclude from BOM: false
**Pins:**
- P1 [pin 1]
### H2 — [M2106-2545-AL](https://www.flux.ai/vasy_skral/m2106-2545-al~69r.md)
- Manufacturer Name: RAF Electronic Hardware
- Exclude from BOM: false
- Datasheet URL: http://dpk3n3gg92jwt.cloudfront.net/domains/raf/pdf/RAF%20Catalog.pdf
- Manufacturer Part Number: M2106-2545-AL
- Part Type: Standoff
**Pins:**
- P1 [pin 1]
### H3 — [M2106-2545-AL](https://www.flux.ai/vasy_skral/m2106-2545-al~69r.md)
- Exclude from BOM: false
- Manufacturer Name: RAF Electronic Hardware
- Part Type: Standoff
- Manufacturer Part Number: M2106-2545-AL
- Datasheet URL: http://dpk3n3gg92jwt.cloudfront.net/domains/raf/pdf/RAF%20Catalog.pdf
**Pins:**
- P1 [pin 1]
### H4 — [M2106-2545-AL](https://www.flux.ai/vasy_skral/m2106-2545-al~69r.md)
- Datasheet URL: http://dpk3n3gg92jwt.cloudfront.net/domains/raf/pdf/RAF%20Catalog.pdf
- Manufacturer Part Number: M2106-2545-AL
- Part Type: Standoff
- Manufacturer Name: RAF Electronic Hardware
- Exclude from BOM: false
**Pins:**
- P1 [pin 1]
### J1 — [2-Position Top Entry Screw Terminal](https://www.flux.ai/corynrobinson/2-position-top-entry-screw-terminal~yr.md)
- Manufacturer Name: Phoenix
- Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Phoenix%20Contact%20PDFs/1935310.pdf
- Part Type: Connector
- Manufacturer Part Number: 1935310
**Pins:**
- P1 [pin 1]
- P2 [pin 2]
### J1 — [2-Position Top Entry Screw Terminal](https://www.flux.ai/corynrobinson/2-position-top-entry-screw-terminal~yr.md)
- Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Phoenix%20Contact%20PDFs/1935310.pdf
- Part Type: Connector
- Manufacturer Part Number: 1935310
- Manufacturer Name: Phoenix
**Pins:**
- P1 [pin 1]
- P2 [pin 2]
### RPi1 — [Raspberry Pi 2 3 4 5 Model B](https://www.flux.ai/vasy_skral/raspberry-pi-2-3-4-5-model-b~pak.md)
- Part Type: Connector
**Pins:**
- ~CE0~/GPIO8 [pin 24]
- ~CE1~/GPIO7 [pin 26]
- 3V3 [pin 17]
- 3V3 [pin 1]
- 5V [pin 4]
- 5V [pin 2]
- GCLK0/GPIO4 [pin 7]
- GCLK1/GPIO5 [pin 29]
- GCLK2/GPIO6 [pin 31]
- GND [pin 34]
- GND [pin 6]
- GND [pin 9]
- GND [pin 30]
- GND [pin 25]
- GND [pin 14]
- GND [pin 20]
- GND [pin 39]
- GPIO14/TXD [pin 8]
- GPIO15/RXD [pin 10]
- GPIO16 [pin 36]
- GPIO17 [pin 11]
- GPIO18/PWM0 [pin 12]
- GPIO19/MISO1 [pin 35]
- GPIO20/MOSI1 [pin 38]
- GPIO21/SCLK1 [pin 40]
- GPIO22 [pin 15]
- GPIO23 [pin 16]
- GPIO24 [pin 18]
- GPIO25 [pin 22]
- GPIO26 [pin 37]
- GPIO27 [pin 13]
- ID_SC/GPIO1 [pin 28]
- ID_SD/GPIO0 [pin 27]
- MISO0/GPIO9 [pin 21]
- MOSI0/GPIO10 [pin 19]
- PWM0/GPIO12 [pin 32]
- PWM1/GPIO13 [pin 33]
- SCL/GPIO3 [pin 5]
- SCLK0/GPIO11 [pin 23]
- SDA/GPIO2 [pin 3]
### U1 — [74AHCT245PW,118](https://www.flux.ai/lcsc/74ahct245pwc118~gknd.md)
- JLCPCB Part Class: Extended Part
- Manufacturer Part Number: 74AHCT245PW,118
- LCSC Part Number: C173388
- Product Info Url: https://lcsc.com/product-detail/74-Series_Nexperia_74AHCT245PW-118_74AHCT245PW-118_C173388.html
- Manufacturer Name: Nexperia(安世)
- Package or Case Code: TSSOP-20_L6.5-W4.4-P0.65-LS6.4-BL
- Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2407241026_Nexperia-74AHCT245PW-118_C173388.pdf
- Part Type: 74 Series
**Pins:**
- ~{OE} [pin 19]
- A0 [pin 2]
- A1 [pin 3]
- A2 [pin 4]
- A3 [pin 5]
- A4 [pin 6]
- A5 [pin 7]
- A6 [pin 8]
- A7 [pin 9]
- B0 [pin 18]
- B1 [pin 17]
- B2 [pin 16]
- B3 [pin 15]
- B4 [pin 14]
- B5 [pin 13]
- B6 [pin 12]
- B7 [pin 11]
- DIR [pin 1]
- GND [pin 10]
- VCC [pin 20]
### U2 — [74AHCT245PW,118](https://www.flux.ai/lcsc/74ahct245pwc118~gknd.md)
- Manufacturer Part Number: 74AHCT245PW,118
- LCSC Part Number: C173388
- JLCPCB Part Class: Extended Part
- Package or Case Code: TSSOP-20_L6.5-W4.4-P0.65-LS6.4-BL
- Product Info Url: https://lcsc.com/product-detail/74-Series_Nexperia_74AHCT245PW-118_74AHCT245PW-118_C173388.html
- Manufacturer Name: Nexperia(安世)
- Part Type: 74 Series
- Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2407241026_Nexperia-74AHCT245PW-118_C173388.pdf
**Pins:**
- ~{OE} [pin 19]
- A0 [pin 2]
- A1 [pin 3]
- A2 [pin 4]
- A3 [pin 5]
- A4 [pin 6]
- A5 [pin 7]
- A6 [pin 8]
- A7 [pin 9]
- B0 [pin 18]
- B1 [pin 17]
- B2 [pin 16]
- B3 [pin 15]
- B4 [pin 14]
- B5 [pin 13]
- B6 [pin 12]
- B7 [pin 11]
- DIR [pin 1]
- GND [pin 10]
- VCC [pin 20]
### U3 — [74AHCT245PW,118](https://www.flux.ai/lcsc/74ahct245pwc118~gknd.md)
- Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2407241026_Nexperia-74AHCT245PW-118_C173388.pdf
- Part Type: 74 Series
- Manufacturer Name: Nexperia(安世)
- Product Info Url: https://lcsc.com/product-detail/74-Series_Nexperia_74AHCT245PW-118_74AHCT245PW-118_C173388.html
- Package or Case Code: TSSOP-20_L6.5-W4.4-P0.65-LS6.4-BL
- JLCPCB Part Class: Extended Part
- Manufacturer Part Number: 74AHCT245PW,118
- LCSC Part Number: C173388
**Pins:**
- ~{OE} [pin 19]
- A0 [pin 2]
- A1 [pin 3]
- A2 [pin 4]
- A3 [pin 5]
- A4 [pin 6]
- A5 [pin 7]
- A6 [pin 8]
- A7 [pin 9]
- B0 [pin 18]
- B1 [pin 17]
- B2 [pin 16]
- B3 [pin 15]
- B4 [pin 14]
- B5 [pin 13]
- B6 [pin 12]
- B7 [pin 11]
- DIR [pin 1]
- GND [pin 10]
- VCC [pin 20]
*The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/xgamer5015/raspberry-pi-4-hat-template~2l](https://www.flux.ai/xgamer5015/raspberry-pi-4-hat-template~2l).*
---
*Generated from [https://www.flux.ai/xgamer5015/raspberry-pi-4-hat-template~2l](https://www.flux.ai/xgamer5015/raspberry-pi-4-hat-template~2l)*