Rotary Encoder only increments #486
Unanswered
StephanBeutel
asked this question in
Q&A
Replies: 1 comment 7 replies
-
This is most likely caused by a hardware or wiring issue. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I want to build a midi controller for Ableton. Directly after starting the project I stuck, because the rotary encoder only increments the value. I can't decrement. So the turn direction is not mentioned.
I took the code from the example to start with:
I also can replicate it when using the USBMIDI_Interface. This is the output from the serial console, 7 outputs for each direction. I inserted a separator in between:
The only difference in each line is sometimes the Data2 value, depending on the turning speed.
Any ideas whats wrong? I tried different rotary encoders, which work fine on other projects.
I use an Arduino Nano 33 IoT and a KY-040 rotary encoder (https://www.az-delivery.de/products/drehimpulsgeber-modul).
Beta Was this translation helpful? Give feedback.
All reactions