Main pinout
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 electrical details
A 16 × 16 RGB LED matrix driven by an onboard STM32F030C8. The photo faces the female socket from the mounting side, with pin 1 at the bottom of the inner row. The even row runs along the right board edge. Numbers identify physical positions. NC means the published schematic shows the corresponding Pi GPIO unused by the HAT. The eight gold service pads are identified by position because their net order is unverified.
Pin index
Quickly scan every header pin, port name, supported function and usage note.
| Pin | MCU pin | Types | Notes |
|---|---|---|---|
| Power | 3.3 V supply input from the Raspberry Pi. | |
| Power | 5 V supply input from the Raspberry Pi. | |
| NC | Pi GPIO2. No HAT connection shown for this GPIO in the published schematic. | |
| Power | The Raspberry Pi's mating pin carries 5V. | |
| NC | Pi GPIO3. No HAT connection shown for this GPIO in the published schematic. | |
| GND | Common ground return for power and signals. | |
| NC | Pi GPIO4. No HAT connection shown for this GPIO in the published schematic. | |
| NC | Pi GPIO14. No HAT connection shown for this GPIO in the published schematic. | |
| GND | Common ground return for power and signals. | |
| NC | Pi GPIO15. No HAT connection shown for this GPIO in the published schematic. | |
| NC | Pi GPIO17. No HAT connection shown for this GPIO in the published schematic. | |
| NC | Pi GPIO18. No HAT connection shown for this GPIO in the published schematic. | |
| NC | Pi GPIO27. No HAT connection shown for this GPIO in the published schematic. | |
| GND | Common ground return for power and signals. | |
| NC | Pi GPIO22. No HAT connection shown for this GPIO in the published schematic. | |
| NC | Pi GPIO23. No HAT connection shown for this GPIO in the published schematic. | |
| Power | The Raspberry Pi's mating pin carries 3V3. | |
| NC | Pi GPIO24. No HAT connection shown for this GPIO in the published schematic. | |
| SPI | Pixel data from the Pi to the HAT. | |
| GND | Common ground return for power and signals. | |
| SPI | Peripheral-to-host data line. Pimoroni's display API sends frames without reading a response. | |
| NC | Pi GPIO25. No HAT connection shown for this GPIO in the published schematic. | |
| SPI | Clock from the Pi to the HAT. | |
| SPI | Active-low chip select from the Pi to the HAT. | |
| GND | Common ground return for power and signals. | |
| Control | Write-protect input of the HAT identification EEPROM. | |
| I2C | HAT identification EEPROM SDA. | |
| I2C | HAT identification EEPROM SCL. | |
| NC | Pi GPIO5. No HAT connection shown for this GPIO in the published schematic. | |
| GND | Common ground return for power and signals. | |
| NC | Pi GPIO6. No HAT connection shown for this GPIO in the published schematic. | |
| NC | Pi GPIO12. No HAT connection shown for this GPIO in the published schematic. | |
| NC | Pi GPIO13. No HAT connection shown for this GPIO in the published schematic. | |
| GND | Common ground return for power and signals. | |
| NC | Pi GPIO19. No HAT connection shown for this GPIO in the published schematic. | |
| NC | Pi GPIO16. No HAT connection shown for this GPIO in the published schematic. | |
| NC | Pi GPIO26. No HAT connection shown for this GPIO in the published schematic. | |
| NC | Pi GPIO20. No HAT connection shown for this GPIO in the published schematic. | |
| GND | Common ground return for power and signals. | |
| NC | Pi GPIO21. No HAT connection shown for this GPIO in the published schematic. | |
| Debug | Unlabelled factory programming and test pad. Position counted left to right in this photograph. | |
| Debug | Unlabelled factory programming and test pad. Position counted left to right in this photograph. | |
| Debug | Unlabelled factory programming and test pad. Position counted left to right in this photograph. | |
| Debug | Unlabelled factory programming and test pad. Position counted left to right in this photograph. | |
| Debug | Unlabelled factory programming and test pad. Position counted left to right in this photograph. | |
| Debug | Unlabelled factory programming and test pad. Position counted left to right in this photograph. | |
| Debug | Unlabelled factory programming and test pad. Position counted left to right in this photograph. | |
| Debug | Unlabelled factory programming and test pad. Position counted left to right in this photograph. |
References
Manufacturer references and technical documentation.
| Chip | Role | Manufacturer | Notes | Link |
|---|---|---|---|---|
Unicorn HAT HD | Board schematic | Pimoroni | Sheet 1 covers the GPIO socket, EEPROM, MCU and power rails. | Datasheet |
STM32F030C8 | Display controller | STMicroelectronics | LQFP48 pin assignment and SPI1 alternate functions. | Datasheet |
STP16CPC26 | Constant-current LED driver | STMicroelectronics | Three STP16CPC26 devices drive the LED cathodes. | Datasheet |
40-pin GPIO header | Host physical numbering and levels | Raspberry Pi | Physical socket numbering and BCM aliases are separate. | Datasheet |
unicornhathd | Official SPI Python driver | Pimoroni | Display driver uses SPI0 CE0 and a 9 MHz configured clock. | Datasheet |