NEWS Forum Wiki XDA TV

# Dock resistors (Dock, Car, Headset)

Tip us?

jthatch12
Senior Member
Thanks Meter 1,387
Posts: 2,012
Join Date: Mar 2012
Location: Philly

DONATE TO ME
Quote:

Learn how analog to digital conversion works. If you cannot figure that out, you're in over your head.

Running Beanstalk w/ STi Kernel

Find me on Nasioc, jthatch12

CyberPK
(Last edited by CyberPK; 15th March 2014 at 06:47 PM.)
Member - OP
Thanks Meter 2
Posts: 31
Join Date: Apr 2009
Resistor values between pin4/5 for HTC ONE explained

Quote:
 Originally Posted by jthatch12 Learn how analog to digital conversion works. If you cannot figure that out, you're in over your head.
Thank you for your USELESS comment.
I've figured out that the values are the mV read on the pin4 after the application of a resistor between pin4 and pin5.

It is a simple Voltage divider (http://en.wikipedia.org/wiki/Voltage_divider)
Misured Voltage between pin4 and pin5 (Vin) = 1,8V = 1800 mV
Misured shortcut current between pin4 and pin5 = 0,18uA
Calculated pullup resistor (Z1): 100000 ohm

So tha math in simple:
or

DOCK_STATE_CAR -> 150mV < adc < 220mV -> 9091Ω < Z2 < 13924Ω | use 10000Ω
DOCK_STATE_USB_HEADSET -> 370mV < adc < 440mV -> 25874Ω < Z2 < 32353Ω | use 27000Ω
DOCK_STATE_DMB -> 440mV < adc < 550mV -> 32353Ω < Z2 < 44000Ω | use 39000Ω
DOCK_STATE_DESK -> 550mV < adc < 900mV -> 44000Ω < Z2 < 100000Ω | use 56000Ω or 68000Ω or 82000Ω

IF
-100mV < adc < 100mV -> -5263Ω < Z2 < 5882Ω ----> 0Ω < Z2 < 5882Ω | simply shortcut
ENABLE pin1 output of 5v and read again pin4 and pin5

MHL -> 776mV < adc < 1020mV
HOST_CHG_DOCK/DOCK_STATE_AUDIO_DOCK -> 1021mV < adc < 1224mV
USB HOST any other value

Regards

alray
Senior Member
Thanks Meter 1,098
Posts: 2,841
Join Date: May 2012
Location: Montreal

DONATE TO ME
Quote:
 Originally Posted by CyberPK Thank you for your USELESS comment.
Quote:
 2.3 Flaming / Lack of respect: XDA is about sharing and this does not involve virtual yelling (flaming) or rudeness.

If you found his comment useless then just don't reply to it, no needs to start a fight here.
thanks
If I've helped you, please hit the ''tanks'' button
If you want a reply, quote or mention me using @alray

Useful links for the HTC One:
nkk71's SuperGUIDE to returning 100% back to stock
Flashing requirements chart by nkk71
HTC1Guru.com by crushalot

CyberPK
Member - OP
Thanks Meter 2
Posts: 31
Join Date: Apr 2009
Quote:
 Originally Posted by alray If you found his comment useless then just don't reply to it, no needs to start a fight here. Please stay polite and respectful thanks
ok... thank you...
 The Following User Says Thank You to CyberPK For This Useful Post: [ Click to Expand ]
 jthatch12 21st March 2014, 06:40 PM Senior Member Thanks Meter 1,387 Posts: 2,012 Join Date: Mar 2012 Location: Philly More Info >  DONATE TO ME FYI I was not " 2.3 Flaming / Lack of respect: XDA is about sharing and this does not involve virtual yelling (flaming) or rudeness." I was simply stating a fact. ADC stands for ANALOG TO DIGITAL CONVERSION.... shocker, I know. I am an electrical engineer and I see all too often people screwing stuff up. Running Beanstalk w/ STi Kernel Find me on Nasioc, jthatch12 REPLY

#### Play Music on Android Wear with Stellio Music Player

Android Wear smartwatchesare growing inpopularity every day. Some devices have already … more

#### Schedule is up for xda:devcon ’14

With xda:devcon ’14 just around the corner, and the venue close to selling out, there is a lot … more

#### aLogcat Returns Thanks to XDA Love

The developers of Android, that is Google, gave users several great debugging tools that can be used in … more

#### And the Winners in the XDA Pebble Development Challenge Are…

Almost two months ago, we set out with Pebble to findthree amazing … more