10-35V
10-35V
0.2-5A per phase
Up to 128 microsteps per full step
0-100 kHz
4-wire (DIR, STEP, EN, and GND)
36mm x 24mm x 14mm
-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.
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.