SeniorProject Code for my senior project I'm balancing a pendulum on a cart. This is the arduino code.