LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview with Arduino stepper motor control problem

I am learning how to control a stepper motor with labview and an arduino. I have the EasyDriver that the example VI is made for. I am not able to reverse the motor. The motor will only turn one way. I have programmed the motor with just the arduino and am able to reverse the motor easily. Anyone know how to fix this?

0 Kudos
Message 1 of 3
(2,736 Views)

Did you try a duty cycle of less than 50%? That should reverse the stepper. Also, did you try to have the number of steps as negative? That should help you reverse the stepper. 

 

0 Kudos
Message 2 of 3
(2,727 Views)

I figured it out. Somehow the pin definintions inside the VI got flipped. I must have absent mindedly switched them and saved the VI. It is all working correctly now.

 

Before if I put in a negative number for the steps it would turn the same direction as a positive number. I understood that a negative number means reverse and a positive number means forward.

Message 3 of 3
(2,677 Views)