PDA

View Full Version : codes for PI control of a DC motor?



powerelect
- 28th August 2012, 09:45
Dear members,
I have written a program for controlling a DC motor but i did not consider PI (proportional Integration) part in it. would you please help me how to write PI codes in my program? I am using basic language and i have already calculated the gain values for them. Many thanks in advance.

HenrikOlsson
- 28th August 2012, 10:09
Hi,
You might want to take a look at this thread. (http://www.picbasic.co.uk/forum/showthread.php?t=5874) Read thru it, there's a lot of info and an updated version of the filter in post #57.

/Henrik.