Raspberry Pi M.2 HAT+ Pinout

Raspberry Pi M.2 HAT+ pinout. HAT+ adapter for Raspberry Pi 5 connecting a M-key M.2 device (2230 or 2242) to a PCIe 2.0 lane.

Jump to pin index ↓

Main pinout

HAT+ adapter for Raspberry Pi 5 connecting a M-key M.2 device (2230 or 2242) to a PCIe 2.0 lane. Use a 16 FPC and a 3.3 V regulator with up to 3 A for the module.

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show the networks and uses of each contact

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

40 visible
PinMCU pinTypesNotes
3V3Power3.3 V of the host for the EEPROM U2 identification.
5VPower5 V from Raspberry Pi 5. Share the FPC network and feed U1.
GPIO2NCPosition of GPIO2 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
5VPower5 V from Raspberry Pi 5. Share the FPC network and feed U1.
GPIO3NCPosition of GPIO3 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GNDGNDCommon ground of the board and the host.
GPIO4NCPosition of GPIO4 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO14NCPosition of GPIO14 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GNDGNDCommon ground of the board and the host.
GPIO15NCPosition of GPIO15 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO17NCPosition of GPIO17 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO18NCPosition of GPIO18 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO27NCPosition of GPIO27 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GNDGNDCommon ground of the board and the host.
GPIO22NCPosition of GPIO22 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO23NCPosition of GPIO23 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
3V3Power3.3 V of the host for the EEPROM U2 identification.
GPIO24NCPosition of GPIO24 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO10NCPosition of GPIO10 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GNDGNDCommon ground of the board and the host.
GPIO9NCPosition of GPIO9 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO25NCPosition of GPIO25 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO11NCPosition of GPIO11 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO8NCPosition of GPIO8 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GNDGNDCommon ground of the board and the host.
GPIO7NCPosition of GPIO7 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
ID_SDI2CHAT+ ID SDA for U2. The reserved bus for the detection of accessories.
ID_SCI2CHAT+ identification SCL for U2. The reserved bus for the detection of accessories.
GPIO5NCPosition of GPIO5 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GNDGNDCommon ground of the board and the host.
GPIO6NCPosition of GPIO6 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO12NCPosition of GPIO12 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO13NCPosition of GPIO13 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GNDGNDCommon ground of the board and the host.
GPIO19NCPosition of GPIO19 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO16NCPosition of GPIO16 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO26NCPosition of GPIO26 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GPIO20NCPosition of GPIO20 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.
GNDGNDCommon ground of the board and the host.
GPIO21NCPosition of GPIO21 in Raspberry Pi 5. The contact passes through J1 without electrical connection to the HAT circuit.

Specifications

Model
Raspberry Pi M.2 HAT+ M Key Standard · SC1166 · M2MKEY-HAT, 3 revision schematic
Host
Raspberry Pi 5 using J2 16 contacts, 0.5 mm pass. J1 is the HAT+ header of 2 × 20, 2.54 mm pitch.
Enlace
PCIe 2.0 ×1 · up to 500 MB / s peak according to Raspberry Pi
Socket
M.2 Socket 3, llave M · 2230 o 2242 · 67 electrical contacts and two ground anchorages
Power supply
5 V from J1 and J2 for the converter. The FPC provides up to 1 A to 5 V. The regulated HAT output supports up to 3 A to 3.3 V for the module. J1 also provides 3.3 V for EEPROM.
Indicators
Orange PWR (valid M.2 feed) and green ACT (LED # activity requested from the module).

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
SC1166Data sheet and documentationRaspberry PiVariante Standard del M.2 HAT+ M Key.Datasheet
RPI-M2MKEY-HATRev. 3Raspberry PiJ1, J2, J3 and TP1-TP28 test points.Datasheet
SC1166Montaje en Raspberry Pi 5Raspberry PiFPC installation, separators and M.2. card.Datasheet
PCIe FFCInterfaz anfitrionaRaspberry PiAllocation of 16 contacts and electrical requirements.Datasheet
HLE-120-02-F-DV-BE-AJ1 · cabecera apilableSamtecDouble row of 2.54 mm with 20 positions per row.Datasheet
1-1734839-6J2 · conector FPCTE Connectivity16 positions, top contact, 0.5 mm pass.Datasheet
AP3441SHE-7BU1 · convertidor reductorDiodes Incorporated3 A Synchronous Regulator, with EN and Power Good.Datasheet
M24C32-FMN6TPU2 · EEPROM of identificationSTMicroelectronics32 kbit por I²C. The A0 high and A1/A2 low fixed board for the direction of 7 bits 0x51.Datasheet
NC7SB3157P6XU3 · CLKREQ switch #onsemiIt converts between the host's request and the 3V3_M2 Pull-up according to Power Good.Datasheet
DMG1012T-7Q1–Q4 · MOSFET de canal NDiodes IncorporatedRESET insulation, PWR control and detection / awakening interface.Datasheet

Board notes

Head J1
The GPIO names indicate their position in the Raspberry Pi 5. The HAT only cabling the power, ground and identification lines. In other contacts, the header keeps the physical pass stackable.
Guidance and details
J1 is read from the FPC end, with the odd on the side of the components and the pairs on the outer edge. The library includes views of the FPC J2, the PCB terminals of the M.2 J3 and the reverse test points.
Compatibilidad M.2
The electronics implements PCIe × 1. The schematic shows contacts of other lanes and SATA-associated signals in the M.2 symbol, but the SC1166 does not link those lanes or implement SATA.
Polaridad PCIe
Raspberry Pi crossed P and N into the data pairs to facilitate routing. The REFCLK pair retains its polarity. The J3 view indicates the actual networks and the standard zocalo names.
Test points
The reverse view uses a photograph with the flex removed. It identifies TP1-TP28 by the screen and its networks in the schematic.