Hello, I have Aurdino Uno board with stepper motor and driver. I want to run the stepper motor like following way. can you guide me how to make program?
Process.
Start button then motor will going to HOME position. once its reach limitswitch then its stop.
start second button then motor will start rotating on forward after when it reach second limit switch then it will start rotate on revers potion.
Above step in the loop and work continues like this.
It will be easier to help if you start by making an attempt to do it yourself. If you run into a problem please post the program and tell us in detail what it actually does and what you want it to do that is different. It will make it much easier to focus on the parts you need help with rather than wasting time on things that you can do.
Generally homing a stepper motor is done by moving step by step towards the limit switch checking the state of the switch between each step.