[hw640] has put together a well written and detail packed explanation of how to interface with a digital rotary switch. These digital opto encoders have just two outputs with four possible logic ...
Whether it’s the satisfying snap of a high-quality switch or the buttery touch of ... than put up with the bump and grind of a cheap rotary encoder, he decided to find an alternative.
This library uses a PCF8575 to read the pulses of a rotary encoder. As a PCF8575 has 16 lines up to 5 decoders with a switch can be read over I2C. The PCF interrupt line can be used to detect changes ...
Img 3: Rotary Encoder on a Breadboard with three 10kΩ Pull-ups and a 100nF capacitor for debouncing of the switch. GPIO 5 & 6 are used for the rotation and GPIO 13 get's connected to the switch. Img 4 ...