Forum >DFRduino fonction
ArduinoGeneral

DFRduino fonction

userHead ro2 2012-01-05 11:37:13 4798 Views5 Replies
Hello every body
I want make a project with a arduino and a DFRduino in I2C.
I want play a specific file into the sd card
the files are named 001.mp3; 002.mp3

can you tell me if is a "play 002.mp3 " exist?

thank you
2012-01-16 19:21:30 Hi,


I think you might be looking for this command: [font=arial, helvetica, sans-serif][size=2]Continue Play "\:s\r\n" Return "start\r\n"[/size][/font]

[font=arial, helvetica, sans-serif][size=2]Give it a try, otherwise you might need to program the arduino to send a "play" command every few minutes or time it to send the command at the end of the track.[/size][/font]
userHeadPic Hector
2012-01-15 05:48:44 all is right the sound work fine.

Now I want to play the song in Loop (when the song is end, it start a other time without end)
can you tell me if is possible?
userHeadPic ro2
2012-01-06 18:17:48 Try this:


TwiSend("\\002\r\n");

or replace "002" with the name of the file, just don't add ".mp3"

userHeadPic Hector
2012-01-06 11:55:27 thank you for the answel

yes is for a dfrduino player

in the wiki I found:

    Pause Play "\:p\r\n" Return "pause\r\n" if success
    Continoue Play "\:s\r\n" Return "start\r\n" if success
    Play next "\:n\r\n" Return "next\r\n" if success?Return "false\r\n" if failed
    Play previous "\:u\r\n" Return "key up\r\n"
    Set the volume "\:v 255\r\n"?set the volume, from 0 (minimum)-255 (maximum), Return "vol set ok" if success


but nothing in play a specific file?
userHeadPic ro2
2012-01-05 18:12:51 Hi Ro2,


Are you talking about the DFRduino player??? If so, please look at the wiki, you don't need to include the ".mp3" in the command. Just the name of the track.


[url=https://www.dfrobot.com/wiki/index.php?title=DFRduino_Player_(SKU:DFR0112)] DFRduino player wiki[/url]


If you still have some questions please let me know. Make sure to check the green status LED.
userHeadPic Hector