CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

dc motor routine

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
babilonio
Guest







dc motor routine
PostPosted: Fri Feb 26, 2010 4:25 pm     Reply with quote

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







PostPosted: Fri Feb 26, 2010 4:32 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Feb 26, 2010 4:40 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Feb 27, 2010 12:21 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group