hello
i have got a code for my project but i cannot find or think where i would need to incorporate my limit switches into the circuit due to most sources use stepper motors, any advice or articles of code to help me incorporate 2 limit switches into my code i have for 3 no push buttons one being clock wise , one being anti clock wise and one being a stop. any way incorporating the limit switches into the code of end points of clockwise and anticlock wise.
many thanks
Why does nobody ever read the advice that they are directed to when they first log in ?
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
Read and pay attention to replies #2 and #3.
Your code sends an order to go to a certain position. When that is done execution continues and limit switches could be checked.
You need to split that into moving the servo in small steps, checking the switches before every little step.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.