Comments: WAV Trigger Hookup Guide V11
Looking for answers to technical questions?
We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.
If you've found an issue with this tutorial content, please send us your feedback!
woah, this comments list is super duper old.
I found a discrepancy in the text. Your tutorial here says that the when you set the WAV Trigger inputs to "Active 3.3V/5V" that there is an internal pull-down on the trigger inputs. The Robertsonics website says:
Please note that you should never select “Active – 3.3V/5V” option without having an active signal connected to the trigger. With nothing connected, the trigger input is floating and will produce false and random triggers. Similarly, you should never apply 5V to a trigger without first setting it to “Active – 3.3V/5V”.
Here's a link to robertsonics page http://robertsonics.com/wav-trigger-online-user-guide/
I am early days in setting up to use the 'Active' control scheme and I will see if there is an issue. I'll report back.
How do I trigger a sound with a sensor? The hookup guide is not clear about this.
I struggle for way too long to change the pin on altSoftSerial to other than pin 9. I finally got it to work by using softwareSerial library as follows.
-------------------- Tech Support Tips/Troubleshooting/Common Issues --------------------
WTSerial.clear()
If you are having issues compiling the Arduino example code and you see something like this:
Robertsonics is aware of this issue if you look at the comments under "Arduino Serial Control Tutorial => [ http://robertsonics.com/2015/04/25/arduino-serial-control-tutorial/ ]. This might be due to a recent commit on "Jul 7" for a two-way serial communication. There is also an issue posted in the GitHub repository [ https://github.com/robertsonics/WAV-Trigger-Arduino-Serial-Library/issues/8 ]. You can try using the Apr 26, 2015 commit [ https://github.com/robertsonics/WAV-Trigger-Arduino-Serial-Library/tree/db8cf771971844480fbd13a9a43efc60c972d22c ] or try commenting out line 51 in the wavTrigger.cpp file where it says:
AltSoftSerial pins for Atmega32U4 Development Boards
If you are using the WAV trigger and not the Arduino Uno, make sure that you are connecting to the correct defined pins for the AltSoftSerial library. Try looking at the AltSoftSerial Library page for the defined pins on your Arduino [ https://www.pjrc.com/teensy/td_libs_AltSoftSerial.html ].
AltSoftSerial pins for SparkFun Pro Micro
If you are using one of the SparkFun Pro Micros, AltSoftSerial's default pin (pin 13) for the Rx is not broken out. What you could do is go to the header file (AltSoftSerial_Boards.h), change what timer is being used, and pins defined between lines 95-105. You would need to uncomment line 97- 99 and then comment out lines 103-105:
to:
Make sure that you rewire the pins to pin 4 for Rx and pin 9 for Tx on the Pro Micro. It was documented by "CircuitSerialKiller" in the Arduino.cc forums here => [ https://forum.arduino.cc/index.php?topic=339587.0 ].
Delay
I noticed that there was a slight delay of about 3 seconds before the Pro Micro was able to send a command correctly to the WAV trigger. This might have something to do with the Atmega32U4's timers. After uploading the WTriggerResponse.ino to the Pro Micro, the code waits for you to send a character to the microcontroller. You probably won't see the text "Hit any key to start" after upload because the Pro Micro might change COM ports on certain versions of the Arduino IDE. I sent the character "k" through the Arduino serial monitor and received a response saying that the Pro Micro was "Starting!"
The Pro Micro will provide a few options to control the WAV trigger. After sending the letter "p", you will need to wait a few seconds of before being able to play an audio track associated with the number. After waiting about 3 seconds, I was able to play the audio track associated with trigger pin 1 by sending "0001" to the WAV Trigger.
Playback Issues
If you have issues during playback, make sure that the WAV files are formatted as "16-bit, stereo, 44.1kHz" tracks without any meta data [ as explained in Robertsonics' troubleshooting guide http://robertsonics.com/wav-trigger-online-user-guide/#chapter12 ]. Using a program called Audacity can set the bit rate and strip any meta data on the audio track.
If you continue to have problems, make sure that your microSD card is compatible. Certain microSD cards are not compatible and can create a "metal," distorted sound. Using a different microSD card can fix the issue.