LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CONVERTING STEPPER MOTOR STEPS INTO DEGREES

Solved!
Go to solution

Hello, guys, I am working on a project which involves rotating a camera lens with the help of stepper motor. project is basically determining the max focused position of lense that's why I need to know by how much degrees the motor is moving. I have attached LabVIEW file in which motor is moving in steps I want it to move in degrees

 

As I am new to LabVIEW I will be very thankful if anyone of you could help me with this. 

 

Thanks in Advance 

 

0 Kudos
Message 1 of 7
(5,320 Views)

Hi diehard,

 

I need to know by how much degrees the motor is moving.

How many steps make a full revolution?

(Once you know the answer the rest is simple math…)

 

Btw: no need to scream the thread title!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(5,311 Views)

Hi, GerdW

Thanks for reply 48 steps make a full revolution, I request you please see the LabVIEW file I have attached 

0 Kudos
Message 3 of 7
(5,296 Views)
Solution
Accepted by topic author diehard

Hi diehard,

 

48 steps make a full revolution

So the angle calculation is "360° * steps/48"…

 

I request you please see the LabVIEW file I have attached

I don't see how that VI is related to your question.

There's a missing subVI and no comments at all in the VI…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(5,290 Views)
Solution
Accepted by topic author diehard

Of course the math will be a lot easier to implement if you're code is clean.

 

Before:

Spoiler
Before Straightened.PNG

After:

Spoiler
Straightened.PNG

Just a thought...

Message 5 of 7
(5,288 Views)

Hello all, I am working on one project in which I am rotating a lense with the help of stepper motor by 1 mm, 0.1 mm for determining a point of maximum focus for the lense. The problem is attached vi was given by my professor in which it is moving stepper motor in mm I want to change it to a degree of rotation. since I am new to LabVIEW I am not able to understand this vi's. it would be very helpful if anyone could help me with this problem and also suggest some good source for learning LabVIEW.

 

for stepper motor 48 steps= 1 rotation

Download All
0 Kudos
Message 6 of 7
(5,248 Views)

Hi diehard,

 

why don't you stick with your thread?

We already "solved" the conversion from steps to rotation angle - so what's your problem now/again?

 

suggest some good source for learning LabVIEW.

See the "Training resources" offered in the header of this LabVIEW board!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 7
(5,181 Views)