Toggle sound to speaker with a weird twist

Status
Not open for further replies.
Hello. I'm trying something unique. I'm sending a sound signal to a speaker. But I want the sound to stop when I insert a USB drive into USB female port. The port isn't connected to a computer. It's free-standing—just a plain old unpowered piece of metal.

How can I accomplish this? A micro toggle switch inside the USB port? Some kind of spring that keeps two wires apart when the USB goes in? There isn't a way to use the USB port outputs themselves, right?

Here's a drawing of what I'm trying to accomplish.

skematic.png


Thanks for your help.
 
Hello. Thanks for the reply. The USB female port actually isn't powered. It isn't connected to a computer or any circuitry. It's just the raw metal and plastic pieces.

Is there such thing as a reverse button? Something that could do this? Like this:

reverse-button.png
 
Only safe way I can see to do it would be to drill a small hole through the back of the usb socket.
Then insert a pin, that is pushed by the usb stick.
Then other end of the pin then actuates a normally closed switch into the open position.

Any other way of doing it involves electronic circuits.
 
Status
Not open for further replies.