Hello
I have decided to fix an issue with a MIDI controller that I built a few years ago as the output of the encoders have always been very jittery. I am using a teensy 2.0 with 3 encoders attached to pin 4,5,6,7,8and9.
To test my encoders I uploaded on the board the "Two Knobs" example sketch (from Paul Stoffregen encoder.h library), only changing the first two lines to match the pins of two of my encoders:
Encoder knobLeft(4, 5);
Encoder knobRight(6, 7);
unfortunately I keep getting a very poor output when turning the knobs, numbers are not increased in a regular fashion. Please see below the output for one turn of the encoder (same happen when turning the right knob). From what I can see on the library web page this is not the expected output. I would be grateful to receive some advice. Thanks!
output when turning left knob one notch:
Left = 1, Right = 0
Left = 0, Right = 0
Left = 1, Right = 0
Left = 0, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 1, Right = 0
Left = 2, Right = 0
Left = 3, Right = 0
Left = 4, Right = 0
Left = 3, Right = 0
Left = 4, Right = 0
Left = 3, Right = 0
Left = 4, Right = 0
Left = 3, Right = 0
Left = 4, Right = 0
Left = 3, Right = 0
Left = 4, Right = 0
Left = 3, Right = 0
Left = 4, Right = 0
Left = 3, Right = 0