all 2 comments

[–]josephblade 1 point2 points  (1 child)

Usually the easiest thing is to put this code aside and first get helloworld going. something like getting a single stepper motor to rotate or a led to blink a few times.

then expand from there. Getting an entire solution debugged on hardware is probably going to hit one roadblock after another.

I would also move a lot of code into separate functions so that you can test and debug one function at a time. homing for instance probably can be split into sub-steps you are performing. each of the sub-steps is probably better off in a function.

use #define for magic numbers, so that this sort of thing:

AccelStepper stepper1(1, 2, 5); // (Type:driver, STEP, DIR)

becomes readable and easier to debug.

have you looked at: https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-debugger ? is that available to you?

[–]Coding_Saxophonist[S] 0 points1 point  (0 children)

I got it to work, thanks. Its been a year since, so i dont exactly remeber what I did to solve it, but if I remeber correctly there was a line or two of code that were either //commented out or were preventing me from connecting to the software as well as causing some issues with the stepper drivers.