Skip to content

johntalton/RotaryEncoder

Repository files navigation

Rotary Encoder

Simple knob control. Good for simple step up / step down rotation where center point is reset on power.

npm Version GitHub package.json version CI GitHub Downloads Per Month GitHub last commit Package Quality

Uses spec defined state machine to validate control and give accurate and consistant output (see bellow).

Also includes push down / up button functionality (click like events)

Adafruit Rotary Encoder

client

simple mqtt client to stream a set of encoder event

dependency

onoff currently used.

state machine

implementation uses a simple state machines as seen below with events of CW CCW RCW and RCCW.

encoder states