Author Topic: Current ranger schematic  (Read 32434 times)

0 Members and 1 Guest are viewing this topic.

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14751
  • Country: de
Re: Current ranger schematic
« Reply #25 on: July 29, 2020, 03:31:46 pm »
Daves circuit does include the FET on resistance for the 10 mOhms resistor - voltage is sensed directly from the input - the 10 Ohms in parallel to the FET does not make a lot of difference.

2 Fets in series helps with leakage currents if the voltage gets a little larger (like > 100 mV), as there is the parasitic diode that would be forward biased in one direction. Not so sure of the 2 fets are more needed with the large fets for the high current, or more with the smaller ones for the low currents.

The 10 K shunt in series with the sensing circuit can indeed be a weak point. One point is the bias from the OP: some 10 pA * 10 K  is some 100 nV, so with the max4239 / LTC2050 this is not yet that dramatic. The other point could be added noise - though not yet much compared to the max4239 or similar. The series connection gets problematic with even larger shunts. Even instead of a 10 K shunt the TIA version may be favorable.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38594
  • Country: au
    • EEVblog
Re: Current ranger schematic
« Reply #26 on: July 30, 2020, 12:57:08 am »
Daves circuit does include the FET on resistance for the 10 mOhms resistor - voltage is sensed directly from the input - the 10 Ohms in parallel to the FET does not make a lot of difference.

The FET on resistance is not included in the actual measured shunt resistance though. But of course you can't avoid it in the total burden voltage.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38594
  • Country: au
    • EEVblog
Re: Current ranger schematic
« Reply #27 on: July 30, 2020, 12:58:22 am »
4-wire or Kelvin connection can be emulated on the PCB with 2-wire sense resistor (see picture).
I would warmly recommend the ROHM resistors of the GRM100 series (e.g. GMR100HTBFA10L0 for 10 Milioms). So far I have not found anything similar in that price range with TCR of only 20 ppm! It's simply excellent as advertised.

Only 1% though.
 

Offline prasimix

  • Supporter
  • ****
  • Posts: 2034
  • Country: hr
    • EEZ
Re: Current ranger schematic
« Reply #28 on: July 30, 2020, 06:16:43 am »
4-wire or Kelvin connection can be emulated on the PCB with 2-wire sense resistor (see picture).
I would warmly recommend the ROHM resistors of the GRM100 series (e.g. GMR100HTBFA10L0 for 10 Milioms). So far I have not found anything similar in that price range with TCR of only 20 ppm! It's simply excellent as advertised.

Only 1% though.

Not really a problem if you count on calibration, otherwise yes, a better tolerance is more welcome.

Offline neutrino353

  • Contributor
  • Posts: 11
  • Country: hk
Re: Current ranger schematic
« Reply #29 on: July 30, 2020, 09:20:34 am »
1) What is the different of a 4 wire resistance to a normal 2 terminal current sense resistor ?
2) Why using 2 mosfet in series instead of just one when connect the 10mOhm shunt resister to the current source terminal ?

1) It's potentially more accurate. 4 terminal measurement is standard practice in the low ohm world. And the good current shunts down in that range are 4 terminal.

2) Sorry, I did not draw the top + input. They are not in series, they are in parallel. Having the 10R come from the tap of the 0.01R removes the FET voltage drop from the reading.

1) noted with thanks.  I don't have 4 wire sensing resistors, but will emulate the Kelvin connection on the PCB
2) not quite understand your circuit , but add a mosfet before the current source and the largest shunt resistor does eliminate the FET voltage drop issue.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38594
  • Country: au
    • EEVblog
Re: Current ranger schematic
« Reply #30 on: July 31, 2020, 06:35:18 am »
2) not quite understand your circuit , but add a mosfet before the current source and the largest shunt resistor does eliminate the FET voltage drop issue.

You cannot avoid the FET voltage drop adding to the burden voltage, that simply isn't possible.
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14751
  • Country: de
Re: Current ranger schematic
« Reply #31 on: July 31, 2020, 06:53:12 am »
With only 2 switches (FETs) and 3 shunts one would have the drop from the FET also with the lowest shunt. The voltage sense would not be through the 10 and 10 K resistors, but the direct way on the top. So the 3 rd Fet is required.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38594
  • Country: au
    • EEVblog
Re: Current ranger schematic
« Reply #32 on: July 31, 2020, 07:49:05 am »
With only 2 switches (FETs) and 3 shunts one would have the drop from the FET also with the lowest shunt. The voltage sense would not be through the 10 and 10 K resistors, but the direct way on the top. So the 3 rd Fet is required.


Complete brain fart  :palm:
Yes, 3rd FET required on the 10k.
 

Offline neutrino353

  • Contributor
  • Posts: 11
  • Country: hk
Re: Current ranger schematic
« Reply #33 on: July 31, 2020, 04:14:28 pm »
2) not quite understand your circuit , but add a mosfet before the current source and the largest shunt resistor does eliminate the FET voltage drop issue.

You cannot avoid the FET voltage drop adding to the burden voltage, that simply isn't possible.

I am not trying to get rid of the FET voltage drop. I just want to have a circuit that the opamp don't include the FET voltage drop during measurement.

Attached is analog part of my circuit ( not finalized). It run very well in the Ltspice simulator. Will verify it on breadboard when the require parts arrived
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14751
  • Country: de
Re: Current ranger schematic
« Reply #34 on: July 31, 2020, 05:07:41 pm »
The principle circuit looks OK. However the choice of shunt resistors is a little odd: 8 and 80 Ohms are quite close together, while 80 to 80 K is a large step.
The other point is that 80 K is quite a large value and thus leakage current at M3 can be critical.
Chances are one could find a lower leakage fet.
For the largest resistor one may consider a switch directly in parallel and having that switch effectively in series with the next larger shunt. With some 80 (or 800) Ohms this may not be so bad.
 

Offline neutrino353

  • Contributor
  • Posts: 11
  • Country: hk
Re: Current ranger schematic
« Reply #35 on: July 31, 2020, 06:04:46 pm »
The principle circuit looks OK. However the choice of shunt resistors is a little odd: 8 and 80 Ohms are quite close together, while 80 to 80 K is a large step.
The other point is that 80 K is quite a large value and thus leakage current at M3 can be critical.
Chances are one could find a lower leakage fet.
For the largest resistor one may consider a switch directly in parallel and having that switch effectively in series with the next larger shunt. With some 80 (or 800) Ohms this may not be so bad.


I make a mistake.  The 80ohm resistor should be 800 ohm,  making each shunt has a ratio  of 1:100. This values in not final as i have to compremise between the reading range . Voltage drop and accuracy.

For the shunt of 80k,  i choose the RHK005N03 mosfet (  just a quick pick from ltspice's available list)  which has higher on-resistance but low leakage current.

My target is to have a maximum voltage drop of 0.1v within the 1nA to 1000mA range.  I have chose the mcp3426 16 bit Adc to get the voltage reading.  mcp3426 is 15bit , mean that the resolution for the opamp input is 0.1v / 32768  ~= 3uV. The accuracy i expect is +/- 0.05% (actually 0.1% is more than enough for my purpose) 

 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14751
  • Country: de
Re: Current ranger schematic
« Reply #36 on: July 31, 2020, 07:24:04 pm »
With 0.1 V of voltage drop the MOSFETs may have a significant leakage when the parasitic diode is in forward direction. So I am a bit skeptical if this would work with 80 K, it may work with some 10 K or so.

The leakage can be via 2 paths:
1) through the large fet, so that the low current range could read a little low.
2) through the small fet, loading the sense line with the 80 K in series. This would especially effect the highest current range. Here it is the drop at the shunt, but the drop at the fet. So the fet for the highest current range should not be too small. So this case may be OK and not so critical, as the voltage can be smaller.
It is still a tricky balance between low leakage and low R_on.
For less leakage in the off case one may use a slightly negative gate voltage, especially with low threshold fets.

Another point to watch would be some protection against overload. This would be mainly the 8 Ohms shunt, that could burn from too much current (e.g. > some 500 mA)

AFAIK the MCP3426 and similar ADCs have the option to use internal gain. This gain is quite stable and could be helpful. Unless one needs a fast result on should be able to go below 3 µV resolution.
 
The following users thanked this post: neutrino353

Offline neutrino353

  • Contributor
  • Posts: 11
  • Country: hk
Re: Current ranger schematic
« Reply #37 on: August 01, 2020, 09:08:15 am »
With 0.1 V of voltage drop the MOSFETs may have a significant leakage when the parasitic diode is in forward direction. So I am a bit skeptical if this would work with 80 K, it may work with some 10 K or so.

The leakage can be via 2 paths:
1) through the large fet, so that the low current range could read a little low.
2) through the small fet, loading the sense line with the 80 K in series. This would especially effect the highest current range. Here it is the drop at the shunt, but the drop at the fet. So the fet for the highest current range should not be too small. So this case may be OK and not so critical, as the voltage can be smaller.
It is still a tricky balance between low leakage and low R_on.
For less leakage in the off case one may use a slightly negative gate voltage, especially with low threshold fets.

Another point to watch would be some protection against overload. This would be mainly the 8 Ohms shunt, that could burn from too much current (e.g. > some 500 mA)

AFAIK the MCP3426 and similar ADCs have the option to use internal gain. This gain is quite stable and could be helpful. Unless one needs a fast result on should be able to go below 3 µV resolution.


I don't have the equipment to measure the leakage current so I have to rely on the simulated result from Ltspice and hope it gives some realistic value.

With the components I've chosen for the simulation.
Scenario 1 :  ~1uA current with M3(80K shunt)  turned on, and the others 3 turned off.
The voltage drop is 0.079 volt. The leakage current through M4(0.08 Ohm shunk) is 90pA, M1 and M2(8 and 800 ohm) is 45pA , giving a total of 180pA
leakage. The % error is 0.18/1000 ~= 0.02% which is better then my target.

Scenerio 2:   ~1000mA current with M4(0.08Ohm) On, other 3 turned off
The leakage current through M3 is ~3pA, the bias current of LTC2050HV is also ~3.5pA,
making a total voltage drop for the 80K + 800 + 8 ohm resisters about 0.5 uV . This is acceptable becauase the minimum resolution of the mcp3426 Adc
with 0.1V full range is about 3uV

If the simulated result is realistic , the circuit should work. Anyway I may reduce the resistance to 50KOhm to 0.05 Ohm to make it capable of measuring
higher current.

I know the mcp3426 has configurable gain of 1x,2x,4x and 8x. So I make the opamp a fixed gain of 10x , giving the output voltage with 0.1V drop at 1V.
This is just less than the full range reading of mcp3426 with 4x gain. I will try to program the uP to switch the gain to read more precise value if the
current drop is far below 0.1v.

Talking about circuit protection, what is the best way to ensure that the maximum voltage difference between the two input terminal will not
exceed say 5v in order not to damage the opamp and the fet ?









 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14751
  • Country: de
Re: Current ranger schematic
« Reply #38 on: August 01, 2020, 09:44:57 am »
The leakage simulation may not be 100% realistic. Leakage can vary between individual units. However the simulation can at least include the diode part reasonably well. So it can be acceptable. Just be warned that leakage can be a problem and the choice of the FETs is no so easy.

For the protection the main danger is overheating of the shunts. So it is about limiting the voltage there. The lowest shunt is usually OK and a simple fuse in series to the input would be enough.
The difficult one is more the 2 nd shunt. One direction it is kind of protected trough the parasitic diode in the MOSFET: it will limit the voltage to some 0.8 V in one direction. With the 8 or 5 Ohms shunt this may be an acceptable power level: 1 V with 5 Ohms would be 200 mW and even some 1.5 V would be only some 500 mW, which could be OK for a shunt that is not too small in form factor.  For the other direction one can add 1 or 2 extra diodes. With 2 diodes one can use an extra OP to reduce the leakage current by reducing the voltage drop over the critical diode, but the maximum voltage is a little higher.

For the OP input just some series resistors would be OK. Most of the OPs can survive some 1-10 mA of current when outside the supplies. The ADC would not be directly exposed to a higher voltage with the OP powered from the same 5 V as the ADC.
 
The following users thanked this post: neutrino353

Offline neutrino353

  • Contributor
  • Posts: 11
  • Country: hk
Re: Current ranger schematic
« Reply #39 on: August 01, 2020, 10:27:47 am »
The leakage simulation may not be 100% realistic. Leakage can vary between individual units. However the simulation can at least include the diode part reasonably well. So it can be acceptable. Just be warned that leakage can be a problem and the choice of the FETs is no so easy.

For the protection the main danger is overheating of the shunts. So it is about limiting the voltage there. The lowest shunt is usually OK and a simple fuse in series to the input would be enough.
The difficult one is more the 2 nd shunt. One direction it is kind of protected trough the parasitic diode in the MOSFET: it will limit the voltage to some 0.8 V in one direction. With the 8 or 5 Ohms shunt this may be an acceptable power level: 1 V with 5 Ohms would be 200 mW and even some 1.5 V would be only some 500 mW, which could be OK for a shunt that is not too small in form factor.  For the other direction one can add 1 or 2 extra diodes. With 2 diodes one can use an extra OP to reduce the leakage current by reducing the voltage drop over the critical diode, but the maximum voltage is a little higher.

For the OP input just some series resistors would be OK. Most of the OPs can survive some 1-10 mA of current when outside the supplies. The ADC would not be directly exposed to a higher voltage with the OP powered from the same 5 V as the ADC.

Thanks for the advise, now I know the key points against over current.
For the over voltage issue, it mostly won't happen as I am aiming at using the device to measure the current usage of some uP with is mostly 3-5v.
So as far as the input voltage is not exceeding the maximum rating of the FET's (~20 - 30v) the circuit is save . Am I correct ?
If I try (just thinking) using this device to measure the current of my tube amp , which is ~230v @ 100 ma , will it blow the device immediately ?

 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14751
  • Country: de
Re: Current ranger schematic
« Reply #40 on: August 01, 2020, 10:57:00 am »
The range switching should be done in a make before brake sequence. So the fets would never see a votlage exceeding about 0.1 V or so. If there are diode(s) for over-current protection the fets may see some 1.5 V in case of over-currents and less than 0.1 V if need exceeding the nominal current. One can still blow the 8 or 5 Ohms resistor with just  5 V.


For use with a high voltage circuit it could be the isolation to the user that matters - the circuit would still only see low voltages.
 
The following users thanked this post: neutrino353

Offline farzansaleem

  • Contributor
  • Posts: 10
  • Country: hu
Re: Current ranger schematic
« Reply #41 on: February 19, 2022, 09:35:11 pm »
Hello,
Is it possible for you to share schematic and PCB layout?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf