Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

Adafruit Audio FX Sound Board play random
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit Audio FX Sound Board play random

by rwerner on Wed Jun 10, 2020 2:12 pm

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

rwerner
 
Posts: 45
Joined: Fri Feb 28, 2014 9:23 pm

Re: Adafruit Audio FX Sound Board play random

by adafruit_support_carter on Wed Jun 10, 2020 5:08 pm

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

adafruit_support_carter
 
Posts: 20355
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Audio FX Sound Board play random

by rwerner on Wed Jun 10, 2020 10:59 pm

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?

rwerner
 
Posts: 45
Joined: Fri Feb 28, 2014 9:23 pm

Re: Adafruit Audio FX Sound Board play random

by adafruit_support_carter on Thu Jun 11, 2020 12:23 pm

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?

adafruit_support_carter
 
Posts: 20355
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Audio FX Sound Board play random

by rwerner on Thu Jun 11, 2020 3:45 pm

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

rwerner
 
Posts: 45
Joined: Fri Feb 28, 2014 9:23 pm

Re: Adafruit Audio FX Sound Board play random

by adafruit_support_carter on Thu Jun 11, 2020 5:04 pm

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.

adafruit_support_carter
 
Posts: 20355
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Audio FX Sound Board play random

by rwerner on Sun Jun 14, 2020 2:43 am

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!!

rwerner
 
Posts: 45
Joined: Fri Feb 28, 2014 9:23 pm

Re: Adafruit Audio FX Sound Board play random

by adafruit_support_carter on Mon Jun 15, 2020 12:04 pm

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.

adafruit_support_carter
 
Posts: 20355
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Audio FX Sound Board play random

by rwerner on Mon Jun 15, 2020 1:10 pm

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.

rwerner
 
Posts: 45
Joined: Fri Feb 28, 2014 9:23 pm

Re: Adafruit Audio FX Sound Board play random

by adafruit_support_carter on Mon Jun 15, 2020 3:09 pm

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

adafruit_support_carter
 
Posts: 20355
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit Audio FX Sound Board play random

by rwerner on Wed Jun 24, 2020 9:11 pm

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

Thanks for your help!

Robert

rwerner
 
Posts: 45
Joined: Fri Feb 28, 2014 9:23 pm

Re: Adafruit Audio FX Sound Board play random

by adafruit_support_carter on Thu Jun 25, 2020 4:49 pm

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

adafruit_support_carter
 
Posts: 20355
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.