/inverted-pendulum

Simulation of an inverted pendulum cart with PID controller. Made with matter-js

Primary LanguageJavaScript

Inverted Pendulum Simulation

Simulation of an inverted pendulum on a cart stabilized with a PID controller. Input is the angle of the pendulum and output is the rotation of the wheels.

Usage

Try at https://SASE-Labs-2021.github.io/inverted-pendulum. Otherwise, clone the repo and open index.html in the browser.

Try tuning the proportional, integral, and derivative terms of the controller using the sliders. Apply your changes by clicking the "Restart Engine" button. You can inform your tuning process my viewing the graph of the angle sensor output.

If you share the url in the address bar after tuning, the receiver will be able to see your fully functional PID-controlled inverted pendulum.

Presentation

Presented during the 2020-2021 school year at the University of Minnesota. See the presentation.