Hey folks,
I’ve got an https://easyelecmodule.com/product/ec11 ... er-module/(5 pins, blue version), that I’m wiring up to a Raspberry Pi. It’s supposed to help me fine-tune settings on a project, but I’ve hit a snag:
Every turn makes the counter jump unpredictably, sometimes it’s a single detent per click, but other times it’s multiple or erratic. Occasionally, touching the metal chassis or grounding a nearby part makes the readings change. It’s throwing off my logic big time. From what I’ve read, these budget encoders can be noisy mechanically and prone to bounce, which I think might be what’s happening here, too
Setup details:
Using GPIO inputs with pull_up_down=GPIO.PUD_UP. Debounce set via software, but it doesn’t help when turning fast. I’m on Raspberry Pi OS, reading the encoder with Python and interrupts.
Do I need real resistors (like 10 kΩ) on CLK/DT lines instead of relying only on internal pull-ups? Has anyone used a cheap EC11 encoder cleanly on a Pi—what’s your debounce strategy? Could external filtering or low-pass caps help tame this jitter, or should I try a better-quality module?
Would appreciate any thoughts or tried-and-true tricks to get stable and accurate encoder readings!
Cheers,
Jordan
I’ve got an https://easyelecmodule.com/product/ec11 ... er-module/(5 pins, blue version), that I’m wiring up to a Raspberry Pi. It’s supposed to help me fine-tune settings on a project, but I’ve hit a snag:
Every turn makes the counter jump unpredictably, sometimes it’s a single detent per click, but other times it’s multiple or erratic. Occasionally, touching the metal chassis or grounding a nearby part makes the readings change. It’s throwing off my logic big time. From what I’ve read, these budget encoders can be noisy mechanically and prone to bounce, which I think might be what’s happening here, too
Setup details:
Using GPIO inputs with pull_up_down=GPIO.PUD_UP. Debounce set via software, but it doesn’t help when turning fast. I’m on Raspberry Pi OS, reading the encoder with Python and interrupts.
Do I need real resistors (like 10 kΩ) on CLK/DT lines instead of relying only on internal pull-ups? Has anyone used a cheap EC11 encoder cleanly on a Pi—what’s your debounce strategy? Could external filtering or low-pass caps help tame this jitter, or should I try a better-quality module?
Would appreciate any thoughts or tried-and-true tricks to get stable and accurate encoder readings!
Cheers,
Jordan
Statistics: Posted by Jordan1x — Fri Sep 05, 2025 5:42 am