Control Engineering: Model parameter estimation for a motor which will be under various loads

control systemmathmodelingpid controller

I am creating a closed loop controller for a motor which is part of a robotic arm. I give it a required angle, the controller calculates a control input, the motor moves, a pot feedbacks the angle, repeat, and the arm ends up at the required angle.

I am using state variable feedback, with integral action, and in order to calculate the control gains required for stability and speed I need a mathematical model of my system.

To get this model I am using statistical model identification techniques. I am inputting a random control signal into the motor, and recording this and the angle of the arm at each sample time. I'll then have sample input and output data of my system, and I can use a mathematical optimization technique to find the model parameters that best fit this data.

My Question

When under actual operation, the robot arm will be lifting a variety of weights. Does this mean the model I found with no load (intrinsic load) is invalid?

How do I get a mathematical model of this system when the load on the motor can change?

Best Answer

Usually control loops are tuned under around the operational conditions. But the PID loops are usually robust enough to take care of some deviations (especially with the right tuned integral part. The Proportional only won't handle it.). If you want to increase the robustness, use several nested loops (for position control, for example, you might want to implement an internal velocity loop. For the velocity loop - internal torque/current loop).
The idea is, to make the outer position loop not to care about the underlying physical system (well, to some extent), it is done with the inner loop. The inner loop will (given it is velocity loop) will take velocity reference as input from the position PID controller, assuming the velocity loop is perfect (or modelled with some transfer function for better results). The same can be done with the velocity loop, by implementing the inner torque-regulating loop. So only the innermost loop will have to take in consideration the actual physical system parameters. The parameters for the outer loop plants will be the artificial ones, derived from the inner ones.

schematic

simulate this circuit – Schematic created using CircuitLab