ESP32-C3 and I2S

Annex for ESP32
Post Reply
TyuTyu
Posts: 13
Joined: Sun Apr 09, 2023 5:38 am
Has thanked: 3 times

ESP32-C3 and I2S

Post 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
User avatar
cicciocb
Site Admin
Posts: 1989
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 426 times
Been thanked: 1329 times
Contact:

Re: ESP32-C3 and I2S

Post 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
TyuTyu
Posts: 13
Joined: Sun Apr 09, 2023 5:38 am
Has thanked: 3 times

Re: ESP32-C3 and I2S

Post 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)
TyuTyu
Posts: 13
Joined: Sun Apr 09, 2023 5:38 am
Has thanked: 3 times

Re: ESP32-C3 and I2S

Post 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 ?
User avatar
cicciocb
Site Admin
Posts: 1989
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 426 times
Been thanked: 1329 times
Contact:

Re: ESP32-C3 and I2S

Post by cicciocb »

I removed the PLAY functionality in the latest -S2 and -C3 versions.

You should try with an older version
TyuTyu
Posts: 13
Joined: Sun Apr 09, 2023 5:38 am
Has thanked: 3 times

Re: ESP32-C3 and I2S

Post by TyuTyu »

Thanks again. It works now :)
Post Reply