-
Notifications
You must be signed in to change notification settings - Fork 439
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
pcm5102 + esp32: I don't understand #347
Comments
ok, I get it. To use an external DAC you have to change the constructor: AudioOutputI2S(0,1); The connections to PCM5102 are:
Sound quality is better, but I still have a problem with some audio files. I attach two files. One with noise after playback and the other without noise. I think it's related with the size of file. Large files are ok, but short ones have noise at the end. Any idea? |
The use of I2S is, as you said, quite straightforward :
Maybe you could add a zip with the real files. My guess is that you have an ID3 section (or some other tag format) at the end of the file, and that this tag is read as sound. I have a similar problem with random buffer played at the beginning of mp3 files, while the file tag data is parsed. |
Thank you very much. I think the files are plain WAV's. I applied a workaround adding silence at the end of the shortest files and it worked. |
They are wave data in a C table, that makes it difficult to read them in an audio player, open them with a tag editor, or interpret as hex files. ;) |
Hello,
my first atempt was using esp32 and internal DAC. There was a noise after playing my WAV's in PROGMEM. With the sample "viola", all was OK. I tried fill my WAV's with " 0x00" at the end as "viola", but it wasn't work.
For the second atempt I want to use esp32 + PCM5102 but I have a doubt. Following #100, I think I have to connect:
BCK Gpio26
LCK Gpio25
DIN Gpio22
SCK GND
And use AudioOutputI2S. Is it correct? But it's the same class and pins I use with internal DAC. And the pins 25, 26 outputs "analog values". If I want to use PCM5102, I think that pins should output digital values.
I don't understand.... Any help with my isue or this doubt?
Thank you!
The text was updated successfully, but these errors were encountered: