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.
I am having difficulty with trying to come up with a solution to this. I have not been able to google a solution yet.
Using a headphone jack/receptacle that has built in switches is not an option because the user has the option of using an audio extension cable as well. So the plug could be inserted at the PCB, but they could plug/unplug it at the other end, causing the same temporary shorts I mentioned above.
I am trying to think of a solution that maybe involves some diodes but I am just not sure. Any help/advice is greatly appreciated, thanks!
Here is a schematic for reference:

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
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.
I am having difficulty with trying to come up with a solution to this. I have not been able to google a solution yet.
Using a headphone jack/receptacle that has built in switches is not an option because the user has the option of using an audio extension cable as well. So the plug could be inserted at the PCB, but they could plug/unplug it at the other end, causing the same temporary shorts I mentioned above.
I am trying to think of a solution that maybe involves some diodes but I am just not sure. Any help/advice is greatly appreciated, thanks!
Here is a schematic for reference:

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
