Stepper Motor - Arduino

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,180
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 18, 2009

I used a LM2008A transistor array to drive this motor. Power supply was an PC power supply 5v (red). A 1 ohm resistor was in place between the Vcc and the shared (Common) stepper wire...

Stepping Sequence was:
Black, Red, Blue, Green


This is a Applied Motion Products Stepper Motor:


Part Number: 44A50177
2.3 Volts
2.3 Amps
60oz Torque
*************SOURCE CODE*****************

//Author = RileyPorter [at] gmail.com
//This was a small test to see if I could get this motors stepping
//The current is around 500ma so stopping these motors is VERY easy however
//I just wanted to see if they would step.

int coilPin11 = 11; //These are the pins connected to the output of the
int coilPin10 = 10;//lm2008a in the order of how your motor steps
int coilPin09 = 9; //
int coilPin06 = 6; //
int speed = 2 //This sets the delay between steps which is basically your Speed.

void setup()
{
pinMode(coilPin11, OUTPUT);
pinMode(coilPin10, OUTPUT);
pinMode(coilPin09, OUTPUT);
pinMode(coilPin06, OUTPUT);
}

void loop()
{
digitalWrite(coilPin06, HIGH); //sets this coil on
delay(speed);//speed
digitalWrite(coilPin06, LOW); //sets that coil to off

digitalWrite(coilPin09, HIGH); //etc
delay(speed);
digitalWrite(coilPin09, LOW); digitalWrite(coilPin10, HIGH);
delay(speed);
digitalWrite(coilPin10, LOW); digitalWrite(coilPin11, HIGH);
delay(speed);
digitalWrite(coilPin11, LOW);

}

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (Rileyporter)

  • I mis-spoke in the video. The yellow wire puts out about 4.4Amps the red wire (5v) puts out around 1.2Amps.  Sorry.

see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • Why are you using a 1ohm resistor? I'm kinda new with this so please excuse my stupidity

    Also is there a reason for using that other chip instead of only the arduino? What does it do?

  • @ebutuou123: anything is anything.

  • can you use any stepper motors in an arduino? Or only certain ones?

  • Hi...tnx for share...I working in a joule thief charger that uses one big transistor, the Q is this transistor array chips like ULN2803A can be conected in series? It can be conected like a standart transistor using just 3 legs of the chip CBE or need special conection? can I make a darlinton pair with 2 2n3904?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more