KY040 rotary encoder - counting within NR

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) 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

1 Like