ดูรายละเอียดเพิ่มเติมได้ที่ >>> Link
This product is a carrier board or breakout board for TI’s DRV8825 stepper motor driver; we therefore recommend careful reading of the DRV8825 datasheet (1MB pdf) before using this product. This stepper motor driver lets you control one bipolar stepper motor at up to 2.2 A output current per coil (see the Power Dissipation Considerations section below for more information). Here are some of the driver’s key features:
We also carry a DRV8824 stepper motor driver carrier that can serve as a direct substitute for the DRV8825 carrier when using lower-current stepper motors. The DRV8824 can only deliver up to 0.75 A per coil without a heat sink (1.2 A max with proper cooling), but it has larger current-sense resistors that allow for better microstepping performance than the DRV8825 carrier at low currents. The only way to tell our DRV8824 carrier apart from the DRV8825 carrier is by the markings on the driver IC; if you have a mix of the two, you might consider marking them (there is a blank square on the bottom silkscreen you can use for this). For lower-voltage applications, consider our pin-compatible DRV8834 carrier, which works with motor supply voltages as low as 2.5 V.
Example Code for Arduino with limit swith Homing
// Enable Pin >> You can use connect Signal GND.
// Limit SW >> it's use COMMON and NO.
const int dirPin = 5;
const int stepperPin = 2;
const int limit_sw = 9;
int buttonState = 1;
void setup() {
pinMode(dirPin, OUTPUT);
pinMode(stepperPin, OUTPUT);
pinMode(limit_sw, INPUT);
digitalWrite(limit_sw,HIGH);
digitalWrite(dirPin,HIGH);
while(buttonState == HIGH){
digitalWrite(stepperPin, HIGH);
delayMicroseconds(100);
digitalWrite(stepperPin, LOW);
delayMicroseconds(100);
buttonState = digitalRead(limit_sw);
}
}
void step(boolean dir,long steps, int delaySpeed){
digitalWrite(dirPin,dir);
delay(50);
for(int i=0;i<steps;i++){
digitalWrite(stepperPin, HIGH);
delayMicroseconds(delaySpeed);
digitalWrite(stepperPin, LOW);
delayMicroseconds(delaySpeed);
}
}
void loop(){
if(digitalRead(limit_sw) == HIGH){
step(false,5000, 100);
delay(10);
step(true,5000, 50);
delay(10);
}
if(digitalRead(limit_sw) == LOW){
step(false,6000, 100);
}
}
สอบถามสินค้าหรือต้องการใบเสนอราคาหรือใบกำกับภาษีโปรดติดต่อทางร้านก่อนสั่งซื้อครับผม
- ติดต่อผ่าน LINE ID : csanthanaboun
- เบอร์โทร 0909761799
หน้าที่เข้าชม | 332,811 ครั้ง |
ผู้ชมทั้งหมด | 120,848 ครั้ง |