Converting an analogue to digital controller

C

Thread Starter

control_rocks

Hello there. I am designing a PI controller to control a robot I am building. The robot consists of two DC Motors which drive a wheel each.

A C-programmable microprocessor is installed in the robot to allow the robot 'to think'.

I have designed a PI controller on paper using the Root Locus method to get the gain values. I have been told that the best method to convert this to digital form is to use the Backward Difference Method.

Can anybody help me as to how to implement this analogue controller as a C-program that the microprocessor can read?

Thanks,
control_rocks
 
Top