ESP32 C3 super mini and I2S for a MAX98357A ampli

Black_Dynamit3
Posts: 1
Joined: Sat Dec 21, 2024 11:45 am

ESP32 C3 super mini and I2S for a MAX98357A ampli

Postby Black_Dynamit3 » Sat Dec 21, 2024 11:56 am

Hi everyone, first post here since I didn't find any clear response in the ESP32 C espressif manual and in the web, but I'm a beginner so that may explain my difficulty.

I try to wire a MAX98357A ampli to a ESP32 C3 super mini but can't find how to make I2S work and with which pin. I tried pin 10 (DIN), 20 (BCLK), 21 (LCR).

I also can't find reliable info as such which library can be used on the arduino platform.

I saw some of you guys had previous discussions about I2S and the C3 super mini, would someone tell me what the pins are to be used and eventually the library I can use ?
Attachments
esp32-2.jpg
Picture of my poor test board
esp32-2.jpg (1.17 MiB) Viewed 3181 times

lbernstone
Posts: 1132
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32 C3 super mini and I2S for a MAX98357A ampli

Postby lbernstone » Mon Dec 23, 2024 6:29 pm

There are no assigned pins for the I2S peripheral on esp32-c3. If you are using the included I2S library, you should call i2s.setPins before i2s.begin. Using pins 20 & 21 are problematic, since those are typically associated to the uart0 console.
There was a complete change in the I2S API between versions 2 and 3. I'd expect most 3rd party libraries are still using the v2 API. I'd recommend using v2.0.17 of arduino-esp32 if you intend to follow an internet recipe. Some old libraries (pre-2022) may even use the IDF3 driver (which would require v1.0.6).

Who is online

Users browsing this forum: PetalBot and 1 guest