Monday, 18 April 2016

PID seems to be a rather magical thing. I ported the Arduino-PID-Library to javascript so you can play with the constants in a simulator and and see the results immediately. Hopefully this will make people less scared about the tuning process.

In this simulator, you are Lara Croft driving a car. Using the sliders below you have to choose Kp, Ki and Kd to follow the green line as closely as possible, that is without overshooting or oscillating (so, not like now).
This PID controls the accelerator/decelerator of a car. There is some drag and the vehicle has a certain mass.
The X axis is time and the Y axis is the position of the car. Make sure she is at the right position at the right time
Can you help her? Good luck!
Select the level of difficulty:
Position:
PID's output (accelerator):