Skip to content
MCU Atlas
module

MAX98357A I2S class-D amp

by Analog Devices · MPN: MAX98357A

A class-D amplifier that takes I2S digital audio straight from an ESP32 and drives a speaker directly — no MCLK, no configuration registers, no output filter. It is the speaker side of our ESP32 audio builds, from the walkie-talkie pair to voice assistants and multi-room players: it shares the same three-wire I2S bus as the INMP441 microphone, so power and a 4–8 Ω speaker are the only extras.

DatasheetBuild an ESP32 walkie-talkie

Specifications

InterfaceI2S digital input (DIN, BCLK, LRC) — auto-detects the clocking scheme; no MCLK, no I2C programming
OutputMono class-D speaker output — left, right, or (L/2 + R/2) mix of the stereo stream
Output power3.2 W into 4 Ω, 1.8 W into 8 Ω at 5 V (THD+N 10%, gain 12 dB)
Supply voltage2.5–5.5 V single supply
Sample rates8 kHz to 96 kHz
Word lengths16, 24 or 32-bit (I2S mode)
Gain3, 6, 9, 12 or 15 dB via the GAIN pin (unconnected = 9 dB)
T H D+ N0.013% at 1 kHz
Quiescent current2.4 mA typ (VDD = 3.7 V)
Efficiency92% (RL = 8 Ω, POUT = 1 W)
Package9-pin WLP or 16-pin TQFN, −40 °C to +85 °C

What the MAX98357A is

The MAX98357A is a digital-input class-D audio power amplifier from Analog Devices (it keeps the MAX part number from its Maxim Integrated origins). It does three jobs in one chip: the I2S digital input, the DAC that turns that stream into audio, and the class-D speaker stage that drives a bare speaker — all on a 2.5–5.5 V supply, with no output filter to design in (the datasheet's output stage is filterless). Nothing about it needs configuring: there is no MCLK to supply and no I2C or register setup, because the interface auto-recognizes the clocking scheme. In the datasheet's words, “Simply supply power, LRCLK, BCLK, and digital audio to generate audio!”

That near-zero setup cost is why it became the default speaker driver in DIY ESP32 audio. When we researched the search results around ESP32 walkie-talkies and voice builds, the MAX98357A was the amplifier in essentially every competitor build we looked at — and it is the output half of the audio chain across this site, the mirror image of the INMP441 I2S microphone on the input side. The two share one I2S bus in most of our builds, so the mic and the amp are usually bought, wired and debugged as a pair.

One chip drives one speaker. The MAX98357A outputs a left channel, a right channel, or a (left/2 + right/2) mix of the stereo stream — the mix is what a mono voice build wants — and true stereo output means two amplifiers, which is exactly how Adafruit's stereo breakout board does it: two MAX98357A chips on one board.

Wiring it to an ESP32

Three signal wires and two power wires, and the signal side is the same three-wire I2S bus the INMP441 mic talks on: bit clock, word select and data. In the atomic14 walkie-talkie firmware the mic and the amp share the two clock lines, so a build that has already wired the mic has BCLK and LRC on the board waiting.

Wiring the MAX98357A to an ESP32: the same three-wire I2S bus the INMP441 mic uses — BCLK to GPIO 18, LRC to GPIO 19, DIN to GPIO 5, optional shutdown SD to GPIO 22, power on VIN (2.7-5.5 V) and GND, with a 4-8 ohm speaker on the output terminals.
Pin numbers are the atomic14 walkie-talkie firmware defaults. Diagram: MCU Atlas.

The pin numbers above are the atomic14 walkie-talkie firmware's defaults from its config.h; any free GPIOs work. In table form:

MAX98357A pinESP32 DevKitWhat it does
VIN5V (VIN)Power — the Adafruit breakout takes 2.7–5.5 V, so the DevKit's 5 V rail is in range
GNDGNDGround
BCLKGPIO 18I2S bit clock — shared with the mic's SCK in the walkie build
LRCGPIO 19I2S word select — shared with the mic's WS
DINGPIO 5I2S data, ESP32 to amp
SDGPIO 22Optional shutdown: wire it to mute the amp in software, or leave it open — open means the amp stays on
GAIN—Leave unconnected for the default 9 dB; see below
Speaker + / −speaker terminalsAny 4–8 Ω speaker, up to about 3 W

The GAIN pin sets the amplifier's gain with no parts at all: unconnected is 9 dB, tied to GND is 12 dB, tied to VDD is 6 dB, and through a 100 kΩ resistor you get 15 dB (to GND) or 3 dB (to VDD). 9 dB into a 4 Ω speaker is the default the Adafruit breakout ships with and what our walkie builds run.

Power is the one thing to size honestly. The module is happy on the DevKit's 5 V pin, but at full volume it can pull short peaks near an ampere — fine for spoken replies, worth a dedicated supply if you crank it. Our ESP32 walkie-talkie build-along walks the complete hook-up including the mic side, the push-to-talk button and the choppy-audio troubleshooting.

Buying a generic module instead of the Adafruit board? Same chip, but pin labels vary by seller — BCLK/LRC/DIN sometimes appear under SCK/WS/SD-style names, and some clones omit or rename the SD (shutdown) pin and the gain strap. The substitution table in the walkie build-along spells out what to check before you wire one.

Amp, DAC, or the ESP32's own output?

Three ways to get sound out of an ESP32, and each one genuinely wins somewhere:

MAX98357A + speakerPCM5102A + line-outESP32 internal DAC
OutputSpeaker level — drives a 4–8 Ω speaker directlyLine level — headphones, powered speakers or an amp of your choiceWeak analog — headphones or an analog amp board
ChannelsMono: one chip, one speaker (two for stereo)Stereo, two channelsTwo 8-bit channels
Audio qualityDigital in, 0.013% THD+N at 1 kHzThe cleanest of the three (112 dB SNR)8-bit — noticeably worse than either module
Extra partsThe module and a speakerThe module, plus speakers or headphones with their own ampNone at all
Which boardsAny ESP32Any ESP32Classic ESP32 only (GPIO 25/26) — the ESP32-S3 has no internal DAC

When the internal DAC wins

Zero extra parts. On a classic ESP32 the built-in 8-bit DAC on GPIO 25/26 can drive headphones or a small analog amp with no module at all, and the walkie firmware supports it directly: leave USE_I2S_SPEAKER_OUTPUT commented out and the output moves to the internal DAC path. It is the honest smoke-test route — noticeably worse audio than the MAX98357A, good for proving the firmware runs before parts arrive, weak as the end state. And it does not exist everywhere: the ESP32-S3, the chip inside most modern voice builds, has no internal DAC at all, so on an S3 the I2S amplifier is your only audio output, not an option.

When the PCM5102A wins

Line-out and stereo. The PCM5102A I2S DAC turns the same I2S stream into a clean analog line-level signal with two full channels — the right call when the output is headphones or powered speakers rather than a bare speaker, which is why our internet-radio, synth and multi-room player pages build with it. Two MAX98357As can do stereo too, but at speaker level and with two of everything.

When the MAX98357A wins

Any time a bare speaker is the point. A voice assistant that talks back, a walkie-talkie pair, a handheld with a tiny speaker — the amp plus a 4 Ω speaker is one module and a two-wire connection, no amplification chain to design, and the digital input keeps the noise floor where a breadboard build wants it.

Where we use it

This is the amp behind the speaker on every audio build we document. The ESP32 walkie-talkie project builds with it in all three of its build tiers, and our walkie-talkie build-along wires it step by step. The DIY ESP32-S3 voice satellite guide pairs it with the INMP441 on the output side, and the walkie-talkie intercom guide counts it in its parts-cost table.

The project pages that build with it: XiaoZhi open-source voice chatbot, VA5 voice assistant, DIY Alexa wake word, AirPlay 2 surround with one ESP32-S3 per speaker, squeezelite-esp32 multi-room player, and sanoTTS, where the maker lists it as the clean upgrade from an LM386. One more page names it without building with it: the ESPHome voice assistant guide points at it as the DIY route's amp if you build your own assistant instead of using a Voice PE.

What it costs and where to buy

The reference board is Adafruit's mono breakout at $5.95 — pins for LRC, DIN, BCLK, GAIN and GND, screw terminals for the speaker — and its stereo board, the same idea with two MAX98357A chips, at $9.95. Both were in stock at Adafruit (checked 29 Nov 2026). DFRobot's MAX98357 I2S Amplifier Module was $4.90, also in stock, at the same check. Generic modules from marketplace sellers run a few dollars less: the Where to Buy card at the bottom of this page carries the listing we have verified, and the clone caveats in the wiring section above apply. Prices are the makers' own, checked on the day stated — we fetched each store's product page on 2026-11-29 to confirm price and stock; the spec rows above are Analog Devices' datasheet figures, not our measurements.

The chip itself is in production at Analog Devices, which marks it active — its product page recommends the newer MAX98360 for improved performance and lower power in new designs, which matters for product engineers and not at all for buying a $5 breakout.

Projects Using MAX98357A I2S class-D amp6

Good first project:ESP32 walkie-talkie over UDP or ESP-NOWintermediate
squeezelite-esp32: multi-room audio player on ESP32
Illustration
ESP32
Get squeezelite-esp32 running: the hardware you need, the one-click web installer for flashing, and LMS connection steps for multi-room audio.
Intermediate·Code
8 parts listed
ESP32 walkie-talkie over UDP or ESP-NOW
Illustration
ESP32
Build ESP32 walkie-talkies three ways: no-wiring XIAO Sense pair, DevKit breadboard classic, or 600 m antenna handheld. Wiring, firmware, honest ranges.
Intermediate·Code
5 parts listed
DIY Alexa: on-device wake word on ESP32 with TensorFlow Lite
Illustration
ESP32
Build your own voice assistant: an ESP32 detects the wake word on-device with a TensorFlow Lite model, no cloud microphone, then runs the automation you wire up.
Advanced·Code
4 parts listed
XiaoZhi: open-source ESP32 AI voice chatbot
Illustration
ESP32ESP32-S3
XiaoZhi is open-source firmware that turns ESP32-S3 boards into an AI voice assistant over the MCP protocol — many supported client boards and a large community.
Intermediate·Code
5 parts listed
VA5: a $20 ESP32-S3 voice assistant with no personality until you write one
Illustration
ESP32ESP32-S3
A push-to-talk ESP32-S3 voice assistant with a round animated face, wired to the OpenAI Realtime API — its persona, voice, language and face you set from your phone.
Intermediate
12 parts listed
AirPlay 2 surround (5.1 / 7.1) with one ESP32-S3 per speaker
Illustration
ESP32ESP32-S3
An ESP32-S3 Gateway an Apple TV sees as one AirPlay 2 speaker feeds one ESP32-S3 per satellite — start with a stereo pair, grow to 5.1 or 7.1, no AV receiver.
Intermediate
8 parts listed
Where to Buy
Stores we've checked for this part

Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works

Check the store for current price and stock.