Adafruit Audio FX Sound Board play random

Breakout boards, sensors, Drawdio, Game of Life, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rwerner
 
Posts: 49
Joined: Fri Feb 28, 2014 9:23 pm

Adafruit Audio FX Sound Board play random

Post by rwerner »

I have a Adafruit Audio FX Sound Board and want it to play a random song out of a series using the T01RND1.wav etc. file type. I would like this to occur on power up on the board so I shorted Pin 1 to ground without a switch. It doesn't seem to do anything at this point. It randomly selects a song if there is a delay between power up and grounding of the pin only. Is this the only behavior for this RND access to songs or do I have other options to have grounded pins on power-up.

Thanks

Robert Werner

User avatar
adafruit_support_carter
 
Posts: 24378
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Audio FX Sound Board play random

Post by adafruit_support_carter »

I just checked the board's behavior and that should work. I was able to have several random tracks play at power up via a shorted pin.

Double check your filenames. It should be RAND not RND:
https://learn.adafruit.com/adafruit-aud ... 2914630-11

User avatar
rwerner
 
Posts: 49
Joined: Fri Feb 28, 2014 9:23 pm

Re: Adafruit Audio FX Sound Board play random

Post by rwerner »

Did have an issue with naming! Thanks for that but when I ran the demo files I found it repeated the same sequence every time I triggered it which results in it playing the same initial
file every time...not random really just a sequence. This would work if you left the machine on and kept triggering it but just turning it on results in the same song every time. Is this your take on it or am I missing something again?

User avatar
adafruit_support_carter
 
Posts: 24378
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Audio FX Sound Board play random

Post by adafruit_support_carter »

So if you have something like:
T01RAND01.wav
T01RAND02.wav
T01RAND03.wav
T01RAND04.wav
it will play randomly.

BUT - it does the same "random" sequence each time it is powered?

User avatar
rwerner
 
Posts: 49
Joined: Fri Feb 28, 2014 9:23 pm

Re: Adafruit Audio FX Sound Board play random

Post by rwerner »

Yea the download files go “voice 4,3,0,,1” in the same order every time u power it on...

User avatar
adafruit_support_carter
 
Posts: 24378
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Audio FX Sound Board play random

Post by adafruit_support_carter »

I'm seeing the same general behavior. It's probably a limitation of whatever the random generator is on the Audio FX Board. It must be pretty simple and doesn't do any kind of power on seeding to truly randomize it.

User avatar
rwerner
 
Posts: 49
Joined: Fri Feb 28, 2014 9:23 pm

Re: Adafruit Audio FX Sound Board play random

Post by rwerner »

Very much appreciate your help. Ordered a couple of the feather sound boards Instead to get better control in the project...hope Adafruit Does ok!!

User avatar
adafruit_support_carter
 
Posts: 24378
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Audio FX Sound Board play random

Post by adafruit_support_carter »

Thanks! And we hope *everyone* is doing OK also.

What Feather product(s) did you order? The Feather line has main boards and add on boards called FeatherWings. Want to make sure you didn't buy just a FeatherWing without a Feather to control it.

User avatar
rwerner
 
Posts: 49
Joined: Fri Feb 28, 2014 9:23 pm

Re: Adafruit Audio FX Sound Board play random

Post by rwerner »

Bought a couple of these: MUSIC MAKER FEATHERWING along with a couple of poto boards 32U to control them...never used these particular wings but there are a couple of new demos up on your website that looked like the libraries worked.

User avatar
adafruit_support_carter
 
Posts: 24378
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Audio FX Sound Board play random

Post by adafruit_support_carter »

Ah, OK, sounds you got some of these?
https://www.adafruit.com/product/2771
That'll work fine. Just wanted to make sure you didn't buy only the FeatherWing thinking it would work stand alone similar to how the Sound FX board does.

Another thing you could try is using the Feather 32u4 to control the Sound FX board via its Serial Control feature:
https://learn.adafruit.com/adafruit-aud ... io-control

User avatar
rwerner
 
Posts: 49
Joined: Fri Feb 28, 2014 9:23 pm

Re: Adafruit Audio FX Sound Board play random

Post by rwerner »

Here it is finished:
https://www.instructables.com/id/Electric-Thrush/

Thanks for your help!

Robert

User avatar
adafruit_support_carter
 
Posts: 24378
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Audio FX Sound Board play random

Post by adafruit_support_carter »

That's really nice! Thanks for sharing. And glad you got it all working. :)

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

Return to “Other Products from Adafruit”