LM317 reverse voltage/current

Thread Starter

Kay_niv

Joined Jan 17, 2015
1
I'm currently doing a project where I need to check the battery protection circuit of a LiPo .
My current setup is a 12v supply from which by making use of LM317,Arduino(i vary the Vadj) to get a voltage range of 2V ~ 5V output.

when i connect the charger it would produce 4.2V at the 3.7V (output of the LM317).
I'm not clear as to how LM317 handles reverse current and how much it can handle ?

My aim is to check the outputs Discharging,Charging over the different voltage range ( 2V ~ 5V).
How do i protect my test setup so that varying the bat_voltage(LM317 outputs) does not affect/burn the setup when i connect the charger.

Thanks
 

ericgibbs

Joined Jan 29, 2010
21,390
hi,
The LM317 will be damaged if the Vout exceeds Vin by more than a volt or so.
A common method is to connect, say a 1Amp diode in reverse parallel across the LM317. ie: diode Cathode to Vin side of Lm317 and Anode to Vout.
So the maximum reverse voltage across the LM317 will be clamped at ~0.7V
E
 

GopherT

Joined Nov 23, 2012
8,009
@Kay_niv
If you are measuring voltage of the battery, you can put a pair of 100k resistors in series from your battery (+) to ground and measure the mid-point and double the measured voltage instead of measuring at the battery (+). Battery charging is fairly slow so you won't suffer too much if you give your ADC a bit of time to charge through the 100k resistors (that is, you may need more than a few microseconds for the ADC to stabilize since you are measuring though a 100k resistor).
 

ian field

Joined Oct 27, 2012
6,536
I'm currently doing a project where I need to check the battery protection circuit of a LiPo .
My current setup is a 12v supply from which by making use of LM317,Arduino(i vary the Vadj) to get a voltage range of 2V ~ 5V output.

when i connect the charger it would produce 4.2V at the 3.7V (output of the LM317).
I'm not clear as to how LM317 handles reverse current and how much it can handle ?

My aim is to check the outputs Discharging,Charging over the different voltage range ( 2V ~ 5V).
How do i protect my test setup so that varying the bat_voltage(LM317 outputs) does not affect/burn the setup when i connect the charger.

Thanks
Don't pass reverse current through any 3-terminal regulator. Bypass the input and output terminals with a diode oriented so its reverse biased in normal operation.
 

ronv

Joined Nov 12, 2008
3,770
The way I understand the circuit he has 12 volts on the input of the regulator and has set the output to 3.7 volts. Then attaches the charger to the output (and the battery). In this case no reverse current. I think the 317 will just turn off???
 

ian field

Joined Oct 27, 2012
6,536
The way I understand the circuit he has 12 volts on the input of the regulator and has set the output to 3.7 volts. Then attaches the charger to the output (and the battery). In this case no reverse current. I think the 317 will just turn off???
With a battery connected to the output - if the input isn't supplied with anything, you have the potential for reverse current in the regulator.

Charging the input capacitor via the regulator's output is enough current to damage the regulator.

It needs a protection diode - either bridging the input & output and oriented to be reverse biased in normal operation, or a forward conducting diode in series with the output.
 
Top