The rotary encoder module is an angular measuring device. It is used to precisely measure the 24-steps rotation of knob that can turn infinitely (with no end stop like a potentiometer has). The rotary encoder module also has a pushbutton when you press on the axis (like the ones used for navigation on many music controllers).
Arduino sketch:
int val; int encoder0PinA = 3; int encoder0PinB = 4; int encoder0Pos = 0; int encoder0PinALast = LOW; int n = LOW;
Fill in your delivery details to check available shipping options and calculate rates for this product.
Total delivery fee for your order, you can find in cart.