WTF is going on here? Triggering External Audio via Grounding on Arduino
April 22, 2012
We're both using Arduino as the brains to the project. I've run into a little snag though. The problem is that apparently you can't actually trigger the audio cue this way because the trigger pin has to go low to trigger it (in this case, that doesn't translate into digitalWrite (triggerPin, LOW)-it means instead that you have to connect that pin to ground.)
My solution was to set the output pin up on the base of a 2n3904 w/collector to ground and emmiter to the unit. Then to test it, I set up a standart pushbutton switch with a resistor to ground on another pin.
The result? The pushbutton doesn't work, but if you touch the wire running from the touch switch to the input pin, IT DOES! It's like an unintentional proximity switch.
So to test it further, I uploaded a second sketch that just triggered the output pin high for ten μSec then low for 10 seconds. Nothing. Uploaded the original sketch. Nothing again.
Short of putting a solid-state relay on a transistor, anyone got any ideas here? I'd rather not have to use that solution. (I tried a JFET already to no avail.)