Close

Automatic PID optimization and Composite motor control

A project log for PyUltimateRobot

Easily and powerfully control your robot

garrett-herschlebGarrett Herschleb 02/12/2018 at 22:060 Comments

I've been busy improving the software.

Now I've gotten a module which performs automatic PID optimization. PID controllers are a feedback control mechanism to make motors do exactly what you want by varying the power fed into them. It does so by moving a motor forward and reverse within the limits you specify. It intelligently tries different PID controller values to find the best possible settings. What are the best settings? You decide by telling the algorithm what's "good" with different dimensions like commanded speed compliance, staying within acceleration limits, minimizing jerk, and crossing goal speed.

I've also added capability to have multiple motors work in tandem as a single motor, and keep their positions tightly synchronized, even if there's uneven load.

Discussions