Peter Nachtwey
Member
I wrote a Excel spread sheet so that people could use to get experience at tuning PID for position control.
The reference position is a sine wave with a selectable amplitude and frequency.
The PID uses Tustin's approximation to convert an analog PID into a a digital PID. It also adds a low pass filter at 2/T radians where T is the sample period.
The system or plant is a simple single pole system with a gain and a time constant. The model is G/(ts+1) where G is the system gain in inches per second per volt,t is the time constant in seconds, and s is the Laplace operator.
position PID spread sheet.
If you get the tuning right you can get the actual position line to cover the target position line. When this happens you have the system perfectly tuned.
This system should be easy to tune because it has only one pole. However the output will saturate because the target velocity makes a step jump when starting.
Notice that it is more difficult to tune as the amplitude and the frequency become larger.
Click on the comments for more information.
The reference position is a sine wave with a selectable amplitude and frequency.
The PID uses Tustin's approximation to convert an analog PID into a a digital PID. It also adds a low pass filter at 2/T radians where T is the sample period.
The system or plant is a simple single pole system with a gain and a time constant. The model is G/(ts+1) where G is the system gain in inches per second per volt,t is the time constant in seconds, and s is the Laplace operator.
position PID spread sheet.
If you get the tuning right you can get the actual position line to cover the target position line. When this happens you have the system perfectly tuned.
This system should be easy to tune because it has only one pole. However the output will saturate because the target velocity makes a step jump when starting.
Notice that it is more difficult to tune as the amplitude and the frequency become larger.
Click on the comments for more information.