2016-07-05 02:03 PM
Well if you have stared at the data sheet and user manual like I have for a bit and tried to get an encoder running ''understandably'' / ''predictably'', you might hit some slippery curves. Don't underestimate the curves the ENCODER ITSELF can throw in. the encoder I had picked for me was a nice cheap quadrature encoder by Bourns.
ECW1D-C24-CC0024L . I was half expecting that this was the usual encoder output. It has 24 click/detents per revolution and I figured 1 edged change per click. Repeating a quadrature cycle 6 times in 360 degrees. < WRONG > I get 1 FULL QUADRATURE CYCLE per click. YES PER CLICK!.... So if things go weird - first make sure your encoder does what you expect. Sheeesh... I'm still fumbling around with the timer setting to see if I can get a count of 1 per click out of the TIMER counts (TIMx->CNT) but short of a manual coding of a single right bump ( little endian) I haven't found it yet. Suggestions? #encoder2016-07-05 02:09 PM
Input prescaler?
2016-07-05 02:16 PM
2016-07-05 02:30 PM