Showing results for 
Search instead for 
Did you mean: 

Stepper Motor Control Through PWM

Go to solution

I need to run a stepper motor(NEMA 17) for a specific number of steps with maximum speed possible controlled using myRIO. When I used Digital out to produce the square wave for the stepper, the maximum speed obtainable was 500 steps per second when I used 1 ms high and then 1ms low and so on in a loop. But When I use PWM to deliver the signal, higher frequency was obtained but there is no way to count the number of steps. Is there any way to get higher speed and be able to count the pulses? or get higher resolution for wait function?

Download All
0 Kudos
Message 1 of 3
Accepted by topic author justmearun

Hello justmearun,


try to use the timing functions from the RT palette there is the option to use µS instead of mS. Programming the FPGA is also an option to implement this feature.

Be carefull, if the frequency is to high, the motor do not rotate, because the holding torque. A solution for this is to start with a lower frequency and rise this up to the needed one.




best regards
0 Kudos
Message 2 of 3

Thank you. I have used the RT module. It worked.

0 Kudos
Message 3 of 3