#[SOLVED] Rotary encoder extra input in reverse direction
1 messages · Page 1 of 1 (latest)
bump
Is there a resolution sort of setting in the qdec driver? Symptom sounds like resolution is too low
after doing a bit of searching, i haven't found any https://docs.zephyrproject.org/latest/samples/sensor/qdec/README.html.
i have steps set to the number of detents, 24. when i rotate one detent, it registers 1 UP or DOWN. but when rotating multiple detents it'll often behave in the way described in the OP
steps is typically not the number of detents. It is usually 2x or 4x the number of detents, depending on the internal resolution of the encoder
i'll try 2x and 4x the detents. the resolution on the part datasheet is 24ppr
setting steps to 96 appears to have done the trick. thanks again 🙇♂️
if anyone stumbles across this issue in the future, the encoder i'm using is PEC12R-4220F-S0024