Sale!
A42A DC 5V Step Motor + ULN2003 Mini Stepper motor Drive Board 4-Phase 5-Wire

A42A DC 5V Step Motor + ULN2003 Mini Stepper motor Drive Board 4-Phase 5-Wire

KR-SRV0011

New

The Mini Stepper Driver is small size and easy to use. It used ULN2003 to amplify the control signal from the Arduino. The Drive voltage can up to 15v.

Description

The Mini Stepper Driver is small size and easy to use. It used ULN2003 to amplify the control signal from the Arduino. The Drive voltage can up to 15v.

 

Features

  • The most easy module to learn how to control the Stepper and finish the simple project.
  • The logic control voltage:3~5.5V
  • Motor Supply Voltage: 5~ 15V
  • it can sink 500mA from a 50V supply,but you'd better limit the driver voltage under 15v.
  • Operating temperature: -25 degree Celsius ~ +90 degree Celsius


HOW TO CONTROL STEPPER

Step motor is to a machine to convert pulse to angle displacement. So if you give stepper driver a certain pulse signal, it will drive step motor to a certain angle. you can control the angle the stepper moved by the number of the pulse. And you also can control the speed of the stepper rotate by the frequency of the pulse. The following picture is the schematic of the stepper driver.

Schematic.jpg

The following picture is the control signal to drive a 28BYJ48 stepper to rotate 1/4096 circle.

line12345678
red11111111
orange11000001
yellow01110000
pink00011100
blue00000111


So we defined the time series in a array

<br>byte CCW[8] = {0x09,0x01,0x03,0x02,0x06,0x04,0x0c,0x08};  //CouterClockWise
<br>byte CW[8]= {0x08,0x0c,0x04,0x06,0x02,0x03,0x01,0x09};    //ClockWise

and in the following usage it will run, and then you must know how to drive a stepper.


Usage

  • Stepper Control

This usage is to drive a 28BYJ stepper. The stepper stopped when pushed the stop_button. It also can be changed to control the stepper to counterclockwise or clockwise rotate. Connect 28BYJ step motor to mini stepper driver as below:

 

Program Arduino as following:

/***************************
This code is shared by elecrow.com
it is public domain, enjoy!
it is used to control 28BYJ stepper
it can be changed to control almost all the 4-wire or 5-wire stepper.
*************************/

/*
The time Series to control the stepper
--make your making more easy!
*/
byte CCW[8] = {0x09,0x01,0x03,0x02,0x06,0x04,0x0c,0x08};
byte CW[8] = {0x08,0x0c,0x04,0x06,0x02,0x03,0x01,0x09}; 

const int stop_key = 14;  //stop_button connect to Arduino-A0
byte  change_angle=64;  //change the parameter to change the angle of the stepper

void Motor_CCW()    //the steper move 360/64 angle at CouterClockwise 
{
  for(int i = 0; i < 8; i++)
  
    for(int j = 0; j < 8; j++)
    {
     if(digitalRead(stop_key)==0)
      {
      PORTB =0xf0;
      break;
      }
      PORTB = CCW[j];
      delayMicroseconds(1150);
    }    
}
void Motor_CW()  //the steper move 360/64 angle at Clockwise
{
  for(int i = 0; i < 8; i++)
  
    for(int j = 0; j < 8; j++)
    {
    if(digitalRead(stop_key)==0)
      {
      PORTB =0xf0;
      break;
      } 
      PORTB = CW[j];
      delayMicroseconds(1150);
    }
}

void setup()
{
  pinMode(stop_key,INPUT);
  digitalWrite(stop_key,HIGH);
  Serial.begin(57600);
  DDRB=0xff;
  PORTB = 0xf0;  
  for(int k=0;k<change_angle;k++) 
  {
  Motor_CCW();  
  }
 }

void loop()
{
 Motor_CCW();  //make the stepper to anticlockwise rotate
// Motor_LR(); //make the stepper to clockwise rotate
}

The connected stepper would rotate with a changing direction for this progam.

 

Resource

ULN2003 datasheet

No customer comments for the moment.

Write a review

A42A DC 5V Step Motor + ULN2003 Mini Stepper motor Drive Board 4-Phase 5-Wire

A42A DC 5V Step Motor + ULN2003 Mini Stepper motor Drive Board 4-Phase 5-Wire

The Mini Stepper Driver is small size and easy to use. It used ULN2003 to amplify the control signal from the Arduino. The Drive voltage can up to 15v.

Top