Author Topic: Headphone detection resistance for smartphones?  (Read 3916 times)

0 Members and 1 Guest are viewing this topic.

Offline brainwashTopic starter

  • Frequent Contributor
  • **
  • Posts: 463
  • Country: de
    • Hack Correlation
Headphone detection resistance for smartphones?
« on: March 11, 2013, 10:15:51 am »
I'm trying to integrate a 4 pin TRS plug with my Android smartphone and cannot get it to recognize the jack.
I thought it was based on a small microswitch inside the plug but it seems it is actually based on some resistance. On my RAZR, pin 3 (ring 2) is the common/ground connection, pin 4 is the microphone.
I've tried putting 220 ohm from any output/input to ground and tried also with 1k, shorting pins in all combinations.
Measurements on the original headphone set shows 1.5k mic-gnd, 330ohm out-gnd.

The easy way would be to buy another headphone set and tear it down but I'm sure I'm missing something and it should just work, given that in general headphones vary widely.
 

Offline brainwashTopic starter

  • Frequent Contributor
  • **
  • Posts: 463
  • Country: de
    • Hack Correlation
Re: Headphone detection resistance for smartphones?
« Reply #1 on: March 11, 2013, 10:24:26 am »
Never mind, stupid user problem.
It IS based on physical jack detection, I was just pressing the vol-up/down keys and if no music is playing the 'ding' is played through the phone speaker.

Actually the MIC input is not getting detected properly.
« Last Edit: March 11, 2013, 10:25:57 am by brainwash »
 

Offline Things

  • Regular Contributor
  • *
  • Posts: 224
  • Country: au
  • Laser Geek
    • NQLasers
Re: Headphone detection resistance for smartphones?
« Reply #2 on: March 11, 2013, 12:49:59 pm »
I think the mics work a bit differently in that they have a switch on the headphone cable, which you push to activate the mic (usually). You may have to look into what this switch actually does, whether it disconnects the mic or what. It may also be that the mic is provided with a small biasing voltage, so maybe the phone is looking for a tiny load on the mic pin?
 

Offline jack32

  • Contributor
  • Posts: 10
Re: Headphone detection resistance for smartphones?
« Reply #3 on: March 11, 2013, 09:46:19 pm »
i once tried to connect a condenser microphone to my htc desire and could not get it to work. i was sure i had the correct pinout and everything...
it could detect headsets and headphones. no chance on microphones. and no chance on faking an headset and just using the mic...
 

Offline brainwashTopic starter

  • Frequent Contributor
  • **
  • Posts: 463
  • Country: de
    • Hack Correlation
Re: Headphone detection resistance for smartphones?
« Reply #4 on: March 12, 2013, 07:38:03 am »
Exactly my problem now. I did not have time to order a headset just to take it apart so I just used "SoundAbout" to force the mic on while headphone are plugged in.
Interestingly enough, another headset from HTC also works and it shows 20k in one direction and ~6k in the other direction. The RAZR mic connection is also asymmetric, so this might have something to do with it.
Unloaded bias voltage is about 2 volts, if anyone is interested.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf