Ho provato a testare il singolo motore con arduino, utilizzando la libreria AccelStepper, ho fatto i collegamenti seguendo lo schema in allegato(ovviamente adattato al driver che ho io, ho collegato ad arduino STEP,DIR E GND), e ho utilizzato questo sketch:
Codice:
#include <AccelStepper.h>
// Define a stepper and the pins it will use
AccelStepper stepper(1, 9, 8);
int pos = 3600;
void setup()
{
stepper.setMaxSpeed(3000);
stepper.setAcceleration(1000);
}
void loop()
{
if (stepper.distanceToGo() == 0)
{
delay(500);
pos = -pos;
stepper.moveTo(pos);
}
stepper.run();
}
Ma purtroppo niente, il motore non si muove
C'è qualche altro sistema per testare il motore ?