Pimoroni Unicorn HAT HD Pinout

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.

Main pinout

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 electrical details

Pin index

Pin index

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

48 visible
PinMCU pinTypesNotes
Power3.3 V supply input from the Raspberry Pi.
Power5 V supply input from the Raspberry Pi.
NCPi GPIO2. No HAT connection shown for this GPIO in the published schematic.
PowerThe Raspberry Pi's mating pin carries 5V.
NCPi GPIO3. No HAT connection shown for this GPIO in the published schematic.
GNDCommon ground return for power and signals.
NCPi GPIO4. No HAT connection shown for this GPIO in the published schematic.
NCPi GPIO14. No HAT connection shown for this GPIO in the published schematic.
GNDCommon ground return for power and signals.
NCPi GPIO15. No HAT connection shown for this GPIO in the published schematic.
NCPi GPIO17. No HAT connection shown for this GPIO in the published schematic.
NCPi GPIO18. No HAT connection shown for this GPIO in the published schematic.
NCPi GPIO27. No HAT connection shown for this GPIO in the published schematic.
GNDCommon ground return for power and signals.
NCPi GPIO22. No HAT connection shown for this GPIO in the published schematic.
NCPi GPIO23. No HAT connection shown for this GPIO in the published schematic.
PowerThe Raspberry Pi's mating pin carries 3V3.
NCPi GPIO24. No HAT connection shown for this GPIO in the published schematic.
SPIPixel data from the Pi to the HAT.
GNDCommon ground return for power and signals.
SPIPeripheral-to-host data line. Pimoroni's display API sends frames without reading a response.
NCPi GPIO25. No HAT connection shown for this GPIO in the published schematic.
SPIClock from the Pi to the HAT.
SPIActive-low chip select from the Pi to the HAT.
GNDCommon ground return for power and signals.
ControlWrite-protect input of the HAT identification EEPROM.
I2CHAT identification EEPROM SDA.
I2CHAT identification EEPROM SCL.
NCPi GPIO5. No HAT connection shown for this GPIO in the published schematic.
GNDCommon ground return for power and signals.
NCPi GPIO6. No HAT connection shown for this GPIO in the published schematic.
NCPi GPIO12. No HAT connection shown for this GPIO in the published schematic.
NCPi GPIO13. No HAT connection shown for this GPIO in the published schematic.
GNDCommon ground return for power and signals.
NCPi GPIO19. No HAT connection shown for this GPIO in the published schematic.
NCPi GPIO16. No HAT connection shown for this GPIO in the published schematic.
NCPi GPIO26. No HAT connection shown for this GPIO in the published schematic.
NCPi GPIO20. No HAT connection shown for this GPIO in the published schematic.
GNDCommon ground return for power and signals.
NCPi GPIO21. No HAT connection shown for this GPIO in the published schematic.
DebugUnlabelled factory programming and test pad. Position counted left to right in this photograph.
DebugUnlabelled factory programming and test pad. Position counted left to right in this photograph.
DebugUnlabelled factory programming and test pad. Position counted left to right in this photograph.
DebugUnlabelled factory programming and test pad. Position counted left to right in this photograph.
DebugUnlabelled factory programming and test pad. Position counted left to right in this photograph.
DebugUnlabelled factory programming and test pad. Position counted left to right in this photograph.
DebugUnlabelled factory programming and test pad. Position counted left to right in this photograph.
DebugUnlabelled factory programming and test pad. Position counted left to right in this photograph.

Specifications

Model
Pimoroni Unicorn HAT HD (PIM273)
PCB identification
PCB revision unmarked in the reference photos. Pimoroni schematic dated 03/05/2018.
Display
256 RGB LEDs in a 16 × 16 matrix
Controller
STM32F030C8T6 with three STP16CPC26 LED drivers
Host connector
Female Raspberry Pi 2 × 20 socket, 2.54 mm pitch
Supply and signal levels
5 V for the LED matrix, 3.3 V for logic, and common ground. SPI and HAT ID use 3.3 V logic at the Pi connector.
Display bus
Raspberry Pi SPI0 CE0 to STM32 SPI1. Pimoroni's Python driver opens bus 0, device 0 at up to 9 MHz.
Identification EEPROM
ID_SD and ID_SC on pins 27 and 28. Pin 26 connects to write protect.

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
Unicorn HAT HDBoard schematicPimoroniSheet 1 covers the GPIO socket, EEPROM, MCU and power rails.Datasheet
STM32F030C8Display controllerSTMicroelectronicsLQFP48 pin assignment and SPI1 alternate functions.Datasheet
STP16CPC26Constant-current LED driverSTMicroelectronicsThree STP16CPC26 devices drive the LED cathodes.Datasheet
40-pin GPIO headerHost physical numbering and levelsRaspberry PiPhysical socket numbering and BCM aliases are separate.Datasheet
unicornhathdOfficial SPI Python driverPimoroniDisplay driver uses SPI0 CE0 and a 9 MHz configured clock.Datasheet