so I'm trying to read an encoder from the axon. It is a digital encoder, but I have no way of storing how many encoder pulses have happened since I last polled the encoder. I can think of three ways to do this, and if anyone knows which would work that'd be awesome :-)
I know that the maximum number of encoder pulses per second is 152, so an 8-bit counter will work, as I'll be polling way more than once per second.
1) IF the axon has internal hardware counters that I can rig to one of the digital IO pins, then I'd just set the counter to read the encoder data and count, then poll the counter in my main program. This would be an ideal option, but I have 7 encoders, so maybe not.
2) I can always just get a whole bunch of 8-bit counter chips, one for each encoder. The axon would then just have to read the counter chip and reset it through the control loop.
3) In theory, I can have a PIC handle all my sensor IO (I'll also have a LOT of touch sensors eventually, so this might be the option of choice anyway). The PIC handles all the counting, and then just sends the axon a UART message when it is polled that includes all sensor info.
I'm really hoping, at least at first, that the axon has counters? If not I'll go with option #2 for proof of concept stuff...
MIKE