View previous topic :: View next topic |
Author |
Message |
babilonio Guest
|
dc motor routine |
Posted: Fri Feb 26, 2010 4:25 pm |
|
|
Has anyone a routine to control a motor with a speed loop?
I saw here many things but most of them are not useful or incomplete
and I could not understand.
bye bye |
|
|
babilonio Guest
|
|
Posted: Fri Feb 26, 2010 4:32 pm |
|
|
and if is possible for PIC16 or PIC18, and i have CCS C compiler, version 3.2 |
|
|
jaimechacoff
Joined: 14 Feb 2010 Posts: 24 Location: Santiago, Chile
|
|
Posted: Fri Feb 26, 2010 4:40 pm |
|
|
i am right now doing something with a position feedback but its not working elegant. : ((( |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Sat Feb 27, 2010 12:21 pm |
|
|
Try looking for "PID" on this forum and elsewhere. It stands for Proportional Integral Derivative, and it is a standard way of making speed, temperature, and position control loops.
The math can get very complex if you want to squeeze the absolute best performance out of the system. But for most systems you can simplify things. Ignore the Derivative term if speed and overshoot are not big concerns. Ignore the Integral term if accuracy is not real important. _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
|