STARTING A PROJECT - Step motor, ultra som sensor, rfid, bluetooth and gsm

Hello there,

it's been a while since my last try with the arduino board, 2 years precisely. So I'm getting in trouble with my program.

First of all I'd like to make a step motor 5 pins turn whenever I press a button and when I press the button again I want it to come back to the same position...and only turn when I press, if I don't it must keep stuck stopped waiting to someone press.

Doing that thing I'll try to make the motor works with other buttons. and keep the project...one step by step.

First press: the motor goes
second press: it comes back to the "waiting position".

Thank you all!!
I hope someone help me

If you want help the first thing is to post the code you already have and an explanation of how it behaves.

The next thing is to provide a link to the datasheet for your stepper motor and tell us what stepper motor driver you are using.

And also tell us what power supply you are using for your stepper motor (volts and amps)

You may find some useful stuff in stepper motor basics.

...R

write the code, try it and then show us the code with the problems!