I am using THISmotor and THIS motor shield but having problems getting them to play ball.
The Adafruit page gives clear instructions to get it working with their shield but I'm struggling to translate that to the R3 shield I have. I have cut the VIN on my shield and have a consistent 12V 4A supply going to the board, but the motor still seems to jump.
Does anyone here have this combination working and if so would you mind sharing the order of your wiring (A+- and B+-) and the pin assignments i.e. Stepper myStepper(stepsPerRevolution, 3,11,12,13);
For reference HERE is a video of what mine is currently doing, apologies for the image not sure what happened there.
Thank-you Robin, I'll check that out! I got it working with the Arduino Stepper example program, but my program still messes with it so I think I must have a conflict somewhere.
EDIT: D'oh just had conflicting pin assignments in my program. Need to pay more attention!
I also have huge problems with this combination. Did you solve the problems?
Regards
Hendrik
shogran:
Hi guys,
I am using THISmotor and THIS motor shield but having problems getting them to play ball.
The Adafruit page gives clear instructions to get it working with their shield but I'm struggling to translate that to the R3 shield I have. I have cut the VIN on my shield and have a consistent 12V 4A supply going to the board, but the motor still seems to jump.
Does anyone here have this combination working and if so would you mind sharing the order of your wiring (A+- and B+-) and the pin assignments i.e. Stepper myStepper(stepsPerRevolution, 3,11,12,13);
For reference HERE is a video of what mine is currently doing, apologies for the image not sure what happened there.
I have big problems with the performance as you can see in this video: - YouTube
I want to realize a motorized camera slider but even with a 12V motorcycle battery the motor is so weak, that a simple touch stops it. My code looks like this:
#include <Stepper.h>
int pinPWM_A = 3;
int pinPWM_B = 11;
int pinDir_A = 12;
int pinDir_B = 13;
Stepper motor(200, pinPWM_A , pinPWM_B, pinDir_A , pinDir_B);
void setup() {
motor.setSpeed(100);
digitalWrite(pinPWM_A, HIGH);
digitalWrite(pinPWM_B, HIGH);
}
void loop() {
motor.step(100);
}
When I change the steps or the speed the motor doesn't turn around. Instead it makes crazy sounds.
Is it possible that the motor is broken? Or am I doing something terribly wrong?
You should use AccelStepper, not Stepper, since if you don't ramp the speed it will miss-step.
You won't get much speed from a high-impedance voltage-driven stepper motor. 200rpm is
pushing it.
With an H-bridge like that you are forced to use full or half steps - no microstepping, so once
again it will be very likely to miss-step at certain speeds as it hits a resonance. Microstepping really
helps reduce this effect.
For high performance you want a low-impedance motor and a current-driver (aka chopper driver) like
the DRV8825 or A4988.