I am running two stepping motors with an application. First one motor runs, then the second. I am using the PRODRIVER_MODE_SERIAL. When I run the application the first motor always runs but the second motor does not run all the time. I added a Serial.ptintln to the motor sequence and it shows that the stepSerial for the second motor is firing.
What could be the issue here? As I said this happens intermittently.
Actually I just found the issue. My application was broken into various functions and the second motor didn’t seem to like that. I rewrote the application so that the motor sequence was all in one function and the issue disappeared.
Well thought I had it solved, but no. Both motors are on the same power source but only 1 motor runs at a time. The only thing I can think of trying is to run the second motor on custom pins and not in serial mode.
Well it looks as though I have not found the solution. Have tried about everything except powering the motors from separate power sources. Though, with a 30amp supply the same power source should not make a difference. What I may have to do is buy two more stepper boards and another motor just to bench test everything.
Did some further experiments. I am using 4 12vdc linear actuators for my car clamps. they are wired to a DPDT 5VDC relay. If I comment out the calls to the clamps everything works fine every time. With the calls in the second motor is erratic. Figured it might be a power problem and connected the actuators to a separate supply. No go, still erratic. Going to disable the DPDT relay next by disconnecting the pins but leave the 12VDC supply on to see if it is the relay.