# Rotary Encoder - 1024 P/R (Quadrature)

**URL:** <https://community.sparkfun.com/t/rotary-encoder-1024-p-r-quadrature/39141>\
**Category:** Raspberry Pi\
**Created:** [March 12, 2020, 5:25pm UTC](https://community.sparkfun.com/t/rotary-encoder-1024-p-r-quadrature/39141 "2020-03-12T17:25:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpkelly](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@jpkelly](https://community.sparkfun.com/u/jpkelly)\
**Post date:** [March 12, 2020, 5:25pm UTC](https://community.sparkfun.com/t/rotary-encoder-1024-p-r-quadrature/39141/1 "2020-03-12T17:25:21Z")

</div>

Can someone help with code/wiring to read the data from the Rotary Encoder - 1024 P/R (Quadrature) on a Raspberry Pi?

Python code etc…

Thank you!

---

<div class="post-metadata">

**Author:** ![TS-Brandon](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@TS-Brandon](https://community.sparkfun.com/u/TS-Brandon)\
**Post date:** [March 12, 2020, 5:45pm UTC](https://community.sparkfun.com/t/rotary-encoder-1024-p-r-quadrature/39141/2 "2020-03-12T17:45:37Z")

</div>

Hello jpkelly,

Unfortunately, while the community is free to help I just want you aware that SparkFun Technical Support is unable to give full code support for anything that we, ourselves, didn’t already write and publish for our products. That being said, this is a great question for the community.

I would recommend you look at the [[blog](http://www.hessmer.org/blog/2011/01/30/quadrature-encoder-too-fast-for-arduino-with-solution/) written by Dr. Rainer Hessmer. This uses Arduino C, but you can achieve a lot of the same functionality on the Raspberry Pi. You can use Python, but you can also use [[wiringPi](http://wiringpi.com/) for C/C++ development.

This is a cool product and I wish you the best of luck.]([http://wiringpi.com/](http://wiringpi.com/))]([Quadrature Encoder too Fast for Arduino (with Solution) – Dr Rainer Hessmer](http://www.hessmer.org/blog/2011/01/30/quadrature-encoder-too-fast-for-arduino-with-solution/))
