The easiest way is to get a charge controller that regulates the voltage n charge current into the battery. No worries of overcharging and overdischarging of battery.
I'm trying to develop this circuit on a general purpose PCB, so that I can change the MPPSET and VFB level. With the same circuit above, when I tried to connect the battery, the circuit is shorting. The only reason I know is if the low side MOSFET fails, it could short but the MOSFET seems to be working. Can you tell me the possible reason for short circuiting.
N.B I've triple checked the connections and it is fine.