Quote:
|
Originally Posted by Kashi Chan
just a thought, how fast can banner sensors pick up the white lines? cause today when we were testing it, didnt seem to pic up the lines well enough, a 8 in diameter wheel with a counter sticker that has...1cm think lines, 4 lines going across totaling up to 8 counts per revolution.
|
I don't know how fast the Banner sensor itself operates, but in the user_routines.c file, code is only executed every 26.2ms, which works out to 38 times per second. This is not fast enough to work with the vast majority of encoder applications. I would suggest either moving your code to user_routines_fast.c, or using Kevin Watson's encoder code (which is more accurate, but also more difficult to use and understand than your own code).