How to run 2 stepper motors with arduino uno and n-channel mosfet

If you look at the picture, i need motor 1 to turn about 45 degrees, then the motor 2 to rotate continuously for about 5 seconds. then motor 1 needs to go back 45 degress (to its original spot).

I have never used an arduino and this is for my senior project
I need code
i also need help with setting up my breadboard
please help!

i also have a relay

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 .

Thanks.. Tom... :slight_smile:

ryanmichaelis90:
If you look at the picture,

There is no picture. See this Simple Image Guide

i need motor 1 to turn about 45 degrees, then the motor 2 to rotate continuously for about 5 seconds. then motor 1 needs to go back 45 degress (to its original spot).

You need to tell us what sort of motors you are using (post links to their datasheets) and also tell us how your Arduino can tell when the motor has rotated 45 degrees.
Sorry, I missed the fact that stepper motors are mentioned in the title.

...R

How to run 2 stepper motors with arduino uno and n-channel mosfet

You don't. You use a real stepper motor driver.

I agree with @PaulS - use a specialised stepper motor driver. It will make everything much simpler.

These links may help
Stepper Motor Basics
Simple Stepper Code

...R