Page 1 of 1

Python Get a value when limit switch is reached

Posted: Tue Aug 27, 2019 5:16 am
by sbaake
I have a problem with detecting if my limit switch is reached. I'm using the python library roboclaw.py.
The error led goes red when my limit switches are reached but when i use the ReadError command I don't get a useful value. The value is all the time (0,0) whether the claw moves or reached its final position.

Is there an other way to check if the limit switch is reached? I read the documentation and thought it should work with reading the error state.

Re: Python Get a value when limit switch is reached

Posted: Tue Aug 27, 2019 9:56 am
by Basicmicro Support
1. Make sure you have the latest python library from the site. I recommend downloading it again.
2. Please show a simple example program that exhibits the problem so I can check your code and run the example myself.

Re: Python Get a value when limit switch is reached

Posted: Mon Sep 02, 2019 2:15 am
by sbaake
Thank you. The simple issue was that the used version of the roboclaw.py was an old one and an update solved the problem.