Go Down

Topic: Code for random tracks on mp3 trigger? (Read 1 time) previous topic - next topic


I've got an Uno with an mp3 trigger (https://www.sparkfun.com/products/11029?) and am trying to program the Uno so that it will randomly play through the tracks on the SDcard.

Can anyone help with this?

Thanks in advance



According to the MP3 Trigger's user guide, already has a function to play random tracks.  If you use the the sample initialization file all you'd have to do is change the number after #RAND to 0.

However if you want to control everything from the Uno, you could modify this code and incorporate it into your sketch.



OK, I'm still at a loss!

I'm trying to get a sketch that will play a random sample from the sd card with a series of delays between each sound. 

As a complete newb I am lost!


If these are fixed delays, just add appropriately long delay() or delayMicroseconds() statements as needed (e.g. like adding a second or two of delay between playing songs). 

If there's a more complex behavior desired, you'll have to give a more detailed explanation of what you want to do.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131