Detect that headphones have been plugged in - Page 1
Forum section: electronics / beginners

author: radexito
author_rank: Newbie
timestamp: September 07, 2012, 12:49:05 pm
content: 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 relaySorry if its hard to understand.Thanks Radexito

author: olsenn
author_rank: Frequent Contributor
timestamp: September 07, 2012, 12:53:52 pm
content: 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.

author: radexito
author_rank: Newbie
timestamp: September 07, 2012, 12:57:44 pm
content: Oh, thanks I did not know thatyou learn something new everydayEDITAlso will it be safe to run 12v through that?

author: Rerouter
author_rank: Super Contributor
timestamp: September 07, 2012, 12:59:15 pm
content: a jack with a detection switch is expensive? comapared to a non switched since when?if you really want to go ahead with this pursuithttp://www.eetkorea.com/STATIC/PDF/200903/EEKOL_2009MAR24_POW_NT_88.pdfbut 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,

author: Rerouter
author_rank: Super Contributor
timestamp: September 07, 2012, 01:00:32 pm
content: yes you can run 12V through it easily just not more than say half an amp per terminal absolute max,

author: radexito
author_rank: Newbie
timestamp: September 07, 2012, 01:07:53 pm
content: I've read that those with the switches go for 6 bucks...maybe it was very old article.At the moment my circuit looks likeand 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

author: olsenn
author_rank: Frequent Contributor
timestamp: September 07, 2012, 01:35:19 pm
content: 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: P035SCK03It 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.

author: radexito
author_rank: Newbie
timestamp: September 07, 2012, 01:44:37 pm
content: Do you know if there is a non PCB mounted version?my design is something like this:

author: Rerouter
author_rank: Super Contributor
timestamp: September 07, 2012, 01:48:52 pm
content: edit:http://www.digikey.com.au/product-detail/en/SJ1-3514/CP1-3514-ND/738682

author: olsenn
author_rank: Frequent Contributor
timestamp: September 07, 2012, 02:00:43 pm
content: QuoteOf 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.

author: T4P
author_rank: Super Contributor
timestamp: September 07, 2012, 04:11:19 pm
content: Pretty much every socket i bought is switchedResistance measuring?