-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EC11 encoder does not work as expected #2666
Comments
This is usually a symptom of your steps/triggers-per-rotation set incorrectly. You should find those values from the datasheet of your encoder. If you can't, you can count |
I am not sure the exact relation between data sheet numbers on detents and pulses vs. steps/triggers, I think detents should be triggers at least. The repo has a couple keyboards with |
Thanks for your suggestion, I made the changes as you suggested but when I rotate the encoder it does not give any output |
Maybe I found the problem. When I changed an encoder (both So I guess ZMK currently has a problem reading the data of the encoder with 15 pulses and 30 detents. |
I wonder if the encoder you have is exactly the Alps encoder you are checking in the datasheet; there are plenty of EC11s from Alps, Bourns and no-name manufacturers, which can have different underlying specs. The 20/80 certainly seems the most common set of parameters from what I've seen. |
I created a new
arm
andshields
and placed them in the folder corresponding tozmk \ app \ boards
, then compiled them. However, I found that the encoder was not working properly. No matter how I rotated it, the encoder alternately triggered[CW_KEY]
and[CW_KEY]
. That is to say, if[CW_KEY]
was triggered during the first rotation, the next one must be[CCW_KEY]
; Has anyone encountered a similar situation before? Please help me, thank you very much!This is the complete code file :code.zip
This is the log information I received:
Here are my and
JansnRF52.overlay
file:Here are my and
JansnRF52.keymap
file:The text was updated successfully, but these errors were encountered: