# Stepper Motor rotating but vibrating

So my problem is that I have 3 steppers and using the Accel Library I tried to make them move simutanousley, first of all two steppers move at the same time then a third one continues to rotate,

However when I upload the code and the program starts running the steppers start to vibrate, like they are struggling to rotate and throughout the program the steppers will vibrate in place for a certain amount of time and then continue to rotate. Also as it is vibrating it is also counting those little movements as steps.

These steppers are rated 2.5 A and I am using a 12v power supply along with a motor controllers and arduino.

Here is the motor controller that I am using:

Here is the stepper that I am using:

Here is the code that I am using:

            // MultiStepper.pde
// -*- mode: C++ -*-
//
// Shows how to multiple simultaneous steppers
// Runs one stepper forwards and backwards, accelerating and decelerating
// at the limits. Runs other steppers at the same time
//
// Copyright (C) 2009 Mike McCauley
// $Id: MultiStepper.pde,v 1.1 2011/01/05 01:51:01 mikem Exp mikem$

#include <AccelStepper.h>

// Define some steppers and the pins the will use
AccelStepper stepper1(AccelStepper::FULL4WIRE, 5, 4, 3, 2);
AccelStepper stepper2(AccelStepper::FULL4WIRE, 9, 8, 7, 6);
AccelStepper stepper3(AccelStepper::FULL4WIRE, 13, 12, 11, 10);

void setup()
{
stepper1.setMaxSpeed(200.0);
stepper1.setAcceleration(200.0);
stepper1.moveTo(10000000);

stepper2.setMaxSpeed(300);
stepper2.setAcceleration(100.0);
stepper2.moveTo(600);

stepper3.setMaxSpeed(300);
stepper3.setAcceleration(100.0);
stepper3.moveTo(700);

}

void loop()
{
// Change direction at the limits

if (stepper3.distanceToGo() == 0)
stepper1.run();

stepper3.run();
stepper2.run();

}


if your steppters are rated at 2.5A you should be giving them as close to that as possible.

your driver circuit is severely underpowered for 3 motors, with one you are almost maxing out the driver and still only getting 2A.

if the stepper motors don't have enough voltage they will stutter and not go into the next step. (not enough force to overcome the magnetics)

Either buy a higher power controller (for all 3, 6-8A max output) or try running one in bridged mode to confirm the power issue.

also .3A power supply will not be able to power any of this.

get a 10w power supply at least for just the motor controller.

List of things that are required upgrades to function: ~12V, 4-6A power supply ~2A per channel motor controller. use the 300mA power supply for the microcontroller.

Good Luck!

I accidentally discovered AcclStepper Library last week and was keen to run multi-steppers. It all worked fine with me. I was using 3 L293Ds and Nema 17 steppers. If your ultimate aim is to run the motors , then you need not actually use any micro-controller.The Arduino and stepper drivers itself would do the needful. The code you mentioned is an example code from AcclStepper Library and should work fine. However are you using individual supplies for each stepper or not ? Generally these stepper work at any voltage between 5-30v ,and to be on safe side I use separate 12V supply for each motor. So make sure you have good enough supply.

• OOOHHHH okay because I used 12 volts for all three steppers, no wonder, because when I ran one stepper motor off of the arduino 5 volts it was running soomthley however with 12 volts for all it was vibrating alot, so with that being said my power supply should be 36v going to all three steppers right? so 12 volts for each or will that not work? – Redrachet2 Jan 3 '14 at 5:10
• by the way the previous powersupply I was using is a 12 volt wall adapter that converts 120 volts ac into 12 volts dc, can you recommend me a good powersupply? – Redrachet2 Jan 3 '14 at 5:17
• No, you don't add them up like that. If you have three motors wired in parallel then the power supply should be just 12V. What is the current rating on the wall adapter? – geometrikal Jan 3 '14 at 5:25
• the rating is 120v AC 60Hz 8w to 12V DC 300mA – Redrachet2 Jan 3 '14 at 6:04
• Since I was using L293ds , I was powering all the ICs with 12V supply (and not the steppers ) .I myself used a 12V power adaptor – thebugger Jan 3 '14 at 6:24