Lowest impedance for ADC?


+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154

    Default Lowest impedance for ADC?

    Microchip often mentions 10K as the maximum recommended value, but I had an incident a short while ago with a PIC that didn't want higher than 2K (I think) in the datasheet.

    I'm in the process of buying pots and my current samples with 20% tolerance just isn't cutting it; some don't all go down to exactly 0V, or won't reach 5.0V. This of course affects ADC readings; some go down to 0 and up to 255, and some don't.

    1. Would a lower resistance pot (like 1K-2K) be easier/cheaper to get tighter tolerances?

    2. Is there a physical work-around for "weak" pots? (hardware trick)

    3. Would lower resistance pots actually be "better" for ADC? I remember Richard saying a 1K pot could "in theory" have 1 ohm resolution at 10 bits (or something to that effect).


    If tight tolerance pots are just too expensive, one alternative I was thinking of one of those complicated formulas to move the goal posts so to speak:

    - actual ADC reading on a sample pot: 4 to 1018

    - formula would use range between 4 and 1018, and stretch that out to 0 to 1023

    Does this make sense?

    This flight simulator really wants a range of 0 to 1023 to be able to use the full range of motion on a control (imagine a choke that's always partially ON, or a flap, not good).


    EDIT:

    I'm reading this to see if I can make use of that info:

    https://www.picbasic.co.uk/forum/sho...to-a-new-range
    Last edited by Demon; - 28th February 2025 at 10:13.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Lowest impedance for ADC?

    I still had my excel spreadsheet. A quick adjustment and I came up with this:

    Name:  Range formula v2.png
Views: 407
Size:  47.4 KB

    (did some corrections)


    Instead of dropping the resolution to 256 by dropping 2 low bits, I still get a range of 1014 ADC values and the flight sim gets 0-1023 values. Only downside, I'll probably get a tiny dead-zone at top and bottom of pot turn.


    Now the challenge is to see if I can convert Henrik's formula.
    Last edited by Demon; - 28th February 2025 at 04:51.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Lowest impedance for ADC?

    Yeah. works in excel, but gonna get serious overflow in PBP:

    Name:  Range formula v2 corr.png
Views: 405
Size:  48.0 KB
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: Lowest impedance for ADC?

    I guess all pots have some dead band at the edges.

    Good quality should be far less than the chinese ones. Also cheap chinese have other problems like linearity, differencies between pots and contact quality.

    Even if you "stretch" the value from 1014 to 1023 the feel of the deadband turning the pot will be there. You understand that since you produce no values for that angle, you cannot produce also in software something from nothing!

    As for the the input impedance of the ADC in general PIC have a max of 10K for reliable sampling. Using 1 or 2K pots will make shure that you are very much OK with the specs.

    Ioannis

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: Lowest impedance for ADC?

    hey, are you using a capacitor at the pin of the a/d. ? I used to use a 1 or 2 microfarad that smoothed the input reading and didn't much slow the change of v.

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Lowest impedance for ADC?

    Quote Originally Posted by amgen View Post
    hey, are you using a capacitor at the pin of the a/d. ? I used to use a 1 or 2 microfarad that smoothed the input reading and didn't much slow the change of v.
    I'm using 0.1uF directly at the pin, but I could add 1.0uF and see if that improves things.

    But as Richard said in the other thread, an ADC variance of 1-2 is pretty much impossible to get rid of. I was able to get it down to 1, sometimes 2, but that extra cap isn'T gonna hurt either way.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. How to set port to high impedance? TRIS seems not to be working.
    By CuriousOne in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2022, 05:25
  2. Measuring battery impedance
    By lerameur in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd August 2011, 22:16
  3. Replies: 11
    Last Post: - 20th May 2011, 01:21
  4. Input Pins – Low Impedance
    By GraemeJ in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 5th December 2010, 04:00
  5. Lowest voltage reading for a 1
    By BGreen in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th May 2006, 21:14

Members who have read this thread : 13

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