What I want is for a sound file to start playing from the beginning when I remove headphones from a magnet stand. When I put the headphones back on the stand, the sound will stop.
This is the equipment I have for this project:
Headphones: AutoPlay Single Cup Headphones from Blackbox-AV
The headphones comes with an audio cable with a standard mini jack connector, as well as two cables from the built-in switch.
Sound Board: Adafruit Audio FX Mini Sound Board - WAV/OGG Trigger 16MB Flash
The audio sound board comes with 11 inputs for triggers. They are activated when the board receives a CLOSE signal.
When I lift the headphones from its stand, the signal from the built in switch is OPEN. The signal is CLOSED when I put the headphone back on the magnetic stand.
With the switch signal cables from the headphones connected the Audio sound board, the audio stops when I lift the headphones and resumes when I place them back on their magnetic stand. Basically, the inverse of what I desire.
Is there a magical device (perhaps a relay?) or something I could hook up to "invert" the signal flow so that when I lift up the headphone, the audio begins to play. I'm new to electronics and hoping for a simple solution that doesn't require too many parts. If necessary, there is a 5V BUS output on the sound board that I can use to power a relay.
This is the equipment I have for this project:
Headphones: AutoPlay Single Cup Headphones from Blackbox-AV
The headphones comes with an audio cable with a standard mini jack connector, as well as two cables from the built-in switch.
Sound Board: Adafruit Audio FX Mini Sound Board - WAV/OGG Trigger 16MB Flash
The audio sound board comes with 11 inputs for triggers. They are activated when the board receives a CLOSE signal.
When I lift the headphones from its stand, the signal from the built in switch is OPEN. The signal is CLOSED when I put the headphone back on the magnetic stand.
With the switch signal cables from the headphones connected the Audio sound board, the audio stops when I lift the headphones and resumes when I place them back on their magnetic stand. Basically, the inverse of what I desire.
Is there a magical device (perhaps a relay?) or something I could hook up to "invert" the signal flow so that when I lift up the headphone, the audio begins to play. I'm new to electronics and hoping for a simple solution that doesn't require too many parts. If necessary, there is a 5V BUS output on the sound board that I can use to power a relay.