Author Options:

more than two stepper motors using Adafruit Motor Shield, possible? Answered

I have three stepper motors (Sparkfun ROB-10848) that I wanted to control.
I have already had an Arduino Mega 2560 and an AdaFruit Motor Shield V2: How could I connect all these steppers so to control them using Arduino Mega?
Thank you,


Buy a second motor shield and stack them. The shield is desinged to be stacked so you can control more than 2 motors. Check the Adafruit site for details.

sure that makes sense. But for now I took out the shield and connected the stepper directly to the Arduino. Now, It was working for a while; but I am not sure if it was the correct operation. And then stopped after a while. I am using the setup as below:



I then re-powered the board and then started playing with the potentiometer; and it seems like the motor started working again. Could you tell me what the issue may be?


If your using an h-bridge it's not connected directly to the arduino. In this case you've made your own controller.

If you've double checked your wiring then the problem is in your code.

Hello, and Thank you

it actually worked...basically using the pot as a knob

but now I would like to change the application to make the stepper sweeping back and forth, am I able to do this using the same setup? I know that the pot and h-bridge are probably not needed for sweeping. but if I want to control each stepper independently I need to remove the connections from H-bridge and directly connect them to Arduino, am i correct? to which pins though?

thank you.

You will still need the H-bridge but you'll need one per stepper. If you take this much further your just going to be making another motor shield like the one you already have.

OK, now if you have three H-Bridges with the Arduino, how would you connect them? which pins do you use?

And would there be a sample code for that available?

Thank you,