ADC lcd display help


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default Re: ADC lcd display help

    Hi,
    I'll try again.... If R1 is 1k and R2 is 3.5k and the voltage at the top of the divider as well as VRef is 5V then you'll get an ideal ADC reading of 796, which will be your highest reading. So far so good.

    Now, doing the dummy=1000*advalue isn't a problem, the problem comes when you do Resistor = div32 10 becasue the result of that calculation WILL overflow the WORD sized variable resistor (79600) so the concept is flawed.

    Apart from that you don't have enough resolution to "get to" the last digit. Your resistive range is 3450 ohms, the voltage at the ADC input will range from 0.238V to 3.889V giving you ADC readings ranging from 48 to 796.
    So all you have is 796-48=748 "steps" for your total range of 3450 ohms, a resolution of roughly 3450/748 = 4 ohm which is why you get 1036 instead of 1030 and 54 instead of 50.

    You can use oversampling to increase the resolution of the measurement.

    /Henrik.

  2. #2
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: ADC lcd display help

    Now I understand ! Thank You so much !!!

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: ADC lcd display help

    Here is an OLD example from our not to be forgotten friend Daryl.
    Attached Files Attached Files
    Dave Purola,
    N8NTA
    EN82fn

  4. #4
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: ADC lcd display help

    Thanks ! Verry good example ...
    I miss him too ...

Members who have read this thread : 0

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