Hi. I use the Sparkfun Mp3 trigger with arduino bord. I have hook it up correctly and it works just fine.
But the code have a "Delay" code and will only play certain amount of seconds of the tracks. What I want is to play one track and when is finished, the next track will play. I have a 10 minute long track i ŵant to play and at the same time i want commands to turn on and off some lights.
// function test: mp3-trigger test with Arduino UNO
//
// connections UNO --- mp3trigger
// 0 RX --- TX
// 1 TX --- RX
// GND --- GND
void setup(){
Serial.begin(38400); // standard for mp3trigger
}
void loop()
{
// play track 1. name on sd-card: 001.mp3
Serial.print("t");
Serial.write(1);
delay(5000);
// play track 5. name on sd-card: 005.mp3
Serial.print("t");
Serial.write(5);
delay(5000);
// play track 77. name on sd-card: 077.mp3
Serial.print("t");
Serial.write(77);
delay(5000);
// play track 121. name on sd-card: 121.mp3
Serial.print("t");
Serial.write(121);
delay(5000);
}