|
Re: Encoder Code
I know it's been a while, but I'm designing the ratios for our prototype base now....
how many interrupts per second can the processor handle?
Our highest gear puts the encoder shaft at about 1500 rpm. We're using the grayhill 128's that Kevin reccomends (because we already have them) and that puts out a lot of counts per second , 1486.6 [rpm] / 60 [seconds/min] * 128 [counts/rev] = 3172 counts per second!!!, and that's only one side. That seems like way too much to me.
can anyone confirm this?
Just saw grayhill offers lower res in the same package. Both the 32/25 look good with 793 and 620 interrupts per second at full speed in high.
Still, I would like to know what the processor can handle.
Last edited by AdamHeard : 13-08-2007 at 13:09.
|