0
\$\begingroup\$

I am trying to build a circuit that turns on a speaker when headphones are unplugged (so it like how our phones detect when our headphones are connected).

To do this, I was thinking of simply using a headphone socket and male jack. This way, when the male jack is plugged, the circuit between the positive and negative terminals of the socket is open (as shown in the picture), and the speaker will not have any power. However, when the male jack is unplugged, the circuit is closed, and the speaker will turn on.

enter image description here

The problem with this design is that I would like to be able to easily pull the male jack out, at angles. However, the problem with only using a female headphone socket is that the headphones can't be pulled out at an angle, but rather can only be pulled out straight. To solve this problem, I was thinking of attaching a dongle (aka headphone extension wire) to the fixed socket, and then plugging the headphones into that dongle. Now, I can pull the male jack freely, at whatever angle (since the dongle is free to rotate).

Dongle/extension:

enter image description here

However, the problem with doing that is that now, the socket's circuit is permanently open since the dongle is always plugged in and won't be removed. Does anyone have any ideas on how I can overcome this problem? Any suggestions or solutions to what I am trying to do? Please let me know if I should explain more details. Thanks!

\$\endgroup\$
  • 2
    \$\begingroup\$ Just get an audio connector that has a fourth tip switch connection. That's what it's designed for. cui.com/blog/understanding-audio-jack-switches-and-schematics \$\endgroup\$ – DKNguyen Feb 20 at 20:19
  • \$\begingroup\$ You can then use it to drive a relay to route audio signal around: embedded.com/print/4015894 \$\endgroup\$ – DKNguyen Feb 20 at 20:42
  • \$\begingroup\$ Can this "audio connector that has a fourth tip switch connection" handle insertion of the jack at different angles? Because that is what is being requested. \$\endgroup\$ – Huisman Feb 20 at 21:03
  • \$\begingroup\$ Could the OP clarify what they mean by "different angles" with regards to insertion and extraction? Because ultimately it sits in a cylindrical channel unless the OP has something mechanically different in mind. \$\endgroup\$ – DKNguyen Feb 20 at 21:07
  • 1
    \$\begingroup\$ I don't know of wire-to-wire jack switches. Maybe make a tiny PCB with the only the board-to-wire jack switch (the first drawing), cut the female side of the headphone extension wire and solder the PCB at that end? Or even hardwire the jacket without PCB. With hot glueing the PCB, applying one or several heatshrinks, and lots of craftmanship you could make a decent looking bulky 'connector'. \$\endgroup\$ – Huisman Feb 20 at 21:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.