🛠 Basic I/O Connections for I2S Amplifier

Adafruit Stereo I2S 3W Amplifier Breakout - Dual MAX98357A · debutant · Apprenez à câbler correctement les entrées numériques et les sorties audio de l'amplificateur Adafruit.

Objectives

This tutorial guides you through the essential physical connections to use the Adafruit Stereo I2S 3W Amplifier Breakout. You will learn how to properly power the module, connect the digital audio data bus (I2S) from a microcontroller, and wire speakers without risking short circuits. We will also explain how to configure audio gain via dedicated pins, a crucial step to adapt volume to your environment.

Required Hardware

Steps

  1. Power Supply: Connect the VIN pin of the board to the 3.3V or 5V output of your microcontroller. Ensure voltage stays between 2.7V and 5.5V. Connect the GND pin to the system's common ground.
  2. I2S Bus Connection: Link the digital data pins. Connect LRC (Left/Right Clock) to your MCU's LRCLK pin. Connect BCLK (Bit Clock) to the BCLK pin. Finally, connect DIN (Data In) to the MCU's SDATA (or DIN) pin. Note that the MCLK signal is not required.
  3. Gain Configuration: By default, gain is set to 9dB. To change it, use jumpers between the GAIN pin and selectors 3, 6, 9, 12, or 15 dB if present, or solder corresponding resistors per the datasheet to fix the desired level.
  4. Speaker Connection: The amplifier uses Bridge Tied Load (BTL) mode. Connect one speaker's positive terminal to output OUT1+ and the negative to OUT1-. Repeat for the second channel with OUT2+ and OUT2-. Never connect outputs to ground (GND).

Verification

Play a test audio file. You should hear clear stereo sound. Check that speakers do not overheat. If sound is distorted, reduce gain or verify speaker impedance (4Ω or 8Ω recommended).

Going Further

Explore software volume control via the microcontroller instead of hardware, or integrate a passive low-pass filter if using low-quality speakers to reduce Class D artifacts.

Other tutorials for this board

← Back to the board 🛠 All tutorials