Arduino project with Drv8825 and stepper motor Nema 17 -- 2

Job ID: 33701443

Budget: £10 – £20 GBP

I am looking for some help on a gripper application I have. I am using a NEMA17 stepper motor with drv8825 and Arduino Nano.

Here is what I need:

Home the gripper open to a micro switch on power up and wait for run input. When the switch is pressed
and not released, the motor should make the travel forward 800 steps and reverse 800 steps and stop while touching the home switch.
The circuit should wait until I press again the "run" button to go forward to close the gripper and reverse again to home switch. I need it to travel a specific distance. I only need the .ino file for this.