0
\$\begingroup\$

I'm trying to build a high-side current sensing circuit with a differential op-amp which can be seen below:

enter image description here

The LT1006 is actually an LM358 IRL(I know it's a peanut op-amp, but it's what I have available). Anyways, according to this setup, I should have unity gain. 5V/101.1 OHM = 49.4mA. So the shunt has 49.4mA * 1.1 OHM = 54mV across it, and therefore the LM358 should output around the same voltage, but it doesn't. I've made sure the resistors are very matched and also tried using 100k resistors. I've also experimented with different power rail voltages and even tried setups that would give a gain of 5, 10, and 20, and I still can't get the op-amp to output the expected voltage. What am I doing wrong? I've read the datasheet and I'm pretty sure I am within spec of the common mode input range.

Thanks.

\$\endgroup\$
  • 1
    \$\begingroup\$ The input common mode range does not extend to the positive power rail. From the schematic it is probably to the positive rail - 1.5V \$\endgroup\$ – Peter Smith Jun 27 at 15:08
  • \$\begingroup\$ @PeterSmith Yes, I believe the datasheet says VCC-1.5 or VCC-2. But am I not below that on the input? When I probe the non-inverting and inverting inputs, I fall well below the specified range. \$\endgroup\$ – jm567 Jun 27 at 15:12
2
\$\begingroup\$

The LM358 can can't really get down to the negative rail while sinking current, and your circuit has about 250uA flowing into the output.

Increasing the resistors to 100K probably helped quite a bit, but it still is limited.

Referring to the datasheet for the typical characteristics:

enter image description here

To get down to 50mV it can typically sink perhaps 15uA with a 5V supply @ 25°C, so maybe you can count on 5-10uA in realistic conditions. And that's just to barely get down to 50mV out.


To get something useful out of this, you can increase the gain significantly so the minimum output is (preferably) in the +1V range. But then you'll run into common mode range issues if you just increase R11/R12.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ Thank you. It was incredibly helpful seeing this graph. It looks like I will have to consider a rail-to-rail op-amp or a current sense amplifier. \$\endgroup\$ – jm567 Jun 27 at 17:25
  • 1
    \$\begingroup\$ Current sense amplifier is probably the right way to go since it gets rid of the need for highly matched resistors. You can still use the LM358 as a buffer. ;-) \$\endgroup\$ – Spehro Pefhany Jun 27 at 17:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.