How long does it take to tune PID for a beginner

I have coded a PID for the first time and we were planning on trying to tune the PID in under 2 hours. DO you think that is possible? I want to know how long it would take a beginner to tune their PID. (also any tips on how to tune would help)

Tuning a PID shouldn’t take too long assuming the code is working as intended, in my opinion it should take less than an hour. As far as tips on tuning, I would set the constants to zero then increase P until the response is steady oscillation. Then increase D until the oscillation is gone or heavily dampened. Repeat this until D no longer stops the oscillation (revert to the last stable values) then increase I until your robot gets to the desired point.

7 Likes