Resistor Voltage Divider and ADC


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429

    Default Resistor Voltage Divider and ADC

    Hi,

    I need to measure the voltage of a battery, so i'm going to be using a resistor voltage divider to drop the voltage down to <5v that the ADC can handle. Like this:


    Battery +ve ------- 18k Resistor ------- ADC Pin ------- 4.7k Resistor ------- Ground

    My question is, what is my impedance for calculating the min ADC acquisition time in this instance? Is it just the impedance to ground (i.e. 4.7k)? Or do I have to consider the 18k resistor as well?
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  2. #2


    Did you find this post helpful? Yes | No

    Default Impedance is the parallel combination

    Your effective input impedance is the parallel combination of 4k7 and 18k.

    Formula is R1*R2/(R1 + R2).

    HTH
    BrianT

  3. #3
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Oh, really? I cant say I understand why that is the case, but i'll take your word for it.

    In that case I should be able to use even higher resistor values (to reduce the wasted current) without violating the PIC's specification of a 10k maximum impedance on ADC inputs?

    Something like:

    Battery +ve ------- 47k Resistor ------- ADC Pin ------- 12k Resistor ------- Ground

    = 9.56k input impedance ~ 10uS ADC acquisition time (and only wasting fractions of a mA of battery current)
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Thanks. I don't have any trouble working out the divisor so that it wont go over 5v for my input range. It's the impedance that I was worried about (but still want to minimise wasted current).

    It's a shame that DT's calculator there doesn't have the impedance in the result. I have yet to find confirmation elsewhere that the input impedance is the parallel impedance of the 2 resistors. It seems a little counter-intuitive to me. If anything, I would have thought that it would be the series impedance.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Consider BrianT answer confirmed
    This may help, near the end....
    http://www.kpsec.freeuk.com/imped.htm
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Thanks BrianT and mackrackit.

    It still seems counter-intuitive to me, but it means that I can have accurate battery readings with less wasted current, so I'm happy.
    Last edited by Kamikaze47; - 11th August 2010 at 16:10.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  8. #8
    Join Date
    Aug 2010
    Location
    Chiang Mai University, Thailand
    Posts
    9


    Did you find this post helpful? Yes | No

    Default

    An easy way to understand it without going into thevenin equivalent circuits.

    Consider the plus side and the 0 (ground) side of the power source as low impedance sources. In an ideal power source the + side and 0 side will each be zero ohms impedance and as such the PIC sees both the high side resistor and low side resistor going to to zero ohm sources making the value of the resistors parallel.

  9. #9
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Consider the plus side and the 0 (ground) side of the power source as low impedance sources. In an ideal power source the + side and 0 side will each be zero ohms impedance and as such the PIC sees both the high side resistor and low side resistor going to to zero ohm sources making the value of the resistors parallel.
    Nice explanation!
    Dave
    Always wear safety glasses while programming.

  10. #10
    timmers's Avatar
    timmers Guest


    Did you find this post helpful? Yes | No

    Default

    ...or put a largish capacitor accross the pic pin and use the ESR of the cap as your source impedance!

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts