Home Forums Sparkfun MP3 Shield Library Support Forum Triggering mp3 file over serial Reply To: Triggering mp3 file over serial

#2358
Anonymous
Inactive

Hi Michael,

Thankyou ever so much for your reply. I have just downloaded the code you suggested and have uploaded it to my UNO with the Sparkfun MP3 shield connected.

I tried using my own files but they weren’t working so I added the 2 demo files you had provide onto th SD card.  When I type “1! into the serial window and press enter, nothing happens. If I type “f track001.mp3” into the window, it starts to play the first second or so of the file but it seems to cut off. If I try playing track 2 using the same method, it still plays track 1 in the same manner a before. Similarly if I use any of the tracks I had previously recorded (e.g. track004.mp3), it still tries playing track 1. If I type just “1” or “2” nothing happens at all.

I have copied the result from the serial window below that results from typing “f track002.mp3”. Curiously it seems to parse each letter but gives no output identifying the number element of the filename. If you could let me know if I’m doing something crazy I would really appreciate it.

Cheers,

Jay

Enter 1-9,f,F,s,d,+,-,i,>,<,p,r,R,t,m,M,g,k,h,O,o,D,S,V,l,01-65534 :
Received command: f
Error code: 1 when trying to play track
Enter 1-9,f,F,s,d,+,-,i,>,<,p,r,R,t,m,M,g,k,h,O,o,D,S,V,l,01-65534 :
Received command:
Enter 1-9,f,F,s,d,+,-,i,>,<,p,r,R,t,m,M,g,k,h,O,o,D,S,V,l,01-65534 :
Received command: t
Warning Tests are not available.
Un-Available while playing music or chip in reset.
Enter 1-9,f,F,s,d,+,-,i,>,<,p,r,R,t,m,M,g,k,h,O,o,D,S,V,l,01-65534 :
Received command: r
Enter 1-9,f,F,s,d,+,-,i,>,<,p,r,R,t,m,M,g,k,h,O,o,D,S,V,l,01-65534 :
Received command: a
Enter 1-9,f,F,s,d,+,-,i,>,<,p,r,R,t,m,M,g,k,h,O,o,D,S,V,l,01-65534 :
Received command: c
Enter 1-9,f,F,s,d,+,-,i,>,<,p,r,R,t,m,M,g,k,h,O,o,D,S,V,l,01-65534 :
Received command: k
moving = -1000[milliseconds]
Enter 1-9,f,F,s,d,+,-,i,>,<,p,r,R,t,m,M,g,k,h,O,o,D,S,V,l,01-65534 :
Received command: .
Enter 1-9,f,F,s,d,+,-,i,>,<,p,r,R,t,m,M,g,k,h,O,o,D,S,V,l,01-65534 :
Received command: m
Warning Tests are not available.
Un-Available while playing music or chip in reset.
Enter 1-9,f,F,s,d,+,-,i,>,<,p,r,R,t,m,M,g,k,h,O,o,D,S,V,l,01-65534 :
Received command: p
Pausing
Enter 1-9,f,F,s,d,+,-,i,>,<,p,r,R,t,m,M,g,k,h,O,o,D,S,V,l,01-65534 :
Received command:

Enter 1-9,f,F,s,d,+,-,i,>,<,p,r,R,t,m,M,g,k,h,O,o,D,S,V,l,01-65534 :