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.
| ESP32 Pin | MAX98357A Pin | Signal |
|---|---|---|
| 5V | VIN | Power |
| GND | GND | Common ground |
| GPIO27 | BCLK | I2S bit clock |
| GPIO14 | LRC | I2S word select (LRCLK) |
| GPIO13 | DIN | I2S data out from ESP32 |
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.