i have a ongoing project where i have a home Micro-switch and a retract Micro-switch i would like to have some assistance in getting a startup Routine where the motor has to hit the home Switch at startup and then step down enough to release the home switch. i do have diagrams of the project and using the AccelStepper library .. any help on this would be great thank you
Why a stepper motor ?
Code for these is often blocking making a slightly harder project - you need to step a bit , check the switch repeat until it trips the switch .
With a normal geared motor you just drive in a direction until the limit switch operates. ( either directly or via a digital input ).
“ if contact closed power motor , else drive in other direction etc etc “
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.