Programlama Kodları
//AÇIKLAMA
//Bu uygulamada Unipolar olan MITSUMI M42SP-7P step motorun kütüphane
//ile kontrolü sağlanmıştır.
#include <Stepper.h>
#define IN1 3
#define IN2 4
#define IN3 5
#define IN4 6
const int adim_sayisi = 48;
Stepper step_motor(adim_sayisi, IN2, IN4, IN1, IN3);
void setup()
{
step_motor.setSpeed(25);
}
void loop()
{
//bir yöne döndürme
step_motor.step(adim_sayisi);
delay(1000);
//diğer yöne döndürme
step_motor.step(-adim_sayisi);
delay(500);
}
Devre Şeması

0 comments:
Yorum Gönder