r/ControlTheory • u/HotelFirm3622 • 3d ago
Technical Question/Problem Self Balancing Robot Help
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
•
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.
\(K_p = 0.8\,K_u\)
•
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.