Shaft encoders

Ah, you have calls to Serial.print in an interrupt handler? That's definitely not going to help. you might be in the handler for many milliseconds.