(SKU:RB-01C047)Easy Driver Stepper Motor Driver

From ALSRobot-Wki
Jump to: navigation, search
RB-01C047.jpg

Contents

Product overview

Harbin robotebase officially became the United States in 2013 the first big electronic open source hardware giant Sparkfun regional agents in China. Cixin EasyDriver Stepper Motor Driver for the new Sparkfun original installation import Stepper Motor drives, its easy to use, can be with any 0 to 5 v please short-circuit SJ2 (3 v) pulse signal of the equipment. EasyDriver through access to 7 to 30 v voltage to the motor power supply, and can be almost any move slowly into the motor drive. EasyDriver on-board regulator chip can be set to 3.3 V or 5 V, can be directly connected to the 4 wire stepper motor controlled by microcontroller precise stepper motor motion. Note: the electric drive, please do not connect or disconnect the motor. This will result in permanent damage A3967 chips.

specification

  1. Drive chip:A3967
  2. MS1 and MS2 foot is used to control the motor subdivision (2, 4, 8), the default is 8 segments
  3. Compatible with any voltage line 4, 6, 8 stepper motor
  4. Adjustable current control
  5. 7 to 30 v power input range, the higher the voltage, high speed when the torque is higher

Method of use

Application of routine

Stepper motor control

Connection diagram

RB-01C0471.jpg

sample code

int dirpin = 2;
int steppin = 3;

void setup() 
{
pinMode(dirpin, OUTPUT);
pinMode(steppin, OUTPUT);
}
void loop()
{

  int i;

  digitalWrite(dirpin, LOW);     // Set the direction.
  delay(100);


  for (i = 0; i<4000; i++)       // Iterate for 4000 microsteps.
  {
    digitalWrite(steppin, LOW);  // This LOW to HIGH change is what creates the
    digitalWrite(steppin, HIGH); // "Rising Edge" so the easydriver knows to when to step.
    delayMicroseconds(500);      // This delay time is close to top speed for this
  }                              // particular motor. Any faster the motor stalls.

  digitalWrite(dirpin, HIGH);    // Change direction.
  delay(100);


  for (i = 0; i<4000; i++)       // Iterate for 4000 microsteps
  {
    digitalWrite(steppin, LOW);  // This LOW to HIGH change is what creates the
    digitalWrite(steppin, HIGH); // "Rising Edge" so the easydriver knows to when to step.
    delayMicroseconds(500);      // This delay time is close to top speed for this
  }                              // particular motor. Any faster the motor stalls.

}

Application effect

This code to control the step motor easydriver board, make it forward and backward rotation.

Products related to recommend

Buy address:[1]
relevant data1:Schematic diagram

relevant data2:Stepper motor data sheet

relevant data3:easydriver Web site

relevant data4:Arduino Tutorial Portuguese

relevant data5:bildr tutorial

relevant data6:Quick start guide

Personal tools
Namespaces

Variants
Actions
Navigation
Tools