I have two midibox seqv4s built with the encoders listed in the Wilba CS BOM and have not been satisfied with the encoders (PEC16-4220F-N0024). They are not very precise - sometimes jump two settings (changing half way through rotation) and sometimes not changing (behaiour appears slightly different depending on CW or CCW). I have tried all DETENTED[n] options (n=1-5) in the config file. I’ve looked at the datasheet and the quadrature timing looks slightly odd. I’ve seen comments on the forum raising issues about them but not seen any obvious resolution other than to use different encoders.
Has anyone found any settings (debounce etc) that work or has anyone made and software changes that accommodate these encoders any better than the current options? (If not, I’ll take a look at the code and see if I can find anything). Thank a lot.
Encoders that skip or double-step like that are often down to the quadrature signal edges being slow or bouncy rather than the DETENTED setting itself. If you have a scope or logic analyser, it is worth checking whether the A/B edges are clean once the pull-ups and any RC filter on the encoder inputs are taken into account. A small capacitor (around 10 nF) from each of A and B to ground sometimes cleans these up a lot, and the behaviour differing between CW and CCW would fit an asymmetric phase offset in that part.
Thanks a lot - they are brand new. I have used caps (10n - 100n) before on encoders but was wondering if there was something else going on with these particular ones, or if there was any specific debouncing code that was more applicable to them… part of the reason for my question was that the docs for the timing for DETENTED2 don’t match the datasheet for these and none of the other ones seem to be more appropriate.
Looking at the BOM for the wilba CS it doesn’t look like there is any hardware filtering on them.
I’ll investigate further but may just drop some 10n 0603 caps on the terminals and see if it helps, as it’s trivially quick to do…
Thanks for the reply.