Page 1 of 1

ESP32-C3 and I2S

Posted: Fri Feb 09, 2024 6:03 pm
by TyuTyu
I have read in the "Internet radio ESP32 and PCM5102" topic:
"Up to the I2S bus, which only exists in the ESP32 and not in the ESP8266, Annex accesses through fixed pins that cannot be changed: GPIO2, GPIO5 and GPIO26."

That is means I can't use external I2S DAC (like MAX98357A) with ESP32-C3, which hasn't GPIO26 ?
Is there any workaround ?

BR,
TyuTyu

Re: ESP32-C3 and I2S

Posted: Fri Feb 09, 2024 7:47 pm
by cicciocb
The pins for the I2s can be freely defined in the config page, in the advanced parameters.

However, the esp32 -c3 is a single core module and the streaming + MP3 decoder will use all the CPU time. so I suggest to use a dual core like the classic esp32 or the esp32 -S3

Re: ESP32-C3 and I2S

Posted: Fri Feb 09, 2024 8:14 pm
by TyuTyu
Thanks.
CPU should be enought, until now ESP8266 do the job (warning message from fireplace) I used Mr.DIY audio notifier. (https://github.com/schmurtzm/MrDiy-Audio-Notifier)

Re: ESP32-C3 and I2S

Posted: Sat Feb 10, 2024 8:44 am
by TyuTyu
I got: "Syntax error line 2". It's stange, because with ESP32-S3 without any problem.

Program:
wlog "*** Start ***" + time$
PLAY.SETUP 1,64
PLAY.SPEAK "Dormi"
wlog "*** End ***"

version: Annex32-C3 CAN USB 1.51.2 qio LFS

Is there any hint/idea ?

Re: ESP32-C3 and I2S

Posted: Sat Feb 10, 2024 9:09 am
by cicciocb
I removed the PLAY functionality in the latest -S2 and -C3 versions.

You should try with an older version

Re: ESP32-C3 and I2S

Posted: Sat Feb 10, 2024 9:42 am
by TyuTyu
Thanks again. It works now :)