

The Adafruit MAX98357A (Part ID: 3006) is a highly efficient, digital audio amplifier designed to drive speakers with up to 3 watts of power. It utilizes an I2S (Inter-IC Sound) digital audio interface, making it an excellent choice for compact audio applications where high-quality sound output is required. This amplifier is particularly well-suited for projects involving microcontrollers, single-board computers, or other digital audio sources.








The following table outlines the key technical details of the Adafruit MAX98357A:
| Parameter | Value |
|---|---|
| Input Type | I2S (Inter-IC Sound) |
| Output Power | Up to 3W (at 4Ω, 10% THD) |
| Operating Voltage | 3.3V to 5.5V |
| Efficiency | Up to 92% |
| Supported Audio Formats | 16-bit, 24-bit, 32-bit PCM |
| Sampling Rates | 8 kHz to 96 kHz |
| Speaker Impedance | 4Ω to 8Ω |
| Shutdown Current | < 1 µA |
| Dimensions | 20mm x 17mm x 3mm |
The MAX98357A features a simple pinout for easy integration into your projects. The table below describes each pin:
| Pin Name | Type | Description |
|---|---|---|
| VIN | Power Input | Power supply input (3.3V to 5.5V). Connect to your power source. |
| GND | Ground | Ground connection. |
| DIN | Digital Input | I2S data input. Connect to the data output of your microcontroller or SBC. |
| BCLK | Digital Input | I2S bit clock input. |
| LRCLK | Digital Input | I2S left-right clock input. |
| SD | Digital Input | Shutdown pin. Pull low to disable the amplifier. Leave floating for normal use. |
| GAIN | Digital Input | Gain control pin. Connect to GND for 9dB gain or leave floating for 15dB gain. |
| OUT+ | Output | Positive speaker output. |
| OUT- | Output | Negative speaker output. |
DIN pin to the I2S data output of your microcontroller or SBC.BCLK pin to the I2S bit clock output.LRCLK pin to the I2S left-right clock output.OUT+ and OUT- pins.GAIN pin floating for a default gain of 15dB.GAIN pin to GND for a reduced gain of 9dB.SD pin floating for normal operation. Pull it low to disable the amplifier.The Arduino UNO does not natively support I2S, but you can use an ESP32 or other microcontrollers with I2S capabilities. Below is an example code snippet for an ESP32:
#include <I2S.h>
// Define I2S pins
#define I2S_BCLK 26 // Bit clock pin
#define I2S_LRCLK 25 // Left-right clock pin
#define I2S_DOUT 22 // Data output pin
void setup() {
// Configure I2S
if (!I2S.begin(I2S_PHILIPS_MODE, 44100, 16)) {
Serial.println("Failed to initialize I2S!");
while (1); // Halt if I2S initialization fails
}
// Set I2S pins
I2S.setPins(I2S_BCLK, I2S_LRCLK, I2S_DOUT);
Serial.println("I2S initialized successfully.");
}
void loop() {
// Example: Send a sine wave to the amplifier
for (int i = 0; i < 360; i++) {
int16_t sample = 32767 * sin(i * PI / 180); // Generate sine wave sample
I2S.write((uint8_t *)&sample, sizeof(sample)); // Send sample to I2S
}
}
No Sound Output:
SD pin is not pulled low.Distorted Audio:
Amplifier Overheating:
Low Volume:
GAIN pin configuration. Leave it floating for maximum gain (15dB).Q: Can I use the MAX98357A with a Raspberry Pi?
A: Yes, the MAX98357A is compatible with the Raspberry Pi's I2S interface. Ensure that the I2S pins are enabled in the Raspberry Pi's configuration.
Q: What is the maximum speaker power supported?
A: The amplifier can drive up to 3W into a 4Ω speaker at 10% THD.
Q: Can I use this amplifier with a 3.3V power supply?
A: Yes, the MAX98357A operates with a supply voltage between 3.3V and 5.5V.
Q: Is it possible to use stereo output with this amplifier?
A: No, the MAX98357A is a mono amplifier. For stereo output, you will need two amplifiers and two speakers.