MP3 file hangs Arduino with VS1053

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
scott216
 
Posts: 163
Joined: Sun Apr 12, 2009 11:08 am

MP3 file hangs Arduino with VS1053

Post by scott216 »

I have the VS1053 breakout board I'm using with an Arduino Mega. I created three mp3 files using Apple's Garage Band. Two of the files play fine, but the third one (attached) causes my Mega to hang. The file is only a few seconds long and I exported all three of them the same way - 128k bit rate. Any ideas how to fix this?
Attachments
moover2.zip
This mp3 file cause arduino to hang. You need to unzip it.
(57.89 KiB) Downloaded 27 times

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: MP3 file hangs Arduino with VS1053

Post by adafruit_support_bill »

Are there any errors reported in the serial output? It is possible that the file is corrupted. Have you tried re-exporting it?

User avatar
scott216
 
Posts: 163
Joined: Sun Apr 12, 2009 11:08 am

Re: MP3 file hangs Arduino with VS1053

Post by scott216 »

adafruit_support_bill wrote:Are there any errors reported in the serial output? It is possible that the file is corrupted. Have you tried re-exporting it?
No errors reported. This code only returns "Play sound"

Code: Select all

    Serial.println("Play sound");
    int stat =  musicPlayer.startPlayingFile("moover2.mp3");
    Serial.print("start playing status ");
    Serial.println(stat);
It hangs on musicPlayer.startPlayingFile() and doesn't execute any lines after that.

I re-exported from Garage Band. I even changed garage band from 2 tracks to 1 and exported, but that didn't help. The mp3 file plays fine on my computer.

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

Return to “Other Arduino products from Adafruit”