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 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:
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:
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:
Question:
Does anyone know what the problem is?
What can be done?
Hopefully someone can help me out