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 Raspberry Pi audio pHAT with two MAX98357A Class-D amplifiers, push-fit stereo speaker outputs, a 240 × 240 ST7789 LCD and four playback buttons.
Pin index
Quickly scan every header pin, port name, supported function and usage note.
| Pin | MCU pin | Types | Notes |
|---|---|---|---|
| Power | 3.3 V host rail. The board requires 3.3 V as well as 5 V. | |
| Power | 5 V host rail for the speaker amplifiers. | |
| Header position | Physical pin 3 mates with BCM2 on the Raspberry Pi. | |
| Power | 5 V host rail for the speaker amplifiers. | |
| Header position | Physical pin 5 mates with BCM3 on the Raspberry Pi. | |
| GND | Ground position on the Raspberry Pi header. | |
| Header position | Physical pin 7 mates with BCM4 on the Raspberry Pi. | |
| Header position | Physical pin 8 mates with BCM14 on the Raspberry Pi. | |
| GND | Ground position on the Raspberry Pi header. | |
| Header position | Physical pin 10 mates with BCM15 on the Raspberry Pi. | |
| Header position | Physical pin 11 mates with BCM17 on the Raspberry Pi. | |
| I2S | Bit clock from the Pi to both MAX98357A amplifiers. | |
| Header position | Physical pin 13 mates with BCM27 on the Raspberry Pi. | |
| GND | Ground position on the Raspberry Pi header. | |
| Header position | Physical pin 15 mates with BCM22 on the Raspberry Pi. | |
| Header position | Physical pin 16 mates with BCM23 on the Raspberry Pi. | |
| Power | 3.3 V host rail. The board requires 3.3 V as well as 5 V. | |
| On the later wiring, Y shorts BCM24 to GND when pressed. | ||
| SPI | SPI0 MOSI carries display data and commands to the ST7789. | |
| GND | Ground position on the Raspberry Pi header. | |
| GPIO | LCD data/command select. The LCD driver uses BCM9 as an output. | |
| GPIO | Drive high from the Pi to enable audio output. | |
| SPI | SPI0 serial clock from the Pi to the ST7789. | |
| Header position | Physical pin 24 mates with BCM8 on the Raspberry Pi. | |
| GND | Ground position on the Raspberry Pi header. | |
| SPI | Active-low display chip select on SPI0 chip-select 1. | |
| Header position | Physical pin 27 mates with BCM0 on the Raspberry Pi. | |
| Header position | Physical pin 28 mates with BCM1 on the Raspberry Pi. | |
| A shorts BCM5 to GND when pressed. | ||
| GND | Ground position on the Raspberry Pi header. | |
| B shorts BCM6 to GND when pressed. | ||
| Header position | Physical pin 32 mates with BCM12 on the Raspberry Pi. | |
| PWM | The display backlight can be dimmed by varying PWM duty cycle on BCM13. | |
| GND | Ground position on the Raspberry Pi header. | |
| I2S | Left/right word clock from the Pi to both MAX98357A amplifiers. | |
| X shorts BCM16 to GND when pressed. | ||
| Header position | Physical pin 37 mates with BCM26 on the Raspberry Pi. | |
| Pimoroni documents BCM20 for Y on units before 23 January 2020. | ||
| GND | Ground position on the Raspberry Pi header. | |
| I2S | Pi PCM_DOUT feeds the DIN inputs of both MAX98357A amplifiers. | |
| Speaker out | Right speaker, negative terminal. | |
| Speaker out | Right speaker, positive terminal. | |
| Speaker out | Left speaker, negative terminal. | |
| Speaker out | Left speaker, positive terminal. |
References
Manufacturer references and technical documentation.
| Chip | Role | Manufacturer | Notes | Link |
|---|---|---|---|---|
PIM484 | Speaker wiring and mode switch | Pimoroni | Push-fit terminals and stereo / mixed mono wiring. | Datasheet |
MAX98357A | I²S DAC and Class-D amplifier | Analog Devices / Maxim | Differential outputs and chip-level electrical limits. | Datasheet |
ST7789 | LCD wiring example | Pimoroni | SPI0 CE1, GPIO9 D/C and GPIO13 backlight. | Datasheet |
PIM484 | Active-low controls and Y revisions | Pimoroni | BCM24 and early BCM20 wiring for Y. | Datasheet |
40-pin GPIO | Physical numbering, orientation and host voltages | Raspberry Pi | Host pin numbering and 3.3 V GPIO logic. | Datasheet |