Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Accelaration for a stepper motor

Hello,

I am controlling a stepper motor through a circuit which converts analog voltage to frequency. I use NI6009 USB for generating the voltage for a Voltage to Frequency Converter circuit. My problem is that, the user can control the output from 0 to 5 volts with a knob in  the front panel. But if the user increases or decreases the value very fast the stepper motor is not able to handle the inertia and stops or functions improperly. So I need something that will generate the output voltage with a slope even if the user increases / decreases it suddenly from the front panel. For example it may increase to the value chosen in 10 seconds etc. The control of the output voltage is done in real time so prefunctions does not work. 

 

I use DAQmx Base.

 

If somebody can help me I will be very happy. Thanks.

0 Kudos
Message 1 of 7
(6,438 Views)

Hi,

I am not an expert, but I'd suggest to do it manually and use a while cycle for instance where you decrease the value bit by bit for each cycle till you reach the desired value.

Best Regards,
Seno

0 Kudos
Message 2 of 7
(6,433 Views)

You could also put a small capcitor across the output.

Message 3 of 7
(6,421 Views)

Can't I find a soulution in the labview code?

0 Kudos
Message 4 of 7
(6,416 Views)

You could put the control in a while loop and feed the knob value to a shift register.  Then add elements to the left shift register, build them to an array, then take the average of those as your output value.  The number of elements you average, and the speed of your loop,  determines the amount of filtering.

Message 5 of 7
(6,413 Views)
Message 6 of 7
(6,409 Views)

Thanks a lot, both solutions look very well. 

0 Kudos
Message 7 of 7
(6,372 Views)