Inverted pendulums are a classic example used when teaching about PID controls. I built a physics simulation and PID controller in the browser. It uses RK4 integration for the physics for precision and efficiency. This simulation can be used to do hands-on teaching about PID controllers.
Click here for the live in-browser simulation
This is a project that I completed entirely myself.