Introduction: Driving the Pm55L-048-hp69 With Arduino

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:

Comments

author
PauloA13 made it!(author)2016-01-07

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.

author
PauloF68 made it!(author)2017-04-25

I dont know if you still follow.. but yes.. can you send me the notes please.
pauloafcosta@yahoo.com.br

Thanks a lot buddy.

author
PauloA13 made it!(author)2017-04-25

i have to look in my old files , what is the info that you need ..

author
PauloF68 made it!(author)2017-04-25

Any extra info about this motor interests me. :)
What the benefits to convert to bipolar.

author
JeronimoS made it!(author)2015-07-19

sorry, i got confused, your fritzing diagram states different pinouts for the arduino than you write later.

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

author
gdai made it!(author)2015-09-03

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.

author
MsSweetSatisfaction made it!(author)2015-01-12

Ooo that's so cool, awesome job sharing your skills! Welcome to instructables!

author
gdai made it!(author)2015-01-13

thank you, I decided to share this because I coudn't find on the internet. so I get it by myself.

About This Instructable

16,701views

27favorites

License:

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