PID Ball Balance

This project was my first attempt at learning to implement PID. PID stands for proportional integral derivative. In the ball balance depicted a servo attempts to keep the ball in the center of the balance. It does this by correcting its error with PID and an ultra-sonic distance sensor. The system can function more effectively through fine-tuning three constants. Significantly better results could be achieved with better construction of the balance and higher quality sensors