Trust me when I said that I've tried alot of libraries, tweaks and readings before posting here. I really like to find my problem on my own, but I think I've exhausted all forum/git/demo/etc that exists.
I am trying to play mp3 files from an SD card with a VS1003/VS1053 board (see attached picture of the exact board)
After alot of trial and error, the closest I've come is: No error, all Serial output trace look ok, weird wub coming out of the speaker that seems to follow the spi transfer of every mp3 block send to buffer.
And ued the play file example. (Modified to my need)
I've defined the spi pins (hardware)
#define CLK 1 // SPI Clock, shared with SD card
#define MISO 3 // Input data, from VS1053/SD card
#define MOSI 2 // Output data, to VS1053/SD card
And define all the chip select/reset/dreq as such
#define RESET 9 // VS1053 reset pin (output)
#define CS 10 // VS1053 chip select pin (output)
#define DCS 8 // VS1053 Data/command select pin (output)
#define CARDCS 4 // Card chip select pin
#define DREQ 6 // VS1053 Data request, ideally an Interrupt pin
(For DREQ, I have try 5 also since it's suppose to be Interrupt 0 (and 6 = int1)
I have also try to change: #define VS1053_FILEPLAYER_PIN_INT 5
from 5 to 6 and vice versa. Trying to fit DREQ
I have commented the timer line and uncommented the dreq int
// musicPlayer.useInterrupt(VS1053_FILEPLAYER_TIMER0_ INT); // timer int
musicPlayer.useInterrupt(VS1053_FILEPLAYER_PIN_INT ); // DREQ int
Tried with only playFullFile and then only startPlayingFile
All those tests basically give me the same behavior: no error, everything fine, but weird noise wub in speaker while buffering/playing
then it stop wubbing as soon as we arrive at
currentTrack.close()
Then nothing else seems to happen. the file.close works, then I suppose it return to the
while (playingMusic) {
feedBuffer();
}
But never go past here.
In resumé, I feel like everything should works but maybe something really obvious is wrong and I need another pair of eyes.
I don't want to clutter the thread with my example code (think the most important bits are there) but if needed I can post one of my latest variant.
Thanks you alot for any small hint/help/encouragement :P