MP3 file hangs Arduino with VS1053
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- scott216
- Posts: 163
- Joined: Sun Apr 12, 2009 11:08 am
MP3 file hangs Arduino with VS1053
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
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: MP3 file hangs Arduino with VS1053
Are there any errors reported in the serial output? It is possible that the file is corrupted. Have you tried re-exporting it?
- scott216
- Posts: 163
- Joined: Sun Apr 12, 2009 11:08 am
Re: MP3 file hangs Arduino with VS1053
No errors reported. This code only returns "Play sound"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?
Code: Select all
Serial.println("Play sound");
int stat = musicPlayer.startPlayingFile("moover2.mp3");
Serial.print("start playing status ");
Serial.println(stat);
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.
Please be positive and constructive with your questions and comments.