TTGO T7 and PCM5102: working #186
Replies: 5 comments 1 reply
-
Thank you very much! |
Beta Was this translation helpful? Give feedback.
-
Thanks so much for making this. I was running around in circles trying to figure out how to get these two boards working together. Did you happen to set things up to get this working with Spotify? I have been trying to get this to show in LMS without any luck. |
Beta Was this translation helpful? Give feedback.
-
Nice, thanks! |
Beta Was this translation helpful? Give feedback.
-
Thank you for this! I've got a similar ESP32 and similar DAC (from Adafruit). Then I looked at that README page and got super confused. Works like a charm! :) |
Beta Was this translation helpful? Give feedback.
-
Thank you so much. It's just the guide that I was searching for many days. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This does go in to detail about how I got this working as someone who had zero experience with squeezelite. Hopefully it helps others!
Prerequisites
As mentioned in the README; you can't use the cheapest ESP32 boards/module. You need at least 4MB of PSRAM. Easy option is to save WROOM modules for other projects and grab a WROVER.
This is a decent and cheap chip that is easily available on PCBs
Step 1: Prep the PCM5102 PCB
I used (and I suspect many others might use) something like this:

But there is a possibility that yours will not work right away.
This helpful user led me to uncover why my PCB wasn't working: the solder pads were not connected properly.
Either test the connections with a multimeter (The blob should read 3.3V for "H3L" and be directly connected to ground for "H1L", "H2L", and "H4L".
I redid all the blobs fresh, and that worked.
Step 2: Wire up the wires
The README shows
However, at least for this PCB; this is confusing.
How mine got wired
1
andL
, it's connected to groundDEMP
, is pin 2, and "H2L" is bridged between2
andL
4
andL
H
and3
are bridgedNotes
The config
What to know
Once your board is flashed, powered, connected to your wifi, and you are viewing the config page in your browser:
Making the actual changes
Option 1: use the "Hardware" tab under "DAC Options"
I2S
BCK
on the I2S PCBLRCK
on the I2S PCBDIN
on the I2S PCBOption 2: Use the NVS Editor
dac_config
keymodel=I2S,bck=<GPIO for BCK>,ws=<GPIO for LRCK>,do=<GPIO for DIN>
Such as
model=I2S,bck=21,ws=27,do=22
Success! (hopefully)
Reboot if needed, connect to it with your phone/tablet/laptop/whatever and start playing music.
You should hear the sound come through clearly and without being sped up/slowed down.
Play your favourite track and celebrate 🎉
Or if you're like me: go to bed because you've spent way too long making this work and you have stuff to do in the morning.
Beta Was this translation helpful? Give feedback.
All reactions