Strange ADC behaviour


Closed Thread
Results 1 to 29 of 29

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    NO NO NO DON'T DO IT

    Vref have to be lower than Vdd. Let's see you have a sensor who produce you a max of 1 volt. Then you select a Vref of ~1 Volt, then your ADC give you the full 10 bit conversion scale between 0-Vref. This is the use of it.

    But yeah.. check out for the minimum Vref requirement...
    Last edited by mister_e; - 10th December 2007 at 17:51.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Post

    Quote Originally Posted by mister_e View Post
    NO NO NO DON'T DO IT

    Vref have to be lower than Vdd. Let's see you have a sensor who produce you a max of 1 volt. Then you select a Vref of ~1 Volt, then your ADC give you the full 10 bit conversion scale between 0-Vref. This is the use of it.
    Hi, Steve

    a LM 385 or 385-1.2 will make a nice ( and cheap ! ...) 1.235 v reference here ...

    BUT, do not forget the higher the signal ... the smaller the noise ! ( and last digit flickering ! ) ...
    so, here, the sensor choice is " not so good" ... If I understood (?) , our friend wants to read ambiant temp ... 150-250 mv levels !


    ( note an OPA will amplify noise + signal ... "not so good" solution too ...)

    Alain
    Last edited by Acetronics2; - 10th December 2007 at 18:03.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Hello Alain,

    the purpose of this circuit is first to learn
    Then it will be for reading temperatures between 20 and 130ºC.

    The forum mentioned the LM335 as the best choice but this one does not reach above 100ºC.

    I had the LM35 and the LM135 ( which does accept temps higher than 100ºC ) on my list.

    The problem is than my local store does not have the LM135 so i'm kinda stuck with this one !

    I will retry to write the code with your tip :

    " temp = val*125
    temp = temp.highbyte "


    .

Similar Threads

  1. Strange Behaviour - Simple code+DT_INT+16F676
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th February 2010, 18:53
  2. Strange behaviour of my PBP code.
    By Fredrick in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th August 2009, 20:20
  3. Strange Serout Behaviour
    By bluesmoke in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th August 2009, 04:12
  4. Strange behaviour from PIC16F877 on TMR0
    By mikebar in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 19th August 2006, 01:31
  5. strange int behaviour
    By tom in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2005, 15:41

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