0

Can Adafruit FX be triggered by Arduino?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Can Adafruit FX be triggered by Arduino?

by sjw2511 on Wed Aug 21, 2019 3:51 am

Hi,

I was just wondering if its possible to trigger a sound to play via the adafruit fx seen here https://www.adafruit.com/product/2133 using an arduino?

I want the arduino to play a gun sound at random intervals

Regards

sjw2511
 
Posts: 4
Joined: Wed Aug 21, 2019 3:50 am

Re: Can Adafruit FX be triggered by Arduino?

by sjw2511 on Wed Aug 21, 2019 5:25 am

This article explains most of what I want to do

https://learn.adafruit.com/adafruit-aud ... io-control

The only remaining question is how do I use the arduino to start playing a track automatically as I wont have access to the serial screen to manually input triggers on my project.

Wondering if I can use serial.write to send the commands automatically??

sjw2511
 
Posts: 4
Joined: Wed Aug 21, 2019 3:50 am

Re: Can Adafruit FX be triggered by Arduino?

by adafruit_support_bill on Wed Aug 21, 2019 6:33 am

The Arduino can trigger the Fx via the serial interface or via the trigger pins.

I want the arduino to play a gun sound at random intervals

The Arduino Random() function is a simple way to generate random numbers: https://www.arduino.cc/reference/en/lan ... rs/random/
You can use those random numbers to time the intervals between triggers.

adafruit_support_bill
 
Posts: 74337
Joined: Sat Feb 07, 2009 10:11 am

Re: Can Adafruit FX be triggered by Arduino?

by sjw2511 on Wed Aug 21, 2019 6:42 am

Thanks for reply.

To trigger via the pins would i just make the pin high on the arduino?

sjw2511
 
Posts: 4
Joined: Wed Aug 21, 2019 3:50 am

Re: Can Adafruit FX be triggered by Arduino?

by adafruit_support_bill on Wed Aug 21, 2019 6:55 am

The trigger pins on the Fx are active LOW, so you would make the pin LOW on the Arduino.

adafruit_support_bill
 
Posts: 74337
Joined: Sat Feb 07, 2009 10:11 am

Re: Can Adafruit FX be triggered by Arduino?

by sjw2511 on Wed Aug 21, 2019 7:06 am

Great cheers!

sjw2511
 
Posts: 4
Joined: Wed Aug 21, 2019 3:50 am

Please be positive and constructive with your questions and comments.