I'm trying to play sound on Arduino Uno with a VS1003 module, using schematics and most of the code from this project and I have almost succeeded, but I've got (I think) a performance problem and I don't know what could be wrong. Midi files and low bitrate WAV files are played perfectly (so I think the code and wiring is OK) but when I play MP3 file I hear the song but the sound is slowed down (interrupted) with lots of little breaks (per second). I think it's not getting the data fast enough, but the original project is the same and it works! What can be wrong? Could it be the SD card reader module or SD card?
I have to note that the original wiring from that project was not working in my case because of SD initialization error. It started to work after I've replaced the 2.2K and 3.3K resistors for SPI lines with 100K and 200K. (I didn't have to replace those on the DCS, CS and RST lines of the VS1003 module). Also I don't have the LCD and buttons so my main
loop() is just empty. I use the
Serial for debugging (but not during the playback).
I have tested the SD card performance and the result is 107kbps - no wonder the 192kbps mp3 is sliced! So it is clearly the SD card performance problem. Does anyone know why it could be so slow? Can the wiring or voltage affect the speed? I'm using LC STUDIO card reader and TOSHIBA SD-M512 card (512MB). Just tested the card in PC and it's fast, so it's either the reader or wiring.