rotary encoder strange behavior (too many datas) #5060
Replies: 1 comment
-
Posted at 2022-09-25 by Mrbbp It matchs 4 time for 1 step Posted at 2022-09-25 by Mrbbp i've corrected my pb with an ugly trick but it works as i need.
Posted at 2022-09-27 by Mrbbp no more answer than mine... okay it's not really interesting, nevermind... there is a glitch in the lib... and my attempt is not 100% efficient. a better idea than mine? regards éric Posted at 2022-09-28 by @gfwilliams Sorry - I thought from the above that you may have sorted it... Espruino does actually include the ability to monitor a pin in a setWatch, so that may help you:
I notice you're doing a Posted at 2022-09-28 by Mrbbp Thanks Gordon é. Posted at 2022-09-28 by Mrbbp Hello @gordon regards é. Posted at 2022-09-29 by @gfwilliams That is strange... Do the pins need pullups? Maybe swap Usually in an encoder, when one pin changes state, the state of the other pin determines the angle. But in this case I guess because we were reacting on both edges of A5, we'd just end up adding and subtracting from Posted at 2022-09-30 by Mrbbp OK thank you @gfwilliams the final solution was the pull_up
the value increases and decreases according to the rotation. é. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-09-25 by Mrbbp
Hello,
i'm playing with a rotary encoder a big MYSM60-100PPRR-5L with the example given
but the console is populated with too many answer for 1 step.
console return for 1step backward
and
for 1 step forward...
what i'm doing badly?
Beta Was this translation helpful? Give feedback.
All reactions