Setup: Adruino Uno R3, Adafruit Shield RV2.3 and 12VDC 15A power supply to the +/- on Shield with no jumper.
Stepper is a NEMA 17
• Motor type: Bipolar stepper
• Step angle: 0.067°
• Step accuracy: 5 %
• Recommended voltage: 12 V DC
NEMA-17 bipolar 4-wire with integrated planetary gearbox
• Holding torque: 30 kg·cm
• Gear ratio: 26 103⁄121:1
• Rated current: 1.7 A
Using the following code I can run the 28BYJ-48 micro-stepper motor with no issues. Runs smoothly forward and reverse.
#include <Wire.h>
#include <Adafruit_MotorShield.h>
#include “utility/Adafruit_MS_PWMServoDriver.h”
// Create the motor shield object with the default I2C address
Adafruit_MotorShield AFMS = Adafruit_MotorShield();
// Or, create it with a different I2C address (say for stacking)
// Adafruit_MotorShield AFMS = Adafruit_MotorShield(0x61);
// Connect a stepper motor with 240 steps per revolution (1.8 degree)
// to motor port #1 (M1 and M2)
Adafruit_StepperMotor *myMotor = AFMS.getStepper(240, 1);
void setup() {
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println(“Stepper test!”);
AFMS.begin(); // create with the default frequency 1.6KHz
//AFMS.begin(1000); // OR with a different frequency, say 1KHz
myMotor->setSpeed(10); // 10 rpm
}
void loop() {
Serial.println(“Single coil steps”);
myMotor->step(5000, FORWARD, SINGLE);
delay (10000);
myMotor->step(5000, BACKWARD, SINGLE);
delay (10000);
}
Now when I connect the NEMA17 it runs choppy…no matter what changes I make (which is limited to the RPM and Speed)…I cannot obtain a smooth rotation. I’ve changed the step type to double/micro/etc and still cannot obtain a smooth stepping rate…
Since 28BYJ stepper works fine and the NEMA is a 26:1 gear I would think that the same code would work and the step rotation would be further dampened by the gear head. I’m considering removing the gear head to test the stepper
Any advice would be greatly appreciated.