Tenho um drive DM556 conforme a imagem
E um motor de passo
Nemo 23
Com uma fonte de energia dc regulated power supply rps-305
driver DM556
Usando um arduino uno eu apenas queria o fazer ligar corretamente para usá-lo em um piloto automático porem sem sucesso na montagem e faze-lo ligar
.
O código que eu usei foi
//int reverseSwitch = 2;
int driverPUL = 6; // PUL- pin
int driverDIR = 7; // DIR- pin
int spd = A0; // Potentiometer
// Variables
int pd = 3000; // Pulse Delay period
boolean setdir = LOW; // Set Direction
void setup() {
pinMode (driverPUL, OUTPUT);
pinMode (driverDIR, OUTPUT);
}
void loop() {
digitalWrite(driverDIR,setdir);
digitalWrite(driverPUL,HIGH);
delayMicroseconds(pd);
digitalWrite(driverPUL,LOW);
delayMicroseconds(pd);
}