redpeppery
Member
Hello,
I want to start moving a stepper motor that I just bought, but I have no experience and I can't move forward with my project.
I have this configuration
http://eu.stepperonline.com/1-axis-...driver-cnc-mill-router-lathe-robot-p-410.html
http://eu.stepperonline.com/switchi...or-cnc-router-kits-115v230v-s35060-p-178.html
and a teensy 3.2
I power up my power supply and wire to the stepper driver. Then I wire the stepper motor to the driver.
I wire the pulse + and the dir + pins of the stepper driver to teensy vin pin.
Then I wire pulse - and the dir - of the stepper driver to teensy 8 and 9 pin.
I've try to use this code, but nothing happen on the driver output to motor. I measure the A+, A-, B+, B- on the driver and there is no output voltage.
I don't know if I set the switches right on the stepper driver also.
Please help me to make my motor alive .
#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();
}
I want to start moving a stepper motor that I just bought, but I have no experience and I can't move forward with my project.
I have this configuration
http://eu.stepperonline.com/1-axis-...driver-cnc-mill-router-lathe-robot-p-410.html
http://eu.stepperonline.com/switchi...or-cnc-router-kits-115v230v-s35060-p-178.html
and a teensy 3.2
I power up my power supply and wire to the stepper driver. Then I wire the stepper motor to the driver.
I wire the pulse + and the dir + pins of the stepper driver to teensy vin pin.
Then I wire pulse - and the dir - of the stepper driver to teensy 8 and 9 pin.
I've try to use this code, but nothing happen on the driver output to motor. I measure the A+, A-, B+, B- on the driver and there is no output voltage.
I don't know if I set the switches right on the stepper driver also.
Please help me to make my motor alive .
#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();
}