Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to connect the esp32? #100

Open
Primus007 opened this issue May 23, 2018 · 6 comments
Open

How to connect the esp32? #100

Primus007 opened this issue May 23, 2018 · 6 comments

Comments

@Primus007
Copy link

i have successfully wired my pcm5102 to a wemos d1.
Now i want to use a ESP32. I have connected:
BCK Gpio26
LCK Gpio25
DIN Gpio22
Power:
3,3v + to ESP Vin and DAC VCC
3,3v - to ESP GND and DAC GND

But i hear no sound.
please can help anyone?

@RemyEE
Copy link

RemyEE commented Jun 22, 2018

Using PlayMP3FromSPIFFS example, I changed AudioOutputI2SNoDAC to AudioOutputI2S (include header file, class file name), the wiring just same as your
BCK Gpio26
LCK Gpio25
DIN Gpio22
It works for me on ESP32.
I used Adafruit UDA1334, but it should works for another I2S DAC module.
Good lucks.

@aviosipov
Copy link

I addition, SCK have to be connected to GND

@tfry-git
Copy link

For what it's worth, if the issue is that you get more noise than sound, it could be the bit order. To get my PT8211 to work, I had to change I2S_COMM_FORMAT_I2S_MSB to I2S_COMM_FORMAT_I2S_LSB, here:

i2s_comm_format_t comm_fmt = (i2s_comm_format_t)(I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB);
.

@zircothc
Copy link

zircothc commented May 9, 2019

For what it's worth, if the issue is that you get more noise than sound, it could be the bit order. To get my PT8211 to work, I had to change I2S_COMM_FORMAT_I2S_MSB to I2S_COMM_FORMAT_I2S_LSB, here:

i2s_comm_format_t comm_fmt = (i2s_comm_format_t)(I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB);

.

Wow, tfry-git you save me hours.
I was getting mad testing several pt8211 and a pair of esp32 and noise was horrible.
Thank you

@FrankHovis
Copy link

How do I make this change on an esp8266?

@stufi1983
Copy link

Check this out to change on an esp8266:
esp8266/Arduino#4574 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants