loading

In this instructable I will teach you how to wire your stepper to run it with the arduino board.

You will need:

  • Arduino board (mine is uno)
  • Breadboard and wires
  • ULN2803 or ULN2003
  • PM55L-048-HP69 stepper
  • Power suply for stepper (I'm using a 19V 1A since this stepper works on 24V)

Step 1: Wiring

Using this tutorial, I was able to find the wiring of my stepper.

So, if you are using the example from the stepper library stepper_one Revolution

you have to wire this way:

A to digital pin 11

C to digital pin 10

B to digital pin 9

D to digital pin 8

I'm actually using the ULN2803, but the only diference is the 2803 have more pins to work with.

Step 2: The Code

Since we are workingh a 48 steps stepper, you have to change the line const int stepsPerRevolution =200;

for const int stepsPerRevolution =48; if you don't make this chage, it won't work.

-----------------------------------------------------------------------------------------------------------

#include <Stepper.h>

const int stepsPerRevolution = 48;

Stepper myStepper(stepsPerRevolution, 8,9,10,11);

void setup() {

// set the speed at 60 rpm: myStepper.setSpeed(60);

// initialize the serial port: Serial.begin(9600);

}

void loop() {

// step one revolution in one direction:

Serial.println("clockwise");

myStepper.step(stepsPerRevolution);

delay(500);

// step one revolution in the other direction:

Serial.println("counterclockwise");

myStepper.step(-stepsPerRevolution);

delay(500);

}

-----------------------------------------------------------------------------------------------------------

Now have fun with the code. It worked well within 10 to 180 rpm.

Good luck, hope you like it.

Step 3:

<p>guys this motor can be used with a 12 v power supllie and be used in a 3d printer. i have diagrams if any one need them. its a unipolar motor that cam be converted into bipolar servomotor.</p>
<p>sorry, i got confused, your fritzing diagram states different pinouts for the arduino than you write later.</p><p>eg; you said 'you have to wire this way: A to digital pin 8 - C to digital pin 9 - B to digital pin 10 - D to digital pin 11 but the illustration above states that it should go A-11 C-10 B-9 D-8. Witch one is it? thank you so much =D</p>
<p>i'm sorry for the mistake. and about this time you probably have figured it out by yourself. but the diference is the way it will turn. clockwise or counter clockwise. either way its going to work.</p>
<p>Ooo that's so cool, awesome job sharing your skills! Welcome to instructables!</p>
<p>thank you, I decided to share this because I coudn't find on the internet. so I get it by myself.</p>

About This Instructable

15,313views

26favorites

License:

More by gdai:Driving the pm55L-048-hp69 with Arduino 
Add instructable to: