My friend David and I implemented an inverted pendulum controller for the Quanser cart in th Control and Robotics Lab. The controller was implemented using Simulink and Matlab, which makes the tasks much simpler than dealing with microcontrollers and C.

We implemented many kinds of controllers, but the best turned out to be the full state feedback controller where we get to control the position and velocity of both the cart and the rod. The controller block diagram is shown below.


Below you can find the slides for a presentation giving a quick overview of this subject and a video demonstration featuring David as the presenter.