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 wiring details
A Raspberry Pi Bonnet with one MAX98357A Class-D amplifier per stereo channel. The Pi sends three I²S signals to both amplifiers, and each speaker connects across its own bridge-tied output pair.
Pin index
Quickly scan every header pin, port name, supported function and usage note.
| Pin | MCU pin | Types | Notes |
|---|---|---|---|
| Power | The Raspberry Pi 3.3 V rail appears at JP4 and supplies the default SJ2 shutdown-mode bias. | |
| Power | Feeds VDD pins 7 and 8 on both MAX98357A amplifiers and appears at JP2. | |
| Power | Feeds VDD pins 7 and 8 on both MAX98357A amplifiers and appears at JP2. | |
| GND | Common supply and signal ground. Connect each speaker across its own output pair. | |
| I2S | GPIO18 · Raspberry Pi physical pin 12 · breakout pad 7. Input to pin 16 on both MAX98357A amplifiers. | |
| GND | Common supply and signal ground. Connect each speaker across its own output pair. | |
| GND | Common supply and signal ground. Connect each speaker across its own output pair. | |
| GND | Common supply and signal ground. Connect each speaker across its own output pair. | |
| GND | Common supply and signal ground. Connect each speaker across its own output pair. | |
| I2S | GPIO19 · Raspberry Pi physical pin 35 · breakout pad 23. Input to pin 14 on both MAX98357A amplifiers. Low selects the left word. | |
| I2S | GPIO21 · Raspberry Pi physical pin 40 · breakout pad 25. Raspberry Pi PCM_DOUT feeds pin 1 on both MAX98357A amplifiers. | |
| Digital | GPIO4 can control both amplifiers if SJ2 is moved from 3V to #4. Drive low to place both channels in shutdown. | |
| I2S | GPIO18 · Raspberry Pi physical pin 12 · breakout pad 7. Input to pin 16 on both MAX98357A amplifiers. | |
| I2S | GPIO19 · Raspberry Pi physical pin 35 · breakout pad 23. Input to pin 14 on both MAX98357A amplifiers. Low selects the left word. | |
| I2S | GPIO21 · Raspberry Pi physical pin 40 · breakout pad 25. Raspberry Pi PCM_DOUT feeds pin 1 on both MAX98357A amplifiers. | |
| GND | JP5 has three holes on this rail. Common supply and signal ground. Connect each speaker across its own output pair. | |
| Power | JP2 has three holes on this rail. Feeds VDD pins 7 and 8 on both MAX98357A amplifiers and appears at JP2. | |
| Power | JP4 has three holes on this rail. The Raspberry Pi 3.3 V rail appears at JP4 and supplies the default SJ2 shutdown-mode bias. | |
| Configuration | The Raspberry Pi 3.3 V rail appears at JP4 and supplies the default SJ2 shutdown-mode bias. | |
| Configuration | Connected directly to the left SD_MODE pin and through R1 (220 kΩ) to the right SD_MODE pin. | |
| Configuration | GPIO4 can control both amplifiers if SJ2 is moved from 3V to #4. Drive low to place both channels in shutdown. | |
| Configuration | The factory bridge to the center pad ties both GAIN inputs to 5 V for 6 dB. | |
| Configuration | With both selector links open, the floating GAIN inputs select 9 dB. | |
| Configuration | Open the factory link and bridge the center to this pad for 3 dB through R2 to 5 V. | |
| Speaker | Driven OUTP (pin 9) through FB1. X1.2 and X3.4 share this output. Use one wiring option for this channel. | |
| Speaker | Driven OUTN (pin 10) through FB2. X1.1 and X3.3 share this output. Use one wiring option for this channel. | |
| Speaker | Driven OUTP (pin 9) through FB1. X1.2 and X3.4 share this output. Use one wiring option for this channel. | |
| Speaker | Driven OUTN (pin 10) through FB2. X1.1 and X3.3 share this output. Use one wiring option for this channel. | |
| Speaker | Driven OUTN (pin 10) through FB4. X2.2 and X3.2 share this output. Use one wiring option for this channel. | |
| Speaker | Driven OUTP (pin 9) through FB3. X2.1 and X3.1 share this output. Use one wiring option for this channel. | |
| Speaker | Driven OUTN (pin 10) through FB4. X2.2 and X3.2 share this output. Use one wiring option for this channel. | |
| Speaker | Driven OUTP (pin 9) through FB3. X2.1 and X3.1 share this output. Use one wiring option for this channel. |
References
Manufacturer references and technical documentation.
| Chip | Role | Manufacturer | Notes | Link |
|---|---|---|---|---|
PCB Rev. D | Schematic and PCB layout | Adafruit | EAGLE source files for the photographed revision. | Datasheet |
MAX98357A | I²S Class-D amplifier | Maxim Integrated | Digital audio input timing, gain selection and SD_MODE thresholds. | Datasheet |
PID 3346 | Bonnet pinout and setup | Adafruit | Pi audio setup, speaker load and gain selection. | Datasheet |