Maker Pro
Maker Pro

Hot Swapping Headphone Jack - Temporary Shorts During Insertion - How To Remedy?

Mahonroy

Oct 21, 2014
69
Joined
Oct 21, 2014
Messages
69
Hey guys,
I have a 3-wire temperature sensor (DS18B20) wired up to a headphone jack. I have the corresponding receptacle on the PCB. If the device is powered off before insertion of the plug, everything is fine.
However, inserting the jack while the device is running causes the device to reset. This is because during the insertion of a headphone jack, there are temporary shorts that occur:
* Sleeve gets shorted to the ring
* Sleeve gets shorted to the tip
* Ring gets shorted to the tip
Once its fully inserted nothing is shorting with one another.

The device is resetting because when a power rail gets shorted to ground, it pulls too much current and the voltage regulators that are upstream shut-down until the high current is removed.

You might be wondering, why not use the version of receptacle/jack that has the built in switches? The switches indicate when the plug is inserted in all the way, at which point I could activate the power and problem solved right? I cannot do this because the user has the option of using an audio extension cable... so plugging/unplugging at the other end of the cable would cause the temporary shorts and the problem would remain.

Another note: I cannot switch to a different style of plug, it has to be a 3 wire stereo audio jack.

I had an idea of using an LDO voltage regulator (such as the "TC1014" which is a 50mA regulator) using this as a current limiter. I was thinking I could use one of these on the 2 red dots I indicated in my schematic. My idea is that when this gets shorted to ground, this will cause an over current situation so the TC1014 will just shutdown and no current will flow.

Would this work? Is there a better solution? I am pretty stuck on this so any help is greatly appreciated, thanks!

Here is a schematic for reference:
hot_swap_question2.jpg
In this schematic going from right to left, the rectangular box is the "sleeve", the middle connector is the "ring", and the last connector is the "tip" (in this case, this is the data line that is being pulled high to 3.3V).

And here is the datasheet to the audio jack/receptacle (I am using the "SJ1-3523N" version):
http://www.mouser.com/ds/2/670/sj1-352xn-series-535548.pdf
 

davenn

Moderator
Sep 5, 2009
14,260
Joined
Sep 5, 2009
Messages
14,260
hi there

2 choices
1) don't hot swap
2) use a different connector ( my choice) a 3 pin XLR connector would be ideal

female chassis mount

upload_2016-5-23_12-19-34.png


male plug

upload_2016-5-23_12-18-29.png

Dave
 

Mahonroy

Oct 21, 2014
69
Joined
Oct 21, 2014
Messages
69
hi there

2 choices
1) don't hot swap
2) use a different connector ( my choice) a 3 pin XLR connector would be ideal

female chassis mount

View attachment 26982


male plug

View attachment 26981

Dave
Thanks for the response Dave,
But as mentioned above, "Another note: I cannot switch to a different style of plug, it has to be a 3 wire stereo audio jack."
Everything has to be these standard audio connectors, so I am looking for a solution that can accommodate them.
 

Mahonroy

Oct 21, 2014
69
Joined
Oct 21, 2014
Messages
69
I was able to solve the problem.

All it took was a 220 ohm resistor in the 5V rail and problem solved. During a short, only 22mA will flow, and the resistor will dissipate 0.113 watts:
I=V/R
I=5/220
I=0.0227

P=VI
P=5*0.0227
P=0.113 watts
 

Mahonroy

Oct 21, 2014
69
Joined
Oct 21, 2014
Messages
69
My intention was not to take credit, it was simply to get it across that I dremeled out a trace and soldered in a 220 ohm resistor and everything is good. Man you guys are sensitive haha.
And I did thank him actually. I was also getting help on "electro-tech" with the exact same solution (220 ohm) because all I was told here was to do something else.

Matter of fact, I thanked Ronv two separate times even......
 
Top