LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control of a digital stepper motor

Hello!

 

Basically, I am building a PID controller whose output must be pulses that move a stepper motor linearly. Does anybody here could share some codes or iformation about how to do it?

0 Kudos
Message 1 of 4
(962 Views)

Hi institutotect,

 


@insitutotect22 wrote:

Basically, I am building a PID controller whose output must be pulses that move a stepper motor linearly. Does anybody here could share some codes or iformation about how to do it?


Basically you need a code to read your process value (pv) for PID input, a PID function to calculate an output value and a code to drive another DAQ device to output your pulses. What have you tried so far and where are you stuck?

 

When you use a PID, which generates a changing output value, then your stepper motor will not move "linearly"…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(940 Views)

I already have the angle input from a rotary incremental encoder.

 

This PID will control an inverted pendulum that can move only in x axis

 

My ideia is to built a general PID controller and adjust the gains as I analyse the experiment. Do you think it make sense?

 

My doubt now is how to link the ouput from de PID with the stepper motor.

 

Thanks!  

 

 

0 Kudos
Message 3 of 4
(920 Views)

Hi insitutotect,

 


@insitutotect22 wrote:

My doubt now is how to link the ouput from de PID with the stepper motor.


What does your motor driver expect?

How is the motor connected to your computer?

 

You didn't tell any details so far…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(917 Views)