LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Arduino Stepper Motor Control

I have very little labView experience, but I'd like to write a labView code that tells my stepper motor to spin at a constant rate given a user frequency input (revolutions per second), and continue spinning until the user tells it to stop. The labview code would probably need to control the rate of acceleration until the motor reaches its desired velocity, remain constant, and then decelerate when the user is done. Any suggestions?

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

So I've modified the labview stepper example VI so that I have a boolean and a case structure. The code checks to see if the user has pressed a button, and if so, it takes the user inputs and sends them to the arduino/motor. It works HOWEVER, the step rate that the user inputs doesn't seem to be what the motor is outputting. Any suggestions?

From my understanding of the labView code, the inputs are the steps, the step rate and the acceleration. Can anyone tell me what is happening behind the scenes with the built-in stepper motor functions and how the step inputs translate to the i/o pins on the arduino? Does labView send a default pwm signal to the arduino I/O pins that control the step rate? Does anyone know if the output is a microstep, half step or full step? And if so, how do I change it? (My best guess is that it's microstepping by default because I have to input 8000 steps for a full rotation, when I know this motor only needs 200 steps/rev. I can't get the motor to move any faster than 1 rev/s, no matter how high I increase the step rate, and I'm not sure why.)

I have a Gecko 723 Stepper motor, and a G203 Stepper driver.

I could really use some direction. Thank you!

0 Kudos
Message 2 of 2
(2,738 Views)