I am trying to set up a MP3 player with an Arduino and a VS1053 board. The setup works nicly for some files. But when I start playing some files the DREQ stays active and there is no sound being played. I recoded all the MP3 files to the same bitrate etc., removed the ID3 tags, normalized them and even converted them to OGG and WMA format. I even ran a MP3-checker over then to see if they had errors. Some files simply dont play. I am not sure at this time if it is always the same ones and will check this specifically later.
Between file playback I reset the VS for a few minutes via the reset line. My guess is that when reactivating there may be an error in my setup that only lets some files to be played OR is only successfull some times. Here is my initialization of the VS:
Code: Select all
digitalWrite(VS_RESET, HIGH); delay(50); vs_com(VS_REG_WRAMADDR, 0xC017); vs_com(VS_REG_WRAM, 3); vs_com(VS_REG_WRAMADDR, 0xC019); vs_com(VS_REG_WRAM, 0); vs_com(VS_REG_CLOCKF, 0x9800); vs_com(VS_REG_MODE, VS_MODE_SM_SDINEW|VS_MODE_SM_LINE1);
Am thankfull for any tips.