WAYS TO STOP A WAV TRIGGER SOUND FILE FROM PLAYING OUT WHEN CONDITIONS CHANGE

Hi all,

I purchased a new WAV Trigger board (WIG 13660), and installed it into a toy that I want to make spooky sounds when the lights are out, and happy sounds when the lights are on. I am controlling the WAV Trigger with an Arduino Mega, to which is attached a light sensor. I have 11 different spooky sounds, and 11 happy sounds. The program works, but the WAV Trigger insists on playing out the spooky/happy sounds to the end of the file, and ignores changing conditions like the lights going on or off, no matter how I tweak the code.

It’s as if the WAV Trigger pauses responding to the Arduino program controlling it, until the sound file plays out completely.

I don’t know if I need to change the INIT file choices, or if there is a reset pin on the WAV Trigger I can activate to simply stop it playing, so it responds to the Arduino code again. I think the WAV Trigger only has a reset button, not a reset pin like the Arduino Uno does.

I assume that the reset button momentarily grounds the signal and resets the board, is that correct? If so, can I simply carefully solder a wire to the reset button itself from the Arduino board, to send it a Digital Low signal to momentarily ground it out?

Has anyone else had a problem with their WAV Trigger sound file playing out to the end, while the Arduino program waits for it to finish? Thanks for any input you may have on this.

Once a track starts, it will play until it ends. If you want to stop a playing track you can change the Init file to assign the STOP function to a trigger and then activate that before activating the new track.

If you’re serially controlling the WAV Trigger, send a stop command and then switch tracks.