
This is a really nice instructable about using a PIC to read the direction of rotation from a digital rotary switch. I like the idea of dialing in a variable, instead of using button.
The objective for this Instructable is to illustrate how to interface a digital (quadrature coded) rotary switch with a microcontroller. Don't worry, I'll explain what quadrature coded means for us. This interface and the accompanying software will allow the microcontroller to recognize the direction of rotation for each move from one detent to another.
In the Maker Shed:
![]()

Make: Arduino



































