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


“D is for Diode” – Circuit Playground Episode 4 is out now! CLICK HERE TO WATCH!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!



No Comments

No comments yet.

Sorry, the comment form is closed at this time.