For anyone interested in Richard's code example and how it works, watch the video below.
The video shows most of what the code does. Thanks for sharing Richard.
csantex
For anyone interested in Richard's code example and how it works, watch the video below.
The video shows most of what the code does. Thanks for sharing Richard.
csantex
Thanks for testing it Richard. It was very strange to me.
Anyway, no other version exists. I did sign in to the site but no other version exists.
Ioannis
tried it on Arduino mega
@100uS it worked
@200uS its patchy
@400uS or longer its crap
conclusion , not much use but quaint
Warning I'm not a teacher
I tried to re-use Richards code, but I have encoder on PORTB.3 and PORTB.4 and not using button. I've changed enc_a to portb.4
and enc_b to portb.3, but I guess I also have to modify re = porta&12 ? to what it set?
its a simple binary mask used to select only the port pin data from the two pins of interestI've changed enc_a to portb.4 and enc_b to portb.3, but I guess I also have to modify re = porta&12 ? to what it set?
the mask value is 2 to power of enc_a.bit + 2 to power of enc_b.bit.
you also need to shift the data gathered into bits 0 and 1 for proper evaluation
Warning I'm not a teacher
Bookmarks