Here is a version of the simulator for those of you who don’t have a joystick. The more experienced of you might already have noticed from the plot that the derivative gain is too high. You can find the code here.

Here is a version of the simulator for those of you who don’t have a joystick. The more experienced of you might already have noticed from the plot that the derivative gain is too high. You can find the code here.
The T-Bot simulator allows you to stabilise the T-Bot manually or use a cascading PID controller. The program allows you to develop an intuitive understanding of the stabilisation process and tuning of a balancing robot.