imza
April 1, 2022, 6:27am
1
Arduino library for asynchronous playback of PCM/WAV files direct from SD card. Arduino Uno,Nano,Mega etc supported - GitHub - TMRh20/TMRpcm: Arduino library for asynchronous playback of PCM/WAV fi...
Hi all,
I have an Uno R3 that records audio when a button is pressed. SD card is an 8GB and formatted at FAT32.
Sample rate: 16000 (doesn't make a difference if it's 8bit)
in pcmConfig.h I have:
#define buffSize 128
#define ENABLE_RECORDING
#define BLOCK_COUNT 100000UL
I've also tried these...
#define SD_FULLSPEED
#define buffSize 254
but I'm still getting skipping in my audio...
There is a note about class 4 cards and skipping in pcmConfig.h, but I'm not sure how to implement SdFat?
Here you may get some clues:TMRpcm SdFat Problem · Issue #77 · TMRh20/TMRpcm · GitHub
Personally, I think this problem will not exist if you use an Arduino Mega instead of UNO.
imza
April 1, 2022, 3:45pm
3
I was thinking about that, I'm not opposed to replacing the board entirely. Thank you very much.
imza
April 2, 2022, 1:11am
4
I got the Mega and the problem is...worse.
imza
April 2, 2022, 2:01am
5
After diving into that thread, I saw where it was mentioned that the default Arduino version of SD.h is just an old version of SdFat.h with bugs. I upgraded my sketch to work with SdFat and it works wonderfully. Thanks for your help!
Good to know that it's working now.
system
Closed
September 30, 2022, 11:01am
7
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.