Page 1 of 1

Simple Rotary Encoder code

Posted: 03 December 2018, 15:18 PM
by rich
The file "encoder_one.bas" is a simple quadrature rotary encoder interface. It is easy to follow and works well.

The file "encoder_tst.bas" called the encoder_one function and displays the counter to the debug terminal.

Note the outputs from the rotary encoder are debounced with a RC filters and a 74HC14 schmitt trigger inverters.

This makes the rotary encoder code simple.

cheers,
Richard