Hello! I am working on a project for my senior design project. In terms of the electrical systems: Once a button is pressed, a DC motor should rotate CW until a microswitch is triggered, then a stepper motor should rotate 360 degrees and lastly the same DC motor should rotate CCW until a separate microswtich is triggered. I am having trouble getting the DC motor to rotate counter clockwise after the stepper motor rotates. Does anybody know why this might be happening? Is it possibly something with the code? Any help would be much appreciated! I attached the code below
Deployment_and_Failsafe_with_Stepper.ino (3.31 KB)