🛠 First Connection of the MAX98357A I2S Amplifier

Adafruit Stereo I2S 3W Amplifier Breakout - Dual MAX98357A · intermediaire · Guide pas à pas pour connecter l'amplificateur stéréo I2S Adafruit à un microcontrôleur et vérifier sa sortie audio.

Objectives

This tutorial aims to perform the first wiring of the Adafruit Stereo I2S 3W Amplifier Breakout (dual MAX98357A) with an I2S-compatible microcontroller. By the end, you will understand how to power the board, configure digital data lines, and verify basic operation without excessive distortion.

Required Materials

Steps

  1. Speaker Preparation: The amplifier uses a Bridge Tied Load (BTL) topology. This means each speaker must be connected between the two output terminals of a channel (e.g., OUT1+ and OUT1-). Never connect speaker terminals to the circuit ground (GND).
  1. Power Connection: Connect the VIN pin of the board to a stable 5V power source. Connect the GND pin to the system common ground. Note that the board accepts 2.7V to 5.5V, but 5V is optimal for achieving 3.2W per channel.
  1. I2S Signal Wiring: I2S requires three main lines for standard operation without an external MCLK (Master Clock), as the MAX98357A generates its own internal clock.

*Note: Check your specific microcontroller's pinout for these signals.*

  1. Gain Configuration: By default, the gain is set to 9dB. If you wish to change it, use jumpers on the GAIN0, GAIN1, GAIN2 pads according to Adafruit documentation. For this first test, leave default connections.
  1. Test Code (ESP32 Example): Use a standard I2S library.
#include <driver/i2s.h>
#define I2S_PORT I2S_NUM_0
// Configure BCLK, WS, DATA pins according to your board
// Init I2S with 44.1kHz sampling, 16-bit, stereo

Verification

Upload the test code. You should hear a clear sound (sine wave or white noise) from the speakers. If the sound is very low, check the power supply. If you hear crackling, verify that the I2S cables are not swapped (BCLK/LRC/DIN).

Going Further

Explore volume control via code (digital attenuation) or test thermal protections by running the amplifier at full load for a long duration.

Other tutorials for this board

← Back to the board 🛠 All tutorials