0

Music Maker MP3 Shield
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Music Maker MP3 Shield

by garyallen on Tue Jun 11, 2019 12:24 am

Purchased Adafruit "Music Maker" MP3 Shield for Arduino product no. 1790. Assembled following instructions. Downloaded the "latest VS1053 library" per instructions. Copied two MP3 files to my micro SD card. Tried the example sketches player_simple and player_interrupts. Neither was able to play the files. I heard a short tone when using the "interrupts" sketch. Nothing on the other. I'm using an Elegoo Uno R3 arduino ( it has worked for other applications). No error messages. Everything seems fine but...
Serial monitor sez:
Adafruit VS1053 Library Test
VS1053 found
SD OK!
TRACK0~1.MP3 6833297
TRACK0~2.MP3 9150484
Could not open file track001.mp3
I am unable to find out why it can't open and play the files.
Any suggestions for troubleshooting this situation? Thanks, Gary
Attachments
music-maker-bottom.jpg
The bottom of the shield
music-maker-bottom.jpg (181.53 KiB) Viewed 115 times
music-maker-top-with-disk.jpg
The top of the shield with micro card.
music-maker-top-with-disk.jpg (205.78 KiB) Viewed 115 times

garyallen
 
Posts: 5
Joined: Mon Jun 10, 2019 11:42 pm

Re: Music Maker MP3 Shield

by stevelup on Tue Jun 11, 2019 9:36 am

For the interrupt sketch try commenting out the if-test that gave you the error, just for debugging purposes. You can put it back once you solve the underlying problem. But also there may be something wrong with your filenames. There should be no ~ in the name. Are you playing full file or a single song? Obviously you need to be sure your file name is called exactly as it appears.

stevelup
 
Posts: 2
Joined: Wed Sep 27, 2017 4:16 pm

Re: Music Maker MP3 Shield

by adafruit_support_carter on Tue Jun 11, 2019 1:03 pm

What are the actual names of the files on the SD card?

adafruit_support_carter
 
Posts: 11467
Joined: Tue Nov 29, 2016 2:45 pm

Re: Music Maker MP3 Shield

by garyallen on Thu Jun 13, 2019 8:29 pm

Thanks for the replies.
Files are named:
track001.mp3
track002.mp3
I'm not sure why the ~ was in there. Something the Serial Monitor came up with? I was just following instructions and trying to get 2 songs to play.

Pardon my ignorance but is this the part I should comment out?
// Start playing a file, then we can do stuff while waiting for it to finish
if (! musicPlayer.startPlayingFile("/track001.mp3")) {
Serial.println("Could not open file track001.mp3");
while (1);

garyallen
 
Posts: 5
Joined: Mon Jun 10, 2019 11:42 pm

Re: Music Maker MP3 Shield

by adafruit_support_carter on Thu Jun 13, 2019 9:48 pm

You should be able to run the example sketch as is without any modifications.

That requires you to use the filenames that are hardwired in the program. But, as way to test things, try changing the filenames, both on the SD card and in the code to match. See if you get the same error message "Could not open file".

What are the MP3 files? Do they play OK in something else?

adafruit_support_carter
 
Posts: 11467
Joined: Tue Nov 29, 2016 2:45 pm

Re: Music Maker MP3 Shield

by garyallen on Thu Jun 13, 2019 11:34 pm

The mp3 files are songs I purchased and downloaded from Itunes. They play fine on my Ipod and computer and have been burned to CDs. I've tried several different files.
I changed the name of one of the files on the card and the corresponding name in the sketch. There was no difference. Got the same message.

garyallen
 
Posts: 5
Joined: Mon Jun 10, 2019 11:42 pm

Re: Music Maker MP3 Shield

by adafruit_support_carter on Fri Jun 14, 2019 12:47 pm

Let's try a known working MP3. Grab the sample Bartlebeats song from here:
https://learn.adafruit.com/adabox004/lo ... he-sd-card
and rename it to track001.mp3 and copy it to the SD card. And try again.

We don't need to worry about track002.mp3 at this point since you're getting an error right away about track001.mp3.

adafruit_support_carter
 
Posts: 11467
Joined: Tue Nov 29, 2016 2:45 pm

Re: Music Maker MP3 Shield

by garyallen on Fri Jun 14, 2019 6:48 pm

OK. Did as you instructed. When using the "player_simple" sketch I got this:
Adafruit VS1053 Simple Test
VS1053 found
TRACK0~1.MP3 14005206
Playing track 001
Playing track 002
Done playing music

The "player_interrupts" sketch yielded this:
Adafruit VS1053 Library Test
VS1053 found
SD OK!
TRACK0~1.MP3 14005206
Could not open file track001.mp3

The only difference being a tone heard when the interrupts sketch is done uploading.
Once again, thanks for you assistance. If you would like to view my project, https://www.youtube.com/watch?v=OewIPoDoKcc
Gary

garyallen
 
Posts: 5
Joined: Mon Jun 10, 2019 11:42 pm

Re: Music Maker MP3 Shield

by adafruit_support_carter on Fri Jun 14, 2019 6:56 pm

Did the MP3 actually play for the case of running the "player_simple" example?

adafruit_support_carter
 
Posts: 11467
Joined: Tue Nov 29, 2016 2:45 pm

Re: Music Maker MP3 Shield

by garyallen on Sat Jun 15, 2019 1:21 am

No. I've never gotten anything to play.

garyallen
 
Posts: 5
Joined: Mon Jun 10, 2019 11:42 pm

Please be positive and constructive with your questions and comments.


cron