I'm sorry if this is in the wrong place, but here goes.
I've included a picture below of the code I'm using (it won't let me upload a picture of my wiring), but I have 1 Arduino linked to a Joystick that controls 2 drivers and stepper motors (all from a UNO R3 Kit). My problem is that the y-axis motor is constantly spinning (receiving the command to rotate in one direction). I've checked my wiring and changed out most of these parts, but the strange thing is that if I switch which driver is plugged into pins 8, 10, 9, and 11, it's the one plugged into those pins that will spin continuously. Do y'all have any suggestions? I'm really quite unsure as to what to try next.
Read the forum guidelines to see how to properly post code. Images of code are nearly worthless. I cannot copy the code to a text editor or the IDE for examination. Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Photos of the setup are great if we can clearly see where each wire goes and the photos are labeled. Please include a schematic. Schematics are less ambiguous.
Thanks for letting me know, I'm more asking about the code to see if there's things to change, I've check my wiring so much the picture was mainly for the context. I based the wiring off of the following image, but supplied power/GND to the two drivers using the small breadboard.
I'm afraid I sourced this code from someone else who was sharing their work for free use, I'm not very good at coding. Here's the link to the Project Board site if you want to see it.
Thank you so much! Turns out I was looking at the other input value, which needs a different parameter I suppose. I really appreciate it :). That will be perfect.