I've been using Karl-Heinz firmware on my tester.
But today I felt I should try Markus firmware on it, however I can't get the encoder to behave properly.
I have tried setting "ENCODER_PULSES" to 1,2 & 4 but it moves erratically.
If I am very careful moving one indentation while in PWM mode it will count 2 steps no matter what I set "ENCODER_PULSES" to.
That is to say one indentation seems to correspond to two pulses.
If I however turn it at a "normal slow" speed it will go very fast, probably due to the double signals?
My encoder has 24 physical indentations or steps which I've set in "ENCODER_STEPS"
What can I do to troubleshoot this further, any more info I can provide?
Out of curiosity I bought a new Bourns PEC11R-4215F-S0024 encoder, the securing legs where a little bit too wide but I snipped them down and then it fits well.
I have attached a couple screenshots, first the original Chinese encoder that was included with the kit for my unit.
Then I tried adding 100pF 0603 SMD NP0 capacitors between the legs of the A/B signals and ground to it as this is recommended in the datasheet of the Bourns encoder.
Then I changed to the Bourns encoder but I did not add the capacitors to it.
You can see that the Chinese one is just crazy: some of the indentation steps are not 90 degrees apart but more like 0 degrees or even maybe negative!
So no wonder it did not work well, I had kept the firmware I compiled back when I made the above post and it now behaves perfectly with this new encoder!
Madires: would you like that I send you this encoder? Because I have used it with Karl-Heinz firmware all this time with very little issues...
If not it will go in the trash because that is where my oscilloscope says it belongs!
