MP3 Trigger Delay Issue

I have an application where I am using an MP3 Trigger board with an Arduino. There are three states:

0: Nothing is happening. No music plays.

1: Device is active. A random file numbered between 1 and 49 plays.

2: Device is moving. A random file numbered between 50 and 99 plays.

When powered up device typically starts at 0, then transitions to 1, then 2, then back to 1. If the device is busy, it will transition between 1 and 2 and back to 1 several times. The device has a timer that starts when the device transitions to 1. After X minutes, the device automatically transitions to 0 and will stay there until the device is needed again.

The problem is that when the device is first started, after the first transition from 0 to 1, it takes between 10 and 15 seconds for the MP3 Trigger file to start playing the music. When the device has been running and then transitions back to 0, when it starts again, it doesn’t play any music when the state is 1. When it transitions to 2, the music starts playing after about 10 seconds.

I have debug code in my program and when I watch the output, it looks good. When the device changes state, the debug code shows that the commands were successfully sent to the MP3 trigger and it should be playing the mp3 file.

I have tried sending the MP3 trigger stop commands and selecting a different music file to see if that helps. I haven’t had much success. Any ideas?

Any ideas.

You may have metadata or silence at the start of your MP3 files. Please see the link for the Robertsonics MP3 Trigger Support page and try the test MP3 file found there.