Hi i am making a PID controller for some current control on a DC motor (might just end up with a P or A PI controller this is just as an example)
I designed the controller as a PID with the open loop transferfunction: 16s+16/(s+6)
When i then implement this in an open loop function in LTspice everthing is good (the step response from matlab and ltspice looks the same)
However when i close my loop i get some nasty opamp oscillations.. I tried placing some capacitors in parrallel with the feedback resistor and a capacitor to ground which helped a little on this matter.. This however made my system quite slow. Is there another way of removing the oscillations? am i doing something wrong? and can the motor current control be implemented via some sort of IC instead ?
Thank you
https://sperbits.ch/PID.asc
I designed the controller as a PID with the open loop transferfunction: 16s+16/(s+6)
When i then implement this in an open loop function in LTspice everthing is good (the step response from matlab and ltspice looks the same)
However when i close my loop i get some nasty opamp oscillations.. I tried placing some capacitors in parrallel with the feedback resistor and a capacitor to ground which helped a little on this matter.. This however made my system quite slow. Is there another way of removing the oscillations? am i doing something wrong? and can the motor current control be implemented via some sort of IC instead ?
Thank you
https://sperbits.ch/PID.asc