View Single Post
  #7   Spotlight this post!  
Unread 02-02-2004, 12:52
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Encoder Counts/time period to PWM value

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.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)