Auto shuffle on boot (robertsonics v24)

Hello all,

spent countless hours trying to figure this out to no avail.
Praying someone here can help…

I have 60 mp3 files on my SD card.
they’re named:
001.mp3
002.mp3
003.mp3
…and so on….

If i connect TRIG1 to GND and power it up, it plays 001.mp3 upon booting. works fine. no problems.

However, I want to auto shuffle my tracks so upon booting, a random mp3 out of my 60 mp3 files plays. I have asked AI (chatgpt, gemini, etc) and they say put a MP3TRIGR.INI file in there with the following in the file:

#VOLM 20
#RAND 0
#TRIG 18, 2, 0

And connect TRIG18 to GND and boot up.
But this just plays track 18 every time upon booting.

AI also said create MP3TRIG.TXT and put the following in the file:

/A 1
/R

And not to connect anything.
But this doesnt play anything upon booting.

Every time i tell AI that they’re solution doesnt work, it offers a variation of what ive mentioned above. I’ve tried about 50 variations of different config file names, config/text file content, mp3 name formats. Nothing works.

Is what I want even possible?
If yes, please tell me how.

Thank you

AI sucks and will lead you astray 90% of the time.

Your answers are in the document linked below.

Hi YellowDog.

Thank you for taking the time to respond.

I think I’ve followed the instructions correctly but its still playing the same song upon boot up (so not random).

My MP3TRIGR.INI file has:

#TRIG 18, 2, 0

And I’ve connected TRIG18 to GND prior to giving the board power.
Is this correct?

It’s been a while since I played with the MP3 trigger but I think the way the random function works you will always get the same first track but everything after that should be random.

The WAV trigger is totally random if I recall correctly. If you ever need a new sound player I recommend it over the MP3 trigger as it is way more configurable and flexible than the MP3 trigger.

Ah man :weary_face:

Spent over a $100 to buy the mp3 trigger and have it FedEx’ed half way around the world and pay import tax under the pretence that it could boot random.

Is there a workaround somehow?

All good. Was able to accomplish it by connecting an ESP32.

ChatGPT actually came in clutch.
Would never have been able to figure out what sketch to upload without AI

Glad you got it figured out! If you need to make another in the future, go with the WAV trigger, it’s way more configurable and a lot more capable.

2 Likes

I see you found another solution. However, you could have made that first audio file a very short, silent one. Then the first file that you actually hear would be a random one.

1 Like

Oh my gosh!!!
Love it when people think outside the box.

Think I’m going to do this. No need for the ESP32.
Just make track one a 1-second track of silence.

THANK YOU

1 Like