View Single Post
  #8   Spotlight this post!  
Unread 02-02-2004, 13:17
Zee Zee is offline
Registered User
no team
 
Join Date: Jan 2004
Location: USA
Posts: 8
Zee is an unknown quantity at this point
Re: Encoder Counts/time period to PWM value

Quote:
Originally Posted by deltacoder1020
what you could try instead is if you wanted to use PID to make the PWMs function on a more linear scale, measure your top speed (when the PWM is set to 254) and then take any speed, divide it by the top speed, and multiply by 254 - this becomes your "actual" pwm. that way, the PID loop would result in the PWM control being more linear.
I will give this a try. Thanks.