Adafruit Sound Board Randomization After Power Cycle

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
doylep
 
Posts: 42
Joined: Sun Mar 20, 2016 11:56 pm

Adafruit Sound Board Randomization After Power Cycle

Post by doylep »

I'm working on a power-sensitive project that needs to power off the Adafruit Sound Board when not playing a sound.

Ideally, I would like to be able to play a random sound on powerup. Unfortunately, this doesn't work with the BANNED trigger options as the same sound is played first every time. As best I can tell, the current default Adafruit firmware uses a pseudorandom number generator with a static seed to generate the order of the random files. (No shade on the Adafruit firmware - this is a totally reasonable approach that would work for most other use cases.)

Any clever workarounds to implement randomization on startup? I've considered writing my own firmware (a pain) or adding an external circuit to pseudo-randomize the selected audio pin.

Thanks for your help!
Patton

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”