USB(PCM2706) to ESP32 for a PC digital sound system #2224
alw1746
started this conversation in
Show and tell
Replies: 0 comments
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.
-
This project uses a PCM2706 board that has a USB-to-SPDIF interface but also outputs I2S with a jumper setting. This is perfect for building a digital sound system for a PC. The I2S interface outputs 12MHz on the MCLK pin but it worked with just BCLK,LRCLK,DATA connected to the ESP32. For testing, I wired up the following components:
USB(PCM2706) -> ESP32 -> DAC(PCM5102) -> stereo amplifier
On Windows, the module shows up as Speakers (2 - USB Audio DAC) and music apps like VLC output to it just like a normal soundcard. The only catch is the Windows volume/mute control has no effect, you need to use your amplifier for that. However application-level volume control such as in VLC works as expected. Given the module is a standard USB audio device, it should be supported in Linux as well.
Sketch
The PCM2706 board and ESP32-S3 Supermini(Tenstar Robot) are generic Aliexpress items while the PCM5102 is from Adafruit.


Beta Was this translation helpful? Give feedback.
All reactions