Author Topic: Measuring ~65V with about 25mV precision  (Read 6030 times)

0 Members and 1 Guest are viewing this topic.

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Measuring ~65V with about 25mV precision
« on: July 26, 2016, 11:18:45 am »
Hi everyone.
I've been twisting my mind on how to design a circuit that can measure a relatively high voltage with decent precision. This is a followup to my previous thread, https://www.eevblog.com/forum/projects/how-to-make-a-controllable-~55v-voltage-source/msg981049/#msg981049.

I have a LDO that produce a voltage centered around 55V, +- 10V. This voltage must be measured by a µC and then used to close the loop digitally by controlling the current on the reference pin of the LDO. The problem lies in measuring the output voltage with high enough precision. I thought of simply using a precision voltage divider to get 65V down to 5V, and then measuring this with a 12-bit ADC. However, even when using precision resistors with 25ppm/C temperature coefficients and calibrating the voltage divider so that only the temperature drift remains as an error source, I get a worst case scenario of ~+-0.45% (~+-300mV at 65V) at 14 degrees from the calibration temperature. I could use 10ppm resistors, but that's getting expensive and would only lower the worst case uncertainty to ~+-0.18%.

Is there an easier way to do this?

EDIT: I should mention that I only need to measure voltages from 45V to 65V, which will be the operating range of the LDO. Temperature range will be +-14 degrees.

« Last Edit: July 26, 2016, 11:35:18 am by Fulcrum »
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 19507
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Measuring ~65V with about 25mV precision
« Reply #1 on: July 26, 2016, 11:40:30 am »
Are you ensuring that both voltage divider resistors are at the same temperature and the same type? If so, then the division ratio should remain more or less constant.

Consider putting the resistors in a temperature controlled oven, or using resistor arrays, or mechanically clamping them together, thereby thermally coupling them.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 
The following users thanked this post: Fulcrum

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
 
The following users thanked this post: Fulcrum

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Re: Measuring ~65V with about 25mV precision
« Reply #3 on: July 26, 2016, 12:07:39 pm »
Are you ensuring that both voltage divider resistors are at the same temperature and the same type? If so, then the division ratio should remain more or less constant.

Consider putting the resistors in a temperature controlled oven, or using resistor arrays, or mechanically clamping them together, thereby thermally coupling them.

Yeah they will be the same temperature and type. The problem is that the temperature coefficients are given as positive or negative, so in the worst case they will go opposite ways, and the division ratio will change.
Possibly something like this with the tggzzz's remarks about the voltage divider:

https://www.eevblog.com/forum/projects/$5-voltmeter-with-5-digit-(0-1mv)-resolution/?action=dlattach;attach=134473;image

The original thread: https://www.eevblog.com/forum/projects/$5-voltmeter-with-5-digit-(0-1mv)-resolution/

I will take a look. Thanks!
 

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Re: Measuring ~65V with about 25mV precision
« Reply #4 on: July 26, 2016, 01:09:28 pm »
However, even when using precision resistors with 25ppm/C temperature coefficients and calibrating the voltage divider so that only the temperature drift remains as an error source, I get a worst case scenario of ~+-0.45% (~+-300mV at 65V) at 14 degrees from the calibration temperature. I could use 10ppm resistors, but that's getting expensive and would only lower the worst case uncertainty to ~+-0.18%.

Sorry??

When a voltage divider ratio is sufficiently away from 0.5, temperature sensitvity of the output is equal to about the absolute sums of the resistors TCRs, in the worst case scenario. (When close to 0.5, TC output = about 0.5 * absolute sums of the TCRs)

Your case : Ratio = ~0.07. With TCR = 25ppm/°C, TC of the output (Always worst case) = 2*25 = 50ppm/°C. On a 14°C span, error = 0.07%.

Oh, you're right. Messed up and only used a single TC in the calculations. You are correct that on a 14 degree span, the voltage divider will have an error of 0.07%. This error will still be multiplied by 14 (1/0.07) to get the actual voltage out of the LDO, giving an error of 0.98%, which is around 650mV at 65V. Way above my 25mV goal. Even with 10ppm resistors, I can only get down to 260mV.
« Last Edit: July 26, 2016, 01:13:59 pm by Fulcrum »
 

Offline PA4TIM

  • Super Contributor
  • ***
  • Posts: 1161
  • Country: nl
  • instruments are like rabbits, they multiply fast
    • PA4TIMs shelter for orphan measurement stuff
Re: Measuring ~65V with about 25mV precision
« Reply #5 on: July 26, 2016, 01:35:39 pm »
Something to think about when you use a voltage divider is the Rin from the ADC. That is in parallel with the resistor of the voltage divider you use to measure the voltage over. Use an opamp as follower. That is also saver for your ADC .
www.pa4tim.nl my collection measurement gear and experiments Also lots of info about network analyse
www.schneiderelectronicsrepair.nl  repair of test and calibration equipment
https://www.youtube.com/user/pa4tim my youtube channel
 

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Re: Measuring ~65V with about 25mV precision
« Reply #6 on: July 26, 2016, 02:02:19 pm »
However, even when using precision resistors with 25ppm/C temperature coefficients and calibrating the voltage divider so that only the temperature drift remains as an error source, I get a worst case scenario of ~+-0.45% (~+-300mV at 65V) at 14 degrees from the calibration temperature. I could use 10ppm resistors, but that's getting expensive and would only lower the worst case uncertainty to ~+-0.18%.

Not correct, the error on a 14°C span is way lower than 0.45%. Please check that by doing a numerical analysis (With LTSpice, or pen and paper).

This error is incorrect anyway, see my previous post, and is the total error I would get when calculating the actual undivided voltage.
Something to think about when you use a voltage divider is the Rin from the ADC. That is in parallel with the resistor of the voltage divider you use to measure the voltage over. Use an opamp as follower. That is also saver for your ADC .
Yeah, that's worth remembering. Bluh, this is a lot more tricky than I first imagined. Perhaps I am going about this the wrong way.
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: Measuring ~65V with about 25mV precision
« Reply #7 on: July 26, 2016, 02:11:12 pm »
Something to think about when you use a voltage divider is the Rin from the ADC. That is in parallel with the resistor of the voltage divider you use to measure the voltage over. Use an opamp as follower. That is also saver for your ADC .
Yeah, that's worth remembering. Bluh, this is a lot more tricky than I first imagined. Perhaps I am going about this the wrong way.
Depending on how fast the control loop needs to be, you can possibly get away with a capacitor parallel to the low-side resistor and the ADC input. If you need a fast control loop, the op amp may be required. Check the ADC datasheet about the input requirements.
 

Offline Ice-Tea

  • Super Contributor
  • ***
  • Posts: 3070
  • Country: be
    • Freelance Hardware Engineer
Re: Measuring ~65V with about 25mV precision
« Reply #8 on: July 26, 2016, 02:11:19 pm »
Keep in mind the error of the voltage divider is not the only source of error. You will find the ADC datasheet to be riddled with it ;)

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Re: Measuring ~65V with about 25mV precision
« Reply #9 on: July 26, 2016, 03:08:24 pm »
Not correct, the error on a 14°C span is way lower than 0.45%. Please check that by doing a numerical analysis (With LTSpice, or pen and paper).

Sorry for the double post.

It's not correct too, the output and the input of a voltage divider are linear in relation to each other. 1% in error in one way is always equivalent to 1% error in the other way.

Do your analytical calculations rigorously, and/or check your results with numerical calculations. Considering the applications available for +20 years like LTSpice, you should always check numerically. For such a circuit it takes only some minutes.

Oh, I'm a fool! I have been multiplying the error with the divider ratio, assuming it to be correct without thinking too much about it. Thanks a lot for this eye-opener. 10ppm will be more than enough even in the worst case scenario.

Keep in mind the error of the voltage divider is not the only source of error. You will find the ADC datasheet to be riddled with it ;)
Unfortunately!
 

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1191
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Measuring ~65V with about 25mV precision
« Reply #10 on: July 26, 2016, 03:17:42 pm »
I have a stable <0.1% error in a 1000:1 divider in current production built entirely from 1% SMT resistors. The trick is to use all the same value resistors (in suitable series and parallel arrangements) and take them all from the same reel. The errors and tempcos all correlate to a large degree and you do a lot better than you would with the same number of resistors and a random error distribution.
 

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Re: Measuring ~65V with about 25mV precision
« Reply #11 on: July 26, 2016, 03:26:52 pm »
You can drop the voltage with a stack of shunt references :)

I looked into this, but the accuracy of the references are not good enough. The ones I saw had about 1% accuracy.

I have a stable <0.1% error in a 1000:1 divider in current production built entirely from 1% SMT resistors. The trick is to use all the same value resistors (in suitable series and parallel arrangements) and take them all from the same reel. The errors and tempcos all correlate to a large degree and you do a lot better than you would with the same number of resistors and a random error distribution.

That is interesting. I thought this might be the case, but wasn't sure. In that case, the "worst case scenario" is actually very unlikely.
 

Online Marco

  • Super Contributor
  • ***
  • Posts: 6721
  • Country: nl
Re: Measuring ~65V with about 25mV precision
« Reply #12 on: July 26, 2016, 03:27:31 pm »
Shit was to late removing it, yeah it was a bit too silly.
 
The following users thanked this post: Fulcrum

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Re: Measuring ~65V with about 25mV precision
« Reply #13 on: July 26, 2016, 03:31:42 pm »
Shit was to late removing it, yeah it was a bit too silly.

Not at all, I was considering it myself for a while.



Also, one thing I can't really understand, is how a resistor of a certain resistive material can have a tempco that can both be positive OR negative. The physics behind it isn't ambiguous, so why would the result be? All materials change resistivity by temperature, and it's usually well defined. So why can two resistors of the same material either increase or decrease in resistance by temperature?
 

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Re: Measuring ~65V with about 25mV precision
« Reply #14 on: July 26, 2016, 04:18:11 pm »
All right guys, found my solution. Gonna post it for anyone who comes by in the future to read this thread.

So I'll use a 1MOhm and a 76,8kOhm resistor for the divider. Settled on a Panasonic line for their low cost (http://www.farnell.com/datasheets/2059650.pdf?_ga=1.81782231.1180173967.1467721356). Both are +-25ppm/C which will give +-45mV in the absolute worst case (14 degree range). It's not quite 25mV, but I'll live with it especially since it seems the worst case is unlikely to actually happen. The 1MOhm resistor will drop 60V in the worst case, meaning 3.6mW power dissipated in it. I'm going to assume the self heating will be negligible, and in addition connect the common pins to a large pcb copper pad to act as a heatsink. I'll manually measure the actual divider value with a precision voltmeter at a set temperature to circumvent the 0.1% uncertainty in resistor values.

Since the ADC that will sample the output voltage from the divider has an input leakage current of +-1uA (which would create a voltage error of +-70mV), I take it through a buffer (MCP6001U) and measure the input bias voltage so that I can compensate for it in software.
 

Offline Siwastaja

  • Super Contributor
  • ***
  • Posts: 8172
  • Country: fi
Re: Measuring ~65V with about 25mV precision
« Reply #15 on: July 26, 2016, 05:11:05 pm »
Also, one thing I can't really understand, is how a resistor of a certain resistive material can have a tempco that can both be positive OR negative. The physics behind it isn't ambiguous, so why would the result be? All materials change resistivity by temperature, and it's usually well defined. So why can two resistors of the same material either increase or decrease in resistance by temperature?

Maybe because they are not the exact same material. Manufacturers try to minimize the tempco by creating special alloys/mixtures/whatever, but in real production, there are limits how uniform the alloy can be, hence some samples could have positive, some could have negative tempcos. The alloy could also drift slowly, but otherwise, the tempco is indeed either negative or positive, it doesn't change suddenly.

This being said, I think that the typical way they describe it (think about "+/- 50 ppm/degC") is just some sort of laziness; in reality, something like "(20 +/- 30 ppm) / degC" could be more accurate way to describe their actual sample population.

But indeed, it's very probable that two SMD resistors out of the same reel have tempcos very close to each other, and are unlikely to drift too far from each other in the same environment.
 
The following users thanked this post: Fulcrum

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Re: Measuring ~65V with about 25mV precision
« Reply #16 on: July 26, 2016, 07:25:50 pm »
Also, one thing I can't really understand, is how a resistor of a certain resistive material can have a tempco that can both be positive OR negative. The physics behind it isn't ambiguous, so why would the result be? All materials change resistivity by temperature, and it's usually well defined. So why can two resistors of the same material either increase or decrease in resistance by temperature?

Maybe because they are not the exact same material. Manufacturers try to minimize the tempco by creating special alloys/mixtures/whatever, but in real production, there are limits how uniform the alloy can be, hence some samples could have positive, some could have negative tempcos. The alloy could also drift slowly, but otherwise, the tempco is indeed either negative or positive, it doesn't change suddenly.

This being said, I think that the typical way they describe it (think about "+/- 50 ppm/degC") is just some sort of laziness; in reality, something like "(20 +/- 30 ppm) / degC" could be more accurate way to describe their actual sample population.

But indeed, it's very probable that two SMD resistors out of the same reel have tempcos very close to each other, and are unlikely to drift too far from each other in the same environment.

Thanks for the explanation. It would be nice if the manufacturers could be more precise and maybe also give some characteristic curves.
 

Offline Ice-Tea

  • Super Contributor
  • ***
  • Posts: 3070
  • Country: be
    • Freelance Hardware Engineer
Re: Measuring ~65V with about 25mV precision
« Reply #17 on: July 26, 2016, 08:25:16 pm »
Just a thought: you could cook up a very precise 55V reference and make the measurement relative to that. So the required accuracy becomes 0.025/20 rather than 0.025/65  :-+

Online Vgkid

  • Super Contributor
  • ***
  • Posts: 2710
  • Country: us
Re: Measuring ~65V with about 25mV precision
« Reply #18 on: July 26, 2016, 09:06:44 pm »
Just a thought: you could cook up a very precise 55V reference and make the measurement relative to that. So the required accuracy becomes 0.025/20 rather than 0.025/65  :-+
that was the the method I was going to suggest. Using the external voltage source to approach(in voltage) the measured voltage. Then use the adc to take the difference. Similiar to using a potentiometer, and null detector to find annunknown voltage.
If you own any North Hills Electronics gear, message me. L&N Fan
 

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Re: Measuring ~65V with about 25mV precision
« Reply #19 on: July 26, 2016, 09:32:49 pm »
Just a thought: you could cook up a very precise 55V reference and make the measurement relative to that. So the required accuracy becomes 0.025/20 rather than 0.025/65  :-+

Yeah, thought of that. But the idea of making such a precise and high voltage reference was daunting.
 

Offline Dave

  • Super Contributor
  • ***
  • Posts: 1352
  • Country: si
  • I like to measure things.
Re: Measuring ~65V with about 25mV precision
« Reply #20 on: July 26, 2016, 09:42:41 pm »
It doesn't even need to be a 55V reference. You could quite easily reuse the low voltage reference that is going to feed the ADC.

There, an opamp, some resistors and your voltage gets scaled from 45-65V down to 0-5V.
<fellbuendel> it's arduino, you're not supposed to know anything about what you're doing
<fellbuendel> if you knew, you wouldn't be using it
 
The following users thanked this post: Fulcrum

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Re: Measuring ~65V with about 25mV precision
« Reply #21 on: July 26, 2016, 10:03:44 pm »
It doesn't even need to be a 55V reference. You could quite easily reuse the low voltage reference that is going to feed the ADC.

There, an opamp, some resistors and your voltage gets scaled from 45-65V down to 0-5V.

Clever circuit. Might actually use it and get rid of the extra 12-bit ADC I had to slap on my board and just use the built-in 10bit one in the µC. But this solution still doesn't get rid of the need for very precise voltage dividers, does it?
 

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Re: Measuring ~65V with about 25mV precision
« Reply #22 on: July 26, 2016, 10:14:36 pm »
Indeed.

Still, if I can get the errors down to manageable levels of +-50mV or less, it's a quite nice solution. It basically removes the need for the 12 bit ADC, which is very positive. I don't have too much board space to play with, and would also like to get the cost and complexity down. Are there any handy equations for opamp output errors based on feedback divider error? I could probably derive them myself, but why reinvent the wheel.
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 19507
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Measuring ~65V with about 25mV precision
« Reply #23 on: July 26, 2016, 10:22:58 pm »
It doesn't even need to be a 55V reference. You could quite easily reuse the low voltage reference that is going to feed the ADC.

There, an opamp, some resistors and your voltage gets scaled from 45-65V down to 0-5V.

Clever circuit. Might actually use it and get rid of the extra 12-bit ADC I had to slap on my board and just use the built-in 10bit one in the µC. But this solution still doesn't get rid of the need for very precise voltage dividers, does it?

Do you mean "precise", or "stable", or "accurate"? (All often confused with "resolution")

The three are very different and, depending on which you need, different solutions are appropriate in each circumstance.

For example, people on the next bench to me developed and sold a test instrument that was stable to 0.001dB - but only accurate to 0.1dB (think about it). The customers didn't care about the accuracy, but they did care about stability.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline FulcrumTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: no
Re: Measuring ~65V with about 25mV precision
« Reply #24 on: July 26, 2016, 11:00:17 pm »
It doesn't even need to be a 55V reference. You could quite easily reuse the low voltage reference that is going to feed the ADC.

There, an opamp, some resistors and your voltage gets scaled from 45-65V down to 0-5V.

Clever circuit. Might actually use it and get rid of the extra 12-bit ADC I had to slap on my board and just use the built-in 10bit one in the µC. But this solution still doesn't get rid of the need for very precise voltage dividers, does it?

Do you mean "precise", or "stable", or "accurate"? (All often confused with "resolution")

The three are very different and, depending on which you need, different solutions are appropriate in each circumstance.

For example, people on the next bench to me developed and sold a test instrument that was stable to 0.001dB - but only accurate to 0.1dB (think about it). The customers didn't care about the accuracy, but they did care about stability.

You raise some valid points. I think what I mean is "stable" with temperature. It doesn't matter how precise my measurements are if I can't be sure they are within specs over the full temperature range of +-14C. If I understand accuracy correct, it's a kind of offset from the actual value. A measurement system can measure a value very precisely, but if it is not accurate then it will just be off-value by a very precise amount. Stability is how this offset changes by time, temperature, or other variables.

If I can get my circuit to be precise, and stable with temperature, then the accuracy can be brought down by calibration after the circuit is built. The precision shouldn't be a problem since the 20V range will be sampled by a 10bit ADC on the µC, giving +-20mV resolution. Calibration is done with precision lab equipment to really pin down the actual offsets, divider values, etc. at room temperature. It's the stability with temperature that worries me, and what also has been my problem so far.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf