TB6600_Stepper_Motor_Driver_SKU__DRI0043-DFRobot

DRI0043 TB6600 Stepper Motor Driver

Introduction

TB6600 arduino Stepper Motor Driver is an easy-to-use professional stepper motor driver, which could control a two-phase stepping motor. It is compatible with Arduino and other microcontrollers that can output a 5V digital pulse signal. TB6600 arduino stepper motor driver has a wide range power input, 9~42VDC power supply. And it is able to output 4A peak current, which is enough for the most of stepper motors. The stepper driver supports speed and direction control. You can set its micro step and output current with 6 DIP switch. There are 7 kinds of micro steps (1, 2 / A, 2 / B, 4, 8, 16, 32) and 8 kinds of current control (0.5A, 1A, 1.5A, 2A, 2.5A, 2.8A, 3.0A, 3.5A) in all. And all signal terminals adopt high-speed optocoupler isolation, enhancing its anti-high-frequency interference ability. As a professional device, it is able to drive 57, 42-type two-phase, four-phase, hybrid stepper motor.

Note: this is a upgrade version of TB6600 Stepper Motor Driver.

Features

Specification

Quick Start

In this section, we'll show you how to use TB6600 arduino motor driver quickly. More detail could be found on the User Guide.

Rquirements

Connection Diagram

DRI0043 Arduino TB6600 Stepper Motor
  1. In this tutorial, we'll use a bipolar stepper motor, 1.8 step angle, 1.7A
  2. Set current: 1.7A
  3. Set Micro Step: 32
  4. Connect a 9~42V DC power supply

Up: OFF; Down: "ON"

Sample Code

/*!
 * @file  DRI0043.ino
 * @brief TB6600 arduino Stepper Motor Driver is an easy-to-use professional stepper motor driver, which could control a two-phase stepping motor.
 * @copyright  Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com)
 * @license  The MIT License (MIT)
 * @author  DFRobot
 * @version  V1.0
 * @date  2023-08-03
 */

int PUL=7; //define Pulse pin
int DIR=6; //define Direction pin
int ENA=5; //define Enable Pin
void setup() {
  pinMode (PUL, OUTPUT);
  pinMode (DIR, OUTPUT);
  pinMode (ENA, OUTPUT);

}

void loop() {
  for (int i=0; i<6400; i++)    //Forward 5000 steps
  {
    digitalWrite(DIR,LOW);
    digitalWrite(ENA,HIGH);
    digitalWrite(PUL,HIGH);
    delayMicroseconds(50);
    digitalWrite(PUL,LOW);
    delayMicroseconds(50);
  }
  for (int i=0; i<6400; i++)   //Backward 5000 steps
  {
    digitalWrite(DIR,HIGH);
    digitalWrite(ENA,HIGH);
    digitalWrite(PUL,HIGH);
    delayMicroseconds(50);
    digitalWrite(PUL,LOW);
    delayMicroseconds(50);
  }
}

Result

The stepper motor rotates 6400 steps (a cycle), and reverses 6400 steps (a cycle).

Comments

FAQ

Q&A Some general Arduino Problems/FAQ/Tips
A For any questions, advice or cool ideas to share, please visit the DFRobot Forum.

More Documents

User Guide V1.2

DFshopping_car1.png Get TB6600 Arduino Stepper Motor Driver from DFRobot Store or DFRobot Distributor

Turn to the Top