asking for a code to control the linear motion

hi every one

im a new on Arduino , i made a linear motion with ( nema23 , arduino uno , a4988 ) and i nee a code to control with these features :

  • resting the stepper to the zero

  • controlling the speed using the potentmiter 5 kohm

  • using bush button to start moving

  • move the slider to forward 300 mm then stop

  • waiting for 10 seconds

  • return the slider back ( the zero point )

thanx..

  • the operation stop and waiting for the next bush button

What code have you written so far?

i nee a code

So, write some. This isn't a code-writing service.

PaulS:
So, write some. This isn't a code-writing service.

Or check out Gigs & Collaborations section here and pay someone to write it for you.

Also here

Stepper basics.
Basic stepper code.