Pimoroni Pirate Audio 3W Stereo Amp Pinout

A Raspberry Pi audio pHAT with two MAX98357A Class-D amplifiers, push-fit stereo speaker outputs, a 240 × 240 ST7789 LCD and four playback buttons.

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.

44 visible
PinMCU pinTypesNotes
Power3.3 V host rail. The board requires 3.3 V as well as 5 V.
Power5 V host rail for the speaker amplifiers.
Header positionPhysical pin 3 mates with BCM2 on the Raspberry Pi.
Power5 V host rail for the speaker amplifiers.
Header positionPhysical pin 5 mates with BCM3 on the Raspberry Pi.
GNDGround position on the Raspberry Pi header.
Header positionPhysical pin 7 mates with BCM4 on the Raspberry Pi.
Header positionPhysical pin 8 mates with BCM14 on the Raspberry Pi.
GNDGround position on the Raspberry Pi header.
Header positionPhysical pin 10 mates with BCM15 on the Raspberry Pi.
Header positionPhysical pin 11 mates with BCM17 on the Raspberry Pi.
I2SBit clock from the Pi to both MAX98357A amplifiers.
Header positionPhysical pin 13 mates with BCM27 on the Raspberry Pi.
GNDGround position on the Raspberry Pi header.
Header positionPhysical pin 15 mates with BCM22 on the Raspberry Pi.
Header positionPhysical pin 16 mates with BCM23 on the Raspberry Pi.
Power3.3 V host rail. The board requires 3.3 V as well as 5 V.
ButtonOn the later wiring, Y shorts BCM24 to GND when pressed.
SPISPI0 MOSI carries display data and commands to the ST7789.
GNDGround position on the Raspberry Pi header.
GPIOLCD data/command select. The LCD driver uses BCM9 as an output.
GPIODrive high from the Pi to enable audio output.
SPISPI0 serial clock from the Pi to the ST7789.
Header positionPhysical pin 24 mates with BCM8 on the Raspberry Pi.
GNDGround position on the Raspberry Pi header.
SPIActive-low display chip select on SPI0 chip-select 1.
Header positionPhysical pin 27 mates with BCM0 on the Raspberry Pi.
Header positionPhysical pin 28 mates with BCM1 on the Raspberry Pi.
ButtonA shorts BCM5 to GND when pressed.
GNDGround position on the Raspberry Pi header.
ButtonB shorts BCM6 to GND when pressed.
Header positionPhysical pin 32 mates with BCM12 on the Raspberry Pi.
PWMThe display backlight can be dimmed by varying PWM duty cycle on BCM13.
GNDGround position on the Raspberry Pi header.
I2SLeft/right word clock from the Pi to both MAX98357A amplifiers.
ButtonX shorts BCM16 to GND when pressed.
Header positionPhysical pin 37 mates with BCM26 on the Raspberry Pi.
ButtonPimoroni documents BCM20 for Y on units before 23 January 2020.
GNDGround position on the Raspberry Pi header.
I2SPi PCM_DOUT feeds the DIN inputs of both MAX98357A amplifiers.
Speaker outRight speaker, negative terminal.
Speaker outRight speaker, positive terminal.
Speaker outLeft speaker, negative terminal.
Speaker outLeft speaker, positive terminal.

Specifications

Speaker outputs
3 W per channel nominal. Each passive speaker connects across its own driven + and − terminals. Two-position stereo / mixed mono switch.
Speaker wiring
Pimoroni’s setup guide uses 8 Ω speakers rated at least 3 W. Maximum conductor size is 0.75 mm² (18 AWG).
Host connector
2 × 20 female socket at 2.54 mm pitch. 5 V for the amps, 3.3 V supply and GPIO logic from the Raspberry Pi.
Button Y
BCM24 (pin 18) on later boards. Pimoroni’s example lists BCM20 (pin 38) before 23 January 2020.
Display
1.3-inch 240 × 240 IPS LCD (ST7789), SPI0 CE1, GPIO data/command and PWM backlight.
Size
65 × 30.5 × 9.5 mm.

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
PIM484Speaker wiring and mode switchPimoroniPush-fit terminals and stereo / mixed mono wiring.Datasheet
MAX98357AI²S DAC and Class-D amplifierAnalog Devices / MaximDifferential outputs and chip-level electrical limits.Datasheet
ST7789LCD wiring examplePimoroniSPI0 CE1, GPIO9 D/C and GPIO13 backlight.Datasheet
PIM484Active-low controls and Y revisionsPimoroniBCM24 and early BCM20 wiring for Y.Datasheet
40-pin GPIOPhysical numbering, orientation and host voltagesRaspberry PiHost pin numbering and 3.3 V GPIO logic.Datasheet