Running 5 nema 17 stepper motors with arduino uno r3 and p8n extenders

So, im not someone who knows that much about electronics, like at all, so explain it to me like im 5.

My question is- Can i control 5 nema 17 stepper motors with an arduino uno r3? here's the specifics:

Motors: 40mm NEMA17 Stepper Motor (JK42HS40-1704) | 1.8 degrees 2 Phase 4-wire Stepper Motor

Stpper motor driver: a4988 with heat sink(those little red ones)

Board: Arduino uno r3

Power supply: Electronic Spices 12v 1a Dc Power Supply Adapter With 5.5mm X 2.5mm Male Plug Pin Connector

Pin extender: IDUINO PCF8574T PCF8574 IO Expansion Board I2C IO Expander Module I/O Expander I2C-Bus Evaluation Development Module

Im connecting all of this with a bread board, now please tell me if i can control 5 nema 17 stepper motors with an arduino uno r3. Im trying to avoid buying a arduino mega cause i want to keep the costs low. Thanks...

Breadboards are designed for temporary experiments with low power logic circuits and cannot handle motor current. The tracks will burn, so all motor leads and power must be wired separately (with soldered connections or screw terminals).

You need 10 digital pins for 5 STEP & DIR control inputs, so no need for a port expander.

The A4988 can handle at most 1 Ampere current per motor winding, so be sure to set the current limit to that or less.

Get one motor working by itself, before moving on.

Short answer, yes. Shortest useful answer, see post #4.

But, do you also need LEDs, limit switches, obstacle sensors, or other "stuff"?

Do you need to run them simultaneously? Power is inadequate for that, likely even for one.

At this point, exposing your full design is imperative.

You should have bought DRV8825 drivers. A 1Amp A4988 can't drive a 1.7Amp stepper motor to it's full potential.
A 12volt/1A supply might already be struggling with one motor.
It's certainly not enough for five motors.
Think 12volt/7A or if you want torgue at higher speeds 24volt/5A.
Leo..

1 Like

Careful here, the common sockets (like the Arduino "barrel" socket) have 2.1mm pins, a 2.5mm plug may be loose and have poor, intermittent contact.

Im using bread board because im an comp engg student, i have no experience with soldering, hence was trying to avoid it. But if the bread board will fry after usage then i will try to switch to a perfboard.

And i would likely need microstepping, so i atleast need 4 pins per motor(step, dir, ms1, ms2) to atleast be able to do a 1/8th step.

I haven't bought anything yet, im just asking to be safe and not fry any part i buy.

And the a4988 can go up to 2A with heat sinking, i won't go up that much cause i read that it can become too hot, so i will limit it to 1.5A.

Im planning on buying a female power jack(wtf is it called that) for my power adapter, im not going to connect anything in the arduino power jack

Do you ever need to change the microstep setting? Commonly that is either hard wired or set with jumpers, not dynamically changed under program control.

How does one hard wire that, it needs to be set on high...so do i need to constantly supply power to those pins on the a4988

And i understand that im low on power supply, mostly cause i don't know what can and cannot fry my electronics, so please suggest an appropriate power supply

"Hard wire" means to use a wire to connect the pin to either Vcc or ground, whichever is needed. Could also be done using a resistor as a pull-up or pull-down.

The term "hard wired" generally refers to not having an easy option to make changes, such as having to physically cut a trace on a circuit board instead of having header pins for a jumper.

is this how the "hardwiring" supposed to be done? its in yellow

Yes. The point is if you are always going to use 1/8 stepping, there is no need to wire MS0/MS1/MS2 to the Arduino input/output port pins, that is only needed if you want to control the stepping setting in your sketch.

Thanks, now what about the motor driver, is A4988 fine or do i need to switch to a DRV8825, because the motors are going to run for a long time, like for 6-7hours continuously, will the A4988 get too hot and malfunction even with the heat sinking, do i need to switch?

And about the power supply, any suggestions?

It is generally required for this hobby, and elementary school children learn how to solder. Sparkfun and Adafruit have excellent tutorials on line.

And about the power supply, any suggestions?

Read post #6.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.