Amplifying Voltage Difference – How to Do It?

currentshunttransistors

Starting at the beginning: I have a shunt that carries DC current, and the voltage drop is very slight. I want to amplify it in order to see it better on oscilloscope, and to have it scaled correctly for e.g. an Arduino ADC. This to measure the current.

So one side of the shunt has voltage V (~12V), the other side has V minus epsilon. I have a pile of NPN and PNP transistors, capacitors, resistors, diodes, etc…

It would be more obvious to me as a newbie if I were trying to scale up a signal around 0V, but since I'm trying to measure "epsilon". I would like to power the whole thing (transistors, arduino, etc…) off of the same circuit, so I'm guessing I'd need a common ground. This means I don't think I can use "V-epsilon" as ground.

So, how do I amplify, and/or "re-base" this voltage drop across the shunt?

Edit:
Ideally not with a ready component dedicated for this (though thank you for the pointer to that), since this is also part for me to understand how to build circuits with transistors, and I have transistors on hand and stores are not exactly open and convenient at the moment.

Illustration of what I want to build

(oops, obviously buck converter also has access to grund. And "magic happens here" can also have access to both ground and 5V from buck converter)

Best Answer

If you want a canned solution you can use a "current sense amplifier". This is the name of the category you should dig in at your favorite supplier.

These amps are characterized by the usual parameters: offset, bandwidth, acceptable common mode range, etc. Make sure you check. But they have extra features on top of that.

They work from a low impedance source (usually a current shunt) so the effects of source impedance imbalance on CMRR due to high source impedance on CMRR can be neglected. This allows a circuit that is simpler and cheaper than an instrumentation amplifier. An important bit is that usually a current sense amp is able to sense a tiny voltage on the high side (on a shunt in the power supply) at a voltage above its own power supply. Some can sense with large negative common mod too. Some sense current at one polarity only, others at both polarities. So, check the specs.

For example if you have a 3.3V supply for your ADC you can power MAX4378 from +3V3 and sense current in a 24V supply.

Here is one: MAX4376 but there are a lot.

For a high side shunt you could also use an opamp wired as a difference amplifier, however if you want high gain the acceptable common mode range of this circuit means that this requires a rail to rail input opamp powered from the rail you want to sense. Also the output is referenced to the power rail, not ground, which is inconvenient, and it is unidirectional. A canned current sense amp chip is much simpler to use.

Now if you want a discrete circuit (since you mention discrete transistors...)

One could use a low offset discrete opamp to implement Spehro's circuit. This would need matched transistors like DMMT3904. Input common mode has to include the positive rail, which means a darlington to add a bit of voltage headroom to avoid saturating the BJTs in the current mirror and differential pair.

enter image description here

This is an interesting circuit (gain is R6/R2) but quite complicated versus a SOT23 ready made amplifier.

Another crude circuit could be this one. Its output is referenced to ground, but there is an inconvenient DC offset voltage at zero current. This could be an advantage, as it means it can sense current in both directions, but you got to calibrate the offset out somehow.

enter image description here

This one has a differential output, with a common mode you can choose. If you need a single-ended ground-referenced output, an extra opamp is needed.

enter image description here

Note the offset of all these circuits will depend on matching between transistors in the differential pair. You can always use a DMMT3904 which I think is specced for 1mV offset, but that is not as good as a decent current sense amp.

Linearity should be good for the first one (it's an opamp with feedback). The others don't use feedback so they'll be a bit less linear, but they are much simpler.

EDIT:

The last two circuits exploit the fact that the signal to be amplified is presented at a very low impedance on the low value shunt resistor, which means instead of using transistor bases as input we can use the emitters... because as you know the emitter is an output, but it is also a low impedance input !

enter image description here

This isn't really an opamp, rather it's a simple feedback circuit with a differential input pair Q6,Q7 biased via Q5. Current mirror Q8,Q9 directs the output current of the diff pair into Q10. It tries to keep voltage on Q6,Q7 emitters equal by injecting a small adjustment current via Q10 which changes Q7 emitter voltage to make it the same as Q6 emitter voltage. So this current is proportional to the voltage being measured on the shunt, and since this current is created via R8, we get out amplified output voltage on R8.

Again, don't expect miracles wrt accuracy or offset voltage, but it's a much simpler version of the first schematic and similar performance.

Related Topic