I’m trying to create a system which would allow users to pick an option using a knob. The issue I’m encountering is that my rotary encoder is not changing values linearly for every “click”. The values seem to be in the range of 1-7 for every click of the rotary encoder.
The solution I’ve come up with to solve this is to listen for interrupts. Thus, when a click is detected it would wait 1 second before allowing arduino to listen to another interrupt, but I’m not sure how to go about this.
The main aim is to allow the user to switch between options every second.
Refer to attachment for my current version of the code
Thanks for reading through my first post!
Potentiometer-optionChoice_2.ino (2.09 KB)