I've designed a PV based solar charger controller using the MPPT algorithm to charge my 12 V tubular battery for a DC load.
I need to keep the output voltage constant at 14.5 V to connect a 12 V battery for charging purpose through directional load switches (MOSFETs). When I connect the battery to my charge controller, the output voltage of the MPPT buck converter as well as the PV input fluctuates by 3-4 V, which constantly affects the feedback logic (if Vout >= 14.5 V connect to the battery/ if Vout < 14 V disconnect the battery) that I programmed in the microcontroller. It repeatedly connects and disconnects the battery from the source.
How can I keep output voltage constant, e.g. 14.5 V, to charge the battery with maximum power?