How To Control Motor wit buttons

Hi all,
i'm sorry i need your help.

This is the situation:

I want to built a circuit with a step motor and two button:
the motor turn clockwise until i click the button #1
after my click the motor turn counterclockwise until i press the buttn #2
after my click the motor turn clockwise until i click the button #1
and go on.......

This is what i have:
1 Arduino UNO
1 Motor Shield MR007-001.1
1 Motor 42BYGHW811
2 button DICGU SM3

Can someone help me on built the circuit and write the program?

I'm sorry but i'm totally inexpert in that kind of things, i have good manual skill.
I want to thank you in advance for any help

If You need more info just ask

TY and Best
Roberto

You need to post links to the datasheets for the devices. The model numbers don't mean anything.

Have a look at this Simple Stepper Code and at Stepper Motor Basics

...R

Thank You Robin2
here the datasheet of the component i have

1 Motor Shield MR007-001.1
http://www.microbot.it/documents/mr007-001_datasheet.pdf

1 Motor 42BYGHW811

2 button DICGU SM3

Thank You

That is a 2.5A 1.25ohm current-driven bipolar stepper, you cannot drive it with a L298
motor shield (which is voltage drive).

You may be able to drive it at about 60% nominal current with a DRV8825 or similar,
or at full current with a discrete stepper driver like a geckodrive.

Any stepper with winding impedance of the order of a few ohms is current driven.

If the windings were 40 ohms or so it would be a 12V voltage driven stepper (which
could be driven by an L298, but would be slow)

That is a standard microswitch. Just set the Arduino I/O pin to pinMode(pin, INPUT_PULLUP); and wire the switch so that when it is pressed it connects the pin to GND.

...R