Stepper Motor - Problem (SOLVED)

Dear Arduino community

I am doing a project involving two DC motors and one stepper motor.

To control the motors I have this kind of Arduino motor shield: Adafruit Motorshield v2.3

I began trying the motor shield with NEMA 17 stepper motor (Nema 17 Stepper Motor) and it worked smoothly, no problem what so ever.

Then I got a stepper motor from Minebea Motor (Minebea Stepper Motor) and I am unable to make that one work with the motor shield.

Motor specifications (I have got the BA version):

Below you can see the winding diagram and the switching sequence of the motor.


(Figure 1: Winding diagram)


(Figure 2: Switching sequence)

This is my current setup (Figure 4) to the Arduino motor shield where (see reference to the winding diagram and switching sequence):

A=4,B=3, notA=6 , notB= 1:


(Figure 3: Wiring)


(Figure 4: Current setup)

As you can see the current setup is 4 6 3 1. I’ve also tried this setup:
3 1 4 6
1 3 6 4
6 4 1 3
3 4 1 6
1 4 3 6
6 4 3 1
Obviously the configuration that gives ++ -- does not move the motor like: 3 4 1 6.
The code I am running is the example code given for stepper motors.

#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); 
  AFMS.begin;  
  myMotor->setSpeed(10);  // 10 rpm   
}
void loop() {
  myMotor->step(100, FORWARD, SINGLE); 
}

I’ve tried to change steps and also the speed to various numbers and also various stepping configurations the motor still behaves strange.

You can see on the following video how my motor responds when initializing the program:

Stepper Motor Test

The motor shield is connected to external power supply and you can see how the current and voltages are unstable, The motorshield supports 12V DC and I've applied 11.7V:

Unstable source

Question:

Does anyone know what the problem is?
What can be done?

Hopefully someone can help me out

Hi,
Check the resistance of the motor windings, I think one is about 34 Ohms the other around 5 Ohms.
.
Tom... :slight_smile:

TomGeorge:
Hi,
Check the resistance of the motor windings, I think one is about 34 Ohms the other around 5 Ohms.
.
Tom... :slight_smile:

Hi Tom

thank you for your reply.

I measured the resistance of the coils and they are 1.6 Ohms.
I am a beginner at this field and I would appreciate if you have some more information on this topic.
Also what does the resistance tell me in this matter?

ps. I also measured the coils resistance of the Nema 17 stepper motor, the resistance was 34.2 Ohms and 33.4 Ohms

Those are very different motors. One requires a current of 0.35 amps and the other requires 1.1 amp. And because the winding resistances are very different they require completely different voltages to achieve those currents.

In your Original Post you say you have two DC motors as well as the stepper motor. Leave the Motor Shield to control the DC motors and get yourself a specialized stepper driver for the stepper motor. For example, a Pololu A4988 should be suitable for either stepper motor. It will make life so much simpler.

There is more background info in stepper motor basics.

...R

Robin2:
Those are very different motors. One requires a current of 0.35 amps and the other requires 1.1 amp. And because the winding resistances are very different they require completely different voltages to achieve those currents.

In your Original Post you say you have two DC motors as well as the stepper motor. Leave the Motor Shield to control the DC motors and get yourself a specialized stepper driver for the stepper motor. For example, a Pololu A4988 should be suitable for either stepper motor. It will make life so much simpler.

There is more background info in stepper motor basics.

...R

Thank you for the reply.

I only have to use the motor shown in the Figures which requires 1.1A at 1.76V.
To my understanding the motor shield is unable to deliver 1.1A at 1.76V to the therefore the motor acts like in the video.

I ask you, is there any possibility to use this motorshield to power the motor or do I always have to buy a new stepper motor controller?

Can I adjust the current to the motor by some arduino coding to make it compatible with the motor?

Again thank you for your help.

LiljarM:
I ask you, is there any possibility to use this motorshield to power the motor or do I always have to buy a new stepper motor controller?

While your motor has a nominal voltage of 1.76v it would be normal to drive it with 12v or 24v. And that is why you need a specialized stepper driver because it can be set to ensure the current limit of 1.1amps is not exceeded.

Trying to drive it at 1.76v is just a waste of time even if the motor shield would do it.

Stepper motors are very different from DC motors.

...R

Low resistance steppers like this are always current-driven, never voltage driven. A chopper
driver generates current drive by dc-dc conversion using the motor winding as the
inductance, you need something like the DRV8825 or A4988 driver for this motor.

Thank you Robin2 and MarkT

I was able to get A4988 driver and the motor works perfectly.