Electronic – High side current sensing in DIY bench supply

power supply

I would like to build DIY linear bench power supply, with adjustable, regulated output voltage and current limiting functions. The voltage and current regulation will be implemented using analog feedback loops. The functionality of the device requires sensing of the output current in order to:

  1. Use it in feedback loop to limit current
  2. Measure output current

Since whole this is to be controlled by microcontroller (voltage and current limit setting, measurement) it means that I need to generate voltage with respect to ground proportional to the current (or not?).

One of the possible solution is to implement high side current sensing using resistor (it is preferable solution due to protection against accidental shorts compering to low side sensing). Examples of the high (and low) sensing circuits can be found in nice app note from microchip.

I am hesitating to use any of the provided solution as that would mean placing two opamps in cascade (opamp for control + current sensing) which may be an issue for circuit stability. Do you have other ideas how high side current sensing could be implemented and be suitable for both analog control and measurement (does not have to be the same circuit)?

Best Answer

For a linear supply i would recommend using a foldback current limiting scheme, especially on something that has a tendency to be shorted/over driven as often as a bench supply. Theres lots of ways to do this and how you do it will be based on the linear regulator design. That being said googling for 'foldback current limiting' especially on google books should give you all the information you need.

For current measurement, you can go high side or low side, whatever you want. The reason to avoid low side is generally to avoid increasing resistance to ground. The small sense resistor you use probably wouldn't matter much in a bench supply. The easiest way to implement this is to use a custom made IC. Such as the MAX4173 there are lots of manufacturers for these though, look around for the one that best fits your needs/cost/package. There are also some that output PWM which can be more accurate to work with than the ADC on most cheap microcontrollers. You just measure the pulse width using a timer and usually either a pin with external interrupt or a comparator input.