Driving the Pm55L-048-hp69 With Arduino

33,402

33

13

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:

Be the First to Share

    Recommendations

    • Pi Day Speed Challenge

      Pi Day Speed Challenge
    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Microcontroller Contest

      Microcontroller Contest

    13 Comments

    0
    JohnU37
    JohnU37

    3 years ago

    im using 12v and my uln2003 heats up like crazy after 20 seconds of turning. whyy?

    0
    khaleed250250
    khaleed250250

    Reply 3 months ago

    Also me
    Are you solve it ?

    0
    med.hallouz
    med.hallouz

    Question 9 months ago

    i'm working with pm55l through arduino and l293d shield (bipolar 12v), but the torque is low, if using uln2003, the torque will be increased? thanks

    0
    PauloA13
    PauloA13

    5 years ago

    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.

    0
    Revolverkiller
    Revolverkiller

    Reply 2 years ago

    I just pulled 2-3 of these from a canon collator that i didnt need. well they're similar to yours. #PM55l-048-ZYP4. it has 6 wires instead of your 5 wires. anything you got to use this in a printer would be appreciated.

    0
    PauloF68
    PauloF68

    Reply 3 years ago

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

    Thanks a lot buddy.

    0
    PauloA13
    PauloA13

    Reply 3 years ago

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

    0
    FidelD1
    FidelD1

    Reply 3 years ago

    I'm interested too!! if you could send me some info I would be thankful.

    I'm trying to learn how to control stepper motors with a cnc shield v3 and a a4988 driver.

    Thanks!

    0
    PauloF68
    PauloF68

    Reply 3 years ago

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

    0
    JeronimoS
    JeronimoS

    5 years ago on Introduction

    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

    0
    gdai
    gdai

    Reply 5 years ago on Introduction

    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.

    0
    gdai
    gdai

    Reply 6 years ago on Introduction

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