3W mono class-D I2S digital amplifier - no DAC, no caps, just three wires
The MAX98357A is a digital I2S class-D amplifier. It takes audio as a digital I2S signal directly from a microcontroller, converts it to analogue internally, and drives a speaker - all in one chip. No external DAC, no coupling capacitor, no decoupling capacitor.
| Pin | Function | Connect to |
|---|---|---|
| VIN | Power | 5V (2.5-5.5V range) |
| GND | Ground | GND |
| BCLK | I2S bit clock | GPIO27 (ESP32) |
| LRC | I2S word select | GPIO14 (ESP32) |
| DIN | I2S data in | GPIO13 (ESP32) |
| SD | Shutdown / gain select | Leave floating (enabled, 9dB) |
| GAIN | Gain select | Leave floating (9dB default) |
| GAIN wiring | Gain |
|---|---|
| Floating | 9dB (default) |
| GND via 100k resistor | 12dB |
| Directly to VIN | 15dB (loudest) |
| Directly to GND | 6dB |
Left floating, the module is enabled and outputs a mono mix of the left and right I2S channels - (L+R)/2. This is the correct state for mono audio. Pulling SD to GND shuts the amp down. SD can also be driven with PWM for software volume control, but hardware gain via the GAIN pin is simpler.