Impossible to manage my Wav trigger with my arduino

Hello to you

I tried everything before coming to you for help.

Yet when I see the others everything seems to be easy but you have to face the facts, I can’t do it.

Wave trigger card received at the beginning of the week

For management:

Arduino Atmega 2560 (serial port 1, pin 18)

File “wavtrigr.ini” with the soft WTConfig . Although I don’t have much to put in except maybe 9600bps.

The card seems to be working fine. As I press the button, it launches the first sound. The 16 contacts launch the 16 sounds recorded in the SD card.

Perfect but I don’t need this mode of operation.

The only thing I’m interested in is being able to play sounds through my Arduino atmega board.

I took the “WAV-Trigger-Arduino-Serial-Library” library.

I fed the Wav Trigger with a minimum of 5 Volts and up to 10 Volts.

I have correctly connected the Gnd and the Rx of the Wav Trigger to the Gnd and to pin 18 of my Arduino atmega.

But nothing, I can’t do anything but what’s going on???

I tested with an Arduino Uno (pin 9) but nothing either.

Please help!!

Share a photo of the wiring/setup

What code is being run on the Mega?

You could wire output pins from the mega to individual trigger pins on the WAV board instead of serial control too if that makes it simpler…then you’d just run code on the mega that sends outputs to play the tracks however you’d like (disable polyphony using the app if only one at a time is needed)

Good morning

Thank you for this quick consideration, we feel less alone.

Attached is a photo of the wiring.

Regarding the code here is what I put in the arduino atmega:

#include <Arduino.h>
//#include <AltSoftSerial.h>    // With Atmega2560, don't need
#include <wavTrigger.h>
wavTrigger wTrig;

void setup() {
  wTrig.start();
  delay(1000);
  wTrig.stopAllTracks();
  delay(1000);                             
  Serial.begin(9600);
}

void loop() {
  wTrig.trackPlayPoly(1); // Start Track 1
  delay(1000);
  wTrig.trackStop(1);        // Stop Track 1
  delay(500);
}

As it’s an atmega I also activated in the “wavTrigger” library the SERIAL1 comment line. (view the photo)

For the solution of directly triggering the 16 inputs of the WAV card, thank you, but this solution does not suit us because our number of Atmega outputs are limited and we do not have enough available.

Polyphony will remain on because it is very important to us.

Thanks for your feedback

wavTrigger library the SERIAL1.png

One thing I can think of is that if you’re setting the WAV Trigger serial baud rate to 9600 using the init file, then it won’t work with the arduino library which uses the WAV Trigger’s default baud rate of 57.6k. For serial control using the library, you shouldn’t even need an init file unless you need to enable the audio power amp (which you can also do via serial control - it just hasn’t been added to the arduino library yet.)

Many thanks to you!!!

The problem was there. In the init file there was 9600bps, I thought I was doing well!!

So effectively without init file it works and if I put the init file and remove the 9600bps line it works.

Thank you to you and thank you to you, I will be able to continue!!

:smiley: :smiley: :smiley: :smiley: