I am new in the arduino-forum to get help for my next project. Therefore I would control 4 stepper motors, 2 servo motors and 4 LEDs. If it is possible I would use therefore my arduino uno, of course with a shield.
But here is my problem, I do not have a lot of experiences with that.
Those are low-impedance motors and really need a specialized stepper driver to work properly. The motor requires 1.68 amps which is too much for an A4988 stepper driver but will probably work OK with a Pololu DRV8825 driver as it can provide a bit more current.
So I will first go with on motor and one drive to "play" with it.
A quick question:
I have two motors who have to run the same amount of steps and also the same speed all the time, but only in different directions ( if motor A run clockwise for 200 steps, at the same time motor B has two run counter-clockwise for 200 steps).
Can I control this two motor with the same pins, only changing the wires of the coil ? And also with the same stepper driver ? (to save money and output-pins on the Arduino)
knomax:
Can I control this two motor with the same pins, only changing the wires of the coil ? And also with the same stepper driver ? (to save money and output-pins on the Arduino)
In general each motor needs its own stepper driver.
I believe it is possible to run 2 motors from one driver if the motors are connected in series - that is electrically one after the other rather than side by side. I don't know whether it is possible to make the motors go in opposite directions when wired like that, but I suspect it should be.
You can certainly connect two stepper drivers to the same Arduino I/O pins.
Thanks Robin2.
First, I will go with a stepper driver per motor. And for the question about the opposite directions, I will try.
Also, thanks nielay for your post.
But as I understand with this motor shield I can only run two stepper motors and two servo motors per shield. But I have no other possibility to run other stuff like LEDs or switches. Maybe I am wrong ?
knomax:
But I have no other possibility to run other stuff like LEDs or switches. Maybe I am wrong ?
I don't have one of those shields but I suspect you are wrong. I imagine that there will be several I/O pins that are not used for either the stepper motors or the servos and would be available for LEDs and switches.
I suspect Adafruit publishes a schematic for the shield which you can study.
I am by no means certain but it looks as if I/O pins 0 to 7 are not used by the shield. Pins 0 and 1 are used for Serial which leaves you free to use Pins 2 to 7 - if I am correct.