Hi! I'm trying to design a small linear li-ion battery testbench using a power op-amp. However, I'm not sure how I'm supposed to approach the issue of stability (or well behaved response in general) in this case.
I hope this isn't too complicated for the beginners section, this is my first post here and I consider myself a beginner.Here's what I'm trying to achieve with the actual "power path":
- Voltage input sets battery current (bipolar)
- Current output: ±250mA for an input voltage of ±1V superimposed on a local reference voltage (I picked 1.25V)
- Supply voltage will be USB, so maybe 4.65V worst case
- Battery voltage can be 2V ... 4.3V
- Ideally I'd like around 10 kHz bandwidth and 0.5% DC accuracy
Things like battery protection are ignored for now.
The ZIP in the attachments contains the LTspice schematic and the model/symbol for the OPA569.
Current schematic:
Bode plot of the current through the battery (should ideally be a constant -12dB ≙ 250mA):
I picked a 200mOhm current shunt because I can't afford a 4-Ohm one (1V @ 250mA) due to limited voltage headroom. So I amplified the voltage across the shunt with a gain of 20 to get back to my ±1V signal, hoping to avoid any offset and noise considerations.
I assume that with this decision I completely destroyed any phase margin I'd have if I ran U1 at a gain of 1 or more? But I hoped I could compensate U1 to a point where the phase shift of U2 doesn't matter much (bandwidth of the AD8237 should be around 50kHz at G=20 if I'm not mistaken). However, I'm feeling quite lost trying to approach this, how to even find out what needs correcting and how to correct whatever needs correcting.
I feel like I have a bunch of errors in my thinking, should I rather just use a current sense amp with a gain of 1 and attenuate the input signal down to the same ±50mV instead of trying to get this contraption to be stable? At that point I guess the offset voltage of the OPA569 would be an issue, but I probably could get around that by using the OPA569 simply as a buffer for another precision op-amp with much smaller offset voltage?
I'm glad for any kind of input on this, negative feedback is what we want after all :D
Thanks for your help! Please ask if something is unclear.