AutoBalance - PID Controller

oric_dan(333):
All I know about PID is that it takes a lot of fine tuning to get the correct P,I,D gain values
for a particular situation. John is right. I would start with P, and then add in D only. Lastly, do
I after the others are set well. Break the problem into parts.

For tuning D, you might try just giving the top of the frame a quick push, ie, a sort of
impulse function, and playing with the D gain value until it responds properly. Also, you need
to be sure you have the "sign" of the gains correct. You want negative feedback, and not
positive feedback.

Hmm ok! I'll try and i'll let you know!
Thank you very much.