electrical problem adcin


Closed Thread
Results 1 to 7 of 7
  1. #1

    Red face electrical problem adcin

    trying to read a high resistance variable

    var resistor is connected to ground and pic using adcin

    reading with a voltmeter connected to + and pic pin is in millivolts can't seem to get the pic to display

    help?

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


    Did you find this post helpful? Yes | No

    Default

    Do you have some code. A schematic or better description of the "var resistor" or do you mean potentiometer as a voltage divider would help.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Wink Datasheet !!!

    High resistance mean a closer look to the A/D section of the Pic datasheet ...

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

  4. #4


    Did you find this post helpful? Yes | No

    Cool update

    code is very simple and i am getting reading from pic so hookup is ok
    think the problem is the resistance is so great might need a amp but hate to go through this two wire resistance is connected to ground and pin of pic does flucatate on voltmeter as expected again readings are in millivolts
    just dont seem to get pic to respond dont know what range of resistance
    or voltage

    hook up is straight foward 2 wire device one wire to ground (vss ) other to pic using adcin command

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


    Did you find this post helpful? Yes | No

    Default

    Well if you think the resistance is to high, test with something else. Fixed resistor for testing?

    What about the reference voltage?
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile try this

    Jack,

    Quote Originally Posted by jcleaver View Post
    a voltmeter connected to + and pic pin is in millivolts can't seem to get the pic to display
    If you put an external voltmeter between ground (Vss) and the a/d input to the PIC, what do you read?

    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jcleaver View Post
    code is very simple and i am getting reading from pic so hookup is ok
    think the problem is the resistance is so great might need a amp but hate to go through this two wire resistance is connected to ground and pin of pic does flucatate on voltmeter as expected again readings are in millivolts
    just dont seem to get pic to respond dont know what range of resistance
    or voltage

    hook up is straight foward 2 wire device one wire to ground (vss ) other to pic using adcin command
    If the code is very simple, then post it.
    If the schematic is equally as simple, then post it.
    Maybe then, you'll learn something, and then you won't have to ask so many questions later.

Similar Threads

  1. ADC or ADCIN "bias" problem?
    By RussMartin in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th February 2010, 19:39
  2. ADCIN Problem
    By JavPar in forum General
    Replies: 33
    Last Post: - 20th January 2009, 03:36
  3. Electrical noise problem with PIC 16f84
    By Snap in forum General
    Replies: 11
    Last Post: - 26th September 2007, 09:36
  4. adcin problem
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 13th February 2005, 17:47
  5. weird 12F629/675 problem
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th October 2004, 01:08

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