r/ControlTheory • • 3d ago

Technical Question/Problem Self Balancing Robot Help

Post image

Hello, I built a self balancing robot that balances for 1 minute, and I'm just curious as to why it fails in the end. It's a tilt only PID system so the robot does drift, but theoretically it should be able to stay standing upright and drifting infinitely. Are those growing oscillations indications that it's not tuned properly?

22 Upvotes

3 comments sorted by

•

u/Derrickmb 3d ago

Needs to be PD and right now you have no D. Remove I and graph your P and D error. Use a Ziegler tuning second method to develop an ultimate period and gain and use the guidelines to tune the PD.

  • Proportional gain:

\(K_p = 0.8\,K_u\)

  • Derivative time: \(T_d = 0.125\,T_u\) (or \(T_u / 8\))
  • Derivative gain: \(K_d = K_p T_d = 0.10\,K_u T_u\) [1, 2]

•

u/TheDreadedSauce 3d ago

Hello, it'd be a bit easier to help if you would provide us with details regarding the system model and the controller architecture.

→ More replies