January 18, 2013 AT 8:00 am

Rotary Encoder Library for the Raspberry Pi #piday #raspberrypi @Raspberry_Pi

Handy resources for the rotary encoder I/O class in the py-gaugette library, featuring our Monochrome 128×32 I2C OLED graphic display and Rotary Encoder, shared by the Gaugette project:

The encoder I’m using is a 2-bit quadrature-encoded rotary encoder, available from Adafruit. The datasheet is here.

The documention for this encoder says that it gives 24 pulses per 360° rotation, which I interpreted to mean 24 resolvable positions, but after trying it I see that it has 24 detent positions, and between each detent is a full 4-step quadrature cycle, so there are actually 96 resolvable steps per rotation. This unit also includes a momentary switch which is closed when the button is pushed down. Takes a solid push to close the switch….

Read more.

RotaryPi

Related

No Comments

No comments yet.

Sorry, the comment form is closed at this time.