Barg:
I dont know much about the specifics of charging LiFePo batteries, but I do know how to make a current sensor.
R1 is the shunt. It will go in the minus lead of the battery.
Circuit is powered from the 14V shunt regulator I showed earlier.
Circuit has a moderate amount of hysteresis.
Output is high while battery current >30mA
Output is low as current drops below 15mA
Circuit will work with the LM33x comparators, or a LM358 opamp...
View attachment 96386
Hello again Mike,
Thanks for drawing up a circuit, just a little point here.
You dont really expect to sense sub millivolt signals with an LM358 or LM339 do you?
I could be wrong here, but i see a 10mOhm resistor for the sense resistor and that only develops 10mv at 1 amp, and the cutout point needs to be much lower than that, perhaps 50ma.
10mOhm and 1 amp develops 10mv, and at 0.1 amp we get 1mv, and at 0.05 amp we get 0.5mv which is only 500ua.
I would think it would be better to use a precision op amp here that has very very very low input offset voltage.
The input offset for the LM358 is already around 2mv, which could be 4 times the signal to be measured.
I am assuming the normal charge current is 1 amp, but if it is higher than that's different.
Just for reference for any design:
[1] The low battery charge current cutout point protects the battery from continuous low current charging during the charge process which is considered bad for the battery if it goes on for too long (and time is accumulated over charge cycles). The threshold action is to turn off the charge completely and dont turn back on until some low voltage point has been reached.
The low voltage point here can be something like 3.3 volts with a cell that charges to a max of 3.6v, but this can be varied.
Note this is when the battery is charging, and should not be too high nor too low.
[2] The second low voltage battery cutout point protects the battery from discharging to a level considered to be too low for the particular chemistry. For Li-ion 3v might be typical, but i have seen as low as 2.5v. You'll have to check this spec for your particular battery chemistry. Note this is when the battery is discharging.