Hello, somewhat junior designer here.
I am designing the power supply section for a circuit that will be mounted on a sensor node up a pole. I have chosen sealed lead acid batteries for solar backup power, and the circuit will also be connected to grid power.
There is an AC to DC converter in the design (HLK15M15C) that outputs 15V. To charge the battery, I selected the MT2499A IC because I’m using it elsewhere in the circuit, though I'm open to swapping it for a better IC. It is a generic 3A buck converter. The MT2499A will be configured to output around 14.2V.
To prevent the battery from drawing too much current when it’s empty, I want to have some current limiting at the output. I’m aiming for a CC/CV charging process. I’ve explored current limiting with transistors and shunts, but voltage drops make it difficult to possibly maintain 14.2V at the output. I also considered adding just a current limiter after the 15V and charge the circuit, but inconsistencies in voltage (e.g., possibility of reaching 14.6V) could compromise the battery’s longevity.
My current solution is to add a second feedback signal to the buck converter's feedback pin. This way, I can implement current limiting without losing voltage. I have seen similar approaches discussed in videos and forums.
I plan to integrate an INA213 to sense current. Once the current exceeds the threshold, I want to send a signal to the feedback pin. For simplicity, I intend to use a TL431 comparator, which compares the input to its internal 2.5V reference.
The INA213 is a current sense amplifier with a gain of 50. The voltage drop across the shunt gets amplified by the INA213, once this exceeds the 2.5V threshold, the TL431 will trigger. This will turn on the optocoupler, and the optocoupler’s output will use a voltage divider to reduce the supply voltage to a level the feedback pin can handle. The goal is to ensure the voltage is high enough to bias the diode (exceeding the MT2499 feedback voltage by at least 0.7V).
Schematic attached at the end.
As said, this is just the power section of the PCB, there are other items already in the design and on the same PCB. I can't order the components right now and test them separately.
My questions/concerns:
Is there any reason this approach wouldn't work with the MT2499A?
Will the TL431 work correctly when there’s an optocoupler LED in its path?
What disturbances or surprises could the optocoupler introduce on the voltage divider?
I’m open to alternative suggestions or IC recommendations, as I’ve invested significant time in this design but am not attached to it

Thanks in advance!