Problem with saving the data on the sd card #389
-
I'm using esp32 with the pcm5102a DAC and PCM1808 ADC. I can make a loopback from ADC to DAC as well as show the data from ADC on serial plotter, but I have a problem saving the file on the sd card. The file on the card has a name but it's size is 0B. Is it a known issue? Can I save files with 32bit depth or am I doing something wrong? My code is similar to this example AudioFile = SD.open("/new.raw", FILE_WRITE); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The data is only saved when you close the file with AudioFile.close()! |
Beta Was this translation helpful? Give feedback.
-
hello @FugaziScript,
I'm currently trying to make a PCM1808 ADC module work myself, but I'm having problems setting it up: as far as I've read, an external clock is required (and I don't have one). Is it really necessary external circuitry or can the clock be just provided by the ESP32 itself? I'll appreciate any information you could share for a working schematic including the PCM1808 ADC and an ESP32. Kind regards! |
Beta Was this translation helpful? Give feedback.
The data is only saved when you close the file with AudioFile.close()!