BS2P40 controlling USB/SD card MP3 Player Module
LuXo12
Posts: 31
Good Evening
For past few days I have been trying to write a code, that will allow me to control my mp3 module (for which I am including a link to the manual) without any success.
The problem I am having is that I'm not able to play back any music when using serial connection, but when I use buttons for basic control (play, pause, next, previous, vol up, vol down, and stop) the unit starts playing music with out any problems.
I did follow the manual for serial hook up to a micro controller but still no luck.
So i was wondering if anyone could take a look at the code I wrote, and suggest a possible error that i might have made,
I am including my code .bs2 code and link to the manual
Thank You
http://www.elechouse.com/elechouse/images/product/USB-SD%20Audio%20Module/USBSD%20mp3%20module%20V1.2.pdf
For past few days I have been trying to write a code, that will allow me to control my mp3 module (for which I am including a link to the manual) without any success.
The problem I am having is that I'm not able to play back any music when using serial connection, but when I use buttons for basic control (play, pause, next, previous, vol up, vol down, and stop) the unit starts playing music with out any problems.
I did follow the manual for serial hook up to a micro controller but still no luck.
So i was wondering if anyone could take a look at the code I wrote, and suggest a possible error that i might have made,
I am including my code .bs2 code and link to the manual
Thank You
http://www.elechouse.com/elechouse/images/product/USB-SD%20Audio%20Module/USBSD%20mp3%20module%20V1.2.pdf
bsp
1K
Comments
I haven't checked the "baud" value. Whatever the Stamp help files give you for 2400 Baud, normal mode, 8-bit, no parity should work.
I forgot to mention that the buttons are still being pulled up through 10k resistor, and so is the RXd and Txd data line
SEROUT pin, Baud, [ $7E, 7, play, (folder dig 1)+"0", (folder dig 0)+"0", (song dig 2)+"0", (song dig 1)+"0", (song dig 0)+"0", $7E ]
Note that "song dig 1" extracts the 10^1 digit of song expressed in decimal. This is described in the Stamp manual. Adding "0" turns this into an ASCII digit as required by your MP3 player.
Thank You for your suggestions
I now that I'm finished with my classes I was finally able to solved the problem I had with this module. As unbelievable as it may sound, datasheet/manual was not 100% correct, But somehow I managed to get it working
full files and expanation s are in the included file
Thanks to everyone that helped meMP3 SEND 2.0.bsp