Author Topic: Detect that headphones have been plugged in  (Read 3570 times)

0 Members and 1 Guest are viewing this topic.

Offline radexitoTopic starter

  • Newbie
  • Posts: 4
Detect that headphones have been plugged in
« on: September 07, 2012, 12:49:05 pm »
Hello I am working on a little project (Sound Switch) and i need a way to detect that i have plugged in a headphone jack.

I've looked on the net and people suggested that you could measure resistance on the jack or buy the more expensive jack with a mechanical switch, if i would want to go for the cheaper option (resistance) what would i need to test the resistance and if headphones are detected switch my relay


Sorry if its hard to understand.
Thanks Radexito
 

Offline olsenn

  • Frequent Contributor
  • **
  • Posts: 993
Re: Detect that headphones have been plugged in
« Reply #1 on: September 07, 2012, 12:53:52 pm »
There's no need for active circuitry in something like this; just about all 3.5mm headphone jacks (including the cheaper ones) have an extra terminal that breaks contact with the ground plate when you physically connect your headphones.
 

Offline radexitoTopic starter

  • Newbie
  • Posts: 4
Re: Detect that headphones have been plugged in
« Reply #2 on: September 07, 2012, 12:57:44 pm »
Oh, thanks I did not know that :)
you learn something new everyday :)

EDIT
Also will it be safe to run 12v through that?
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: Detect that headphones have been plugged in
« Reply #3 on: September 07, 2012, 12:59:15 pm »
a jack with a detection switch is expensive? comapared to a non switched since when?

if you really want to go ahead with this pursuit http://www.eetkorea.com/STATIC/PDF/200903/EEKOL_2009MAR24_POW_NT_88.pdf

but in all seriousness i can not see how the switch option will cost any significant figure more than what it takes to switch under a certain resistance, as i am probably right to assume your signal is center biased rather than DC biased,
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: Detect that headphones have been plugged in
« Reply #4 on: September 07, 2012, 01:00:32 pm »
yes you can run 12V through it easily just not more than say half an amp per terminal absolute max,
 

Offline radexitoTopic starter

  • Newbie
  • Posts: 4
Re: Detect that headphones have been plugged in
« Reply #5 on: September 07, 2012, 01:07:53 pm »
I've read that those with the switches go for 6 bucks...
maybe it was very old article.

At the moment my circuit looks like

and I am going to add more stuff into it soon(more channels(3 in 3 out)), and i want to mute all channels when headphones are plugged in :)
 

Offline olsenn

  • Frequent Contributor
  • **
  • Posts: 993
Re: Detect that headphones have been plugged in
« Reply #6 on: September 07, 2012, 01:35:19 pm »
Hell no; don't waste your time with resistors and diodes. Check out the headphone socket at the bottom of this page: http://futurlec.com/Audio-Miniature.shtml (part number: P035SCK03

It is a standard layout 5-pin switched socket, and they cost $0.40/each. I've seen them go for as little as 10 cents a piece if you order in bulk.
 

Offline radexitoTopic starter

  • Newbie
  • Posts: 4
Re: Detect that headphones have been plugged in
« Reply #7 on: September 07, 2012, 01:44:37 pm »
Do you know if there is a non PCB mounted version?
my design is something like this:
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
« Last Edit: September 07, 2012, 02:02:50 pm by Rerouter »
 

Offline olsenn

  • Frequent Contributor
  • **
  • Posts: 993
Re: Detect that headphones have been plugged in
« Reply #9 on: September 07, 2012, 02:00:43 pm »
Quote
Do you know if there is a non PCB mounted version?

Of course you can solder leads onto any part, but I'm sure you can get cheaper parts than the one from element14. If your device is going to be bulky and in a professionalk enclosure etc. you may even wish to go for a 6.5mm socket (you can get adapters for your headphones) or even an XLR... this will be more durable.

I'd recommend checking various sites for switched 3.5mm sockets and chosing the one that appeals most to you (with all things considered). Most of these sockets will have a little nut and washer to seal it sturdily to your enclosure.
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: Detect that headphones have been plugged in
« Reply #10 on: September 07, 2012, 04:11:19 pm »
Pretty much every socket i bought is switched  :o

Resistance measuring?  :o :o :o :o
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf