08-03-2020 04:57 AM
Greetings everyone, I have a stepper motor to which a filter wheel is attached. I am using an NI USB to connect labview to the stepper motor, My job is to make this filter wheel as a shutter so that I gets ON and OFF and I could gather radiation from a black body cavity.
I have attached a VI. Can you guys give me a hint of how would i do that ?.
08-03-2020 05:11 AM
Hi Pukhtun,
@Pukhtun_Yum wrote:
My job is to make this filter wheel as a shutter so that I gets ON and OFF and I could gather radiation from a black body cavity. Can you guys give me a hint of how would i do that ?.
Hint:
Read the manual ofr your stepper motor (driver) and send the required signals to have the motor step forward/backwards as needed!
08-03-2020 05:14 AM
Hello, I did that already. I can rotate the motor clockwise and anticlockwise but what i want is to use the motor as a shutter so that it goes clockwise (ON) and anticlockwise (OFF)
08-03-2020 06:17 AM - edited 08-03-2020 06:19 AM
Hi Pukhtun,
@Pukhtun_Yum wrote:
I can rotate the motor clockwise and anticlockwise but what i want is to use the motor as a shutter so that it goes clockwise (ON) and anticlockwise (OFF)
So you know how to spin the motor (anti) clockwise - and now you want to know how to spin the motor (anti) clockwise?
Btw what about creating a state machine-like code?
08-03-2020 06:25 AM
Sorry for complicating things. It takes 132 number of iterations for a motor to move from OFF position to ON position and vice versa. What I want is to turn the motor very quickly from ON to OFF and from OFF to ON. How can i skip these iterations so that the filter wheel jumps to the desired locatioon instantly ?
08-03-2020 06:31 AM
@Pukhtun_Yum wrote:
Sorry for complicating things. It takes 132 number of iterations for a motor to move from OFF position to ON position and vice versa. What I want is to turn the motor very quickly from ON to OFF and from OFF to ON. How can i skip these iterations so that the filter wheel jumps to the desired locatioon instantly ?
A stepper motor moves in steps, right? So it's just doing what it's supposed to be doing. In fact, if you were able to move in such a quick and jarring manner, it might destroy the motor and/or the mechanical components. If anything, I would think a solenoid would be a better choice.
08-03-2020 12:53 PM
@Pukhtun_Yum wrote:
Sorry for complicating things. It takes 132 number of iterations for a motor to move from OFF position to ON position and vice versa. What I want is to turn the motor very quickly from ON to OFF and from OFF to ON. How can i skip these iterations so that the filter wheel jumps to the desired locatioon instantly ?
Does your stepper motor have an encoder?
08-04-2020 04:24 AM
Yes, it has.
08-04-2020 11:13 AM
Would be pretty easy then. Note where the encoder starts before you start your spin and when you want to go back, subtract where it is at from where you started.
08-05-2020 03:04 PM
@billko wrote:
@Pukhtun_Yum wrote:
Sorry for complicating things. It takes 132 number of iterations for a motor to move from OFF position to ON position and vice versa. What I want is to turn the motor very quickly from ON to OFF and from OFF to ON. How can i skip these iterations so that the filter wheel jumps to the desired locatioon instantly ?
A stepper motor moves in steps, right? So it's just doing what it's supposed to be doing. In fact, if you were able to move in such a quick and jarring manner, it might destroy the motor and/or the mechanical components. If anything, I would think a solenoid would be a better choice.
Hi, @Pukhtun_Yum,
If you want to jump to a desired location instantly, @billko is right. By design, a stepper motor can only rotate one step at a time.
If you really only have two states you need (ON and OFF), you should consider a solenoid.
If you have to use a motor (solenoid isn't allowed?), you could try a DC motor with good feedback (like an encoder) and control. It can go much quicker than a stepper motor, but it can become really complicated if you aren't familiar with the required hardware and programming to control it.
If you must use a stepper motor, you'll just need to optimize its operation.
Some ways to go faster include
Also, I found some additional ideas at this URL:
Hope something helps.
-joeorbob