View Single Post
  #5   Spotlight this post!  
Unread 01-02-2004, 20:36
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Encoder Counts/time period to PWM value

Quote:
Originally Posted by Zee
Yes, it is. I'd also like to know how many encoder counts/time period for a given PWM value.
You can only do this if the motor is unloaded (and even then it's shakey, at best). In general you can't directly correlate a PWM value to a rotational rate. As noted elsewhere, you are better off commanding a velocity and letting a control loop set the PWM value. There are likely to be motor control examples in the white paper and programming areas.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org