11mm and 12mm rotary encoders?

fungus:

liudr:
I never programmed interrupt before but if you can program a timer in isr and have it trigger isr in 15 ms, will it work?

It might ... but the best way is not to use 'delay()' in your main loop so you don't need interrupts for periodic functions. Save the timers/interrupts for something useful.

delay() is the devil's function.

But the issues is with using encoders where interrupts can be very useful depending on the speed of the encoder is turning. How would one implement software contact debouncing using the user interrupt pins?

Lefty