need help trying to use stepper motor

Hi i really would like some help with this project im doing i dont know how to code it or wire it.

What i want to do is have 2 push buttons and when i push one button the stepper motors turns X amount of degrees right, and when i push the other button it turns X amount of degrees left.

im new to arduino so sorry, and help would be appreciated the photo is the stepper motor i have.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

OPs Stepper.

Thanks.. Tom.. :slight_smile:

TomGeorge:
Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

OPs Stepper.

Thanks.. Tom.. :slight_smile:

Hi I dont have a circuit for it and i dont have any code for it as i dont know how to do that with this. i was asking if anyone could show me a diagram of how to do that, and show me how to code it

The Arduino reference pages on this site is always a good place to start.

Stepper - Arduino Reference

Suggested approach:

  1. read up on some starter tutorials. Get Blink working (that's Arduino's "hello world" program - it teaches you also how to actually get software onto the Arduino, and basically confirms that the basics are all working).
  2. read up on how to connect buttons. Get one button to switch and off the internal LED.
    2a) get one button to switch that LED on, the other to switch it off.
  3. read into stepper motors and how to wire them.
  4. get the motor to turn in both directions by a number of steps.
  5. combine 2) and 4), replacing the LED code with stepper code.

This is a quite simple project, but it'll teach you a great deal on how the Arduino works. Sounds like a great first project to me.