Erratic analog inputs .


Closed Thread
Results 1 to 9 of 9

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    When you measure the max voltage from the LEDs with a meter what do you have.

    You will need an op amp like Charles said or move some things around and use the two VREFs. But that still might be a little tight with out an amp.
    Last edited by mackrackit; - 10th October 2009 at 14:10.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Lightbulb

    Hi,

    At first glance ...

    Your Vref must be rock-stable ( Pic Decoupling ... What about ???) ... now result is +/- 1 digit ... = +/- 5 mv !!! ... a little HardWare scheme would be useful !!!

    I'd recommend some external Vref ... if mV looked for !

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

  3. #3
    Join Date
    Aug 2009
    Posts
    33


    Did you find this post helpful? Yes | No

    Cool For a test.

    Hi, I found a site that has a project that will help me setup mine. The project uses a potentiometer to vary the voltage to be read and display. It uses one port only ( portA.4) but for the test it’s good enough. I followed all the instructions and did the setup exactly as the program said. I copied the program and compiled it. The program describes that the displayed digital value will be from 0 to 1023. It worked as plan but the number displayed is a single digit not four as expected. This is the whole project site: C:\Documents and Settings\Dad\Desktop\mr k\adc2.pbp ,Please help me find what I am doing wrong. Thanks.

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


    Did you find this post helpful? Yes | No

    Default

    Hmmmmm.
    For some reason I can not get into your "C" drive from here.
    Could be a network problem.

    Go over to rentron.com for some examples that work.
    And what are your voltages?
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Aug 2009
    Posts
    33


    Did you find this post helpful? Yes | No

    Smile Found it!!!

    I found the problem by chance. I mist the DEFINE ADC_BITS 10 that gives me the precision. Thanks any ways to Charles, Acetronics and Mackrackit that so gently help me figure it out. You guys out there are our best teachers ever. Thanks.

Similar Threads

  1. pic18f analog comparator problem
    By david.silaghi in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th May 2009, 09:38
  2. Multiple analog inputs ?
    By rngd in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th February 2008, 15:13
  3. Help with Analog Interrupt
    By brid0030 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 18:14
  4. Many Analog Inputs
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 10th July 2006, 08:15
  5. analog inputs on 16F716
    By schwinn_rider in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th October 2005, 04:07

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