I was just wondering if anyone had implemented a pid controller using C.The idea is that the C program allows me to vary the values of P,I and D values thus allowing me to use it for a number of different applications, Can it be done???. If so could someone please help with the code. The code will then be used on the 8051 microcontroller. I am a college student so need as much help as possible.!!