# Using rotary encoder

**URL:** <https://discourse.nodered.org/t/using-rotary-encoder/29775>\
**Category:** General\
**Created:** [9 July 2020 10:21 UTC](https://discourse.nodered.org/t/using-rotary-encoder/29775 "2020-07-09T10:21:04Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [9 July 2020 12:54 UTC](https://discourse.nodered.org/t/using-rotary-encoder/29775/9 "2020-07-09T12:54:43Z")

</div>

This thread might help

> [@KY040 rotary encoder - counting within NR](https://discourse.nodered.org/t/ky040-rotary-encoder-counting-within-nr/2548/6):
>
> Hello Colin - Sorry I didn't mention the stepper motor node - it was an afterthought. Anyway I'm pleased to say that the node pythonshell and a neat little piece of python code ([https://www.raspberrypi.org/forums/viewtopic.php?t=140250](https://www.raspberrypi.org/forums/viewtopic.php?t=140250)) has solved my problem. I now have the rotary encoder connected directly to the Raspberry Pi with a limit of 0-100 (perfect for PWM control on a rpi\_gpio\_out node. I appreciate your suggestions and will see if I can make that a more suitable solution. Rod

---

_[View the full topic](https://discourse.nodered.org/t/using-rotary-encoder/29775)._
