SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By NickColonello
#192046
Hi,

I've updated to firmware 2.4.5. I have one line in my MP3TRIGR.INI:
#TRIG 3, 2, 1

I have about 20 MP3 files named 001.MP3 through 020.MP3.

Every time I closed Trig 3 it plays a ramdom file, but it plays the same files in the same sequence every time it powers up. It is as though the same random seed is chosen every time at boot time.

How do I fix this.
User avatar
By robertsonics
#192053
Yup. As the manual says, it pseudo random - starts with the same seed after a power cycle. You could implement your own random function in another micro, like an Arduino, and play tracks using the serial control protocol.
By NickColonello
#192060
Hi,

I appreciate the quick response. That's what I had guessed. But now I am really stuck. Any chance you can "fix" this e.g. cause the amount of time before the first button press to seed the random generator or something? That would make the random much more useful.

Thanks
User avatar
By robertsonics
#192066
Unlike the MP3 Trigger's processor, the WAV Trigger's STM32 has a hardware random number generator, so it's different after each power cycle. I just tested it to be sure.