A/D conversion problem on 18F4431


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    17


    Did you find this post helpful? Yes | No

    Default Offset

    skimask,

    not sure yet, I want to take the voltage measurments and see how they look with respect to orientation.

    Basic question, if I give the micro a ref voltage, should it not scale the number from 0-1024?

    Another item I need to investigate are the Tad and conversion clock bits, I guessed at what values to put here.

    thanks
    t

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ttease View Post
    skimask,

    not sure yet, I want to take the voltage measurments and see how they look with respect to orientation.

    Basic question, if I give the micro a ref voltage, should it not scale the number from 0-1024?

    Another item I need to investigate are the Tad and conversion clock bits, I guessed at what values to put here.

    thanks
    t
    If Vref+ is what the accelerometer puts out at max, and Vref- is what the accelerometer puts out at minimum, then, yes, it'll scale from 0 to 1023.
    If not, either you'll want to do some sort of scaling to the end result. Problem is, if you're input range is less than your output target range, you'll end up losing precision (I just did a post for another guy talking about that elsewhere).

Similar Threads

  1. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 02:48
  2. A/D conversion problem in 18F2520, 2523, 2550 etc.
    By selimkara in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 10th March 2008, 17:26
  3. A/D conversion problem with 18F2455
    By abdy37 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 7th May 2007, 15:53
  4. A/D conversion problem with pic16F88
    By Tapio Linkosalo in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 18th August 2006, 12:42
  5. A/D converter fails?
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th February 2006, 19:57

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