Restrictions on some pins combinations for external I2S DAC ? #677
Unanswered
martinroger
asked this question in
Q&A
Replies: 2 comments 4 replies
-
I am not aware of any restrictions and from my point of view 25 and 26 should work. Maybe you fried one of those pins ? |
Beta Was this translation helpful? Give feedback.
3 replies
-
You can define your custom pins with any Serial port with
See HardwareSeria.h |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Phil,
I feel this is going to be one of those painfully obvious answers, but I have to ask because I cannot find a good explanation in the software or in the hardware references.
I am using an ESP32-WROOM-32 coming as part of one of those many devkit clones, coupled to a an Adafruit-style UDA1334 DAC. From the software and library perspective, I am using the arduino framework at 3.0.7, so to keep things nice I am relying on your AudioTools library for the I2S Stream.
At the time of writing this discussion ticket I am on those versions for this lib and for Audio-Tools :
My code relies on the simple A2DP -> I2S pipeline, so the archetype looks something like that :
With the default WSEL / DIN / BCLK pins, as per the Wiki, it works absolutely great.
Also to note, I do not have anything else connected to any pins outside of one UART on 16-17.
For practicality purposes, I wanted to shift around a bit which pins were used, and I didn't find any restrictions on which ones to use, aside from the usual ones (no SPI flash pins, no input-only pins etc). So I tried this :
Unfortunately, everything seems functional, debug logs don't complain about anything, but no sound comes out of the DAC except for some occasional crunch noise.
Undeterred, I tried other combinations, and got those results :
So clearly there is something a bit weird when trying to use GPIOs 25 and 26 together, and I suspect it might have to do with the fact that they share the onboard DAC outputs, but I cannot really find anything about that online, in the WROOM technical reference or in the library. What am I missing ?
Beta Was this translation helpful? Give feedback.
All reactions