ElectronicZoologyfield notes from the garage
← Back
ESP32 WROOM-32 38-pin dev board
Microcontroller

ESP32 Dev Board

38-pin development board - I2S audio pins for the MAX98357A guide

Official Espressif documentation:

ESP32-DevKitC V4 user guide →

The ESP32 is a dual-core 240MHz microcontroller with built-in WiFi and Bluetooth. The 38-pin dev board breaks all GPIO pins out on two rows of headers.

For I2S audio, the ESP32 has a hardware I2S peripheral that generates the bit clock, word select, and data signals in hardware. Any GPIO can be assigned to each I2S signal in software - the MAX98357A guide uses GPIO27, GPIO14, and GPIO13.

Pins used in this guide

ESP32 PinMAX98357A PinSignal
5VVINPower
GNDGNDCommon ground
GPIO27BCLKI2S bit clock
GPIO14LRCI2S word select (LRCLK)
GPIO13DINI2S data out from ESP32

Why these pins

GPIO27, GPIO14, and GPIO13 are all clean general-purpose GPIOs with no boot-strapping or special functions that could interfere with I2S. The ESP32's DAC pins (GPIO25 and GPIO26) are deliberately avoided here to keep DAC available for other projects. All three I2S pins are on the same side of the board, which keeps wiring tidy.

Key details

  • GPIO27 - I2S BCLK (bit clock) → MAX98357A BCLK
  • GPIO14 - I2S LRCLK (word select) → MAX98357A LRC
  • GPIO13 - I2S DOUT (data out) → MAX98357A DIN
  • 5V - powers the MAX98357A VIN
  • GND - shared ground for all components