(please know that I'm very new to this)
I'm trying to attach three stepper motors, with their own drivers to a single Arduino uno, in a way that means I'm able to control them all separately. I think that there's enough pins on the Arduino to attach all of the drivers to, but not sure how the "GND" thing works. If anybody knows how I could wire this up, that'd be great. Thanks!
Here's a link to the stepper motors I'm using, if that helps: https://www.amazon.com/Longruner-Stepper-Uln2003-arduino-LK67/dp/B015RQ97W8
CormAlan:
but not sure how the "GND" thing works.
I don't know what was in your mind when you wrote that - what are you unsure about?
Each UNL2003 will require 4 Arduino I/O pins and you can use the Uno's analog pins as regular digital pins. Keep pins 0 and 1 free as they are used when uploading programs and when sending debug messages to the Arduino Serial Monitor.
...R
So if I were to connect each of the motor drivers to the I/O pins, where and how do I wire up the battery- and how big would the battery need to be for it to be functional?
I would expect a pack of 3 x AA alkaline cells (4.5v) or 4 x AA NiMh cells (4.8v) to be sufficient to get things working. How long they last is something for experiment.
Connect the battery to the GND and VCC pins on all three ULN2003 modules and also make a connection from the battery GND to the Arduino GND.
...R
A problem is that I'm a it limited in terms of batteries and wanted to know if the ones I had are enough, I have:
A 9v battery (lithium)
A case with 3 AA batteries
A case with 2 AA batteries
Is the combined power of these enough to power the motors, and if so, which ones go where?
Would I only have to use the case of 3 AA cells?
CormAlan:
A problem is that I'm a it limited in terms of batteries and wanted to know if the ones I had are enough,
In Reply #3 I suggested a pack of 3 x AA alkaline cells.
9v would be far too much for the stepper motors and 3v (from 2 x AA cells) would probably be too little.
...R
And which part of the Arduino should the positive/negative wires go into?
Here's a picture of what it basically looks like, minus the motor drivers, because the diagram maker I'm using doesn't have the right one
Image from Reply #7 so we don't have to download it. See this Simple Image Guide
...R
oh ok thanks- I was wondering about which pin holes I should put the wires from the battery into?
Hold on moment. You can't connect that sort of stepper motor (or any stepper motor) directly to an Arduino. I thought you are using 28BYJ-48 stepper motors and ULN2003 stepper drivers - and if so, it is the driver that connects to the Arduino, not the stepper motor.
Assuming the question in Reply #6 relates to the use of ULN2003 drivers (and ONLY on that assumption) the suggestion I made in Reply #3 envisaged the battery being connected to the ULN2003s and the Arduino being powered from the PC through its USB cable.
If you have something else in mind then please provide details.
...R
I haven't actually connected the motors directly to the Arduino, it's just that I couldn't find the driver icon on the diagram maker I was using
From the things you said in reply 3, I don't understand how I can connect a part of the battery to multiple different drivers, or how they connect to each other.
CormAlan:
From the things you said in reply 3, I don't understand how I can connect a part of the battery to multiple different drivers, or how they connect to each other.
You will have to make up a suitable cable so one end connects to a battery terminal and the other end has three parts, one for each ULN2003. Time to dig out the soldering iron.
If that does not answer your question then please explain the question more clearly.
...R
Thanks so much dude! It's working as intended 