ESP32-S3 and PCM3168A for Multichannel 6 outputs DAC? #1757
-
I'm looking to trigger 6 separate wav files simultaneously from an SD card (SPI) at 44.1KHz 16 bit sample rate and output them on separate audio channels using the ESP32-S3. I see that it possible with the Teensy but looking for additional functionally WiFi, BT. This is why the ESP32-S3 is best suited for my application. It should be possible using the ESP32-S3 and the multi channel audio codec by Texas Instruments PCM3168A which supports 6 in / 8 out and the time-division-multiplexed (TDM) format. I've built the circuit but no success in the firmware communication between the ESP and the Codec. Has anyone managed to successfully achieve multichannel audio output on the ESP32-S3 using the PCM3168A? Any tips would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I never had the chance to test DTM. But I added some DRAFT implementation of this codec to my audio-drivers project. I suggest that you start simple with a sine test case and expect quite some debugging to make things to work.
To start, I suggest to use the I2SStream from the AudioTools and the PCM3168 class directly from the drivers library. This gives you more control (to set the right format) and less complexity: Example:
When you test the PCM3168 driver and you have communcations problems: run the Wire scanner to check if the default address is correct. |
Beta Was this translation helpful? Give feedback.
I never had the chance to test DTM. But I added some DRAFT implementation of this codec to my audio-drivers project.
I suggest that you start simple with a sine test case and expect quite some debugging to make things to work.
Just a couple of comments that I noticed when working on the driver:
To start, I suggest to use the I2SStream from the AudioTools and the PCM3168 class directly from the drivers library. This gives you more control (to…