View Single Post
  #12   Spotlight this post!  
Unread 18-01-2004, 02:44
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
Re: Using Digi-Key Shaft Encoders

Quote:
Originally Posted by WizardOfAz
My concern about encoders was the CPU utilization, though I didn't much more than guess about this issue. Any estimates what it will take to track an encoder that reads 128 or better pulses per rev?
Let's assume 15 ft/s with 6 in diameter wheels (very fast).

That's 9.55 rev/s or 1222 cycles/s.

Should be fine.

Also, (818.1 us/cycle) / (.1 us/instruction) = 8180 instructions/cycle

Assuming your int handler takes 10 instructions, 0.122% of your instructions are devoted to 1 of your encoders.

Heh, I think I got carried away with that calculation, but I was curious myself.