https://github.com/johntalton/rotaryencoder
Rotary Encoder
https://github.com/johntalton/rotaryencoder
24-pulse-encoder gpio mqtt onoff rotary statemachine
Last synced: 2 months ago
JSON representation
Rotary Encoder
- Host: GitHub
- URL: https://github.com/johntalton/rotaryencoder
- Owner: johntalton
- License: mit
- Created: 2017-07-14T07:50:00.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-06-20T08:01:16.000Z (about 2 years ago)
- Last Synced: 2025-06-06T20:41:29.349Z (about 1 year ago)
- Topics: 24-pulse-encoder, gpio, mqtt, onoff, rotary, statemachine
- Language: JavaScript
- Homepage:
- Size: 1.87 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rotary Encoder
Simple knob control. Good for simple step up / step down rotation where center point is reset on power.
[](https://www.npmjs.com/package/@johntalton/RotaryEncoder)



[](https://www.npmjs.com/package/@johntalton/RotaryEncoder)

[](https://packagequality.com/#?package=@johntalton/RotaryEncoder)
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](https://www.adafruit.com/product/377)
## 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.
