Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Issue with Rotary Encoder Device in Moode 9
#3
(05-19-2024, 10:43 PM)Tim Curtis Wrote: Could be a bug.

See if the driver is running:
Code:
pgrep rotenc.py

If it's running and there is no response from the encoder then further debugging is required, however I don't have a device on hand that has an encoder wired in so someone else will need to help out.

I used the command pgrep rotenc.py but did not receive any output. When I searched for and executed rotenc.py, I received the following error message:

Code:
Traceback (most recent call last):
 File "/var/www/daemon/rotenc.py", line 170, in <module>
   main()
 File "/var/www/daemon/rotenc.py", line 61, in main
   GPIO.add_event_detect(pin_a, GPIO.BOTH, callback=encoder_isr) # NOTE: bouncetime= is not specified
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Failed to add edge detection
Reply


Messages In This Thread
RE: Issue with Rotary Encoder Device in Moode 9 - by thestreamdigger - 05-19-2024, 11:23 PM

Forum Jump: