Author Topic: Current Sense Amplifier INA180 Negative Supply Measurement?  (Read 11303 times)

0 Members and 1 Guest are viewing this topic.

Offline hal9001Topic starter

  • Regular Contributor
  • *
  • Posts: 115
  • Country: 00
Current Sense Amplifier INA180 Negative Supply Measurement?
« on: November 28, 2021, 12:24:45 pm »
I want to measure supply side current for a -12V supply with a current sense amplfier like INA180.
Do I have to reverse the IN- and IN+ pin for IN- to connect to the -12V supply side of the sense resistor and IN+ to connect to the load side of the sense resistor?

From the data sheet
Quote
These devices are part of a family of current-sense amplifiers that sense voltage drops across current-sense resistors at common-mode voltages from–0.2 V to +26V, independent of the supplyvoltage.


Cheers!
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3035
  • Country: us
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #1 on: November 28, 2021, 02:32:12 pm »
It would be helpful to have a schematic which also shows how the INA180 is powered. Then we can make sure all of the voltage limits are met.
 

Offline hal9001Topic starter

  • Regular Contributor
  • *
  • Posts: 115
  • Country: 00
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #2 on: November 28, 2021, 03:55:12 pm »
It would be helpful to have a schematic which also shows how the INA180 is powered. Then we can make sure all of the voltage limits are met.

Cheers!
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3035
  • Country: us
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #3 on: November 28, 2021, 04:20:35 pm »
I'm pretty sure that's not going to work -- you need IN- to be at or above the supply voltage ground.

That is, the INA180 supply ground is really -12V and Vs is 2.7 to 5.5 V above that.
 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 5873
  • Country: ca
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #4 on: November 28, 2021, 05:39:12 pm »
Have you read the datashhet for high side, low side measurements ?
 

Offline hal9001Topic starter

  • Regular Contributor
  • *
  • Posts: 115
  • Country: 00
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #5 on: November 28, 2021, 11:07:46 pm »
I'm pretty sure that's not going to work -- you need IN- to be at or above the supply voltage ground.

That is, the INA180 supply ground is really -12V and Vs is 2.7 to 5.5 V above that.
Thanks. If ground pin is connected to -12V and 5V is connected to Vs pin this will violate the 6V absolute maximum rating for Vs with reference to its ground pin?
Then I have to use a current sense amplifier with higher Vs rating like MAX4172?
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3035
  • Country: us
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #6 on: November 28, 2021, 11:54:33 pm »

Thanks. If ground pin is connected to -12V and 5V is connected to Vs pin this will violate the 6V absolute maximum rating for Vs with reference to its ground pin?

Yes. You will need to create a "-7V" rail to power the INA180.

Quote
Then I have to use a current sense amplifier with higher Vs rating like MAX4172?


The MAX4172 is described as a high-side current sense amplifier.

Where did you find that schematic? I didn't see it in the MAX4172 datasheet.

My instinct tells me there is another family of devices better suited for what you want to do. How do you plan to interface the output of the current sense amplifier to the rest of your application? Are you going to read it with the ADC of a microcontroller?


 
The following users thanked this post: hal9001

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3035
  • Country: us
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #7 on: November 29, 2021, 12:04:16 am »
 
The following users thanked this post: hal9001

Offline tonyh88

  • Regular Contributor
  • *
  • Posts: 67
  • Country: ca
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #8 on: November 29, 2021, 02:45:23 am »
For your info I did something similar recently but with a INA220. Based on this app note  from TI for INA226 : https://www.ti.com/lit/pdf/tidu361

Works perfectly.

Basically using a zener diode to power the IC to get a logic positive voltage from your negative rail

 
The following users thanked this post: hal9001

Offline hal9001Topic starter

  • Regular Contributor
  • *
  • Posts: 115
  • Country: 00
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #9 on: November 29, 2021, 10:53:50 am »
My instinct tells me there is another family of devices better suited for what you want to do. How do you plan to interface the output of the current sense amplifier to the rest of your application? Are you going to read it with the ADC of a microcontroller?


Thanks. Im going to read it with the ADC.


For your info I did something similar recently but with a INA220. Based on this app note  from TI for INA226 : https://www.ti.com/lit/pdf/tidu361

Works perfectly.

Basically using a zener diode to power the IC to get a logic positive voltage from your negative rail


Thanks thats a intriguing circuit. Does this mean voltage on Vs pin is -48+4.7V? Did you connect your microcontroller power pins same as the INA220 power pins with ground pin to -48V?




Measuring this negative supply current is harder than I expected :scared:
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3035
  • Country: us
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #10 on: November 29, 2021, 03:25:39 pm »
You could use an op-amp to convert the negative voltage into a positive one:

https://electronics.stackexchange.com/questions/3105/how-do-i-measure-a-negative-voltage-with-a-adc

Although you have one available the op-amp doesn't need a negative rail for this to work.
 
The following users thanked this post: hal9001

Offline tonyh88

  • Regular Contributor
  • *
  • Posts: 67
  • Country: ca
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #11 on: November 30, 2021, 02:39:47 am »
For your info I did something similar recently but with a INA220. Based on this app note  from TI for INA226 : https://www.ti.com/lit/pdf/tidu361

Works perfectly.

Basically using a zener diode to power the IC to get a logic positive voltage from your negative rail


Thanks thats a intriguing circuit. Does this mean voltage on Vs pin is -48+4.7V? Did you connect your microcontroller power pins same as the INA220 power pins with ground pin to -48V?





Well the the INA IC is powered from the zener diode. IN the example it is a 4.7V zener so as far as the IC is concerned it only sees a 4.7V potetial between VS and GND. Same as if you powered it frm a 4.7V rail. Yes the whole thing is floating at your negative rail voltage but the IC doesn't know that. In my case I used it on a -15V rail and it worked.

 Since your supply is floating on the negative rail, to communicate with I2C with your MCU you need a digital isolator like the ISO1541 that is also powered from the same zener on one side and your regular +3V3 rail on the MCU side. So only th INA ic and the digital isolator are floating on the negative rail. Everything on the MCU side stays on your regular digital voltage rail (3V3 or whatever).

Take a look at the circuit attached that shows the idea. It is not the most power efficient or cheapest circuit because you need an isolator and the zener diodes always draw a little bit of current but for a circuit that is not battery powered it is a rather elegant solution that works pretty well.

Everything is explained pretty well in the app note
« Last Edit: November 30, 2021, 02:51:22 am by tonyh88 »
 
The following users thanked this post: hal9001

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2733
  • Country: ca
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #12 on: November 30, 2021, 04:11:11 am »
Hi,

Let me introduce this circuit:





This circuit will measure the current flowing through R1 and produce a signal that is positive with respect to ground.

The output voltage = -I x R1 x R4/R2

The op-amps must include the negative rail in their common mode range. LM324 or better LT1013 will work.

I have attached the LTspice model.

Regards,
Jay_Diddy_B

* neg i sense.asc
 
The following users thanked this post: hal9001

Offline hal9001Topic starter

  • Regular Contributor
  • *
  • Posts: 115
  • Country: 00
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #13 on: November 30, 2021, 09:57:10 am »
Thanks all!
Hi,

Let me introduce this circuit:

(Attachment Link)



This circuit will measure the current flowing through R1 and produce a signal that is positive with respect to ground.

The output voltage = -I x R1 x R4/R2

The op-amps must include the negative rail in their common mode range. LM324 or better LT1013 will work.

I have attached the LTspice model.

Regards,
Jay_Diddy_B

(Attachment Link)
Cheers!
Impressive to use jelly bean parts! I wonder whats the function of M1?
« Last Edit: November 30, 2021, 10:01:29 am by hal9001 »
 

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2733
  • Country: ca
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #14 on: November 30, 2021, 12:14:26 pm »
Hi,

The MOSFET M1 provides level shifting between the two op-amps.
When the circuit is in equilibrium, the gate current of M1 = 0.

The voltage across M1, Vds,  is almost constant, it is the 12V - (I x R1)

The source current of M1 is equal to the current flowing R2.
Since the gate current is zero, the source current must flow in the drain.

The current in R4 is equal to the drain current.

This means I(R4) = I(R2) = I(M1_drain) = I(M1_source)

Since the same current is flowing in R4 and R2, the magnitude of the voltage gain is R4/R2.




On this schematic I have marked the voltages with a current of 1A flowing in R1.


Jay_Diddy_B
 
The following users thanked this post: hal9001

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12852
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #15 on: November 30, 2021, 01:28:34 pm »
Or if you prefer to break it down to circuit building blocks you *SHOULD* recognize:

U1, M1 & R2 are a classic OPAMP + MOSFET current sink, with its control voltage from the drop across the load current shunt R1
==> Id(M1)=(R1/R2)*Iload

U2, R4 is simply an inverting current to voltage convertor, referenced to 0V rather than the negative supply. 
==> Vout=-Iin*R4

Putting it all together,
Vout=(R4/R2)*R1*Iload

Note that if M1 drain ever gets disconnected, or if U2 rails due to excessive load current (or poor choice of resistor ratio), U1 will rail, putting close to its full V+ supply on the MOSFET gate.  That's 17V, and the 7N2002 max Vgs is +/-20V.  If  you were using >5V positive rail U1 would need to be powered between 0V and the negative rail to limit the max Vgs.  If you wanted to monitor a -24V rail you'd need a separate (positive) regulator to supply U1 with 12V or 15V, referenced to the negative rail and fed from the 0V rail. e.g. LM78L12 or ..L15 or a Zener and a dropper resistor.

Also, in all cases it would be advisable to add a clamping diode from 0V to U2 In- to prevent it being dragged too far below ground during over-current faults.  1N4148 should do nicely.   A resistor in series with M1 drain to limit the fault current through the clamping diode may also be necessary, chosen to still leave enough voltage across M1 for linear operation at full scale current.
« Last Edit: November 30, 2021, 01:51:31 pm by Ian.M »
 
The following users thanked this post: Jay_Diddy_B, ledtester

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2733
  • Country: ca
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #16 on: November 30, 2021, 02:34:18 pm »
Hi group,

Building on the sound advice provided by Ian.M, I am providing a revised model that includes a lot of the protection features:




I would certainly include the extra parts if this was a laboratory power supply where the extra protection is necessary.

Regards,
Jay_Diddy_B
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12852
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #17 on: November 30, 2021, 02:51:44 pm »
Don't forget decoupling for U1 as its got to drive M1's gate capacitance. Without it, the Zener regulator is likely to drop out on fast increasing load current transients, which may cause instability.  Personally I'd Muntz it for negative rails between -10V and -18V and simply feed U1 V+ from 0V/Gnd.

You may also need a gate resistor and a few tens of pF feedback capacitance round U1 to limit the bandwidth, trading off transient response for stability.

« Last Edit: November 30, 2021, 02:54:37 pm by Ian.M »
 

Offline LoveLaika

  • Frequent Contributor
  • **
  • Posts: 560
  • Country: us
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #18 on: November 30, 2021, 04:11:25 pm »
If it helps, in my circuit, I used the INA293 to measure current from a negative voltage output of a buck-boost converter. The current was measured via a sense resistor, with one end connected to my buck-boost converter output (negative voltage side) and the other end continuing on to my load.

For the op-amp itself, the input terminals were in parallel with the sense resistor, with the inverting terminal connected to my buck-boost output side while the non-inverting terminal was connected to the load side. With regards to the op-amp supply, the positive supply was connected to +5 volts while the negative side was connected to my buck-boost output, because everything was referenced to that negative voltage output. That's how I did it, though I'm sure it could have been improved upon.
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2389
  • Country: gb
  • Recovering Electrical Engineer
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2389
  • Country: gb
  • Recovering Electrical Engineer
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #20 on: November 30, 2021, 05:10:48 pm »
https://www.analog.com/media/en/technical-documentation/app-notes/an-105fa.pdf
Page 15 onwards, loads of ideas.
Fig 29 is of particular interest.
 
The following users thanked this post: hal9001

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12852
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #21 on: November 30, 2021, 05:21:22 pm »
Fig. 29 doesn't have any overload protection.  Somewhere around 18A load current (or a bit higher) transient or sustained, even if the shunt's beefy enough, it will elect a pope!
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2389
  • Country: gb
  • Recovering Electrical Engineer
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #22 on: December 01, 2021, 04:42:11 pm »
add some?
 

Offline LoveLaika

  • Frequent Contributor
  • **
  • Posts: 560
  • Country: us
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #23 on: December 01, 2021, 07:48:26 pm »
Fig. 29 doesn't have any overload protection.  Somewhere around 18A load current (or a bit higher) transient or sustained, even if the shunt's beefy enough, it will elect a pope!

This is an interesting app note. If I may, I can probably guess why you would need it, but what's the worst case here without overload protection? Wouldn't the output of the 2054 just saturate to the rails? If we're talking about overload protection for the inputs, could you just add diodes at the inputs so they don't go to too high a voltage?

Also, if I'm understanding the Zener and how it works, it's causing a +5 voltage difference between the positive and negative voltage supplies for the 2054, correct? That way, the 2054 can be tied to very low voltages without damaging it.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12852
Re: Current Sense Amplifier INA180 Negative Supply Measurement?
« Reply #24 on: December 01, 2021, 09:00:03 pm »
Its easy enough to add over-range protection - as the fig.29  circuit is so similar to the one I commented on above, it has the same defect if the output OPAMP rails and the same sort of clamping  + current limiting for the MOSFET with a drain resistor will fix it. Heck, if the -48V supply is limited to less than 15A peak surge current, it doesn't even need protection.  However I am surprised that there doesn't appear to be any mention in the appnote of the need to protect that low side sensing topology against the output OPAMP in- being dragged negative beyond its permissible input voltage range during a severe over-range condition. A short paragraph in the circuit description would have been sufficient . . .
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf