arduino due ve drv8825 entegresi ile nema 17 step motor sürerken takılıyor.

bilalirdem

Üye
Katılım
7 Ağu 2018
Mesajlar
3
Puanları
1
Yaş
28
Başlıkta belirttiğim gibi elimde arduino due var drv8825 entegresi ile nema 17 step motor sürmeye çalışıyorum, ancak üzerine yük bindiği zaman takılıyor hereket etmiyor ama sanki çalışıyormuş gibi ses gelmeye devam ediyor.

aşağıdaki kodlarla bu işlemi yapıyorum.
// define pin used
const int stepPin = 9;
const int dirPin = 8;

void setup() {
// set the two pins as outputs
pinMode(stepPin,OUTPUT);
pinMode(dirPin,OUTPUT);

}

void loop() {
digitalWrite(dirPin,HIGH); //Enables the motor to move in a perticular direction
// for one full rotation required 200 pulses
for(int x = 0; x < 5000; x++){
digitalWrite(stepPin,HIGH);
delayMicroseconds(1000);
digitalWrite(stepPin,LOW);
delayMicroseconds(1000);
}
delay(3000); // delay for one second


digitalWrite(dirPin,LOW); //Enables the motor to move in a opposite direction
// for three full rotation required 600 pulses
for(int x = 0; x < 5000; x++){
digitalWrite(stepPin,LOW);
delayMicroseconds(1000);
digitalWrite(stepPin,HIGH);
delayMicroseconds(1000);
}
delay(3000); // delay for one second
 

Forum istatistikleri

Konular
127,956
Mesajlar
913,902
Kullanıcılar
449,606
Son üye
rasit.

Yeni konular

Geri
Üst