ilium007

Results 82 comments of ilium007

Came back to this after it running overnight, fwd/rev clicks as expected. 15min later it reverts to the behaviour described above. Within minutes, no hardware change or REPL reset it...

The callback sets the threadsafeflag and the synchronous method runs to process the canbus message. When I put a `print(time.ticks_us())` at the start and end of that function it takes...

The state table approach that I forked and modified here does not exhibit this same behaviour. https://github.com/MicroTechAU/micropython-rotary I added this line to `_transition_table = [` `[_R_CW_2, _R_START, _R_CW_1, _R_START |...

Thanks for your dedication! I’m just trying to get a rotary encoder to work for a control panel. I see so many consumer products with rotary encoders and not running...

The code pasted above in pastebin is what I’ve been testing with except for the div=4

So I just tested the bare Mike Teachman example code and the encoder runs without fault, never ever a skipped click and fwd / rev works without issue. ``` import...

You can see fro the above the the clockwise to anticlockwise rotation is a different state sequence but it is handled

Where you using any hardware debouncing at all?

This is turning clockwise to 100 and back again: ``` Running encoder test. Press ctrl-c to teminate. 4 4 8 4 9 1 8 -1 9 1 12 3 14...

This is with div=4 and delay reduced to 25ms in encoder.py - worked faultlessly. Could my issues be related to another class in my code causing issues. I am running...