I have an Adafruit Motor Shield v1 and I also bought a Stepper motor - NEMA-17 size - 200 steps/rev, 12V 350mA (https://www.adafruit.com/products/324). And I also bought 5 larger Steppers Model Code: 17HS8401, 4-lead, Nema17, 78Oz-in (52 N/cm), 1.8A, Phase Resistance 1.8Ohm,
I am using a 12V 2A Power Supply for these tests.
I am using this sketch for testing. The stepper turns at a constant speed.
Code: Select all
// ConstantSpeed.pde
// -*- mode: C++ -*-
//
// Shows how to run AccelStepper in the simplest,
// fixed speed mode with no accelerations
// Requires the AFMotor library (https://github.com/adafruit/Adafruit-Motor-Shield-library)
// And AccelStepper with AFMotor support (https://github.com/adafruit/AccelStepper)
// Public domain!
#include <AccelStepper.h>
#include <AFMotor.h>
AF_Stepper motor1(200, 2);
// you can change these to DOUBLE or INTERLEAVE or MICROSTEP!
void forwardstep() {
motor1.onestep(FORWARD, SINGLE);
}
void backwardstep() {
motor1.onestep(BACKWARD, SINGLE);
}
AccelStepper stepper(forwardstep, backwardstep); // use functions to step
void setup()
{
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("Stepper test!");
stepper.setSpeed(50);
}
void loop()
{
stepper.runSpeed();
}
Problem 1 with Stepper bought from Adafruit:
The stepper turns, but..
Is it normal for the Stepper bought from Adafruit to get really hot? Because it does. Should I do something different?
Problem 2 with the 17HS8401 Stepper:
The stepper does not turn. It just wiggles a few nanometers. And the IC2 gets really, really hot. I am guessing that, if I let it plugged in, the IC3 would fry. I tested all 5 steppers with different wiring configurations.
Any ideas what I should do?
Note: It says that the wiring for the 17HS8401 Stepper is as follows Red: A+ Green: A- Yellow: B+ Blue: B-
Thank you for looking into this,
ygreq