mtrudel / rotary_breakout

A simple rotary encoder breakout board

Home Page:https://oshpark.com/shared_projects/ICPLLnfp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rotary Breakout

A simple breakout board for PEC11 rotary encoders (as sold by Adafruit).

Designed to be paired with a 4 pin JST header

Pinouts in the above image from top to bottom are:

  • Ground
  • A (quadrature trigger)
  • B (quadrature direction)
  • Z (button press)

Usage Guide

If you're new to rotary encoders, their use can be non-obvious. The typical approach I take is to:

  1. Set up pullup resistors on both pins A and B.
  2. Set up an edge triggered GPIO monitor on pin A, looking at rising edges only.
  3. When you see a rising edge on A, immediately read the value of B. If it's high, you just rotated clockwise. If it's low, you just rotated counter-clockwise.

Available at OSH Park

License

MIT

About

A simple rotary encoder breakout board

https://oshpark.com/shared_projects/ICPLLnfp