Adafruit MP3 Shield Skips Tracks and Stops Prematurely

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Gator3D
 
Posts: 2
Joined: Thu Jun 01, 2023 1:20 pm

Adafruit MP3 Shield Skips Tracks and Stops Prematurely

Post by Gator3D »

I'm new to Arduino, so please bear with me.

I'm currently working on building a project using the Adafruit MP3 Shield. I have soldered stackable headers and connected the shield to my Arduino Uno. I successfully loaded the example sketch called "player_simple" without any errors.

However, when I run the code, it seems to quickly skip through the tracks and jumps straight to the message "Done playing music." I'm looking for some advice on how to resolve this issue.

----

Adafruit VS1053 Simple Test
VS1053 found
SYSTEM~1/
WPSETT~1.DAT 12
INDEXE~1 76
TRACK0~2.MP3 211339
Playing track 001
Playing track 002
Done playing music

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit MP3 Shield Skips Tracks and Stops Prematurely

Post by mikeysklar »

Did you comment on the default Adafruit_VS1053_FilePlayer(...) constructor line and uncomment the shield version.

Code: Select all

Adafruit_VS1053_FilePlayer musicPlayer = 
  // create breakout-example object!
  // Adafruit_VS1053_FilePlayer(BREAKOUT_RESET, BREAKOUT_CS, BREAKOUT_DCS, DREQ, CARDCS);
  // create shield-example object!
 Adafruit_VS1053_FilePlayer(SHIELD_RESET, SHIELD_CS, SHIELD_DCS, DREQ, CARDCS);

User avatar
Gator3D
 
Posts: 2
Joined: Thu Jun 01, 2023 1:20 pm

Re: Adafruit MP3 Shield Skips Tracks and Stops Prematurely

Post by Gator3D »

Thank you for the response. I did uncomment the shield version, so that's not it.

Could it be a hardware issue? I wouldn't think so as it looks like the code is running. But perhaps I did a poor job soldering?

Could there be an issue with the SD card? I tried reading the mp3 file off of the card and it worked. Also tried different mp3 files of varying sizes.

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit MP3 Shield Skips Tracks and Stops Prematurely

Post by mikeysklar »

It is not hardware as you have a visible SD card and tracks being identified.

Three software issues come to mind.

1. Trying running the player_interrupts example code.

2. What format are you MP3's (bit rate, stereo, etc.)?

3. How are you naming the files are you using the 8.3 naming format?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”