Trouble getting a PCM5102 I2S DAC to work with Raspberry Pi Pico #1641
Replies: 5 comments 1 reply
-
The pins for I2S defaults on RP2040 are defined here. It seems that DIN and LCK are switched around compared to what I expected. https://github.com/pschatzmann/arduino-audio-tools/blob/main/src/AudioConfig.h#L478 |
Beta Was this translation helpful? Give feedback.
-
If you don't want to use the default mapping you can define your custom pins in your sketch! Please note that for the RP2040 the ws pin can not be defined as it is the bck + 1! ps. Don't ignore the logging messages ! |
Beta Was this translation helpful? Give feedback.
-
Okay, I figured it out now. These are the correct default pins to use:
And also MAKE SURE XSMT IS PULLED LOGIC HIGH (3.3v). This is a mute, which on my cheap board was set to ON (low) by default. |
Beta Was this translation helpful? Give feedback.
-
@pschatzmann this means that the pins here are incorrect: |
Beta Was this translation helpful? Give feedback.
-
At least for my board |
Beta Was this translation helpful? Give feedback.
-
Hi Friends
I have tried to connect a PCM5102 DAC via I2S to a Raspberry Pi Pico board but I get no sound coming out.
Does anyone have any idea ?
The same sketch seems to output audio fine when modified to use a PWMOutput.
With my oscilloscope I can see data coming into the three pins on the DAC.
Connections
Sketch
And here is my patch
Beta Was this translation helpful? Give feedback.
All reactions