Stufin
Home Quick Cart Profile

YS-DIV268N-5A Hybrid Stepper Motor Driver 5A | Single Axis TB6600 0.2-5A Two Phase Hybrid Stepper Motor Driver Controller

Buy Now

Input Voltage

10-35V

Output Current

0.2-5A per phase

Microstep Resolution

Up to 128 microsteps per full step

Step Frequency

0-100 kHz

Control Interface

4-wire (DIR, STEP, EN, and GND)

Package Dimensions

36mm x 24mm x 14mm

Operating Temperature

-20C to 85C

Applications

The YS-DIV268N-5A Hybrid Stepper Motor Driver is suitable for use in a wide range of applications, including

CNC machines

3D printers

Robotics

Automation systems

Medical devices

Industrial control systems

Conclusion

The YS-DIV268N-5A Hybrid Stepper Motor Driver is a high-performance single-axis stepper motor driver controller that offers precise control, high accuracy, and reliability. Its compact design, high current rating, and adjustable VREF make it an ideal choice for a wide range of applications that require precise motor control.

Pin Configuration

  • YS-DIV268N-5A Hybrid Stepper Motor Driver 5A | Single Axis TB6600 0.2-5A Two Phase Hybrid Stepper Motor Driver Controller
  • Pin Description:
  • The YS-DIV268N-5A Hybrid Stepper Motor Driver has a total of 16 pins, divided into four rows of four pins each. Here's a detailed explanation of each pin:
  • Row 1:
  • 1. ENA (Enable): This pin is used to enable or disable the stepper motor driver. When ENA is high (logical 1), the driver is enabled, and when it's low (logical 0), the driver is disabled.
  • 2. DIR (Direction): This pin determines the direction of the stepper motor rotation. When DIR is high (logical 1), the motor rotates clockwise, and when it's low (logical 0), the motor rotates counterclockwise.
  • 3. PUL (Pulse): This pin is used to send the pulse signal to the stepper motor. The frequency and duration of the pulses determine the motor's speed and direction.
  • 4. GND (Ground): This pin is connected to the ground of the power supply and the microcontroller.
  • Row 2:
  • 1. VCC (Power Supply): This pin is connected to the positive terminal of the power supply (typically 12V to 24V).
  • 2. VM (Motor Voltage): This pin is connected to the voltage source for the stepper motor (typically 12V to 24V).
  • 3. A+ (Phase A Positive): This pin is connected to the positive terminal of Phase A of the stepper motor.
  • 4. A- (Phase A Negative): This pin is connected to the negative terminal of Phase A of the stepper motor.
  • Row 3:
  • 1. B+ (Phase B Positive): This pin is connected to the positive terminal of Phase B of the stepper motor.
  • 2. B- (Phase B Negative): This pin is connected to the negative terminal of Phase B of the stepper motor.
  • 3. RST (Reset): This pin is used to reset the driver when it's pulled low (logical 0). When RST is high (logical 1), the driver is in normal operation.
  • 4. NC (No Connection): This pin is not connected to any internal circuitry and can be left unconnected.
  • Row 4:
  • 1. SLEEP (Sleep Mode): This pin is used to put the driver in sleep mode when it's pulled low (logical 0). When SLEEP is high (logical 1), the driver is in normal operation.
  • 2. FAULT (Fault Detection): This pin is an output that indicates a fault condition, such as overcurrent or overheating, when it's pulled low (logical 0).
  • 3. CS (Chip Select): This pin is used to select the driver when it's pulled low (logical 0). When CS is high (logical 1), the driver is deselected.
  • 4. GND (Ground): This pin is connected to the ground of the power supply and the microcontroller.
  • Connection Structure:
  • To connect the YS-DIV268N-5A Hybrid Stepper Motor Driver to your microcontroller and stepper motor, follow these steps:
  • 1. Connect VCC and VM to the positive terminal of the power supply (typically 12V to 24V).
  • 2. Connect GND pins (four in total) to the ground of the power supply and the microcontroller.
  • 3. Connect ENA, DIR, and PUL to the corresponding output pins of your microcontroller.
  • 4. Connect A+ and A- to the positive and negative terminals of Phase A of the stepper motor, respectively.
  • 5. Connect B+ and B- to the positive and negative terminals of Phase B of the stepper motor, respectively.
  • 6. Connect RST to a digital output pin of your microcontroller or leave it unconnected if not needed.
  • 7. Connect SLEEP to a digital output pin of your microcontroller or leave it unconnected if not needed.
  • 8. Connect FAULT to a digital input pin of your microcontroller or leave it unconnected if not needed.
  • 9. Connect CS to a digital output pin of your microcontroller or leave it unconnected if not needed.
  • Important Notes:
  • Make sure to handle the driver and motor with care, as they can be damaged by static electricity or overheating.
  • Use a suitable power supply that can provide the required current and voltage for the motor and driver.
  • Ensure proper heat dissipation for the driver and motor to prevent overheating.
  • Consult the datasheet and user manual for specific configuration and programming requirements for your microcontroller.

Code Examples

YS-DIV268N-5A Hybrid Stepper Motor Driver 5A Documentation
Overview
The YS-DIV268N-5A is a hybrid stepper motor driver capable of driving two-phase stepper motors with a maximum current of 5A per phase. It is based on the TB6600 IC, a high-performance stepper motor driver with advanced features such as microstepping, overcurrent protection, and thermal protection.
Pinout
| Pin | Function | Description |
| --- | --- | --- |
| EN | Enable | Enable input for the driver (active high) |
| DIR | Direction | Direction control input for the stepper motor (high for clockwise, low for counterclockwise) |
| STEP | Step | Step input for the stepper motor (rising edge triggers a step) |
| VCC | Power | Power supply input (12-24V) |
| GND | Ground | Ground connection |
Connections
To use the YS-DIV268N-5A, connect the stepper motor to the motor output terminals (A+, A-, B+, B-), and connect the enable, direction, and step inputs to a microcontroller or other control device.
Microstepping
The YS-DIV268N-5A supports microstepping, which allows for smoother motion and higher precision. The microstepping mode can be set using the following pins:
| Pin | Microstepping Mode |
| --- | --- |
| M0 | Full step (1) |
| M1 | Half step (2) |
| M2 | Quarter step (4) |
| M3 | Eighth step (8) |
| M4 | Sixteenth step (16) |
Example Code
Arduino Example
This example demonstrates how to use the YS-DIV268N-5A to drive a stepper motor using an Arduino board.
```c++
const int STEP_PIN = 2;  // Step input pin
const int DIR_PIN = 3;   // Direction input pin
const int EN_PIN = 4;   // Enable input pin
void setup() {
  pinMode(STEP_PIN, OUTPUT);
  pinMode(DIR_PIN, OUTPUT);
  pinMode(EN_PIN, OUTPUT);
  
  digitalWrite(EN_PIN, HIGH);  // Enable the driver
}
void loop() {
  // Set direction to clockwise
  digitalWrite(DIR_PIN, HIGH);
  
  // Take 100 steps
  for (int i = 0; i < 100; i++) {
    digitalWrite(STEP_PIN, HIGH);
    delayMicroseconds(500);
    digitalWrite(STEP_PIN, LOW);
    delayMicroseconds(500);
  }
  
  // Set direction to counterclockwise
  digitalWrite(DIR_PIN, LOW);
  
  // Take 100 steps
  for (int i = 0; i < 100; i++) {
    digitalWrite(STEP_PIN, HIGH);
    delayMicroseconds(500);
    digitalWrite(STEP_PIN, LOW);
    delayMicroseconds(500);
  }
}
```
Raspberry Pi Example (Python)
This example demonstrates how to use the YS-DIV268N-5A to drive a stepper motor using a Raspberry Pi board.
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO pins
GPIO.setmode(GPIO.BCM)
STEP_PIN = 17
DIR_PIN = 23
EN_PIN = 24
GPIO.setup(STEP_PIN, GPIO.OUT)
GPIO.setup(DIR_PIN, GPIO.OUT)
GPIO.setup(EN_PIN, GPIO.OUT)
# Enable the driver
GPIO.output(EN_PIN, GPIO.HIGH)
while True:
    # Set direction to clockwise
    GPIO.output(DIR_PIN, GPIO.HIGH)
    
    # Take 100 steps
    for i in range(100):
        GPIO.output(STEP_PIN, GPIO.HIGH)
        time.sleep(0.0005)
        GPIO.output(STEP_PIN, GPIO.LOW)
        time.sleep(0.0005)
    
    # Set direction to counterclockwise
    GPIO.output(DIR_PIN, GPIO.LOW)
    
    # Take 100 steps
    for i in range(100):
        GPIO.output(STEP_PIN, GPIO.HIGH)
        time.sleep(0.0005)
        GPIO.output(STEP_PIN, GPIO.LOW)
        time.sleep(0.0005)
```
Notes
Make sure to adjust the step frequency and microstepping mode according to your specific stepper motor and application requirements.
 The YS-DIV268N-5A has built-in thermal protection, but it is still recommended to use a heat sink and ensure good airflow around the driver.
 Always follow proper safety precautions when working with high-voltage and high-current electrical systems.