PIC AD + Vref- using external IC


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    See if I got this straight:
    You have now:
    Sensor minimum 1.8v - maximum 5v
    (PIC A/D minimum 0v - maximum 5v)

    You want to shift the input down by 1.8v, so a zero input is really a ZERO input, then you want to multiply that input by 1.5625 so you can regain the full range of 0-5v at the A/D input?

    You could do all the above...but, yes, you can reference the Vref- to 1.8v giving you a new ZERO (0) at the A/D input, and use 5v for Vref+ giving you MAX (1023 for 10bit A/D) at the A/D input of the PIC. You could use something as simple as 3 silicon diodes in series or even a red led (hand picked parts of course) as this would give you the 1.8v needed for Vref-. Of course the Vf would vary a bit, temperature, etc. But using the red led would also give you a power led.

    And what is this sensor? How much accuracy do you REALLY need?

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


    Did you find this post helpful? Yes | No

    Default

    lm4128, LM4132 are nice. more you pay, more they're accurate.
    Steve

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

  3. #3
    Join Date
    Nov 2004
    Posts
    25


    Did you find this post helpful? Yes | No

    Default IC to Vref ...

    Quote Originally Posted by mister_e View Post
    lm4128, LM4132 are nice. more you pay, more they're accurate.
    Thanks , i will try them !

  4. #4
    Join Date
    Nov 2004
    Posts
    25


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    See if I got this straight:
    You have now:
    Sensor minimum 1.8v - maximum 5v
    (PIC A/D minimum 0v - maximum 5v)

    You want to shift the input down by 1.8v, so a zero input is really a ZERO input, then you want to multiply that input by 1.5625 so you can regain the full range of 0-5v at the A/D input?

    You could do all the above...but, yes, you can reference the Vref- to 1.8v giving you a new ZERO (0) at the A/D input, and use 5v for Vref+ giving you MAX (1023 for 10bit A/D) at the A/D input of the PIC. You could use something as simple as 3 silicon diodes in series or even a red led (hand picked parts of course) as this would give you the 1.8v needed for Vref-. Of course the Vf would vary a bit, temperature, etc. But using the red led would also give you a power led.

    And what is this sensor? How much accuracy do you REALLY need?
    Hi, first of all thanks for you reply.
    Regarding the sensor it ´s a pressure sensor. And regarding the reason , it is simple: since i am discarding by software the first 1.8v of the 5v AD readings i am loosing almost ~36% of the pressure range i could obtain -> 1.8v to 5v only !!!...3.2v only to be converted into valid/useful steps of the AD!
    Thanks again for the LED hint , but i really need a Temp free device...

Similar Threads

  1. PIC 12c509 - No External timing components
    By stay_aliveuk in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th September 2006, 17:20
  2. External UART IC
    By Terry in forum General
    Replies: 4
    Last Post: - 22nd December 2005, 18:01
  3. question regarding an external AD converter
    By dtoohey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th March 2005, 05:50
  4. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14
  5. switching external vref+ and vdd vref
    By alejandro_halon in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th February 2005, 20:13

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