Closer up image of the driver on the bread board. The solderings are pretty shonky (I didn’t have a soldering iron that came to a sharp point, but I tested the connections and they seem to be fine. Not getting voltage from the pins at the rings either.
I’ve got pin 5 connected to step, pin 6 connected to dir with the code “Stepper myStepper(200,5,6);”
The 5V supply from the Arduino to the sleep pin on the driver (I read that needs a HIGH value so that the driver can run)
Bottom right ground to ground on the arduino, top right ground to ground on the battery. VMOT to the positive end on the battery and that’s about it for the wiring.
I can see a voltage varying from 0 to 5 on the step connection, and a voltage varying from 0 to 2.5 on the dir connection. I’m not sure exactly how the arduino is meant to connect to the driver.
The sarcasm is certainly welcome. Yes I have studied it and I’m only getting frustrated that I may be missing something small, what I was referring to was the digital pins that are connected to step and dir. Do they interface with the stepper.h library on Arduino? I’m not too certain on how the Stepper myStepper(200,5,6) works in the coding. I’ve tried to look up in the references what the 5 and 6 should be connected to but can’t seem to find anything specifically addressing them.
I don’t use stepper motor libraries and had not realized just how atrocious the documentation for the Arduino Stepper library actually is. I agree, those thoughtful folks tell you to connect two Arduino pins to the motor driver, but they forgot to mention what those two pins are supposed to do. You do get what you pay for.
However, a hint is in order: the pins are connected to the STEP and DIR driver inputs, so try it one way and then swap if it doesn’t work.
Or, you could study the MP6500 data sheet, and learn what the STEP and DIR pins actually do.
But hey, it is not “rocket science”. If you set DIR to HIGH and pulse the STEP pin briefly HIGH, the motor takes a step, direction depending on how it is wired. If you set DIR to LOW, and pulse the STEP pin, well, you can guess.