ADC - 2 channels but not same voltage reference - how to?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891

    Default ADC - 2 channels but not same voltage reference - how to?

    Hello,

    It's a lead-acid battery charger project and I'd like to control the voltage applied to the batteries but not in the full charger's range (0V-32V) for accuracy reasons.

    I measure the load's current via R 0,1ohm; no problem here (I have made a 10x gain ampli-op circuit to get a usable reading). Reference for this ADC channel is GND.

    For the voltage range that will be controlled, the second ADC channel would return a value between 195 (25V) and 250 (32V) if I use the same voltage reference (using a 2 R divider connected between 0 and 32VDC). BUT, doing so, I use only around 20% of the ADC's resolution range.

    I want to monitor a range of approx 7 volts (lets say from 25V to 32V) because this is the range I am really going to control the batteries's charging voltage. I would then (theoretically) read ADC values from (approx) 5 to 250 wich would be almost the full range (hope I'm clear enough...).

    My idea is to use a 25V Zener.
    <img src="http://home.citycable.ch/flotulopex/downloads/I-U-meas.jpg">

    The problem is that both channels won't have the same voltage reference (GND).

    How do I resolve this?
    Roger

  2. #2
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Default Just a thought...

    Hi Roger,
    I don’t know how to separate the voltage reference grounds on PIC’s ADC channels. It would be interesting to find out if it is possible.

    You could move the Zener to the “high side” (32VDC) and then measure between GND and the 25 Zener’s anode. This would subtract the 25 Volts. You would still need to “voltage divide” the ~7V, to fit the limits of the PIC ADC.

    Both of these schemes cause a small error introduced by the tiny drop on the 0,1 Ohm shunt resistor.

    You could reference both…. at the 0,1 Ohm shunt resistor / Battery junction.
    Then, make your 10x gain amplifier-op circuit an inverter to get a positive voltage out, for the “current” channel. You would have to isolate the PIC’s power supply and have a plus/minus supply for the op-amp.

    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  3. #3
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Default

    Well, I should have think about this solution already...

    You must be right.

    I'm gonna try inverting the Zenner's position.

    Thanks.
    Roger

Similar Threads

  1. 16f877 generate pwm according 2 analog input
    By madxice in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th July 2009, 14:47
  2. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  3. 10bits adc using 16f877
    By sixty9sandals in forum mel PIC BASIC
    Replies: 7
    Last Post: - 8th March 2007, 18:23
  4. Help with final project
    By OvERKiLL in forum General
    Replies: 4
    Last Post: - 15th December 2006, 20:35
  5. ADC value with 2 decimals on an LCD
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2005, 15:54

Members who have read this thread : 1

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