As complicated as I thought this would be, this circuit is using the basic fundamentals of electronics and algebra. The only hard part is perfecting it and expanding it.

Click here to see the finished project.