HY-DIV268N-5A Stepper Motor NEMA 23 with Arduino mega / UNO




HY-DIV268N-5A is is a PWM chopper-type single-chip bipolar sinusoidal micro-step stepping motor driver. 2-phase bipolar-type stepping motor can be driven by only clock signal with low vibration and high efficiency. Suitable for drive Two-phase stepping motor dynamic voltage 12V to 48V, the maximum drive current is less than 5A and having outer diameter of 35 to 86 mm.

This drive uses the current loop subdivision control, the motor torque ripple is very small, low-speed running is very smooth. High-speed torque is much higher than other two-phase drives, high positioning accuracy. Widely used in the engraving machines, CNC machine tools, packaging machinery and other high resolution requirements on the device. NEMA17, NEMA23, NEMA24 and NEMA34 stepper motors work perfectly with this HY-DIV268N-5A Stepper Driver.

- average current control, two-phase sinusoidal current drive output
- DC 12 ~ 48V power supply, the internal integration of 12V and 5V regulator
- optically isolated signal input / output
- overvoltage, undervoltage, overcurrent, and white short-circuit protection
- Input voltage DC 12 ~ 48V input
- The input current of 1 to 5 amps, select the drive a stepper motor.
- Output current of 0.2A ~ 5A
- Temperature Operating Temperature -10 to 45 C; Storage temperature -40C to 70C
- Humidity not condensing, not drops
- Gas prohibit combustible gas and conductive dust

Arduino Sketch



// defines pins numbers
const int dirPin  = 3;
const int stepPin = 4; 
const int enPin   = 5;
void setup() {
  
  // Sets the two pins as Outputs
  pinMode(stepPin,OUTPUT); 
  pinMode(dirPin,OUTPUT);

  pinMode(enPin,OUTPUT);
  digitalWrite(enPin,LOW);
  
}
void loop() {
  
  digitalWrite(dirPin,HIGH); // Enables the motor to move in a particular direction
  // Makes 200 pulses for making one full cycle rotation
  for(int x = 0; x < 1600; x++) {
    digitalWrite(stepPin,HIGH); 
    delayMicroseconds(500); 
    digitalWrite(stepPin,LOW); 
    delayMicroseconds(500); 
  }
  delay(1000); // One second delay

  digitalWrite(dirPin,LOW); //Changes the rotations direction
  // Makes 400 pulses for making two full cycle rotation
  for(int x = 0; x < 1600; x++) {
    digitalWrite(stepPin,HIGH);
    delayMicroseconds(1000);
    digitalWrite(stepPin,LOW);
    delayMicroseconds(1000);
  }
  delay(1000);
  
}

ความคิดเห็น

  1. A nema 23 stepper motor is a stepper motor with a 2.3 x 2.3 inch (58.4 x 58.4 mm) faceplate. Its size is only a coarse indication of its power.

    ตอบลบ
  2. Could you change the speed dynamically with a pot? like this example: https://www.arduino.cc/en/Tutorial/MotorKnob ?

    ตอบลบ

แสดงความคิดเห็น