Measuring negative voltages


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,122


    Did you find this post helpful? Yes | No

    Default

    Well, actually the input resistance of the ADC will change relative to the Vcc. For 5 volts would be 7K according to the diagram in Fig.11-2 of 16F877 DS and ading the interconnect resistance of 1K, makes for a total 8K. So this is a factor to concern when sampling the input. So, I would suggest to skip the maths and do a longer sampling just to be sure.

    Ioannis

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,610


    Did you find this post helpful? Yes | No

    Default

    Ioannis,
    You're right, ~7k @ 5V Vdd - I totally missed that graph!
    As you say, a longer sampling period may be needed. Trying will tell. Also, the PIC Mid Range Manual sugests a 0.1uF capacitor on the input if the signal isn't changing to quickly, may be worth a try if Sam decides to use the circuit.

    Thanks for the heads up on that graph!

    /Henrik Olsson.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,122


    Did you find this post helpful? Yes | No

    Default

    You are welcome! That's the idea of the forum, help each other!

    Ioannis

  4. #4
    Join Date
    May 2006
    Posts
    13


    Did you find this post helpful? Yes | No

    Talking

    thank you all for all your responses. I think i have all the info that i need and now have to do some experiments.

    sam

  5. #5
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    I measure negative voltages accurately without any external active components.

    All you have to do is connect a resistor from Vref to the A/D input pin, and another resistor from that A/D pin to the voltage to be measured.

    For example: To measure -12V, I use a National 4.096V reference on RA3 and a 2K resistor from that pin to the A/D input I want to use. From there, I use a 7.5K resistor to the voltage to be measured.

    The code then loops 19 times and adds the results of the conversions (for averaging). The result is then subtracted from 15360. The answer is in tens of millivolts.

    I have used this technique for years with good results.
    Charles Linquist

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,122


    Did you find this post helpful? Yes | No

    Default

    Hi Charles. Yeap, this is the superposition theorem. I really forgot about it. Too many years ago...

    Clever though.

    Ioannis

  7. #7
    Join Date
    May 2006
    Posts
    13


    Did you find this post helpful? Yes | No

    Talking

    Hi Charles:
    That is exacly what i was looking for. do you have any formulas as to how to calculated different resistor values and to know how much offset you have and what not.
    thank you
    sam

Similar Threads

  1. Measuring p-p of a 1.5v to 12v ac signal?
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th October 2009, 16:22
  2. DS18S20 reading negative temperature
    By srob in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 28th December 2007, 21:21
  3. Reading (ADC) negative current
    By sougata in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 21st November 2006, 17:38
  4. Sort of OT, SMT cap...which side is negative
    By Christopher4187 in forum General
    Replies: 2
    Last Post: - 28th January 2006, 13:55
  5. Need Help in Measurement of Voltage
    By apache in forum General
    Replies: 5
    Last Post: - 5th June 2005, 15:39

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