Thursday, December 21, 2017

Current measurement : Schematics, breadboaring and test results (Part 3)

I started current measurement testing based on Microchip application note 1332 named "Current Sensing Circuit Concepts and Fundamentals". In this document are described in details all advantages and disadvantages for the current sense schematics. Another source for schematics can be found in the site eetimes.com. It shows current sense schematics using simple op-amp, difference amplifier, instrumentation amplifier and current shunt monitors. 

Finally I decided to make first breadboarding with instrumentation amplifier schematics:


This schematics have the following advantages:
- Can be used in both low and high side current measurements.
- No resistive loading effect.
- High Common mode rejection ratio. 
- Possibility to decrease offset error with applying small voltage in the reference pin after the R7 resistor. 

The disadvantages are:
- Decreased common voltage range, limited to voltage supply of the used operational amplifiers and the input sense voltage drop over the current shunt. But if high voltage op-amps are used like LTC2057 (+/-30V) this is not a problem at all.
- Higher cost due usage of 3 op amps and matched resistors.

I started breadboard testing with 3xLTC2057 and matched resistor networks LT5400 9K/1K and 100K/100K (10K is better for low noise, but I did not had at the time of the tests):


The gain 10 of the instrumentation amplifier was implemented in the first high impedance buffers using LT5400-8 9K/1K resistors. The formula for the gain is 1+2*Rf/Rg. The Rg resistor is 2K, connected in serial 2x1K resistor. 

The reference pin was connected to GND. This cause ~ 20-30 uV offset error on floating inputs. Using Keithley 2000 DMM relative function, offset was zeroing as much as possible, but there was noise in the 1-2uV range.

As voltage reference I took the 5V ADR395 5V which was used in my post for testing bipolar input with LTC2440 level shifting. For generation of the reference currents, I used several Vishay resistors with low temperature coefficients. The values were 1K, 2.5K, 5K, 10K, 100K which I used in combination to generate from 5mA to 1.66uA reference current. I was not able to test with more than 5 mA, because of current limit of the ADR395 reference.

I put a small flexible cover over the chips to avoid air flow which can cause significant errors in uA range:



I bought 0.1 Ohms Multicom model MC14715 resistor (~100ppm TCR) which was with 2 terminals only. I soldered two additional copper wires near to the lead exit to decrease measurement error:
Without these 2 additional terminal, I got about 2 times bigger error.

I used Keithley 2000 DMM for the measurement with the internal 1024 samples buffer with slow rate (10 NPLC) and offset reset using the relative function.  There are some statistic information which can be obtained from the buffer like mean value, standard deviation, min and max value.

The results are the following:
- About 200 ppm error in the mA range when compare with the calculated current value. The mean value from the DMM buffer was used. I think that this is an op-amp offset error and can be calibrated easy.
- About 500-1000 ppm error in the uA range when compare with the calculated current value. The mean value from the DMM buffer was used. I think increased error is due not real 4 sense terminal of the shunt.
- Stable 10uA resolution, but I can not get stable 1uA resolution due the noise. Noise level was between 3 and 6 uV. Here I expected less than 3uV noise due ~1uV noise from the DMM and gain 10 * 0.2uV LF noise of the LTC2057 and ~ 1uV from the 100K resistor in the difference op-amp stage. I will make later a small prototype PCB to check if this noise is coming from the breadboard. One possible modification is to use gain 1, but at the end of the instrumentation amplifier to use low noise level op amps with gain 10 like LT6018, LT1028, LT1007.
- Standard deviation was between 590 and 680 nV.

Wednesday, December 20, 2017

Current measurement : Selection of the current ranges, shunts and fuses (Part 2)

Initially I thought to have 5A (1mA resolution) and 1mA (1uA resolution) ranges with 0.02 mV/mA burden voltage. This is fine for 3.5 digits DMM, but after few months of research and results from testing with the breadboard, I decided to revisit the resolution with better ones. In result, the burden voltage will be increased, but will be not greater then the DMM on the market.

To keep things simple, I decided to make research only for 2 current ranges with 2 separate binding posts. I was not able to find suitable relay with low contact resistance, low leakage and high current which to allow usage of a single binding posts for both ranges. The first range will be from 1uA to 2A (mA/A range) with 0.1 Ohms shunt and the second will be from 1nA to 2 mA (nA/uA range) with 100 Ohms shunt. For the first DMM PCB prototype only the mA/A range will be implemented.

The 0.01 Ohms shunt is ideal for 2A range due low burden voltage, but I choose 0.1 Ohms resistor due the following reasons:
- I was not able to find a very fast acting fuse, which have specified resistance for nominal current less than 0.1 Ohms. If the shunt is less than 0.1 Ohms, the voltage drop will be determined by the fuse instead of the shunt. Most of the fuses, specified the cold resistance when 10% of the nominal current is used.
- This the the minimum value, which can give 1uA resolution with gain 10 amplifier for 6.5 digits voltmeter. If the shunt is 0.01 Ohms, gain of 100 is required to have 1uA resolution, but in this case ultra low noise op amp are required, which will cause bigger bias current and/or input voltage offset.

I found the following available 0.1 Ohms shunt resistors in the market:

ParametersVCS1625P/Y0856VCS1625/Y08500VCS301/2VCS202/Y0941VFP-4/Y0734
Maximum load life 2Kh, ppm250400500500500
Typical load life 2Kh, ppm150200200200N/A
Maximum TCR ppm/°C20 ppm/°C20 ppm/°C3 ppm/°CN/A25 ppm/°C
Typical TCR ppm/°C2 ppm/°C2 ppm/°CN/A15 ppm/°C2 ppm/°C
Maximum current5A5A15А15А3A
Power rating (free air/heatsink)1W0.5W3W/10W2W3W/10W
Price12.5 USD12.1 USD36.62 USD41.75 USD69.34 USD

All of them are made by Vishay Precision Group and they are available in single quantity from Mouser, Digi-key and Avnet.

Note that sub-ohm shunt resistor must have 4 wire connection to reduce the measurement error with elimination of the lead and contact resistance.

The specified maximum load life (accuracy) is for 2000 hours uninterruptible working at power rating and 25°C or 70°C depends on the model. When the DMM is not used continuous or the measurement current is less than the maximum, these values are several times less. I was not able to find such data for Vishay current sense resistors, but in the datasheet of the PCR series from Riedon is shown that the accuracy can be increased 5 times (from 0.5% to 0.1%) if the current sense is used at 60% from the rated nominal power. So may be it make sense to select a current sense resistor with the maximum power rating and to use it in lower current then the nominal. Also using heat-sink can lower the the resistor's temperature, thus the load life can be improved.

I think that the best price-quality ratio is the VCS1625P series. It will have sub 500 ppm accuracy for one year (5 days/8 hours working condition) when it is used in 10°C temperature window. The maximum current is 5A, which can allow to use high rating fuse with less resistance. The maximum power for the 2A range will be 2*Imax*Rshunt = 2*2*0.1 = 0.4W which is in the range.

The next thing is to select the fuse for mA/A range. I looked for very fast acting, low resistance fuse in the A range. Most of datasheets have values only for the cold resistance (10% of the rated current). Only for EATON Bussmann series I found fuse resistance values when nominal current is applied, which they called: "typical voltage drop measured at 25°C±3°C ambient temperature at rated current". For the 5A maximum current of the VCS1625P shunt, according the Time-Current curve chart, using GBB-2-R model (2A rate current), the fuse will break in 50ms when 5A current is applied. By this way it is guarantee that the shunt will be not overloaded with more than the nominal current value and the shunt accuracy will not exceed the datasheet value. The cold resistance of the GBB-2-R is 0.0662 Ohms, the resistance for nominal current is 0.1687 Ohms. Combined with shunt resistor, the input DMM resistance for current measurement will be 0.16632 Ohms for <0.2A and 0.2687 Ohms for >0.2A and <2A. This does not include the connecting wires, PCB trace and binding post resistances. Probably the final burden voltage will be 0.2 mV/mA for <0.2A and 0.3 mV/mA for > 0.2 A. One alternative is the Littlefuse 459 Pico series 2A model. It will break in 20ms when 5A current is applied. Unfortunately datasheet only specified the cold resistance which is 0.0468 Ohms, which is less than the Bussmann series.

Both EATON (DMM-B) and Littlefuse (FLU) have fuse series for DMM usage, but in the specification files, there is no information about the fuse resistance.

For the uA/nA range I choose 100 Ohms shunt resistor. It will generate 0.1uV voltage drop for the 1nA current, which again should be multiplied by 10 to get 1uV minimum resolution. For this range, the fuse resistance is not so much important, due high value of the shunt resistor. 



Tuesday, December 19, 2017

Current measurement : The accuracy challenge (Part 1)

The current measurement seemed very easy task for me in the beginning. I thought that measuring voltage over low resistance shunt is piece of cake. Later, I realized that this is not true : it is really a challenge and the market prove it. I found only 4 DMM, which have less than 500 ppm relative accuracy per year in the A/mA/uA range (with one exception : 2A range for Keithley 2002). 
These are: Fluke 8508A, HP/Agilent/Keysight 3458A, Transmille 8081 and Tek/Keithley 2002. In the table below, the accuracy specification for one year is show:

DCI rangesRelative accuracy to calibration standard, ± (ppm reading + ppm range)
*not all ranges are showFluke 8508A
(95% confidence)
Transmille
8081
Keysight
3458A
Tek/Keithley 2002
100/200 uA6.5 + 27 + 420 + 8350 + 25
1/2 mA6.5 + 27 + 420 + 5350 + 20
10/20 mA8 + 29 + 420 + 5350 + 20
100/200 mA33 + 430 + 635 + 5375 + 20
1/2 A170 + 8150 + 13110 + 10750 + 20

According the datasheets, the most accurate current measurement can be done with the Fluke 8508A and Transmille 8081 DMM, following by the Keysight 3458A and Keithley 2002. 

The rest bench-top DMM on the market have accuracy starting from 500 ppm and can finish to 1500+ ppm accuracy for the reading.

The accuracy of the current measurement depends on the:
- Value/stability/TCR of the shunt resistor
- The CMRR/Vos/Vos∆Time/Vos∆Temp/OpenLoopGain/GainError∆Temp of the used operational/instrumental/differential amplifiers in the current measurement schematics.
- Matching resistors tolerance/TCR for the differential operational amplifier.

So a lot of factors contribute to the current measurement accuracy and trade-off has to be made. May be the biggest trade-off is the value of the shunt resistor. For bigger current ranges, the value should be in the sub-ohms range for decreasing the power dispersion. But there are not too much resistors in the sub-ohms range which have let say less than 100ppm per year stability. For example the 0.5 Ohms resistor from Vishay series Y1690 have typical 50ppm load life for 2K hours. However the trade-off is the availability and the price: there is minimum order quantity of 500 pcs, which cost ~7K+ USD. 

If a bigger value of the shunt resistor is selected, the stability and the availability are better, but the trade-off is the parameter which can be critical for some type of circuits under measurement. This parameter is called "Burden Voltage" and it is the voltage drop caused by the DMM in the measurement circuit. It should be kept as low as possible. The voltage drop of the DMM includes :
- the voltage drop in the cables from the circuit under test to the main DMM PCB.
- the voltage drop in the shunt resistor.
- the voltage drop in the fuse, which vary with the current amount.

I will give an example, how the burden voltage can be a blocker issue. In the example I will use the internal idle power consumption for the Xilinx Spartan 6 FPGA. The power supply voltage Vccint of the FPGA core have nominal value of 1.23V, but if the value drop below 1.2V, the FPGA can stop to work. That means that no more than 30 mV should be the burden voltage of the DMM used for measurement. The quiescent Vccint supply current (idle current) of the Spartan 6 LX150 is 51mA and lets check if we can measure it using these high end DMM:
- The Fluke 8508A have 1.2 Ohms input impedance for 200mA range, which will generate 61.2mV voltage drop. But using 2A range with 0.3 input impedance this will generate only 15.3mV voltage drop.
- The Transmille 8081 have 10 Ohms input impedance for 200mA range, which will generate 510mV voltage drop. But using 1A range with 0.5 input impedance this will generate only 25.5mV voltage drop.
- The Keysight 3458A have 10 Ohms shunt resistor for 100mA range, which will generate minimum 510mV drop voltage (without voltage drop over the fuse). For the 1A range, the shunt resistor is 0.1 Ohms, which will generate 5.1mV voltage drop.
- The Keithley 2002 have maximum burden voltage 0.35V for the 200mA range. The burden voltage for 51mA is : 0.35V*(0.051A/0.2A) =  0.08925 V which exceed the maximum allowed voltage drop with ~40mV. But if the 2A current range is used, the maximum burden voltage is 1.1V, which will generate 28mV voltage drop which is in the 30mV range limit (1.1V*(0.051A/2A) = 0.02805V).

Given examples above shows, that in mA ranges the voltage drop can be blocker issue, but using the A range, user can measure the idle current for the Xilinx Spartan 6 FPGA. These examples are not only valid for the mention high end DMM, but also for the low and middle class DMM.

One workaround for the burden voltage issue is the uCurrent™ product made by Dave Jones from eevblog.com. It is an adapter, which use lower shunt values and amplifies the voltage drop. Here the trade-off is the missing current protection.