different voltaje a/d sensors


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    65

    Default different voltaje a/d sensors

    Hello grls & guys
    i have a pic18f4431 (obvious 5v) and i want to A/D at the same time:
    1.- a 0-3,3v device (accelerometer),
    2.- a 0-3,0v device (gyro) and
    3.- a 0-5,0v device (thermsistor)

    of course i have o problem on power supplying them, just voltage regulators & stuff, my problem is to measure the full range of each.

    it seems VREF works just for all a/d inputs at a time?
    is it possible?
    if possible, how should i circuit it?

    thx grls & guys
    "Beethoven had his critics too, see if you can name 3 of them"

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


    Did you find this post helpful? Yes | No

    Default

    It may not be the best solution but when I run into this type of thing I will scale the higher voltages down with a voltage divider so they all match.

    The 0 to 5 volt sensor is now a 0 to 3.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    I don't understand the problem. If you are using 5V to power the PIC, you can also use it for AVdd. You will get the full range of all 3 sensors, you will merely lose resolution on the 3.3V & 3.0V sensors. If you want to maximize resolution, use op amps setup for DC gain to promote the 3.0V & 3.3V sensors.

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    I think he wants full resolution of the A/D converter at 3.3v as well as 5.0v.

    Darrell had a real nice 10 to 16 bit selectable over sample routine. It seems the sites.picbasic.net site is having some issues, so right now you can not download it from there. It was here: http://sites.picbasic.net/index.php?...d=70&pageid=27 and it was called DT_Analog.pbp

    By going to 11 bit over sampling, you would effectively get the resolution back for your 3.3v devices, and no extra hardware. It does slow your sampling time a tiny "bit" for the extra bit.

    Here is the speed
    Last edited by ScaleRobotics; - 21st October 2009 at 01:16.
    http://www.scalerobotics.com

  5. #5
    Join Date
    May 2007
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    As PIC is 5v I was thinking to transform electrically all sensors to ranges to 0-5v with a "magical IC" that outputs an analog voltaje (not digital) proportional to the input.

    For example if a 3,3v device (accelerometer, sensor) outputs 1,65v (50% of 3,3v), then this "magical IC" will recive 1,65v and output 2,5v (50% of 5v).- Aswell if in another channel or other IC configured to transform 0-3v to 0-5v (if sensor says 1,5v my PIC will receive 2,5v). Of course I think this IC should be circuited for matching the desired specific voltaje range

    Maybe those "magical" IC's are OpAmps, as dhouston (thx!) commented. Can OpAmps make that function?

    "Realtime" processing is critical, so multisampling solution suggested by scalerobotics (thx!)is definitely not an option to my application. Interesting for another app anyway.

    And to shrink voltaje as mackrackit suggested (thx!) it would limit "natural" analog resolution. I prefer to amplify a voltaje than shrinking it. And I hope an Operational Amplifier (OpAmp) does that.

    So: Can OpAmps make that function?

    Thank you very much for your attention !
    "Beethoven had his critics too, see if you can name 3 of them"

  6. #6
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Sounds good. Certainly a lot of options.

    96.8 millionths of a second can seem like an eternity.
    Last edited by ScaleRobotics; - 21st October 2009 at 03:27.
    http://www.scalerobotics.com

  7. #7
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RodSTAR View Post
    So: Can OpAmps make that function?
    See the Non-Inverting Amplifier in http://www.national.com/an/AN/AN-31.pdf.

Similar Threads

  1. 12f675 A/d Miseries
    By MARAD75 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 16th December 2008, 02:16
  2. 12F675 A/D and GPIO sleep interrupt
    By macinug in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th September 2008, 14:39
  3. Need advice on A/D
    By james in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 24th August 2007, 19:30
  4. A/D converter fails?
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th February 2006, 18:57
  5. 18F2525 A/D, Comparator and Vref modules
    By fbraun in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th May 2005, 23:17

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