Motorshield v2: stepper motors are stuttering

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
goehrick
 
Posts: 2
Joined: Sun Apr 03, 2022 6:48 am

Motorshield v2: stepper motors are stuttering

Post by goehrick »

Hey guys,

I am a beginner and face a problem with my motor shield v2 and the wired stepper motors. When I tried running different sketches where the motor is moved but never runs smooth.

I used the StepperTest sketch from examples. Can someone please tell me what I am doing wrong because I have no clue.

https://youtu.be/36QIgg-d-28

motor:
https://www.amazon.de/gp/product/B01LES ... UTF8&psc=1

Code: Select all

#include <Wire.h>
#include <Adafruit_MotorShield.h>
#include "utility/Adafruit_PWMServoDriver.h"

Adafruit_MotorShield AFMS = Adafruit_MotorShield();
Adafruit_StepperMotor *myMotor = AFMS.getStepper(200, 2);

void setup() {
  Serial.begin(9600);
  Serial.println("Stepper test!");
  AFMS.begin();
  myMotor->setSpeed(20);
}

void loop() {
  Serial.println("Single coil steps");
  myMotor->step(100, FORWARD, SINGLE);
  myMotor->step(100, BACKWARD, SINGLE);

  delay(1000);

  Serial.println("Double coil steps");
  myMotor->step(100, FORWARD, DOUBLE);
  myMotor->step(100, BACKWARD, DOUBLE);

  delay(1000);

  Serial.println("Interleave coil steps");
  myMotor->step(100, FORWARD, INTERLEAVE);
  myMotor->step(100, BACKWARD, INTERLEAVE);

  delay(1000);

  Serial.println("Microstep steps");
  myMotor->step(50, FORWARD, MICROSTEP);
  myMotor->step(50, BACKWARD, MICROSTEP);
}
Image
Image

Regards Yannic

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: Motorshield v2: stepper motors are stuttering

Post by adafruit_support_bill »

Based on the motor specs, the motor you are using is intended for use with a current limiting driver. It is not compatible with the shield.

https://learn.adafruit.com/all-about-st ... he-stepper

User avatar
goehrick
 
Posts: 2
Joined: Sun Apr 03, 2022 6:48 am

Re: Motorshield v2: stepper motors are stuttering

Post by goehrick »

adafruit_support_bill wrote:Based on the motor specs, the motor you are using is intended for use with a current limiting driver. It is not compatible with the shield.

https://learn.adafruit.com/all-about-st ... he-stepper
Thank you, what motor works directly with the shield?

User avatar
adafruit_support_bill
 
Posts: 88096
Joined: Sat Feb 07, 2009 10:11 am

Re: Motorshield v2: stepper motors are stuttering

Post by adafruit_support_bill »

The #324 motor in the store is a good match for the shield: https://www.adafruit.com/product/324

We do have a current-limiting stepper driver that would work with your existing motor here: https://www.adafruit.com/product/3297
But it is limited to a 10.8v maximum supply voltage.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”