Sketches: Rotary Encoder Module
Items you will need: Arduino development board such as this one Male to female dupont cables Rotary encoder module What does it do? This is basic example of how to read the state of a rotary encoder such as the KY040 Rotary Encoder Module (HCMODU0063). Pinout: 1…GND 2…+5V supply 3…SW connects pin to GND whebn…