Hello EEVblog forum! First post here. My name is Matt and I am a rising senior in university studying EE. I am working on a project and was hoping for some guidance from more knowledgeable people before I commit to this idea that I have.
So I have a Li-Ion battery pack with a nominal voltage around 30 V and an off-the-shelf power supply. The battery has a maximum charge current of 10 A. I have chosen a power supply that can deliver 10.8 A before going into overcurrent protection (hiccup mode). (Before you ask, I have already worked out the details of the charging assuming proper current. There are provisions for preventing overcharging, etc)
I want to design a circuit around this power supply that limits the current output of the supply when the load tries to draw more than 10 A, but otherwise leaves the operation affected. Minimal voltage drop is acceptable (let's say around 0.2V max when operating under 10 A).
My first idea was to use a current sense amplifier and a feedback loop to accomplish this, kinda like this:

In an ideal world this would work as is but as soon as I start replacing ideal parts with models, it becomes wildly unstable. The system oscillates between an overcurrent condition and turning completely off. Either this solution is impractical or my implementation is simply not stable as is. I am not familiar with how to stabilize feedback loops like this.
How do you guys think I should proceed? Any guidance would be greatly appreciated!
Best,
Matt